/* ============================================================
   CODEMARK by PROVENARIS — dark terminal dashboard theme
   ============================================================ */

:root {
  --bg:        #0A0B0D;   /* page, near-black */
  --panel:     #111317;   /* raised panel */
  --panel-2:   #16191E;   /* nested / hover */
  --panel-lit: #1B1F25;
  --border:    #23262B;   /* hairline */
  --border-lit:#2E333A;
  --text:      #E6E8EB;
  --muted:     #7A828C;   /* labels, secondary */
  --dim:       #4C525A;   /* tertiary */
  --green:     #22C55E;   /* active / confirmed / accent */
  --green-dim: #16A34A;
  --green-soft: rgba(34, 197, 94, 0.10);
  --green-line: rgba(34, 197, 94, 0.35);
  --amber:     #D9A441;   /* degraded / warning */
  --amber-soft: rgba(217, 164, 65, 0.10);
  --red:       #E5484D;   /* stripped / tamper */
  --red-soft:  rgba(229, 72, 77, 0.10);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 72px; }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 15px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.sans { font-family: var(--sans); }
.sm { font-size: 0.85em; }
.green { color: var(--green); }
.amber { color: var(--amber); }
.red { color: var(--red); }

/* ---------- Headings ---------- */
h1, h2, h3 { font-family: var(--sans); line-height: 1.14; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; color: #fff; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 0.6rem; color: #fff; }
h3 { font-size: 1.02rem; }
h2 em, h1 em { font-style: normal; color: var(--green); }

/* ---------- Eyebrow (mono uppercase label) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  animation: blink-dot 2.4s var(--ease) infinite;
}
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.section { padding: 104px 0; border-top: 1px solid var(--border); }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 2.6rem; font-family: var(--sans); font-size: 1.02rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  border: 1.5px solid var(--green);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.8rem; color: var(--green);
}
.brand-name { font-family: var(--mono); font-weight: 700; letter-spacing: 0.14em; color: #fff; font-size: 0.92rem; }
.brand-by { font-family: var(--mono); font-size: 0.66rem; color: var(--dim); letter-spacing: 0.08em; margin-left: 2px; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.topnav a:hover { color: var(--text); }
.top-status {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
}
.top-status .green { color: var(--green); }

/* ============================================================
   BUTTONS + CHIPS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 600; font-size: 0.85rem;
  padding: 0.7rem 1.35rem; border-radius: 8px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; letter-spacing: 0.03em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary { background: var(--green); color: #06210F; box-shadow: 0 0 0 0 var(--green-soft); }
.btn-primary:hover { background: #2BD46A; transform: translateY(-1px); box-shadow: 0 6px 24px -8px var(--green); }
.btn-ghost { border-color: var(--border-lit); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-wide { width: 100%; justify-content: center; }
.btn:focus-visible, .term-toggle:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}

.cta-row { display: flex; gap: 12px; margin: 1.9rem 0 1.6rem; flex-wrap: wrap; }

.chip-row { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); background: var(--panel);
}
.chip-mono { color: var(--green); border-color: var(--green-line); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 132px 0 100px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.05fr; gap: 52px; align-items: center; }

/* terminal command line above headline */
.term-cmd {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.82rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; margin-bottom: 1.6rem;
  color: var(--muted); max-width: 100%;
}
.term-prompt { color: var(--green); }
.term-typed { color: var(--text); white-space: nowrap; overflow: hidden; }
.term-caret {
  display: inline-block; width: 8px; height: 1.05em; background: var(--green);
  animation: caret 1.05s steps(1) infinite; vertical-align: text-bottom;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero h1 { margin-bottom: 1.1rem; }
.hero-sub { color: var(--muted); font-family: var(--sans); font-size: 1.08rem; max-width: 500px; }
.hero .chip-row { margin-top: 0.4rem; }

/* ---------- Code panel (EMB-style) ---------- */
.code-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9);
  position: relative;
}
.cp-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.cp-dot { width: 10px; height: 10px; border-radius: 50%; background: #2A2E34; }
.cp-file { font-family: var(--mono); color: var(--muted); font-size: 0.75rem; margin-left: 8px; }
.cp-meta { margin-left: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--dim); }
.cp-meta b { color: var(--green); font-weight: 600; }

.cp-code {
  position: relative;
  padding: 6px 0;
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.9;
  overflow-x: auto;
}
.cp-line { display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; padding: 0 16px 0 0; }
.cp-ln { color: var(--dim); text-align: right; padding-right: 14px; user-select: none; font-size: 0.72rem; }
.cp-src { color: #C7D0DC; white-space: pre; }
.cp-kw { color: #6AB0F3; }
.cp-str { color: #9ECE6A; }
.cp-tag {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  color: var(--dim); text-align: right; opacity: 0; transition: opacity 0.5s var(--ease);
}
.cp-line.carrier-line { position: relative; }
.cp-line.carrier-line::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--green-soft); border-left: 2px solid var(--green);
  transition: width 0.5s var(--ease);
}
.carrier { border-radius: 3px; padding: 1px 2px; transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease); }

