:root {
  --bg: #07111f;
  --bg-elevated: rgba(14, 28, 49, 0.74);
  --bg-card: rgba(16, 32, 56, 0.72);
  --bg-card-hover: rgba(21, 41, 71, 0.84);
  --bg-code: rgba(6, 14, 26, 0.78);
  --bg-nav: rgba(7, 17, 31, 0.78);
  --border: rgba(148, 197, 255, 0.14);
  --border-strong: rgba(148, 197, 255, 0.26);
  --text: #f3f7ff;
  --text-secondary: #aec2df;
  --text-muted: #7f97ba;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-bg: rgba(56, 189, 248, 0.12);
  --primary-btn-bg: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  --primary-btn-hover: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
  --primary-btn-text: #ffffff;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-showcase: 0 32px 84px rgba(0, 0, 0, 0.65), 0 0 72px rgba(14, 165, 233, 0.14);
  --font-sans: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

html[data-theme="light"] {
  --bg: #f4f7fc;
  --bg-elevated: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --bg-code: #eef3fa;
  --bg-nav: rgba(244, 247, 252, 0.82);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(14, 165, 233, 0.34);
  --text: #0f172a;
  --text-secondary: #3b4b63;
  --text-muted: #64748b;
  --accent: #0284c7;
  --accent-strong: #0369a1;
  --accent-bg: rgba(2, 132, 199, 0.09);
  --primary-btn-bg: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  --primary-btn-hover: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  --primary-btn-text: #ffffff;
  --shadow-card: 0 8px 26px rgba(15, 23, 42, 0.06);
  --shadow-showcase: 0 28px 68px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.glow-top {
  width: 720px;
  height: 460px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
}

.glow-right {
  width: 560px;
  height: 460px;
  top: 220px;
  right: -140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 72%);
}

html[data-theme="light"] .glow-top {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%);
}

html[data-theme="light"] .glow-right {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 72%);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

html[data-theme="dark"] .icon-moon {
  display: none;
}

html[data-theme="light"] .icon-sun {
  display: none;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nav-github:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.nav-github svg {
  width: 16px;
  height: 16px;
}

/* Hero */
.hero {
  padding-top: 64px;
  padding-bottom: 36px;
  text-align: center;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.release-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
}

.hero-title {
  margin: 22px auto 0;
  max-width: 820px;
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.09;
}

.hero-subtitle {
  margin: 18px auto 0;
  max-width: 680px;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  color: var(--text-secondary);
  line-height: 1.58;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-elevated);
}

.btn-full {
  width: 100%;
}

.hero-meta {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.showcase-wrap {
  margin: 44px auto 0;
  max-width: 1040px;
}

.showcase-frame {
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(56, 189, 248, 0.25), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow-showcase);
  overflow: hidden;
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.showcase-caption {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding-top: 76px;
  padding-bottom: 16px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  max-width: 640px;
}

/* Cards & Grids */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.58;
}

/* Download */
.release-summary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.tag-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.text-link:hover {
  text-decoration: underline;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.download-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.muted {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

.arch-triple {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.size-badge {
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.artifact-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
}

.hash-box,
.cmd-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  min-width: 0;
}

.hash-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hash-value,
.cmd-box code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--text-secondary);
  scrollbar-width: none;
}

.hash-value::-webkit-scrollbar,
.cmd-box code::-webkit-scrollbar {
  display: none;
}

.copy-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-btn.copied {
  border-color: #22c55e;
  color: #22c55e;
}

.verify-card {
  margin-top: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verify-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.verify-info p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Docs & Roadmap */
.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.two-col-section > * {
  min-width: 0;
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.link-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.link-card strong {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
}

.link-card span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.link-card > span:last-child {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 0;
  flex-shrink: 0;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-card {
  padding: 18px;
}

.roadmap-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 650;
}

.roadmap-card h3 {
  margin: 10px 0 0;
  font-size: 15.5px;
  font-weight: 650;
}

.roadmap-card p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.footer {
  margin-top: 76px;
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-brand img {
  border-radius: 5px;
}

.footer-brand a,
.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-brand a:hover,
.footer-links a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col-section {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 44px;
  }
  .bento-grid,
  .download-grid,
  .roadmap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-actions .btn {
    width: 100%;
  }
}
