/* A.S.G.A.R.D. — product site. Self-contained: no web fonts, no CDNs. */
:root {
  --bg: #070d18;
  --bg-2: #0b1424;
  --surface: #101b2f;
  --surface-2: #15233b;
  --line: #1f3355;
  --line-soft: rgba(200, 169, 107, .18);
  --text: #e6ecf5;
  --muted: #94a3bd;
  --gold: #c8a96b;
  --gold-hi: #e5c378;
  --blue: #4fc3f7;
  --red: #ef6b6b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Black", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  --nav-h: 68px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--gold); color: #111; padding: .5rem 1rem; border-radius: 8px; }

/* Backdrop: a faint grid with a gold glow, like the app's tactical feel. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200, 169, 107, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(79, 195, 247, .08), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(7, 13, 24, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand img { width: 38px; height: 38px; }
.brand strong { font-family: var(--font-display); letter-spacing: .12em; color: var(--gold-hi); }
.brand small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; gap: .2rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: .45rem .75rem; border-radius: 8px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--gold-hi); background: rgba(200, 169, 107, .12); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 40px; border-radius: 10px; font-size: 1.1rem; cursor: pointer; }

/* ── Buttons, chips ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.25rem; border-radius: 10px;
  font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #15110a; box-shadow: 0 8px 24px rgba(200, 169, 107, .25); }
.btn-gold:hover { color: #000; filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: .82rem; background: rgba(255, 255, 255, .02); }

/* ── Sections ──────────────────────────────────────────────────────────── */
section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
section + section { border-top: 1px solid rgba(255, 255, 255, .04); }
.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); }

/* Hero */
.hero { padding-top: clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5.6rem); letter-spacing: .06em;
  margin: 0 0 .2em; background: linear-gradient(180deg, #fff, var(--gold-hi) 70%, var(--gold)); -webkit-background-clip: text;
  background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(200, 169, 107, .15); }
.hero .expansion { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--gold); font-weight: 700; letter-spacing: .04em; margin-bottom: 1.2rem; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9d4e5; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; max-width: 560px; }
.stat { padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(16, 27, 47, .6); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-hi); }
.stat span { font-size: .78rem; color: var(--muted); }
.hero-shot { position: relative; }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .4);
  background: #000; }
.frame-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: #0b1322; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a55; }
.frame-bar span { margin-left: .6rem; font: 12px var(--mono); color: var(--muted); }
.hero-shot .frame { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transition: transform .5s; }
.hero-shot:hover .frame { transform: none; }
.hero-shot::after { content: ""; position: absolute; inset: auto 10% -30px; height: 60px; filter: blur(30px);
  background: rgba(200, 169, 107, .25); z-index: -1; }

/* Demo video */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.video-frame video { width: 100%; aspect-ratio: 1440 / 900; background: #000; }
.chapters { margin: 0; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(16, 27, 47, .7); }
.chapters ol { list-style: none; margin: 0; padding: 0; }
.gallery figure, .lightbox figure { margin: 0; }
.chapters h3 { padding: .7rem .8rem .3rem; margin: 0; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.chapters button { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.chapters button:hover { background: rgba(255, 255, 255, .05); }
.chapters button.active { background: rgba(200, 169, 107, .14); color: var(--gold-hi); }
.chapters time { font: 600 .82rem var(--mono); color: var(--blue); min-width: 3.2rem; }
.chapters i { width: 1.1rem; color: var(--gold); opacity: .85; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pillar { padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.pillar .icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 1rem;
  background: rgba(200, 169, 107, .12); color: var(--gold-hi); font-size: 1.35rem; border: 1px solid var(--line-soft); }
.pillar p { color: var(--muted); margin: 0; }

/* Module feature rows */
.module { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.module + .module { margin-top: clamp(4rem, 8vw, 6rem); }
.module.flip .module-text { order: 2; }
.module-text .tag { color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.module-text h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .4rem 0 .7rem; }
.module-text > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks li i { color: var(--gold); margin-top: .3rem; flex: 0 0 auto; }
.ticks b { color: var(--text); }
.ticks span { color: var(--muted); }
.module-shots { display: grid; gap: .9rem; }
.module-shots.two { grid-template-columns: 1fr 1fr; }
.module-shots.two .frame:first-child { grid-column: 1 / -1; }
.module-shots button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.module-shots img { width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; object-position: top left; transition: transform .4s; }
.module-shots .frame:hover img { transform: scale(1.02); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.feature { padding: 1.4rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(16, 27, 47, .55);
  transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--gold); transform: translateY(-3px); }
.feature i { color: var(--gold-hi); font-size: 1.25rem; margin-bottom: .7rem; display: block; }
.feature h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.gallery button { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #000; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .35s, opacity .35s; opacity: .9; }
.gallery button:hover img { transform: scale(1.05); opacity: 1; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .8rem .6rem; text-align: left;
  font-size: .85rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }

/* How it runs */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.step { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: 800 2.2rem var(--font-display); color: rgba(200, 169, 107, .25);
  position: absolute; right: 1rem; top: .6rem; }
.step h3 { margin-top: .2rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.stack { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; justify-content: center; }
code { font: .9em var(--mono); color: var(--gold-hi); background: rgba(200, 169, 107, .1); padding: .1em .4em; border-radius: 5px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(16, 27, 47, .6); }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* Call to action + footer */
.cta { text-align: center; }
.cta-box { padding: clamp(2.5rem, 6vw, 4rem); border-radius: 20px; border: 1px solid var(--line-soft);
  background: radial-gradient(600px 240px at 50% 0%, rgba(200, 169, 107, .18), transparent 70%), var(--surface); }
.cta-box p { color: var(--muted); max-width: 620px; margin: 0 auto 1.6rem; }
footer { padding: 2.5rem 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
footer .brand img { width: 30px; height: 30px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 2rem; background: rgba(3, 6, 12, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; border-radius: 10px; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.lightbox p { margin: .9rem 0 0; text-align: center; color: var(--muted); }
.lightbox button { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.lightbox .prev, .lightbox .next { top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 1rem; right: auto; }
.lightbox .next { right: 1rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-shot .frame { transform: none; }
}

/* ── Smaller screens ───────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-grid, .module, .demo-grid { grid-template-columns: 1fr; }
  .module.flip .module-text { order: 0; }
  .hero-shot .frame { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    padding: .6rem 16px 1rem; background: rgba(7, 13, 24, .97); border-bottom: 1px solid var(--line-soft); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .8rem; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .module-shots.two { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
