/* ==========================================================================
   Nanotam — design system
   Pure CSS, no frameworks. Dark theme, textured gradients, minimalist.
   ========================================================================== */

/* ----------------------------------- Fonts ----------------------------------- */
@font-face {
  font-family: "Uncut Sans";
  src: url("/assets/fonts/UncutSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Uncut Sans";
  src: url("/assets/fonts/UncutSans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Uncut Sans";
  src: url("/assets/fonts/UncutSans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------- Reset ----------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------- Tokens ---------------------------------- */
:root {
  /* Palette — deep aviation night */
  --bg: #000000;
  --bg-elev: #08080c;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #eef2ff;
  --text-muted: #9aa7c7;
  --text-dim: #66739a;

  --accent: #4fd1c5;      /* teal */
  --accent-2: #6c8cff;    /* blue */
  --accent-3: #b57bff;    /* violet */
  --accent-warn: #ffb454; /* amber (alerts) */
  --accent-danger: #ff5d73;

  --grad-brand: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent-3) 100%);

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Uncut Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo,
    Consolas, monospace;

  /* Spacing / layout */
  --container: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 80px -20px rgba(108, 140, 255, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------- Base ------------------------------------ */
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Textured, layered background gradients + grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 60rem at 15% -10%, rgba(108, 140, 255, 0.18), transparent 60%),
    radial-gradient(50rem 50rem at 90% 0%, rgba(181, 123, 255, 0.16), transparent 55%),
    radial-gradient(70rem 40rem at 50% 120%, rgba(79, 209, 197, 0.12), transparent 60%),
    var(--bg);
}

/* Fine grain / noise texture for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* --------------------------------- Utilities --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 40rem;
}

.muted {
  color: var(--text-muted);
}

/* --------------------------------- Buttons ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad-brand);
  color: #07101f;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 90px -10px rgba(108, 140, 255, 0.55);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

/* ---------------------------------- Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand .brand-mark {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg) translateY(-1px);
}

/* ----------------------------------- Hero ------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  margin-block: 1.25rem 1.5rem;
}

.hero .lead {
  margin-bottom: 2rem;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* Media frame (placeholder illustration) */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-2), transparent);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad-brand);
  opacity: 0.12;
  z-index: 0;
}

.media-frame img,
.media-frame svg {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius-lg) - 8px);
  width: 100%;
}

.placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-lg) - 8px);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    var(--bg-elev);
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed var(--border-strong);
}

/* -------------------------------- Trust strip -------------------------------- */
.trust {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.trust-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  opacity: 0.7;
}

.trust-logos span {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ----------------------------------- Stats ----------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.stat:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.stat:hover::after {
  opacity: 0.7;
}

.stat .num {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  min-height: 2.16em;
}

.stat .label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ----------------------------------- Bento ----------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}

.card:hover::after {
  opacity: 0.6;
}

.card .placeholder,
.card .card-illu {
  aspect-ratio: 16 / 10;
  width: 100%;
  flex-shrink: 0;
  font-size: 0.72rem;
}

.card .card-illu {
  display: block;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bento .card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  row-gap: 0.55rem;
  align-items: center;
}

.bento .card-body .card-icon {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.bento .card-body h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
}

.bento .card-body p,
.bento .card-body .tag-row {
  grid-column: 1 / -1;
}

.card .card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.card .card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* bento spans */
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

/* Featured cards keep a slightly smaller illustration; others go full-width */
.card.feature-wide .placeholder,
.card.feature-wide .card-illu {
  aspect-ratio: 16 / 10;
  width: 75%;
  margin-inline: auto;
}

/* Tag list inside cards */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* --------------------------------- Audiences --------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.audience {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), transparent);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.audience:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.audience .audience-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.audience h3 {
  margin-bottom: 0.6rem;
}

.audience p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.audience a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.audience a:hover {
  color: var(--text);
}

/* --------------------------------- How it works ------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ------------------------------------ CTA ------------------------------------ */
.cta-panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(40rem 20rem at 50% -30%, rgba(108, 140, 255, 0.25), transparent 70%),
    var(--bg-elev);
}

.cta-panel h2 {
  margin-bottom: 1rem;
}

.cta-panel .lead {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------- FAQ ------------------------------------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 1.5rem;
  transition: border-color 0.3s var(--ease);
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  padding: 1.25rem 2rem 1.25rem 0;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  font-size: 0.97rem;
}

/* ---------------------------------- Footer ----------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-socials a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  color: var(--text-muted);
}

.footer-socials a:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* --------------------------------- Legal pages ------------------------------- */
.legal {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.legal-wrap {
  max-width: 46rem;
  margin-inline: auto;
}

.legal-wrap h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.legal-updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-wrap h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-wrap h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.legal-wrap ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* --------------------------------- Reveal anim ------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* --------------------------------- Responsive -------------------------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-2, .col-3, .col-4, .col-6 {
    grid-column: span 2;
  }
  .card.feature-wide .placeholder,
  .card.feature-wide .card-illu {
    width: 100%;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  .nav-links,
  .nav-actions .btn-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.5rem;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }
  .nav-links.open .btn {
    margin-top: 0.5rem;
  }
}

@media (max-width: 560px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .col-2, .col-3, .col-4, .col-6 {
    grid-column: span 1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

/* ----------------------------- Cookie consent ------------------------------ */
.cookie-root {
  position: fixed;
  z-index: 300;
  inset: auto 0 0 0;
  pointer-events: none;
}

.cookie-root.is-visible {
  pointer-events: none;
}

.cookie-banner {
  pointer-events: auto;
  margin: 0 auto 1rem;
  width: calc(100% - 2rem);
  max-width: 720px;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.cookie-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.cookie-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.cookie-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

.cookie-panel {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.cookie-cat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.cookie-cat input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  margin-top: 0.15rem;
}

.cookie-cat-text {
  display: grid;
  gap: 0.2rem;
}

.cookie-cat-text strong {
  font-size: 0.92rem;
}

.cookie-cat-text span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.cookie-panel-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-reopen {
  pointer-events: auto;
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 301;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.85);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.cookie-reopen:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

@media (max-width: 560px) {
  .cookie-banner {
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}
