/* Attesto marketing site — design tokens + base styles */

:root {
  /* Colors from spec — strict */
  --bg: #0A0A0B;
  --surface: #111113;
  --border: #1F1F23;
  --border-soft: #17171A;
  --accent-blue: #3B82F6;
  --accent-blue-hover: #2F6FE0;
  --accent-green: #10B981;
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max-w: 1280px;
  --pad-x: 48px;
  --pad-y: 120px;

  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1); /* easeOutQuart */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent-blue); color: #fff; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hero background — hi-tech layered composition */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

/* Layer 1: orbit / merkle-tree network illustration */
.hero-bg .net {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='xMidYMid slice'><defs><radialGradient id='g' cx='50%25' cy='30%25' r='70%25'><stop offset='0%25' stop-color='%233B82F6' stop-opacity='0.14'/><stop offset='45%25' stop-color='%233B82F6' stop-opacity='0.04'/><stop offset='100%25' stop-color='%230A0A0B' stop-opacity='0'/></radialGradient><linearGradient id='l' x1='0' y1='0' x2='1' y2='0'><stop offset='0%25' stop-color='%233B82F6' stop-opacity='0'/><stop offset='50%25' stop-color='%233B82F6' stop-opacity='0.6'/><stop offset='100%25' stop-color='%2310B981' stop-opacity='0'/></linearGradient></defs><rect width='1600' height='900' fill='url(%23g)'/><g fill='none' stroke='%231F1F23' stroke-width='0.8'><path d='M800 140 L560 320 L340 500'/><path d='M800 140 L1040 320 L1260 500'/><path d='M800 140 L560 320 L760 500'/><path d='M800 140 L1040 320 L840 500'/><path d='M560 320 L340 500 L220 720'/><path d='M560 320 L340 500 L460 720'/><path d='M560 320 L760 500 L680 720'/><path d='M560 320 L760 500 L860 720'/><path d='M1040 320 L840 500 L740 720'/><path d='M1040 320 L840 500 L940 720'/><path d='M1040 320 L1260 500 L1140 720'/><path d='M1040 320 L1260 500 L1380 720'/></g><g fill='none' stroke='url(%23l)' stroke-width='1.2'><path d='M800 140 L560 320' stroke-opacity='0.6'/><path d='M1040 320 L1260 500' stroke-opacity='0.4'/><path d='M560 320 L760 500' stroke-opacity='0.5'/></g><g><circle cx='800' cy='140' r='5' fill='%233B82F6'/><circle cx='800' cy='140' r='12' fill='none' stroke='%233B82F6' stroke-opacity='0.25'/><circle cx='560' cy='320' r='3.5' fill='%2310B981'/><circle cx='1040' cy='320' r='3.5' fill='%23F4F4F5' fill-opacity='0.7'/><circle cx='340' cy='500' r='2.5' fill='%23A1A1AA'/><circle cx='760' cy='500' r='3.5' fill='%233B82F6'/><circle cx='840' cy='500' r='2.5' fill='%23A1A1AA'/><circle cx='1260' cy='500' r='3' fill='%2310B981'/><circle cx='220' cy='720' r='2' fill='%23A1A1AA'/><circle cx='460' cy='720' r='2' fill='%23A1A1AA'/><circle cx='680' cy='720' r='2.5' fill='%2310B981'/><circle cx='860' cy='720' r='2' fill='%23A1A1AA'/><circle cx='740' cy='720' r='2' fill='%23A1A1AA'/><circle cx='940' cy='720' r='2.5' fill='%233B82F6'/><circle cx='1140' cy='720' r='2' fill='%23A1A1AA'/><circle cx='1380' cy='720' r='2' fill='%23A1A1AA'/></g><g font-family='monospace' font-size='10' fill='%2371717A' opacity='0.65'><text x='808' y='132'>root</text><text x='568' y='312'>0x4af2</text><text x='1048' y='312'>0x7d91</text><text x='768' y='492'>0xa03e</text></g></svg>");
  background-size: cover;
  background-position: center top;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0.6) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0.6) 70%, transparent 100%);
}

/* Layer 2: fine grid */
.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 10%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 10%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 40%, transparent 75%);
}

/* Layer 3: scanning shimmer */
.hero-bg .scan {
  position: absolute;
  left: 0; right: 0; top: 0; height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(59,130,246,0.04) 45%,
    rgba(59,130,246,0.08) 50%,
    rgba(59,130,246,0.04) 55%,
    transparent 100%);
  mix-blend-mode: screen;
  animation: scan 7s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes scan {
  0% { transform: translateY(-30%); opacity: 0; }
  40% { opacity: 0.9; }
  100% { transform: translateY(50%); opacity: 0; }
}

