/* ============================================================
   ELYTRA SHIELD — Website system
   Editorial Elytra voice · copper on onyx · dark + light themes
   ============================================================ */
@import url('../fonts/fonts.css');

/* ---------- theme tokens ---------- */
:root, [data-theme="dark"] {
  --bg:        #0E1116;
  --bg-2:      #11151B;
  --surface:   #161B22;
  --surface-2: #1A1F27;
  --line:      rgba(255,255,255,0.10);
  --line-2:    rgba(255,255,255,0.06);
  --text:      #F4EFE6;
  --text-dim:  #B8BFCB;
  --text-mute: #6E7787;
  --copper:    #E0954F;
  --copper-2:  #C97B3F;
  --copper-deep:#8E5224;
  --mark-shell:#E0954F;
  --mark-node: #F4EFE6;
  --good:      #6E8C5A;
  --warn:      #D9A24A;
  --bad:       #C7493A;
  --shadow:    0 24px 60px rgba(0,0,0,0.45);
  --card:      #161B22;
}
[data-theme="light"] {
  --bg:        #F4EFE6;
  --bg-2:      #EFEAE0;
  --surface:   #FFFFFF;
  --surface-2: #F6F2EA;
  --line:      rgba(17,21,27,0.12);
  --line-2:    rgba(17,21,27,0.07);
  --text:      #11151B;
  --text-dim:  #5A6373;
  --text-mute: #8A8475;
  --copper:    #C97B3F;
  --copper-2:  #C97B3F;
  --copper-deep:#8E5224;
  --mark-shell:#C97B3F;
  --mark-node: #11151B;
  --good:      #5C7A48;
  --warn:      #B07E2A;
  --bad:       #B33C2E;
  --shadow:    0 24px 60px rgba(17,21,27,0.16);
  --card:      #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter Tight', sans-serif; -webkit-font-smoothing: antialiased;
  font-size: 17px; line-height: 1.6;
  transition: background .35s ease, color .35s ease;
}
::selection { background: var(--copper); color: #11151B; }

/* ---------- type ---------- */
.serif { font-family: 'Source Serif 4', Georgia, serif; }
.mono  { font-family: 'JetBrains Mono', monospace; }
.eyebrow {
  font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--copper);
}
h1, h2, h3, h4 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
.display { font-size: clamp(40px, 6.2vw, 86px); line-height: 1.0; letter-spacing: -0.03em; }
h2.section-title { font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: 28px; line-height: 1.12; }
em.hl { font-style: italic; color: var(--copper); }
p { margin: 0; }
a { color: inherit; }

