:root {
  color-scheme: dark;
  --bg: #061426;
  --bg-2: #071a33;
  --deep: #04101f;
  --panel: #0b2340;
  --panel-2: #0e2c4f;
  --stage: #0a203b;
  --ink: #e8eef7;
  --muted: #93a7c0;
  --gold: #d8b45a;
  --gold-strong: #f2d48a;
  --gold-ink: #1a1406;
  --radius: 12px;
  --page: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: 1.25rem;
  --step-h3: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  --step-h2: clamp(2.2rem, 1.5rem + 2.8vw, 4rem);
  --display: clamp(2.6rem, 7.4vw, 6.4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-strong);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 3px;
}

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

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #122b48;
  color: var(--gold-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.wrap {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.server-bar {
  background: var(--deep);
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.server-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-block: 10px;
}

.server-bar strong {
  color: var(--ink);
  font-weight: 600;
}

.server-bar a {
  color: var(--muted);
  text-decoration: none;
}

.server-bar a:hover {
  color: var(--ink);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.site-head nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.875rem;
}

.site-head nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-head nav a:hover,
.site-head nav a:focus-visible {
  color: var(--ink);
}

.site-head .head-action {
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
}

.site-head .head-action:hover,
.site-head .head-action:focus-visible {
  background: var(--panel-2);
  color: var(--ink);
}

.hero {
  padding-block: clamp(64px, 8vw, 112px) clamp(80px, 10vw, 140px);
}

.hero-brand {
  display: inline-block;
  margin-bottom: clamp(28px, 4vw, 48px);
  line-height: 0;
}

.hero-logo {
  width: clamp(260px, 30vw, 380px);
  height: auto;
  filter: drop-shadow(0 18px 42px rgb(201 159 69 / 24%));
}

.hero h1 {
  font-size: var(--display);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.tagline {
  margin-top: clamp(18px, 2.4vw, 28px);
  color: var(--gold-strong);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(44px, 6vw, 84px);
}

.lead {
  max-width: 52ch;
  color: var(--ink);
  font-size: var(--step-lead);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: var(--gold-ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-strong);
  color: var(--gold-ink);
}

.button-quiet {
  background: var(--panel);
  color: var(--ink);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  background: var(--panel-2);
  color: var(--ink);
}

.hero-meta {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.hero-facts {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-facts dd {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.showcase {
  padding-block: clamp(72px, 8vw, 116px) clamp(72px, 9vw, 128px);
}

.section-head {
  max-width: 780px;
}

.section-head h2,
.manifesto h2,
.offline h2,
.status h2 {
  font-size: var(--step-h2);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-head p {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.screen {
  margin-top: clamp(36px, 5vw, 64px);
  padding: 14px 14px 10px;
  border-radius: var(--radius);
  background: var(--stage);
}

.screen img {
  width: 100%;
  border-radius: 8px;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.section-link {
  margin-top: 22px;
  font-weight: 600;
}

.section-link a {
  text-decoration: none;
}

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

.manifesto {
  padding-block: clamp(80px, 9vw, 128px);
  background: var(--bg-2);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.manifesto h2 {
  max-width: 18ch;
}

.manifesto-copy p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.manifesto-copy p + p {
  margin-top: 16px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
}

.facts dt {
  color: var(--gold-strong);
  font-size: 0.875rem;
  font-weight: 600;
}

.facts dd {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.0625rem;
}

.capabilities {
  padding-block: clamp(80px, 9vw, 132px);
}

.cap-list {
  margin-top: clamp(40px, 6vw, 72px);
}

.cap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(20px, 2.6vw, 32px);
}

.cap h3 {
  max-width: 16ch;
  font-size: var(--step-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cap p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.screen-stats {
  margin-top: clamp(48px, 6vw, 80px);
}

.offline {
  padding-block: clamp(80px, 9vw, 128px);
  background: var(--bg-2);
}

.offline-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.phone-shot {
  width: min(340px, 100%);
  padding: 14px;
  border-radius: var(--radius);
  background: var(--stage);
}

.phone-shot img {
  width: 100%;
  border-radius: 8px;
}

.offline h2 {
  max-width: 12ch;
}

.offline-copy p {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.status {
  padding-block: clamp(80px, 9vw, 132px);
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.status-copy > p {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(36px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

.numbers li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.numbers strong {
  color: var(--gold-strong);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.numbers span {
  color: var(--muted);
  font-size: 0.875rem;
}

.pilot-shot {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--stage);
}

.pilot-shot img {
  width: 100%;
  border-radius: 8px;
}

.cta {
  display: block;
  background: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(340px, 52svh, 560px);
  padding-block: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 32px);
}

.cta-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.cta-copy {
  max-width: 34ch;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.cta-arrow {
  flex: 0 0 auto;
  margin-top: 4px;
}

.cta-word {
  align-self: flex-start;
  font-size: clamp(6rem, 24vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.site-foot {
  padding-block: clamp(48px, 6vw, 80px) 32px;
  background: var(--deep);
}

.foot-brand {
  display: block;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

.foot-brand:hover {
  color: var(--ink);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
  gap: 32px;
  margin-top: clamp(36px, 5vw, 56px);
}

.foot-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-size: 1.0625rem;
}

.foot-grid nav a {
  color: var(--muted);
  text-decoration: none;
}

.foot-grid nav a:hover {
  color: var(--ink);
}

.foot-tech {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.foot-tech strong {
  color: var(--ink);
  font-weight: 600;
}

.foot-tech a {
  color: var(--muted);
  text-decoration: none;
}

.foot-tech a:hover {
  color: var(--ink);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: clamp(40px, 6vw, 64px);
  color: var(--muted);
  font-size: 0.875rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 550ms ease,
    transform 550ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cap:nth-child(2),
.facts div:nth-child(2) {
  transition-delay: 60ms;
}

.cap:nth-child(3),
.facts div:nth-child(3) {
  transition-delay: 120ms;
}

.cap:nth-child(4),
.facts div:nth-child(4) {
  transition-delay: 90ms;
}

.cap:nth-child(5) {
  transition-delay: 150ms;
}

.cap:nth-child(6) {
  transition-delay: 210ms;
}

@media (max-width: 980px) {
  .hero-foot,
  .manifesto-grid,
  .offline-grid,
  .status-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    max-width: 520px;
  }

  .cap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cap h3 {
    max-width: 22ch;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-shot {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .hero-logo {
    width: 62vw;
  }

  .hero h1 {
    font-size: clamp(1.875rem, 7.8vw, 2rem);
  }

  .site-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-head nav {
    gap: 10px 16px;
    font-size: 0.875rem;
  }

  .site-head .head-action {
    padding: 7px 12px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .facts,
  .numbers {
    grid-template-columns: 1fr;
  }

  .numbers {
    gap: 18px;
  }

  .cta-word {
    font-size: 26vw;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .cta,
  .site-head .head-action {
    transition: none;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }
}