/* Layer 4: color wash */
.hero-bg .wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(16,185,129,0.06), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59,130,246,0.06), transparent 70%);
}

/* Layer 5: vignette bottom */
.hero-bg .vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, var(--bg) 100%);
}

/* Noise */
.hero-bg .noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Legacy selectors (still used on sub-page headers) */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 40%, transparent 75%);
  pointer-events: none;
}
.bg-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.08), transparent 60%);
  pointer-events: none;
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; --pad-y: 80px; }
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}

h2 {
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
}

h4 {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-tertiary);
}

p { margin: 0; }

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 640px;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent-green);
}

.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-green);
  padding: 6px 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
  border-radius: 999px;
}

.mono-tag.blue {
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
}

.mono-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), border-color 180ms var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-blue-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: #2F2F35; background: rgba(255,255,255,0.02); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0 4px;
  height: auto;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn svg { width: 16px; height: 16px; }

/* Section */
section.sec {
  position: relative;
  padding: var(--pad-y) 0;
  border-top: 1px solid var(--border-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 300ms var(--ease);
}

.card.hover:hover {
  border-color: #2A2A30;
  background: #141417;
}

/* Grid helpers */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* Animated reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,11,0.7);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(10,10,11,0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-logo .mark {
  width: 24px; height: 24px;
  position: relative;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.nav-link.active { color: var(--text-primary); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #0E0E10;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
}
.nav-link-wrap:hover .nav-dropdown,
.nav-link-wrap:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.nav-dropdown-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.nav-dropdown-item .t { font-size: 14px; color: var(--text-primary); }
.nav-dropdown-item .d { font-size: 12px; color: var(--text-tertiary); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { height: 36px; font-size: 13px; padding: 0 14px; }

.nav-mobile-toggle { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta > .btn-secondary { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
}

/* Footer */
footer.footer {
  border-top: 1px solid var(--border-soft);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-soft);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 140ms var(--ease);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 16px;
}

/* Countdown */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
}
.countdown .num {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.02em;
  min-width: 48px;
  text-align: left;
}
.countdown .lbl {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.countdown-sub {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.countdown-sub .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 6px var(--accent-blue); }

/* Code block */
.code {
  background: #08080A;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
}
.code .k { color: #C084FC; }
.code .s { color: var(--accent-green); }
.code .c { color: var(--text-tertiary); }
.code .n { color: #60A5FA; }
.code .p { color: var(--text-secondary); }

/* Dotted connector for process flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border) 0 6px, transparent 6px 12px);
}
.flow-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.flow-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
}
.flow-icon .step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: var(--accent-green);
  color: #042017;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.flow-step h3 { margin-bottom: 8px; font-size: 18px; }
.flow-step p { font-size: 14px; color: var(--text-secondary); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .flow::before { display: none; }
}

/* Framework coverage table */
.coverage {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.coverage-head, .coverage-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr;
}
.coverage-head {
  background: #0E0E10;
  border-bottom: 1px solid var(--border);
}
.coverage-head > div {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}
.coverage-row {
  border-top: 1px solid var(--border-soft);
}
.coverage-row > div {
  padding: 18px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.coverage-row > div:not(:first-child) {
  border-left: 1px solid var(--border-soft);
  color: var(--text-secondary);
}
.coverage-row > div:first-child {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  background: #0C0C0E;
}
.check {
  width: 16px; height: 16px; color: var(--accent-green); flex: none;
}

/* Pricing */
.pricing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.pricing-toggle button {
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.pricing-toggle button.active {
  background: #1C1C20;
  color: var(--text-primary);
}
.pricing-toggle .save {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-green);
  margin-left: 6px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tier.featured {
  border-color: rgba(59,130,246,0.4);
  background: linear-gradient(180deg, rgba(59,130,246,0.04), var(--surface) 40%);
  position: relative;
}
.tier.featured::before {
  content: "Aanbevolen";
  position: absolute;
  top: -10px; left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-blue);
  padding: 3px 8px;
  border-radius: 4px;
}
.tier-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.tier-price {
  display: flex; align-items: baseline; gap: 6px;
}
.tier-price .amt {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-price .per {
  color: var(--text-tertiary);
  font-size: 13px;
}
.tier-desc { font-size: 13px; color: var(--text-secondary); min-height: 38px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier ul li { font-size: 13px; color: var(--text-secondary); display: flex; gap: 10px; align-items: flex-start; }
.tier ul li svg { flex: none; margin-top: 3px; color: var(--accent-green); width: 14px; height: 14px; }
.tier .btn { width: 100%; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
  text-align: left;
  gap: 16px;
}
.faq-q .icon {
  width: 20px; height: 20px;
  color: var(--text-tertiary);
  transition: transform 200ms var(--ease), color 200ms var(--ease);
  flex: none;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--text-primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease), padding 300ms var(--ease);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 0 24px;
}

/* Timeline (NIS2 24/72/30) */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 16.6%;
  right: 16.6%;
  top: 14px;
  height: 2px;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-blue) 40%, var(--accent-green));
  opacity: 0.3;
}
.timeline-step {
  position: relative;
}
.timeline-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-blue);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-blue);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.timeline-step h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-step .dur {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-green);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.timeline-step p { font-size: 14px; color: var(--text-secondary); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { display: none; }
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #141417;
}
.field textarea { resize: vertical; min-height: 120px; }

/* Tab (for frameworks) */
.tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}
.tab {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.tab.active {
  background: #1C1C20;
  color: var(--text-primary);
}

/* Hero rotating verification ticker */
.ticker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.ticker-row {
  display: flex; align-items: center; gap: 10px;
  opacity: 0;
  animation: tickerIn 400ms var(--ease) forwards;
}
.ticker-row .ok { color: var(--accent-green); }
@keyframes tickerIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Page fade */
.page {
  animation: pageIn 350ms var(--ease);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Tag chip used in tables */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(16,185,129,0.08);
  color: var(--accent-green);
  border: 1px solid rgba(16,185,129,0.2);
}
.chip.roadmap { background: rgba(161,161,170,0.06); color: var(--text-tertiary); border-color: rgba(161,161,170,0.15); }
.chip.warn { background: rgba(239,68,68,0.08); color: #FCA5A5; border-color: rgba(239,68,68,0.2); }

/* Check badge */
.kv {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-secondary);
}
.kv svg {
  color: var(--accent-green);
  width: 16px; height: 16px;
  flex: none;
  margin-top: 3px;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
}
.lang-switch button {
  padding: 4px 8px;
  border-radius: 2px;
  color: var(--text-tertiary);
}
.lang-switch button.active { background: #1C1C20; color: var(--text-primary); }

/* Hero visual */
.hero-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #0E0E10, #0A0A0B);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hv-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}
.hv-header .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
.hv-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hv-evt {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: rgba(255,255,255,0.01);
  font-family: var(--font-mono);
  font-size: 11px;
}
.hv-evt .time { color: var(--text-tertiary); }
.hv-evt .msg { color: var(--text-primary); letter-spacing: -0.01em; font-family: var(--font-sans); font-size: 12px; }
.hv-evt .hash {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-green);
  font-size: 10px;
}
.hv-evt .hash::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }

/* Event card on hover */
.hv-evt.new {
  animation: evtIn 500ms var(--ease);
}
@keyframes evtIn {
  from { opacity: 0; transform: translateY(-6px); background: rgba(16,185,129,0.06); }
  to { opacity: 1; transform: none; }
}

/* Stat block */
.stat {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.stat .num {
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.stat .unit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-blue);
  margin-left: 4px;
}
.stat .lbl {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.5;
}

/* Danger card (for board page) */
.danger-card {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, rgba(239,68,68,0.04), transparent 60%), var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.danger-card .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FCA5A5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.danger-card .label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent-blue);
  z-index: 100;
  transition: width 60ms linear;
}

/* Logo mark */
.logo-mark {
  position: relative;
  width: 24px; height: 24px;
}
.logo-mark svg { width: 100%; height: 100%; }

/* Subtle chip list */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Layout helpers */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.space-between { justify-content: space-between; }

/* Links in prose */
.prose a { color: var(--accent-blue); border-bottom: 1px solid rgba(59,130,246,0.3); }
.prose a:hover { border-bottom-color: var(--accent-blue); }
.prose p + p { margin-top: 16px; }
.prose { color: var(--text-secondary); line-height: 1.7; }

/* Hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 120px;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 80px; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  padding: 32px var(--pad-x);
  z-index: 49;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 0; font-size: 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-primary);
}

/* Utility */
.hide-sm { }
@media (max-width: 768px) { .hide-sm { display: none; } }

/* Reduce borders on soft sections */
section.sec.first { border-top: none; }
