:root {
  color-scheme: dark;
  --background: #070d19;
  --surface: #0d1625;
  --surface-raised: #101b2b;
  --line: #24334a;
  --white: #f0f5ff;
  --muted: #a8b7cc;
  --soft: #879bb4;
  --cyan: #85e9ed;
  --accent: #8df0ec;
  --ink: #082326;
  --frame: 1180px;
  font-family: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 300px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p { color: var(--muted); }
code, pre, .eyebrow, .plot-top { font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
code { font-size: .9em; overflow-wrap: anywhere; }
.frame { width: min(var(--frame), calc(100% - 96px)); margin-inline: auto; }
.skip, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
  top: 12px; left: 14px; z-index: 5; padding: 10px 14px; background: var(--surface);
}

.site-header { position: relative; z-index: 3; border-bottom: 1px solid #1e2c40; background: #070d19; }
.nav-row { display: flex; height: 77px; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.wordmark img { object-fit: contain; }
.wordmark span { color: #e9f1fb; font-size: 15px; font-weight: 650; letter-spacing: -.025em; line-height: 1.12; }
nav { display: flex; gap: 29px; align-items: center; }
nav > a { color: #adbad0; font-size: 14px; font-weight: 550; }
nav > a:hover, nav > a[aria-current] { color: var(--cyan); }
.nav-account { margin-left: 6px; }
.menu-button { display: none !important; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 11px 17px; border: 1px solid transparent;
  border-radius: 8px; font-size: 14px; font-weight: 660; line-height: 1.38; text-align: center;
  transition: background .16s, border-color .16s, color .16s;
}
.button.primary { color: var(--ink); background: var(--accent); }
.button.primary:hover { background: #bdfaf6; }
.button.primary:disabled { color: var(--muted); background: #182438; cursor: default; }
.button.secondary { color: var(--white); background: #101a29d9; border-color: #34435a; }
.button.secondary:hover { border-color: #82a3bd; background: #17283b; }
.button.compact { min-height: 37px; padding: 7px 12px; font-size: 13px; }
.button.small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--cyan); font-weight: 650; line-height: 1.5; }
.text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.muted-link { color: var(--muted); }
.actions, .panel-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-visual { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.hero-earth {
  position: absolute; inset: 0 0 0 25%;
  --earth-position: 73% 44%;
}
.hero-earth > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--earth-position);
}
.hero-earth img { opacity: .88; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--background) 0%, #070d1960 15%, transparent 42%),
    linear-gradient(90deg, var(--background) 0%, var(--background) 24%, #070d19e8 35%, #070d1935 57%, transparent 74%);
}
.hero-layout { min-height: 540px; display: flex; align-items: center; padding: 76px 0 92px; }
.hero-copy { max-width: 690px; position: relative; }
.hero h1 { font-size: clamp(48px, 5.1vw, 75px); font-weight: 620; letter-spacing: -.056em; word-spacing: .01em; line-height: .98; }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero p { margin-top: 25px; max-width: 470px; font-size: 18px; line-height: 1.64; color: #c2cfdf; }
.hero .actions { margin-top: 29px; }
.hero .button { min-height: 51px; padding-inline: 18px; }
.hero-source { margin-top: 24px; font-size: 13px; }
.play { font-size: 17px; line-height: 1; }
.featured { position: relative; z-index: 1; margin-top: -5px; }
.feature {
  display: grid; grid-template-columns: .88fr 1.25fr; align-items: center; gap: 31px;
  padding: 25px 25px 25px 38px; border: 1px solid #25374e; border-radius: 14px;
  background: linear-gradient(112deg, #111e30, #0c1422 52%);
}
.feature-copy { padding-block: 12px; }
.eyebrow { font-size: 11px; color: var(--cyan); letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; }
.feature h2 { font-size: clamp(34px, 4.5vw, 61px); font-weight: 610; line-height: 1; letter-spacing: -.045em; margin: 12px 0 15px; }
.feature-copy > p:not(.eyebrow) { max-width: 345px; font-size: 15px; line-height: 1.65; }
.feature-copy .text-link { margin-top: 19px; font-size: 14px; }
.feature-plot { display: block; overflow: hidden; background: #0d1322; border-radius: 9px; border: 1px solid #26364a; }
.feature-plot:hover { border-color: #688ca3; }
.feature-plot img { width: 100%; height: auto; }
.plot-top {
  padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #202d40;
  font-size: 10px; color: var(--muted); letter-spacing: .025em;
}
.plot-top i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 4px; }
.home-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-block: 20px 62px; }
.home-paths > a, .path-soon { position: relative; padding: 22px 39px 21px 21px; background: #0c1524; border: 1px solid var(--line); border-radius: 10px; }
.home-paths > a:hover { border-color: #55738a; background: #101d2e; }
.home-paths h3, .path-title { font-size: 17px; margin: 9px 0 5px; }
.home-paths p, .path-description { font-size: 13px; line-height: 1.55; }
.path-icon { display: inline-block; font-size: 19px; color: var(--cyan); }
.path-arrow { position: absolute; top: 23px; right: 20px; color: var(--cyan); }

.page { padding-block: 55px 78px; }
.page-heading { max-width: 780px; margin-bottom: 33px; }
.page-heading h1 { font-size: clamp(46px, 6vw, 76px); letter-spacing: -.048em; font-weight: 630; line-height: 1.03; }
.page-heading p { font-size: 17px; line-height: 1.65; margin-top: 13px; max-width: 635px; }
.page-heading .actions { margin-top: 24px; }
.back-link { display: inline-block; color: var(--cyan); font-size: 14px; margin-bottom: 18px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 23px;
  min-width: 0;
}
.panel h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.027em; font-weight: 630; }
.panel p, dialog p { font-size: 15px; line-height: 1.62; margin-top: 9px; }
.panel > .text-link { margin-top: 12px; font-size: 14px; }
.panel-actions { margin-top: 25px; }
.narrow, .install-panel { max-width: 780px; }
.stack { display: grid; gap: 14px; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 17px; align-items: start; }
.toc h2 { font-size: 16px; margin-bottom: 13px; }
.toc a, .link-list a {
  display: flex; justify-content: space-between; gap: 9px; align-items: center;
  padding-block: 10px; color: #c4d8ec; font-size: 14px; line-height: 1.4;
}
.toc a:hover, .link-list a:hover { color: var(--cyan); }
.link-list { display: grid; padding: 0; list-style: none; margin: 11px 0 0; }
.link-list a { border-top: 1px solid var(--line); }
.link-list span, .toc span { color: var(--cyan); }
.install-step { margin: 24px 0 0; font-size: 16px; }
.install-step + .code-box { margin-top: 8px; }
.install-guide { margin-top: 16px; }
.code-box { position: relative; margin-top: 16px; }
.code-box pre {
  padding: 17px 67px 17px 15px; width: 100%; margin: 0; background: #080f1b;
  border: 1px solid var(--line); border-radius: 7px; overflow-x: auto;
  font-size: 12px; line-height: 1.65; color: #cde7f8; white-space: pre-wrap; overflow-wrap: anywhere;
}
.code-box .button { position: absolute; right: 7px; top: 7px; }
.segmented { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 19px; }
.segment { border: 1px solid var(--line); background: #101c2c; color: #afc3dc; border-radius: 7px; padding: 8px 12px; font-size: 13px; min-height: 37px; }
.segment.active { background: #17343f; border-color: #385d6c; color: #b5f7f4; }
.segment:hover { border-color: #56778d; }
.split-page, .study-layout { display: grid; grid-template-columns: 1fr 1.12fr; gap: 28px; align-items: center; margin-bottom: 24px; }
.trainer-image, .study-figure { padding: 11px; }
.trainer-image img, .study-figure img { width: 100%; border-radius: 6px; }
figcaption { color: var(--soft); font-size: 12px; line-height: 1.45; margin: 10px 4px 2px; }
.study-layout { grid-template-columns: 1.8fr 1fr; align-items: start; gap: 16px; }
.study-figure .segmented { margin: 3px 3px 13px; }
.study-figure figcaption .text-link { margin-top: 5px; }

.notice { position: fixed; z-index: 5; left: 50%; bottom: 19px; transform: translateX(-50%); max-width: calc(100% - 25px); background: #23394c; border: 1px solid #537990; border-radius: 8px; padding: 10px 15px; font-size: 13px; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; padding-block: 22px; font-size: 13px; color: var(--muted); }
.footer-row small { font-size: inherit; color: var(--soft); }
.footer-row div { display: flex; gap: 18px; }
.footer-row a:hover { color: var(--cyan); }

@media (max-width: 1000px) {
  .frame { width: calc(100% - 56px); }
  nav { gap: 20px; }
  .hero-layout { min-height: 480px; }
  .hero-earth { left: 19%; --earth-position: 68% 50%; }
  .hero-visual::after { background: linear-gradient(0deg, var(--background), transparent 39%), linear-gradient(90deg, var(--background) 6%, #070d19f2 24%, #070d194d 57%, transparent 85%); }
}

@media (max-width: 720px) {
  .frame { width: calc(100% - 36px); }
  .nav-row { height: 66px; }
  .menu-button { display: inline-flex !important; }
  nav { display: none; position: absolute; top: 66px; left: 0; right: 0; border-bottom: 1px solid var(--line); background: #0b1422; padding: 12px 18px; flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
  nav.open { display: flex; }
  .nav-account { margin-left: 0; }
  .hero-layout { align-items: end; min-height: 0; padding: 146px 0 38px; }
  .hero h1 { font-size: clamp(25px, 8.45vw, 44px); line-height: 1; }
  .hero-copy { max-width: 440px; }
  .hero p { font-size: 16px; margin-top: 16px; }
  .hero .actions { margin-top: 20px; }
  .hero-source { margin-top: 15px; }
  .hero-earth { inset: 0 0 7% 0; --earth-position: 72% 38%; }
  .hero-visual::after { background: linear-gradient(0deg, var(--background) 2%, #070d19dd 42%, #070d1922 83%), linear-gradient(90deg, #070d1994, transparent 95%); }
  .feature { grid-template-columns: 1fr; padding: 19px; gap: 17px; }
  .feature-copy { padding: 0; }
  .feature h2 br { display: none; }
  .home-paths { grid-template-columns: 1fr; gap: 8px; margin-top: 13px; margin-bottom: 33px; }
  .home-paths > a, .path-soon { padding: 14px 40px 15px 16px; }
  .home-paths h3, .path-title { margin-top: 5px; }
  .page { padding-block: 37px 51px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading p { font-size: 16px; }
  .docs-layout, .split-page, .study-layout, .account-grid { grid-template-columns: 1fr; gap: 13px; }
  .docs-layout > .stack { order: -1; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .community-footer { align-items: flex-start; flex-direction: column; }
  .account-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 410px) {
  .hero .button { min-height: 45px; padding-inline: 11px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-tools { flex-direction: column; }
  .panel { padding: 17px; }
  .inline-form { flex-wrap: wrap; }
  .plot-top { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.nav-soon, .path-soon {
  cursor: default;
  color: var(--muted);
  opacity: 1;
}
.nav-soon {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 550;
}
.nav-soon small, .path-soon small {
  color: var(--cyan);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}
.path-soon { text-align: left; }
.path-title, .path-description, .path-soon small { display: block; }
.path-title { font-weight: 650; }
.path-soon small { margin-top: 9px; }
