/* ============================================================
   HUB — hubonline.tech
   Design system: dark editorial, Space Grotesk display type,
   motion via scroll-reveal + marquee + hover physics.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a10;
  --bg-soft: #12121b;
  --bg-card: #14141f;
  --paper: #f4f1e8;
  --muted: rgba(244, 241, 232, 0.64);
  --faint: rgba(244, 241, 232, 0.38);
  --line: rgba(244, 241, 232, 0.12);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --lime: #d4ff4f;
  --grad: linear-gradient(92deg, #8b5cf6 0%, #22d3ee 100%);
  --radius: 20px;
  --radius-lg: 28px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }

/* Film-grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* Selection + focus */
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--lime); color: #0a0a10;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout primitives ---------- */
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--faint);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}
.h-sub { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); max-width: 62ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; letter-spacing: 0.01em;
  padding: 16px 30px; border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn--primary { background: var(--lime); color: #0a0a10; }
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(212, 255, 79, 0.25); }
.btn--ghost { border-color: var(--line); color: var(--paper); background: rgba(244, 241, 232, 0.04); }
.btn--ghost:hover { border-color: rgba(244, 241, 232, 0.4); transform: translateY(-3px); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 10, 16, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: -0.02em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.8);
}
.brand small {
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }
.nav-links a {
  text-decoration: none; font-size: 0.95rem; color: var(--muted);
  font-weight: 500; transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-cta { display: inline-flex; }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(90px, 12vw, 170px) clamp(60px, 8vw, 110px); overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.blob--violet { width: 560px; height: 560px; background: var(--violet); top: -180px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.blob--cyan { width: 480px; height: 480px; background: var(--cyan); bottom: -220px; right: -120px; opacity: 0.32; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
}
.hero-inner { display: grid; gap: 28px; justify-items: start; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* Floating tool chips */
.hero-chips { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 10px; animation: floaty 7s ease-in-out infinite; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20, 20, 31, 0.85);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 18px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  white-space: nowrap;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero-chip--1 { top: 18%; right: 6%; animation-delay: 0s; }
.hero-chip--2 { top: 38%; right: 13%; animation-delay: 1.6s; }
.hero-chip--3 { top: 58%; right: 4%; animation-delay: 3.2s; }
.hero-chip--3 .dot { background: var(--cyan); }
.hero-chip--2 .dot { background: var(--violet); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 900px) { .hero-chips { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 18px;
  overflow: hidden;
  background: rgba(244, 241, 232, 0.02);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .star { color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tool cards ---------- */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 44px);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}
.tool-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.16), transparent 45%);
  opacity: 0; transition: opacity 0.35s ease;
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
.tool-card__tag {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 8px;
}
.tool-card__tag .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.tool-card h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.tool-card p { color: var(--muted); max-width: 46ch; }
.tool-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pill {
  font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 14px; color: var(--muted);
  background: rgba(244, 241, 232, 0.03);
}
.tool-card__go {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; color: var(--lime);
  margin-top: 6px;
}
.tool-card__go .arrow { transition: transform 0.3s ease; }
.tool-card:hover .tool-card__go .arrow { transform: translateX(6px); }
.tool-card__art { position: absolute; right: -30px; bottom: -30px; width: 190px; opacity: 0.9; pointer-events: none; }
@media (max-width: 640px) { .tool-card__art { width: 130px; right: -22px; bottom: -22px; } }

/* Future slot (non-clickable on purpose — no dead links) */
.tool-card--future { border-style: dashed; background: transparent; }
.tool-card--future:hover { transform: none; border-color: var(--line); box-shadow: none; }
.tool-card--future::before { display: none; }
.tool-card--future h3 { color: var(--faint); }
.tool-card--future .tool-card__tag { color: var(--faint); }
.tool-card--future .tool-card__tag .live-dot { background: var(--faint); animation: none; }

/* ---------- Numbered "why" section ---------- */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 860px) { .numbered { grid-template-columns: 1fr; } }
.num-item { border-top: 1px solid var(--line); padding-top: 22px; }
.num-item .num {
  font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 600; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.num-item h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-block: 14px 10px; }
.num-item p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Guides / articles ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 60px); }
@media (max-width: 980px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}
.guide-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, 0.5); }
.guide-card__kicker { font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--cyan); font-weight: 500; }
.guide-card h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.guide-card p { color: var(--muted); font-size: 0.94rem; }
.guide-card__more { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--lime); margin-top: auto; display: inline-flex; gap: 8px; align-items: center; }
.guide-card:hover .guide-card__more .arrow { transform: translateX(5px); }
.guide-card__more .arrow { transition: transform 0.3s ease; }

