/* =============================================================================
   AuroraOS — field-manual aesthetic
   Monospace-forward, dark CRT, single electric-indigo accent.
   Deliberately NOT a SaaS gradient landing page.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg:        #0c0d0a;
  --bg-2:      #111210;
  --bg-3:      #161714;
  --ink:       #d8d4c4;        /* warm off-white, like aged paper-on-screen */
  --ink-dim:   #8a8676;
  --ink-faint: #4a4738;
  --line:      #232330;
  --line-2:    #333347;
  --accent:     #818cf8;       /* electric indigo — the ONE accent */
  --accent-dim: #6366f1;
  --accent-soft:#a5b4fc;
  --green:     #4ade80;        /* used sparingly: "ok"/success states only */
  --red:       #fb7185;        /* used sparingly: "amnesic"/destructive */
  --mono:      'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --serif:     'Instrument Serif', Georgia, serif;
  --maxw:      1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* faint scanline + grain atmosphere */
  background-image:
    repeating-linear-gradient(0deg, rgba(129,140,248,0.016) 0px, rgba(129,140,248,0.016) 1px, transparent 1px, transparent 3px);
}

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }

/* CRT vignette + grain overlay (fixed, sits above bg, below content) */
.fx-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 100% at 50% 0%, transparent 60%, rgba(0,0,0,0.5) 100%),
    radial-gradient(ellipse 100% 80% at 50% 100%, transparent 60%, rgba(0,0,0,0.4) 100%);
  mix-blend-mode: multiply;
}
.fx-noise {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* wrapper for content above overlays */
.wrap { position: relative; z-index: 5; }

/* ---- Reusable: section header marker ---- */
.marker {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.marker::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.marker .coord { color: var(--ink-faint); margin-left: auto; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,13,10,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; height: 60px; gap: 32px;
}
.nav__brand {
  display: flex; align-items: baseline; gap: 8px; font-weight: 700;
  letter-spacing: 0.02em;
}
.nav__brand .glyph { color: var(--accent); font-size: 1.1em; }
.nav__brand .id { color: var(--ink-faint); font-size: 11px; font-weight: 400; }
.nav__links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav__links a {
  font-size: 13px; color: var(--ink-dim); transition: color .15s;
  position: relative;
}
.nav__links a:hover { color: var(--accent); }
.nav__links .pill {
  border: 1px solid var(--line-2); padding: 7px 16px; border-radius: 2px;
  color: var(--accent); font-weight: 600; letter-spacing: 0.04em;
}
.nav__links .pill:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.nav__burger { display: none; background: none; border: 1px solid var(--line-2); color: var(--ink); padding: 6px 10px; cursor: pointer; font-family: var(--mono); }

/* ---- Hero ---- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 64px 32px 48px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__stamp {
  display: inline-block; border: 1px solid var(--accent-dim); color: var(--accent);
  font-size: 10px; letter-spacing: 0.2em; padding: 5px 12px; text-transform: uppercase;
  margin-bottom: 28px; transform: rotate(-1.5deg);
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem); line-height: 0.98;
  letter-spacing: -0.01em; margin-bottom: 28px;
}
.hero__title em { color: var(--accent); font-style: italic; }
.hero__lede {
  font-size: 16px; color: var(--ink-dim); max-width: 46ch; margin-bottom: 36px;
}
.hero__lede strong { color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; padding: 13px 24px; cursor: pointer;
  border: 1px solid; transition: all .18s; display: inline-flex; align-items: center; gap: 10px;
}
.btn--primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--primary:hover { background: transparent; color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.hero__meta > div { border-right: 1px solid var(--line); padding: 0 16px; }
.hero__meta > div:first-child { padding-left: 0; }
.hero__meta > div:last-child { border-right: none; }
.hero__meta .k { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.hero__meta .v { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 4px; }

/* ---- Boot terminal (the memorable element) ---- */
.term {
  background: #08090a; border: 1px solid var(--line-2); border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.4);
  overflow: hidden; font-size: 12.5px; line-height: 1.7;
}
.term__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #0e0f0d; border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--ink-faint);
}
.term__bar .dots { display: flex; gap: 6px; margin-right: 8px; }
.term__bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); display: block; }
.term__bar .dots i:nth-child(1){background:#c8553d} .term__bar .dots i:nth-child(2){background:var(--accent)} .term__bar .dots i:nth-child(3){background:var(--green)}
.term__bar .right { margin-left: auto; }
.term__body { padding: 20px; height: 340px; overflow: hidden; font-family: var(--mono); }
.term__body .ln { white-space: pre-wrap; }
.t-amber { color: var(--accent); } .t-green { color: var(--green); } .t-red { color: var(--red); }
.t-dim { color: var(--ink-faint); } .t-ok { color: var(--green); }
.term__cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Marquee strip ---- */
.strip {
  border-block: 1px solid var(--line); background: var(--bg-2);
  overflow: hidden; white-space: nowrap; padding: 14px 0;
}
.strip__track { display: inline-block; animation: marquee 32s linear infinite; }
.strip__track span {
  font-size: 12px; color: var(--ink-faint); letter-spacing: 0.1em;
  text-transform: uppercase; margin-right: 48px;
}
.strip__track span b { color: var(--accent); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Generic section ---- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 32px; }
.section--banded { max-width: none; background: var(--bg-2); border-block: 1px solid var(--line); }
.section--banded > .inner { max-width: var(--maxw); margin: 0 auto; padding: 96px 32px; }
.section__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.02; letter-spacing: -0.01em;
  max-width: 18ch; margin-bottom: 20px;
}
.section__title em { color: var(--accent); font-style: italic; }
.section__lede { color: var(--ink-dim); max-width: 56ch; font-size: 15px; }