/* detector-on state reveals carriers + tags */
.detector-on .cp-line.carrier-line::before { width: 100%; }
.detector-on .carrier { background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-line); }
.detector-on .cp-tag { opacity: 1; color: var(--green-dim); }

/* scanning sweep line (loops) */
.cp-scan {
  position: absolute; left: 0; right: 0; height: 34px; top: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(34,197,94,0.12) 50%, transparent);
  border-top: 1px solid var(--green-line);
  opacity: 0;
}
.detector-on .cp-scan { animation: scan 3.4s var(--ease) infinite; }
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateY(340px); opacity: 0; }
}

.cp-readout {
  padding: 13px 16px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.74rem; color: var(--muted); min-height: 64px;
}
.cp-readout-dev { display: block; }
.cp-readout-det { display: none; }
.detector-on .cp-readout-dev { display: none; }
.detector-on .cp-readout-det { display: flex; flex-direction: column; gap: 3px; }
.cp-readout .ok { color: var(--green); font-weight: 600; }
.cp-readout .val { color: var(--text); }
.cp-readout .fp { color: var(--green); }
.cp-toggle {
  margin-left: auto; font-family: var(--mono); font-size: 0.68rem;
  background: none; border: 1px solid var(--border-lit); border-radius: 999px;
  color: var(--muted); padding: 3px 11px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.detector-on .cp-toggle { color: var(--green); border-color: var(--green-line); }

/* ============================================================
   §2 PROBLEM
   ============================================================ */
.hop-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 3.6rem; }
.hop {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 18px; display: flex; flex-direction: column; gap: 9px; min-width: 132px;
}
.hop-label { font-family: var(--mono); font-weight: 600; font-size: 0.82rem; color: var(--text); letter-spacing: 0.03em; }
.hop-chip {
  font-family: var(--mono); font-size: 0.64rem; padding: 3px 9px; border-radius: 5px;
  border: 1px solid var(--border); color: var(--muted); align-self: flex-start; white-space: nowrap;
}
.hop-chip.has-prov { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.hop-chip.origin-unknown { color: var(--red); border-color: rgba(229,72,77,0.4); background: var(--red-soft); }
.hop-arrow { color: var(--dim); font-family: var(--mono); }

/* repeating strip animation */
.hop .hop-chip { transition: opacity 0.6s var(--ease), color 0.6s, text-decoration-color 0.6s; }
.in-view .hop:not([data-hop="0"]) .hop-chip:not(.origin-unknown) { text-decoration: line-through; opacity: 0.5; }
.in-view .hop[data-hop="1"] .hop-chip { transition-delay: 0.5s; }
.in-view .hop[data-hop="2"] .hop-chip { transition-delay: 1.0s; }
.in-view .hop[data-hop="3"] .hop-chip { transition-delay: 1.5s; }
.hop-chip.origin-unknown { opacity: 0; transition: opacity 0.6s var(--ease) 2.1s; }
.in-view .hop-chip.origin-unknown { opacity: 1; }

.deadline-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.mini-title { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1.3rem; }
.mini-title b { background: var(--panel-lit); color: var(--text); padding: 2px 6px; border-radius: 4px; }
.tl { list-style: none; }
.tl-item { display: grid; grid-template-columns: 14px 108px 1fr; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-lit); background: transparent; transition: background 0.5s, border-color 0.5s, box-shadow 0.5s; align-self: center; }
.in-view .tl-item:nth-child(1) .tl-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); transition-delay: 0.3s; }
.in-view .tl-item:nth-child(2) .tl-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); transition-delay: 0.9s; }
.in-view .tl-item:nth-child(3) .tl-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); transition-delay: 1.5s; }
.tl-date { font-family: var(--mono); font-size: 0.76rem; color: var(--text); font-weight: 600; }
.tl-text { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }

.fine-callout { border-left: 3px solid var(--amber); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.fine-amount { font-family: var(--sans); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 300; color: var(--amber); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fine-caption { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   §3 HOW IT WORKS
   ============================================================ */
/* layers-applied-onto-code animation (JS drives .applied-1..4 + .active steps) */
@keyframes draw { to { stroke-dashoffset: 0; } }

.apply-stage { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; }

/* left: the four steps */
.apply-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.astep {
  border-left: 2px solid var(--border); padding: 12px 0 12px 20px;
  opacity: 0.45; transition: opacity 0.7s var(--ease), border-color 0.7s var(--ease);
}
.astep-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); transition: color 0.7s; }
.astep h3 { color: var(--text); margin: 0.3rem 0 0.35rem; font-size: 0.98rem; }
.astep p { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.astep.done { opacity: 0.8; border-left-color: var(--green-line); }
.astep.done .astep-tag { color: var(--green-dim); }
.astep.active { opacity: 1; border-left-color: var(--green); }
.astep.active .astep-tag { color: var(--green); }
.astep.active h3 { color: #fff; }

/* right: the code artifact receiving the layers */
.artifact { display: flex; flex-direction: column; gap: 12px; }
.art-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.applied-1 .art-card { border-color: var(--green-line); }
.applied-4 .art-card { box-shadow: 0 20px 60px -36px var(--green); }
.art-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 15px;
  border-bottom: 1px solid var(--border); background: var(--panel-2);
}
.art-file { color: var(--muted); font-size: 0.75rem; margin-left: 8px; }

/* layer 1 — sealed label chip drops onto the title bar */
.ov-label {
  margin-left: auto; font-size: 0.68rem; color: var(--green); font-weight: 600;
  border: 1px solid var(--green-line); border-radius: 999px; padding: 3px 11px;
  background: var(--green-soft);
  opacity: 0; transform: translateY(-14px) scale(0.9);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.applied-1 .ov-label { opacity: 1; transform: none; }

/* the code body */
.art-code {
  position: relative; padding: 18px 20px; font-family: var(--mono);
  font-size: 0.8rem; line-height: 1.85; color: #C7D0DC;
  display: flex; flex-direction: column; overflow: hidden;
  transition: background 1s var(--ease);
}
.art-ln { white-space: pre; position: relative; z-index: 1; }
.applied-2 .art-code { background: linear-gradient(120deg, rgba(34,197,94,0.05), transparent 60%); }

/* layer 2 — watermark glyph surfaces behind the code + one sweep */
.ov-glyph {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 0;
  font-size: 7.5rem; font-weight: 700; color: var(--green);
  opacity: 0; transform: scale(1.25);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.applied-2 .ov-glyph { opacity: 0.09; transform: scale(1); }
.ov-sweep {
  position: absolute; top: 0; bottom: 0; width: 46%; left: -50%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(34,197,94,0.14), transparent);
  pointer-events: none; opacity: 0;
}
.applied-2 .ov-sweep { animation: wm-sweep 1.4s var(--ease) 1 forwards; }
@keyframes wm-sweep { 0% { left: -50%; opacity: 1; } 100% { left: 105%; opacity: 0; } }

/* layer 3 — fingerprint registered in the card footer */
.art-foot { border-top: 1px solid var(--border); padding: 11px 15px; min-height: 42px; display: flex; align-items: center; }
.ov-fp {
  font-size: 0.72rem; color: var(--green);
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.applied-3 .ov-fp { opacity: 1; transform: none; }

/* layer 4 — logbook row slides in under the card */
.ov-log {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; font-size: 0.74rem; color: var(--muted);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.7s;
}
.ov-log span { color: var(--green); }
.applied-4 .ov-log { opacity: 1; transform: none; border-color: var(--green-line); }

.art-caption { font-size: 0.72rem; color: var(--dim); text-align: center; min-height: 1.3em; }
.applied-4 .art-caption { color: var(--green-dim); }

.log-note { margin-top: 2.6rem; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); text-align: center; }

/* ============================================================
   §4 FEATURES
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 0.3s; }
.feature:hover { border-color: var(--border-lit); }
.f-icon { width: 26px; height: 26px; stroke: var(--green); stroke-width: 1.8; fill: none; margin-bottom: 1rem; }
.icon-draw { stroke-dasharray: 90; stroke-dashoffset: 90; }
.in-view .icon-draw { animation: draw 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 0.14s + 0.25s); }
.feature h3 { color: #fff; margin-bottom: 0.4rem; }
.feature p { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }
.feature em { color: var(--green); font-style: normal; }

/* ============================================================
   §5 ATTACK SURFACE (dashboard table)
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.attack-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.85rem; min-width: 720px; }
.attack-table th {
  text-align: left; font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); padding: 15px 20px; border-bottom: 1px solid var(--border); font-weight: 600;
}
.attack-table td { padding: 17px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
.attack-table tbody tr:last-child td { border-bottom: none; }
.attack-table tbody tr { transition: background 0.2s; }
.attack-table tbody tr:hover { background: var(--panel-2); }
.attack-table td:first-child { font-weight: 600; color: var(--text); min-width: 160px; }
.attack-table td:nth-child(3) { color: var(--muted); font-family: var(--sans); font-size: 0.86rem; }
.defeat { font-family: var(--mono); font-size: 0.74rem; color: var(--red); white-space: nowrap; }
.layers-badge { font-family: var(--mono); letter-spacing: 0.1em; }
.layers-badge .l-ok { color: var(--green); }
.layers-badge .l-x { color: var(--red); }
.layers-badge .l-deg { color: var(--amber); }

.cost { display: flex; flex-direction: column; gap: 6px; min-width: 96px; }
.cost-bar { display: block; height: 5px; border-radius: 3px; background: var(--panel-lit); position: relative; overflow: hidden; }
.cost-bar::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--green); border-radius: 3px; transition: width 1.1s var(--ease); }
.cost-bar.amber::after { background: var(--amber); }
.cost-bar.red::after { background: var(--red); }
.in-view .cost-bar::after { width: var(--w); }
.in-view tr[data-stagger="1"] .cost-bar::after { transition-delay: 0.2s; }
.in-view tr[data-stagger="2"] .cost-bar::after { transition-delay: 0.4s; }
.in-view tr[data-stagger="3"] .cost-bar::after { transition-delay: 0.6s; }
.cost-label { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.honest-close {
  margin-top: 28px; background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--green); border-radius: var(--radius); padding: 26px 30px;
  font-family: var(--sans); font-size: 0.96rem; color: var(--muted);
}
.honest-close strong { color: #fff; }
.honest-close em { color: var(--green); font-style: normal; }

/* ============================================================
   §6 USE CASES
   ============================================================ */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usecase { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 0.5rem; transition: border-color 0.3s; }
.usecase:hover { border-color: var(--border-lit); }
.uc-q { font-family: var(--mono); font-size: 0.72rem; color: var(--green); min-height: 2.8em; padding-bottom: 0.4rem; }
.usecase h3 { color: #fff; }
.usecase p:last-child { font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   §6 FAQ
   ============================================================ */
.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--border-lit); }
.faq-item[open] { border-color: var(--green-line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--mono); font-weight: 600; font-size: 0.9rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: var(--radius); }
.faq-icon {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--border-lit); color: var(--muted);
  display: grid; place-items: center; font-weight: 500;
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--green); border-color: var(--green-line); }
.faq-item[open] summary { color: #fff; }
.faq-item p {
  padding: 0 22px 20px; font-family: var(--sans); font-size: 0.92rem; color: var(--muted);
  max-width: 640px;
}

/* ============================================================
   §7 CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border-lit); border-radius: 8px;
  color: var(--text); padding: 12px 14px; font-family: var(--mono); font-size: 0.9rem; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field-err { font-family: var(--mono); font-size: 0.72rem; color: var(--red); }
.form-status { font-family: var(--mono); font-size: 0.76rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 0 32px; }
.footer-top { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-brand-block { display: flex; flex-direction: column; gap: 6px; }
.footer-brandline { display: flex; align-items: center; gap: 10px; }
.footer-tagline { font-family: var(--sans); font-size: 0.86rem; color: var(--muted); max-width: 340px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { font-family: var(--mono); color: var(--muted); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-status {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 20px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--dim);
}
.footer-status .green { color: var(--green); }
.footer-status b { color: var(--muted); font-weight: 400; }

/* ============================================================
   SCROLL REVEAL — repeating (re-arms on exit)
   ============================================================ */
[data-animate] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-animate].in-view { opacity: 1; transform: none; }
[data-stagger] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.in-view [data-stagger], [data-stagger].in-view { opacity: 1; transform: none; }
.in-view [data-stagger="1"] { transition-delay: 0.12s; }
.in-view [data-stagger="2"] { transition-delay: 0.24s; }
.in-view [data-stagger="3"] { transition-delay: 0.36s; }
.in-view [data-stagger="4"] { transition-delay: 0.48s; }
.in-view [data-stagger="5"] { transition-delay: 0.60s; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate], [data-stagger] { opacity: 1; transform: none; transition: none; }
  .draw-line, .icon-draw { stroke-dashoffset: 0; animation: none !important; }
  .cost-bar::after { width: var(--w); transition: none; }
  .hop-chip, .tl-dot, .carrier, .cp-line.carrier-line::before, .cp-tag { transition: none !important; }
  .hop-chip.origin-unknown { opacity: 1; }
  .cp-scan { display: none; }
  .term-caret, .eyebrow::before { animation: none !important; }
  .astep, .art-card, .ov-label, .ov-glyph, .ov-fp, .ov-log, .art-code { transition: none !important; }
  .ov-sweep { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid, .usecase-grid { grid-template-columns: 1fr 1fr; }
  .apply-stage { grid-template-columns: 1fr; gap: 32px; }
  .deadline-grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .hero { padding: 104px 0 68px; }
  .feature-grid, .usecase-grid { grid-template-columns: 1fr; }
  .hop-flow { flex-direction: column; align-items: stretch; }
  .hop-arrow { transform: rotate(90deg); align-self: center; }
  .tl-item { grid-template-columns: 14px 1fr; }
  .tl-text { grid-column: 2; }
  .top-status { display: none; }
  .footer-links { margin-left: 0; }
}