/* ---------- Stats band ---------- */
.stats-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(900px 300px at 20% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(900px 300px at 80% 100%, rgba(34, 211, 238, 0.1), transparent 60%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: clamp(44px, 6vw, 72px); }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; display: grid; gap: 6px; }
.stat .stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1;
  letter-spacing: -0.02em;
}
.stat .stat-label { color: var(--faint); font-size: 0.86rem; letter-spacing: 0.04em; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 22px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }
.faq-item summary .plus {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 400;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--lime); color: #0a0a10; border-color: var(--lime); }
.faq-item .faq-a { color: var(--muted); max-width: 72ch; padding-bottom: 24px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; display: grid; justify-items: center; gap: 22px; position: relative; overflow: clip; }
.cta-band .blob--violet { top: auto; bottom: -260px; left: 50%; transform: translateX(-50%); opacity: 0.35; }
.cta-band .h-display { font-size: clamp(2.4rem, 6vw, 4.6rem); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px; padding-block: clamp(48px, 6vw, 72px) 34px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: 0.94rem; max-width: 34ch; margin-top: 12px; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--faint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.94rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  color: var(--faint); font-size: 0.85rem;
}
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--paper); }

/* ---------- Prose (legal + guides) ---------- */
.prose { max-width: 72ch; }
.prose h1 { margin-block: 14px 22px; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; margin-block: 2.4em 0.8em; line-height: 1.2; }
.prose h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-block: 1.8em 0.6em; }
.prose p { color: var(--muted); margin-block: 1em; }
.prose strong { color: var(--paper); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { color: var(--muted); margin-block: 1em; padding-left: 1.4em; display: grid; gap: 0.5em; }
.prose ul li::marker { color: var(--lime); }
.prose ol li::marker { color: var(--cyan); font-family: var(--font-display); }
.prose blockquote {
  border-left: 3px solid var(--violet);
  padding: 14px 22px; margin-block: 1.4em;
  background: rgba(139, 92, 246, 0.07);
  border-radius: 0 14px 14px 0;
  color: var(--paper);
}
.page-hero { padding-block: clamp(70px, 9vw, 120px) clamp(30px, 4vw, 50px); position: relative; overflow: clip; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--faint); margin-bottom: 20px; }
.breadcrumbs a { color: var(--faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--paper); }
.breadcrumbs [aria-hidden] { color: var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--faint); font-size: 0.88rem; margin-top: 18px; }
.article-meta .dot-sep::before { content: "•"; margin-right: 14px; color: var(--line); }

/* ---------- Contact form ---------- */
.helpdesk-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 4vw, 60px); margin-top: clamp(36px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .helpdesk-grid { grid-template-columns: 1fr; } }
.form-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 42px);
  display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-display); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em; }
.field label .req { color: var(--lime); }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(10, 10, 16, 0.6);
  border: 1px solid var(--line); border-radius: 14px;
  color: var(--paper);
  padding: 14px 16px; font: inherit; font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f4f1e8' stroke-opacity='.5' fill='none' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }
.field .hint { color: var(--faint); font-size: 0.8rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.is-error { color: #ff8f8f; }
.form-status.is-ok { color: var(--lime); }
.side-info { display: grid; gap: 18px; }
.info-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; }
.info-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.info-card p { color: var(--muted); font-size: 0.94rem; }
.info-card a { color: var(--cyan); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 800;
  max-width: 520px; margin-inline: auto;
  background: rgba(20, 20, 31, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 22px;
  display: none; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.cookie-banner.is-visible { display: grid; }
@media (max-width: 640px) { .cookie-banner { grid-template-columns: 1fr; } }
.cookie-banner p { font-size: 0.86rem; color: var(--muted); }
.cookie-banner a { color: var(--cyan); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Scroll reveal (progressive enhancement: only when JS is on) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-hero { min-height: 72vh; display: grid; place-content: center; text-align: center; gap: 20px; }
.error-code {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(5rem, 18vw, 12rem); line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .blob, .hero-chips { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
