:root {
  color-scheme: dark;
  --ink: #070b10;
  --panel: #101820;
  --panel-strong: #17232d;
  --line: #2b3a45;
  --text: #f6f8f9;
  --muted: #a8b7c1;
  --cyan: #4ed9ed;
  --amber: #ffc15a;
  --coral: #ff7167;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { background: var(--ink); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a { color: var(--cyan); }
a:hover { color: #9aeeff; }
img { max-width: 100%; }

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

.site-nav {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(7 11 16 / 92%);
}

.site-nav .shell {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 64px));
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a1016 url("/assets/hero-command.jpg") center 18% / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(4 8 12 / 96%) 0%, rgb(4 8 12 / 82%) 42%, rgb(4 8 12 / 20%) 76%), linear-gradient(0deg, var(--ink) 0%, transparent 42%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: 76px 92px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font: 700 0.76rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; letter-spacing: 0; line-height: 1.08; }
h1 { max-width: 11ch; margin-bottom: 20px; font-size: clamp(3.4rem, 9vw, 6.8rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { margin-bottom: 8px; font-size: 1.15rem; }

.lede { max-width: 620px; margin: 0; color: #d6e0e5; font-size: clamp(1.05rem, 2.2vw, 1.3rem); }

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgb(17 25 33 / 84%);
  font-weight: 700;
  text-decoration: none;
}

.button.primary { border-color: var(--cyan); color: #031217; background: var(--cyan); }
.button:hover { color: var(--text); border-color: #627682; }
.button.primary:hover { color: #031217; background: #9aeeff; }

.band { padding-block: 78px; border-bottom: 1px solid var(--line); }
.band.alt { background: #0b1117; }

.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.feature:nth-child(2) { border-top-color: var(--amber); }
.feature:nth-child(3) { border-top-color: var(--coral); }
.feature p { margin-bottom: 0; color: var(--muted); }

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.workflow + .workflow { margin-top: 84px; }
.workflow.reverse .workflow-copy { order: 2; }
.workflow-copy p { color: var(--muted); }
.workflow-copy ul { padding-left: 18px; color: #d6e0e5; }

.device-frame {
  margin: 0;
  padding: 10px;
  border: 1px solid #3b4c58;
  border-radius: 8px;
  background: #020406;
  box-shadow: 0 28px 70px rgb(0 0 0 / 42%);
}
.device-frame img { display: block; width: 100%; border-radius: 4px; }
.device-frame figcaption { padding: 8px 4px 2px; color: var(--muted); font-size: 0.78rem; }

.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--amber); font-size: 1.25rem; }
.fact span { color: var(--muted); font-size: 0.84rem; }

.prose { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding-block: 70px 96px; }
.prose header { margin-bottom: 42px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prose h1 { max-width: 14ch; font-size: clamp(2.7rem, 7vw, 5.2rem); }
.prose h2 { margin-top: 36px; font-size: 1.35rem; color: var(--amber); }
.prose p, .prose li { color: var(--muted); }
.prose .stamp { color: var(--text); font-weight: 700; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 26px; }
.help-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.help-grid article p { margin-bottom: 0; }

footer { padding-block: 34px; color: var(--muted); font-size: 0.84rem; }
footer .shell { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 760px) {
  .site-nav .shell { min-height: 74px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .hero { min-height: 700px; background-position: 64% top; }
  .hero::before { background: linear-gradient(0deg, var(--ink) 0%, rgb(4 8 12 / 88%) 58%, rgb(4 8 12 / 42%) 100%); }
  .hero-copy { padding-block: 260px 64px; }
  .feature-grid, .workflow, .help-grid { grid-template-columns: 1fr; }
  .workflow.reverse .workflow-copy { order: initial; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  footer .shell { flex-direction: column; }
}

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