/* ---------- layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1340px; margin: 0 auto; padding: 0 40px; }
section.band { padding: 110px 0; border-top: 1px solid var(--line-2); }
section.band.tight { padding: 84px 0; }
.surface { background: var(--surface); }
.lede { font-family: 'Source Serif 4', serif; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--text-dim); font-style: italic; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head p { color: var(--text-dim); font-size: 19px; margin-top: 18px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 600; padding: 14px 24px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all .2s ease; white-space: nowrap; border-radius: 2px; }
.btn-primary { background: var(--copper); color: #11151B; border-color: var(--copper); }
.btn-primary:hover { background: transparent; color: var(--copper); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand .es-logo { width: 30px; height: 30px; display: block; }
.brand .wm { font-family: 'Poiret One', sans-serif; font-size: 22px; letter-spacing: 0.03em; text-transform: lowercase; -webkit-text-stroke: 0.5px currentColor; paint-order: stroke fill; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-dim); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; border-radius: 2px; transition: all .2s; }
.theme-toggle:hover { border-color: var(--copper); color: var(--copper); }
.theme-toggle svg { width: 17px; height: 17px; }
.nav-burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; border-radius: 2px; }

/* ---------- logo helper ---------- */
.es-logo svg { width: 100%; height: 100%; display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 64px; }
.hero::before { content:''; position:absolute; inset:0; background-image: linear-gradient(transparent 97%, var(--line-2) 100%), linear-gradient(90deg, transparent 97%, var(--line-2) 100%); background-size: 72px 72px; pointer-events:none; mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero .lede { max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.hero-trust .lbl { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.hero-trust .chip { font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-dim); border: 1px solid var(--line); padding: 5px 11px; }

/* ---------- console mock ---------- */
.console { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.console .chrome { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.console .chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.console .chrome .path { margin-left: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-mute); }
.console .body { padding: 18px; }
.console-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.console-topbar .title { display: flex; align-items: center; gap: 9px; font-family: 'Source Serif 4', serif; font-size: 18px; color: var(--text); }
.console-topbar .title .es-logo { width: 20px; height: 20px; }
.console-topbar .meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.08em; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.stat .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.stat .v { font-family: 'Source Serif 4', serif; font-size: 30px; line-height: 1; margin-top: 8px; color: var(--text); }
.stat .v small { font-size: 14px; color: var(--text-mute); }
.stat .v.good { color: var(--good); } .stat .v.warn { color: var(--warn); } .stat .v.bad { color: var(--bad); } .stat .v.cop { color: var(--copper); }
.stat .d { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-mute); margin-top: 6px; }

/* mini table */
.ctable { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 14px; }
.ctable th { text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ctable td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); color: var(--text-dim); font-family: 'Inter Tight', sans-serif; }
.ctable td.host { color: var(--text); font-weight: 500; }
.ctable .pill { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; padding: 2px 8px; border-radius: 2px; letter-spacing: 0.04em; white-space: nowrap; }
.pill.os { background: var(--surface-2); color: var(--text-dim); }
.pill.crit { background: rgba(199,73,58,0.16); color: var(--bad); }
.pill.ok { background: rgba(110,140,90,0.16); color: var(--good); }
.pill.reboot { background: rgba(217,162,74,0.16); color: var(--warn); }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 34px 30px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--copper); }
.card .ic { width: 40px; height: 40px; color: var(--copper); margin-bottom: 22px; }
.card h3 { font-size: 25px; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 16px; }
.card . kicker { }

/* numbered pillars */
.pillar .n { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 44px; color: var(--copper); line-height: 1; }

/* problem list */
.qlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.qlist .q { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.qlist .q .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--copper); flex-shrink: 0; padding-top: 4px; }
.qlist .q .t { font-family: 'Source Serif 4', serif; font-size: 23px; line-height: 1.25; }

/* lifecycle stepper */
.life { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.life .step { background: var(--bg); padding: 22px 18px; position: relative; }
.life .step .ph { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); }
.life .step .nm { font-family: 'Source Serif 4', serif; font-size: 21px; margin-top: 10px; }
.life .step .ds { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

/* how it works diagram */
.arch { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border: 1px solid var(--line); }
.arch .node-col { padding: 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.arch .arch-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 28px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); position: relative; min-width: 200px; }
.arch .box { border: 1px solid var(--line); background: var(--surface); padding: 18px 20px; }
.arch .box .bt { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); }
.arch .box .bn { font-family: 'Source Serif 4', serif; font-size: 19px; margin-top: 6px; }
.arch .box .bd { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.arch .flow { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); text-align: center; line-height: 1.7; }
.arch .flow .pull { color: var(--copper); font-weight: 600; }