/* ---- Modes (three boot modes) ---- */
.modes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 48px;
}
.mode {
  background: var(--bg); padding: 36px 32px; position: relative;
  transition: background .2s; cursor: default;
}
.mode:hover { background: var(--bg-3); }
.mode__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 20px;
}
.mode__tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.mode--persist .mode__tag { color: var(--accent); } .mode--persist .dot { background: var(--accent); }
.mode--amnesic .mode__tag { color: var(--red); } .mode--amnesic .dot { background: var(--red); }
.mode--tor .mode__tag { color: var(--green); } .mode--tor .dot { background: var(--green); }
.mode h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: 14px; }
.mode p { color: var(--ink-dim); font-size: 14px; margin-bottom: 24px; min-height: 84px; }
.mode__specs { font-size: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.mode__specs div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-faint); }
.mode__specs div b { color: var(--ink); font-weight: 500; }

/* ---- Spec table (features) ---- */
.specs { margin-top: 48px; border: 1px solid var(--line); }
.specs__row {
  display: grid; grid-template-columns: 90px 1fr 2fr 120px;
  align-items: center; gap: 24px; padding: 22px 28px;
  border-bottom: 1px solid var(--line); transition: background .15s;
}
.specs__row:last-child { border-bottom: none; }
.specs__row:hover { background: var(--bg-2); }
.specs__num { color: var(--accent); font-size: 12px; font-weight: 600; }
.specs__name { font-weight: 600; font-size: 15px; }
.specs__desc { color: var(--ink-dim); font-size: 13px; }
.specs__cat {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
  text-align: right; border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 2px;
  justify-self: end;
}

/* ---- Download / procedure ---- */
/* ---- Download CTA box ---- */
.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 24px 32px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  background: var(--bg-2);
}
.dl__name { font-size: 17px; font-weight: 600; }
.dl__sub { font-size: 13px; color: var(--ink-dim); margin-top: 4px; }
.dl__btn { white-space: nowrap; }
.dl--pending { border-left-color: var(--ink-faint); }
.dl--pending .dl__btn { opacity: 0.55; pointer-events: none; }
.dl--pending .dl__name::after { content: " · building"; color: var(--ink-faint); font-weight: 400; }

.proc__note {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint); max-width: 70ch;
}
.proc__note code { color: var(--accent-soft); }

/* ---- Procedure ---- */
.proc { margin-top: 48px; border: 1px solid var(--line); }
.proc__step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: 32px 36px; border-bottom: 1px solid var(--line);
  align-items: start; transition: background .15s;
}
.proc__step:last-child { border-bottom: none; }
.proc__step:hover { background: var(--bg-2); }
.proc__num { font-family: var(--serif); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.proc__num small { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); display: block; letter-spacing: 0.12em; margin-top: 6px; }
.proc__body h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.proc__body p { color: var(--ink-dim); font-size: 13.5px; max-width: 60ch; }
.proc__body code { color: var(--accent); background: var(--bg-3); padding: 2px 7px; border-radius: 2px; font-size: 12px; }

/* ---- Command reference ---- */
.cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.cmd-block { border: 1px solid var(--line); background: #08090a; }
.cmd-block__hd {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); display: flex; justify-content: space-between;
}
.cmd-block__hd b { color: var(--accent); }
.cmd-block pre { padding: 18px 20px; overflow-x: auto; }
.cmd-block code { font-size: 12.5px; line-height: 1.9; color: var(--ink); white-space: pre; }
.cmd-block .c { color: var(--ink-faint); }
.cmd-block .k { color: var(--accent); }

/* ---- FAQ ---- */
.faq { margin-top: 48px; max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 15px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .q { color: var(--ink-faint); font-size: 12px; margin-right: 16px; }
.faq__item summary .arrow { color: var(--accent); transition: transform .2s; }
.faq__item[open] summary .arrow { transform: rotate(45deg); }
.faq__ans { padding: 0 0 24px 40px; color: var(--ink-dim); font-size: 14px; max-width: 64ch; }
.faq__ans a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 32px 32px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand { font-family: var(--serif); font-size: 1.8rem; }
.footer__brand .glyph { color: var(--accent); }
.footer__motto { color: var(--ink-dim); font-size: 13px; margin-top: 8px; max-width: 30ch; }
.footer__col h5 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--ink-dim); font-size: 13px; padding: 4px 0; }
.footer__col a:hover { color: var(--accent); }
.footer__bot {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em;
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .modes { grid-template-columns: 1fr; }
  .specs__row { grid-template-columns: 50px 1fr; gap: 12px; }
  .specs__desc, .specs__cat { grid-column: 2; text-align: left; justify-self: start; }
  .specs__cat { margin-top: 4px; }
  .cmds { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .nav__links a:not(.pill) { display: none; }
  .nav__burger { display: block; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .hero__meta > div { border-right: none; border-bottom: 1px solid var(--line); padding: 12px 0; }
}
@media (max-width: 540px) {
  .hero, .section { padding-left: 20px; padding-right: 20px; }
  .proc__step { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
}
