:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef3fb;
  --surface-strong: #101827;
  --text: #111827;
  --text-muted: #526075;
  --line: #d7dfeb;
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-on: #f8fafc;
  --header: rgb(247 249 252 / 92%);
  --shadow: 0 22px 70px rgb(37 61 101 / 12%);
  --radius-surface: 14px;
  --radius-control: 10px;
  --max-width: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1117;
    --surface: #181c26;
    --surface-soft: #202634;
    --surface-strong: #080b12;
    --text: #edf2f7;
    --text-muted: #aab5c6;
    --line: #30394a;
    --accent: #60a5fa;
    --accent-soft: #142b4e;
    --accent-on: #08111f;
    --header: rgb(15 17 23 / 92%);
    --shadow: 0 24px 80px rgb(0 0 0 / 32%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1117;
  --surface: #181c26;
  --surface-soft: #202634;
  --surface-strong: #080b12;
  --text: #edf2f7;
  --text-muted: #aab5c6;
  --line: #30394a;
  --accent: #60a5fa;
  --accent-soft: #142b4e;
  --accent-on: #08111f;
  --header: rgb(15 17 23 / 92%);
  --shadow: 0 24px 80px rgb(0 0 0 / 32%);
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
select {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell,
.nav-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--surface-strong);
  color: #f8fafc;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links,
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.nav-controls {
  justify-content: flex-end;
}

.compact-control {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

select.compact-control {
  max-width: 128px;
  padding: 0 30px 0 10px;
}

.theme-control {
  min-width: 76px;
  padding: 0 12px;
  cursor: pointer;
}

.theme-control:active,
.copy-button:active,
.button:active {
  transform: translateY(1px);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: clamp(56px, 9vh, 88px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(48px, 6.2vw, 80px);
  line-height: .98;
  letter-spacing: -.058em;
}

.hero-body {
  max-width: 57ch;
  margin-bottom: 34px;
  color: var(--text-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-on);
}

.button-primary:hover {
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.hero-visual {
  margin: 0;
}

.brand-orbit {
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background:
    radial-gradient(circle at 50% 40%, rgb(59 130 246 / 18%), transparent 38%),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}

.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.brand-orbit::before {
  width: 390px;
  height: 390px;
}

.brand-orbit::after {
  width: 270px;
  height: 270px;
}

.brand-orbit > img {
  position: relative;
  z-index: 1;
  width: min(56%, 260px);
  filter: drop-shadow(0 28px 36px rgb(59 130 246 / 18%));
}

.release-line {
  position: absolute;
  z-index: 1;
  min-width: 124px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: 0 12px 30px rgb(25 42 72 / 10%);
  line-height: 1.15;
}

.release-line span,
.release-line strong {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.release-line span {
  color: var(--text-muted);
}

.release-line strong {
  margin-top: 4px;
  color: var(--accent);
}

.release-line-one {
  top: 12%;
  right: 8%;
}

.release-line-two {
  bottom: 12%;
  right: 12%;
}

.release-line-three {
  bottom: 20%;
  left: 7%;
}

.product-section,
.languages-section,
.trust-section {
  padding-block: clamp(88px, 12vw, 148px);
}

.product-section {
  border-top: 1px solid var(--line);
}

.product-intro {
  max-width: 940px;
  margin-bottom: 64px;
}

.product-intro h2,
.languages-copy h2,
.install-copy h2,
.trust-section h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.product-intro p,
.languages-copy p,
.install-copy > p {
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
}

.value-item {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
}

.value-primary {
  min-height: 330px;
  background:
    linear-gradient(135deg, rgb(59 130 246 / 15%), transparent 65%),
    var(--surface);
}

.value-dark {
  background: var(--surface-strong);
  color: #edf2f7;
}

.value-item.value-dark p {
  color: #b9c4d4;
}

.value-wide {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(100deg, var(--surface) 45%, rgb(59 130 246 / 12%)),
    var(--surface);
}

.value-item h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.value-item p {
  max-width: 50ch;
  margin-bottom: 0;
  color: var(--text-muted);
}

.languages-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: clamp(48px, 9vw, 120px);
}

.language-coverage {
  border-top: 1px solid var(--line);
}

.coverage-row {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.coverage-row p {
  margin-bottom: 18px;
  color: var(--text-muted);
}

.coverage-deep p {
  color: var(--text);
  font-weight: 700;
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-list span,
.platforms span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.install-section {
  padding-block: clamp(88px, 12vw, 136px);
  background: var(--surface-soft);
  color: var(--text);
}

.install-shell {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
}

.install-copy > p {
  color: var(--text-muted);
}

.platforms {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.platforms span {
  border-color: #344056;
  background: #161d2b;
  color: #dce7f5;
}

.command-panel {
  overflow: hidden;
  border: 1px solid #33405a;
  border-radius: var(--radius-surface);
  background: #080b12;
  box-shadow: 0 28px 70px rgb(0 0 0 / 28%);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #283247;
  color: #8fa0b9;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 26px;
}

.command-row code {
  overflow-x: auto;
  color: #dce7f5;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.copy-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #40506c;
  border-radius: var(--radius-control);
  background: #172033;
  color: #f1f5f9;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.copy-button:hover {
  border-color: #60a5fa;
}

.copy-status {
  min-height: 24px;
  margin: 0;
  padding: 0 26px;
  color: #93c5fd;
  font-size: 12px;
}

.install-after {
  margin: 10px 26px 24px;
  color: #9aa8bd;
  font-size: 13px;
}

.trust-section h2 {
  max-width: 14ch;
}

.trust-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-links a {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.trust-links a:last-child {
  border-right: 0;
}

.trust-links a:hover {
  background: var(--surface);
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-shell {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
}

.footer-shell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  text-align: right;
}

.error-page {
  min-height: 100dvh;
}

.error-shell {
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 64px;
}

.error-shell > img {
  width: 96px;
}

.error-code {
  margin: 32px 0 8px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 750;
}

.error-shell h1 {
  max-width: 16ch;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
}

.error-shell > p:not(.error-code) {
  max-width: 48ch;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 18px;
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .languages-section,
  .install-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 48px;
  }

  .hero-copy {
    padding-top: 28px;
  }

  .hero-visual {
    width: min(100%, 620px);
  }

  .brand-orbit {
    min-height: 420px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-wide {
    grid-column: auto;
    grid-template-columns: .9fr 1.1fr;
  }

  .trust-links {
    grid-template-columns: 1fr 1fr;
  }

  .trust-links a:nth-child(2) {
    border-right: 0;
  }

  .trust-links a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .page-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav-shell {
    min-height: 68px;
    gap: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  select.compact-control {
    width: 104px;
    padding-left: 8px;
  }

  .theme-control {
    min-width: 66px;
    padding-inline: 8px;
  }

  .hero {
    padding-block: 48px 72px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-body {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .brand-orbit {
    min-height: 340px;
  }

  .release-line {
    min-width: 104px;
  }

  .product-section,
  .languages-section,
  .trust-section,
  .install-section {
    padding-block: 80px;
  }

  .product-intro {
    margin-bottom: 42px;
  }

  .value-item,
  .value-primary,
  .value-wide {
    min-height: auto;
    padding: 26px;
  }

  .value-wide {
    display: block;
  }

  .command-row {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .copy-button {
    justify-self: start;
  }

  .copy-status {
    padding-inline: 22px;
  }

  .install-after {
    margin-inline: 22px;
  }

  .trust-links {
    grid-template-columns: 1fr;
  }

  .trust-links a,
  .trust-links a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-links a:last-child {
    border-bottom: 0;
  }

  .footer-shell {
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer-shell p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