/* compliance chips */
.frameworks { display: flex; flex-wrap: wrap; gap: 12px; }
.fw { border: 1px solid var(--line); padding: 12px 18px; font-family: 'Inter Tight', sans-serif; font-weight: 500; font-size: 14.5px; letter-spacing: 0.01em; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.fw::before { content: ''; width: 7px; height: 7px; background: var(--copper); border-radius: 50%; }
.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg { font-size: 15px; color: var(--text-dim); padding: 14px 0; border-top: 1px solid var(--line); }

/* comparison */
.compare { border: 1px solid var(--line); }
.compare .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.compare .row + .row { border-top: 1px solid var(--line); }
.compare .cell { padding: 18px 22px; }
.compare .cell.head { font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.compare .cell.us { background: color-mix(in srgb, var(--copper) 9%, transparent); }
.compare .feat { font-family: 'Source Serif 4', serif; font-size: 18px; color: var(--text); }
.compare .yes { color: var(--copper); font-weight: 600; }
.compare .no { color: var(--text-mute); }
.compare .cell .sub { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }

/* CTA band */
.cta-band { background: var(--bg-2); border: 1px solid var(--line); padding: 72px 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:''; position:absolute; inset:0; background-image: linear-gradient(transparent 96%, var(--line-2) 100%), linear-gradient(90deg, transparent 96%, var(--line-2) 100%); background-size: 56px 56px; mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(34px, 4.5vw, 60px); }
.cta-band .lede { margin: 22px auto 0; max-width: 620px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 18px; }
.footer .blurb { color: var(--text-dim); font-size: 14.5px; max-width: 300px; }
.footer .col h5 { font-family: 'Inter Tight', sans-serif; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 16px; font-weight: 600; }
.footer .col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer .col a:hover { color: var(--copper); }
.footer-base { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.footer-base .mono { font-family: 'Inter Tight', sans-serif; font-size: 12px; color: var(--text-mute); letter-spacing: 0.03em; }
.footer-base .fam { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 14px; color: var(--text-dim); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* mobile nav panel */
.mnav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .grid-2, .arch { grid-template-columns: 1fr; }
  .grid-3, .stat-grid, .segs { grid-template-columns: 1fr 1fr; }
  .life { grid-template-columns: 1fr 1fr; }
  .qlist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .arch .arch-mid { border: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .nav-links { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .cta-band { padding: 56px 28px; }
}
@media (max-width: 560px) {
  .container, .container-wide { padding: 0 22px; }
  .grid-3, .stat-grid, .segs, .compare .row, .life { grid-template-columns: 1fr; }
  .compare .row { grid-template-columns: 1fr; }
  section.band { padding: 72px 0; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- legal / consent ---------- */
.consent-row { display:flex; gap:11px; align-items:flex-start; }
.consent-row input { width:17px; height:17px; margin-top:3px; accent-color:var(--copper); flex-shrink:0; }
.consent-row label { font-size:13px; color:var(--text-dim); line-height:1.55; }
.consent-row a { color:var(--copper); text-decoration:none; }
.consent-err { display:none; color:var(--bad); font-size:13px; }
.consent-err.show { display:block; }
.legal-links { font-size:13px; color:var(--text-dim); display:flex; gap:8px; flex-wrap:wrap; }
.legal-links a { color:var(--text-dim); text-decoration:none; }
.legal-links a:hover { color:var(--copper); }
.legal-links .nc { color:var(--copper); }
.legal-doc { max-width:820px; }
.legal-doc .updated { font-family:'Inter Tight',sans-serif; font-weight:600; font-size:12px; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-mute); margin:14px 0 36px; }
.legal-doc h3 { font-size:25px; margin:42px 0 12px; }
.legal-doc h4 { font-family:'Inter Tight',sans-serif; font-weight:600; font-size:15px; letter-spacing:0.02em; color:var(--text); margin:24px 0 8px; }
.legal-doc p { color:var(--text-dim); font-size:16px; line-height:1.68; margin:0 0 14px; }
.legal-doc ul { color:var(--text-dim); font-size:16px; line-height:1.6; padding-left:20px; margin:0 0 16px; }
.legal-doc li { margin-bottom:8px; }
.legal-doc strong { color:var(--text); font-weight:600; }
.legal-doc a { color:var(--copper); }
.legal-callout { border-left:3px solid var(--copper); background:var(--surface); padding:20px 24px; margin:24px 0; }
.legal-callout p { color:var(--text); margin:0; }
.legal-callout b { color:var(--copper); }
.legal-toc { display:flex; flex-wrap:wrap; gap:10px 18px; margin:0 0 8px; }
.legal-toc a { font-size:13.5px; color:var(--text-dim); text-decoration:none; }
.legal-toc a:hover { color:var(--copper); }
