:root {
  color-scheme: dark;
  --page: #090b12;
  --page-deep: #06070b;
  --surface: #11141d;
  --surface-2: #161a25;
  --surface-3: #1b2030;
  --line: rgba(219, 226, 255, 0.11);
  --line-strong: rgba(219, 226, 255, 0.2);
  --text: #f5f7ff;
  --muted: #a9b0c2;
  --faint: #7d859a;
  --blue: #8ca2ff;
  --violet: #b18cff;
  --cyan: #50d9e9;
  --coral: #ff7f86;
  --amber: #ffb24d;
  --max: 1160px;
  --radius: 22px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; background: var(--page); }
body {
  overflow-x: clip;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 1%, rgba(71, 89, 180, 0.15), transparent 30rem),
    radial-gradient(circle at 92% 28%, rgba(98, 64, 171, 0.1), transparent 32rem),
    linear-gradient(180deg, #0b0e18 0, var(--page) 36rem, var(--page-deep) 100%);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
section, header { scroll-margin-top: 78px; }
main, .hero > *, section > * { min-width: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 9px;
  color: #08101f;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 18, 0.8);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.nav-inner, .footer-inner, main { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.nav-inner { display: flex; min-height: 64px; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; text-decoration: none; }
.brand img { border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.28); }
.nav-links { display: flex; margin-left: auto; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  font-size: 14px;
  font-weight: 730;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(206,215,255,.38); background: rgba(255,255,255,.065); }
.button.primary { border-color: transparent; color: #08101e; background: linear-gradient(135deg, #bdc9ff, #65e2ec); box-shadow: 0 12px 36px rgba(87,183,229,.18); }
.button.small { min-height: 36px; padding-inline: 14px; border-radius: 10px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr);
  min-height: 760px;
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  padding: 86px 0 64px;
}
.eyebrow { margin-bottom: 14px; color: #9daeff; font-size: 12px; font-weight: 830; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; }
.hero .eyebrow span { width: 22px; height: 2px; background: linear-gradient(90deg, var(--coral), var(--cyan)); }
h1 { margin-bottom: 24px; font-size: clamp(54px, 6vw, 82px); line-height: .98; letter-spacing: -.057em; }
h1 em { color: #b3beff; font-style: normal; }
h2 { margin-bottom: 18px; font-size: clamp(38px, 4.5vw, 60px); line-height: 1.05; letter-spacing: -.043em; }
h3 { margin-bottom: 9px; font-size: 21px; line-height: 1.22; letter-spacing: -.018em; }
.hero-lede { max-width: 590px; margin-bottom: 30px; color: #c1c7d8; font-size: 20px; line-height: 1.56; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; color: var(--faint); font-size: 13px; list-style: none; }
.hero-facts li:not(:first-child)::before { content: "·"; margin-right: 20px; color: #4c5365; }

.product-shot, .guide-shot, .paired-shots figure, .restored-shot { max-width: 100%; margin: 0; }
.hero-shot { width: 100%; max-width: 535px; justify-self: end; }
.shot-stage {
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #090a0d;
  box-shadow: var(--shadow), 0 0 70px rgba(93,112,218,.08);
}
.shot-stage img { display: block; width: 100%; border-radius: 16px; }
figcaption { margin-top: 13px; color: #8991a6; font-size: 13px; line-height: 1.5; }
figcaption strong { color: #c7ccdc; }

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(17,20,29,.8);
}
.topic-nav a { padding: 7px 11px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 680; text-decoration: none; }
.topic-nav a:hover { color: var(--text); background: rgba(255,255,255,.055); }

section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 830px; margin-bottom: 46px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.lede { color: var(--muted); font-size: 19px; line-height: 1.65; }

.value-grid, .task-grid, .context-grid, .actions-grid, .trouble-grid { display: grid; gap: 16px; }
.value-grid > *, .task-grid > *, .context-grid > *, .actions-grid > *, .trouble-grid > *,
.flow-grid > *, .context-howto > *, .paired-shots > * { min-width: 0; }
.value-grid { grid-template-columns: repeat(3, 1fr); }
.value-card, .task, .context-grid article, .actions-grid article, .trouble-grid article, .flow-grid article, .context-howto article, .action-example {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24,28,41,.96), rgba(14,17,25,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.02);
}
.value-card { min-height: 228px; padding: 28px; }
.value-card p, .context-grid p, .actions-grid p, .trouble-grid p, .flow-grid p { margin-bottom: 0; color: var(--muted); }
.card-glyph { display: grid; width: 44px; height: 44px; margin-bottom: 32px; place-items: center; border-radius: 14px; font-size: 22px; font-weight: 800; }
.card-glyph.coral { color: #ffd0d2; background: rgba(255,127,134,.15); }
.card-glyph.violet { color: #decfff; background: rgba(177,140,255,.15); }
.card-glyph.cyan { color: #bff9ff; background: rgba(80,217,233,.13); }

.task-grid { grid-template-columns: repeat(2, 1fr); }
.task { position: relative; padding: 28px 30px 30px 76px; }
.step-number { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(139,161,255,.32); border-radius: 11px; color: #c3ceff; background: rgba(105,127,239,.1); font-size: 12px; font-weight: 830; }
.task > .step-number { position: absolute; top: 26px; left: 25px; }
.steps { margin: 0; padding-left: 19px; color: var(--muted); }
.steps li + li { margin-top: 8px; }
.steps strong { color: var(--text); }
pre { overflow-x: auto; margin: 17px 0 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; color: #d0d7ff; background: #080a10; font: 13px/1.6 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.callout { margin-top: 18px; padding: 19px 22px; border: 1px solid rgba(87,208,229,.2); border-radius: 15px; color: var(--muted); background: rgba(57,177,203,.06); }
.callout strong { color: #c1f8ff; }
.callout.warning { border-color: rgba(255,178,77,.22); background: rgba(255,178,77,.06); }
.callout.warning strong { color: #ffd79d; }

.guide-shot img { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: 20px; background: #090a0d; box-shadow: var(--shadow); }
.menu-bar-shot { width: min(330px, 100%); margin: 42px auto 0; }
.caption-number { display: inline-grid; width: 24px; height: 24px; margin-right: 6px; place-items: center; border-radius: 50%; color: #07101e; background: var(--cyan); font-weight: 850; }

.visual-step { display: grid; grid-template-columns: minmax(300px,.74fr) minmax(0,1.26fr); align-items: center; gap: clamp(36px,6vw,74px); padding: 52px 0; border-top: 1px solid var(--line); }
.visual-step.reverse { grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); }
.visual-step.reverse > :first-child { order: 2; }
.instruction > .step-number { margin-bottom: 24px; }
.instruction h3 { font-size: 28px; }
.tip { margin: 19px 0 0; padding: 14px 16px; border-left: 2px solid var(--cyan); color: var(--muted); background: rgba(80,217,233,.045); }
.annotated { position: relative; }
.marker { position: absolute; left: var(--x); top: var(--y); display: grid; width: 29px; height: 29px; place-items: center; border: 3px solid #09101c; border-radius: 50%; color: #07101c; background: var(--cyan); box-shadow: 0 4px 16px rgba(0,0,0,.45); font-size: 12px; font-weight: 900; transform: translate(-50%,-50%); }
.action-example { padding: 28px; }
.example-label { color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tree-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; color: #dce1ee; background: #11151e; }
.tree-row + .tree-row { margin-top: 8px; }
.tree-row.root { border-color: rgba(140,162,255,.27); background: #171d2b; }
.tree-row span { width: 23px; color: #8bdfe8; text-align: center; }
.tree-row span.orange { color: #ff9b35; }
.tree-children { margin: 9px 0 0 28px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.example-note { margin: 20px 0 0; color: var(--muted); font-size: 14px; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px,7vw,86px); }
.legend-list { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.legend-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.legend-list li > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #c7d1ff; background: rgba(122,145,255,.13); font-size: 12px; font-weight: 850; }
.legend-list strong { color: var(--text); }
.legend-list p { margin: 2px 0 0; color: var(--muted); }
.use-shot { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: #090a0c; box-shadow: var(--shadow); }
.use-shot img { display: block; width: 100%; }
.use-shot figcaption { padding: 0 18px 16px; }
.flow-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 54px; }
.flow-grid article { padding: 23px; }
.flow-grid article > span, .feature-index { display: block; margin-bottom: 28px; color: #7d89b8; font: 740 11px/1 ui-monospace, monospace; letter-spacing: .08em; }

.feature-story { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(44px,7vw,88px); padding: 58px 0; border-top: 1px solid var(--line); }
.story-copy h3 { font-size: 34px; }
.story-copy > p { color: var(--muted); }
.paired-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.paired-shots figure { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #0e1739; box-shadow: var(--shadow); }
.paired-shots img { display: block; width: 100%; }
.paired-shots figcaption { min-height: 78px; margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); background: #111621; }
.reverse-story { grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); }
.menubar-placement { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #0a0b0f; box-shadow: var(--shadow); }
.menubar-placement img { display: block; width: 100%; }
.menubar-placement figcaption { padding: 0 17px 15px; }
.persistence-story { grid-template-columns: 1fr 330px; }
.restored-shot { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #0d1017; box-shadow: var(--shadow); }
.restored-shot img { display: block; width: 100%; }
.restored-shot figcaption { margin: 0; padding: 15px 17px; border-top: 1px solid var(--line); background: #11151e; }
.restart-badge { position: absolute; z-index: 2; top: 15px; left: 15px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #dce3ff; background: rgba(7,9,14,.84); font: 760 11px/1 ui-monospace, monospace; letter-spacing: .05em; }

.context-grid { grid-template-columns: repeat(3,1fr); margin-bottom: 18px; }
.context-grid article { padding: 28px; }
.context-icon { display: grid; width: 40px; height: 40px; margin-bottom: 36px; place-items: center; border-radius: 12px; color: #cbd4ff; background: rgba(118,137,230,.14); font-weight: 850; }
.context-howto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.context-howto article { padding: 28px; }
.context-howto .step-number { margin-bottom: 20px; }
.context-editor-shot { width: min(866px,100%); margin: 42px auto 0; }

.actions-grid { grid-template-columns: repeat(3,1fr); }
.actions-grid article { min-height: 190px; padding: 23px; }
.actions-grid article > span { display: grid; width: 36px; height: 36px; margin-bottom: 25px; place-items: center; border-radius: 11px; color: #c2ccff; background: rgba(122,145,255,.12); font: 730 16px/1 ui-monospace, monospace; }
.actions-grid h3 { font-size: 17px; }
.actions-grid p { font-size: 14px; }

.settings-walkthrough { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); align-items: center; gap: 48px; }
.settings-copy { display: grid; gap: 12px; }
.settings-copy article { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.settings-copy article > span { color: #9daeff; font-size: 13px; font-weight: 800; }
.settings-copy h3 { font-size: 18px; }
.settings-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.behavior-shot img { background: #090a0d; }

.trouble-grid { grid-template-columns: repeat(2,1fr); }
.trouble-grid article { padding: 27px; }
.backup-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 46px; margin-top: 54px; padding: 42px; border: 1px solid rgba(132,154,255,.23); border-radius: 28px; background: linear-gradient(135deg, rgba(68,83,176,.2), rgba(35,184,205,.07)); }
.backup-panel > div { max-width: 760px; }
.backup-panel h2 { font-size: clamp(34px,4vw,52px); }
.backup-panel .lede { margin-bottom: 0; }

footer { padding: 46px 0; color: #858da1; background: #05060a; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner > p:first-of-type { margin-left: auto; }
.footer-inner p { margin-bottom: 0; font-size: 13px; }
.footer-inner a:hover { color: var(--text); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-inner .button { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .hero-copy { max-width: 800px; }
  .hero-shot { justify-self: start; }
  .visual-step, .visual-step.reverse, .two-column, .feature-story, .reverse-story, .persistence-story, .settings-walkthrough { grid-template-columns: 1fr; }
  .visual-step.reverse > :first-child { order: initial; }
  .paired-shots { max-width: 620px; }
  .flow-grid, .actions-grid { grid-template-columns: repeat(2,1fr); }
  .menubar-placement { max-width: 620px; }
  .restored-shot { max-width: 330px; }
  .backup-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .nav-inner, .footer-inner, main { width: min(calc(100% - 24px), var(--max)); }
  .site-nav .button { display: none; }
  h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(40px,11.8vw,47px); }
  h2 { font-size: clamp(34px,10vw,45px); }
  h1, h2, h3, p { max-width: 100%; overflow-wrap: break-word; }
  .hero { padding: 56px 0 42px; gap: 40px; }
  .hero-lede { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-facts li:not(:first-child)::before { display: none; }
  .hero-shot, .use-shot, .menubar-placement, .guide-shot { width: 100%; }
  .shot-stage { width: 100%; padding: 12px; border-radius: 20px; }
  section { padding: 74px 0; }
  .value-grid, .task-grid, .flow-grid, .context-grid, .context-howto, .actions-grid, .trouble-grid { grid-template-columns: 1fr; }
  .task { padding-left: 70px; }
  .visual-step { padding: 38px 0; }
  .paired-shots { gap: 10px; }
  .paired-shots figcaption { min-height: 96px; padding-inline: 11px; }
  .feature-story { padding: 46px 0; }
  .story-copy h3 { font-size: 29px; }
  .settings-copy article { grid-template-columns: 72px 1fr; }
  .backup-panel { padding: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-inner > p:first-of-type { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
