/* Brainrot Killer — Landing Page
   Design language: Linear-inspired (awesome-design-md) · brand accent kept orange.
   Self-hosted fonts & vendor scripts — keine externen Requests (DSGVO). */

/* ─────────────────────────────  Font  ───────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}

/* ───────────────────────────  Tokens  ──────────────────────────── */
:root {
  /* Surface ladder — deep near-black canvas w/ faint blue-violet tint (Linear) */
  --canvas: #08080e;
  --surface-1: #101019;
  --surface-2: #15151f;
  --surface-3: #1b1b27;
  --surface-4: #202030;

  /* Hairlines */
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* Ink */
  --ink: #f7f8f8;
  --ink-muted: #c6cad4;
  --ink-subtle: #8a8f98;
  --ink-tertiary: #5f636b;

  /* Brand accent — kept orange to match the app */
  --accent: #ff9800;
  --accent-hover: #ffb04d;
  --accent-press: #f08600;
  --accent-ink: #160d00;
  --accent-soft: rgba(255, 152, 0, 0.12);
  --accent-glow: rgba(255, 152, 0, 0.22);
  --success: #4caf50;
  --violet: #6e63ff; /* secondary atmospheric tint only (never UI) */

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 24px;
  --r-pill: 9999px;

  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
                 0 16px 40px -24px rgba(0, 0, 0, 0.9);
  --maxw: 1200px;

  /* Legacy aliases — keep older inline styles (legal pages) on the new theme */
  --bg: var(--canvas);
  --surface: var(--surface-1);
  --primary: var(--accent);
  --primary-hover: var(--accent-hover);
  --error: #ef5350;
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --text-dim: var(--ink-tertiary);
  --border: var(--hairline);
  --radius-card: var(--r-lg);
  --radius-btn: var(--r-md);
}

/* ───────────────────────────  Base  ──────────────────────────── */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  font-feature-settings: 'cv05', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Faint vertical light from the top, like Linear's canvas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 520px at 70% -8%, rgba(255, 152, 0, 0.10), transparent 60%),
    radial-gradient(900px 600px at 12% -2%, rgba(110, 99, 255, 0.07), transparent 55%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img, svg, canvas { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.1; }

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  letter-spacing: -0.028em;
  line-height: 1.1;
}
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

p { margin: 0 0 1em; color: var(--ink-muted); }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Focus ring (Linear: 2px accent-tinted outline) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ──────────────────────────  Layout  ─────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

.section-head { max-width: 680px; margin-bottom: 12px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.075rem; color: var(--ink-subtle); }

/* Eyebrow — small pill w/ dot (positive tracking per Linear) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 152, 0, 0.22);
  padding: 5px 12px 5px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ──────────────────────────  Buttons  ────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255, 152, 0, .5), 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,176,77,.6), 0 16px 40px -12px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); background: var(--accent-press); }
.btn-secondary {
  background: var(--surface-1);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--hairline-strong); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ──────────────────────────  Header  ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}
.brand:hover { color: var(--ink); }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a,
.nav > a:not(.btn) { /* legal pages keep links as direct children of .nav */
  color: var(--ink-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--r-md);
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav > a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }

.lang-switch {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px;
  margin-left: 6px;
}
.lang-switch a {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  color: var(--ink-subtle);
  font-weight: 600;
}
.lang-switch a.active { background: var(--accent); color: var(--accent-ink); }
.lang-switch a:hover:not(.active) { color: var(--ink); }

.nav-cta { margin-left: 4px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.menu-toggle svg { width: 18px; height: 18px; }

/* ──────────────────────────  Hero  ───────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  /* fade the 3D field toward the edges so it stays subtle */
  -webkit-mask-image: radial-gradient(120% 90% at 50% 35%, #000 45%, transparent 92%);
  mask-image: radial-gradient(120% 90% at 50% 35%, #000 45%, transparent 92%);
  opacity: 0.9;
}
.hero-inner { max-width: 820px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(180deg, #ffffff 0%, #ffd9a3 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 620px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}

.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge-wrap { position: relative; display: inline-block; }
.store-badge {
  display: inline-block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  transition: transform .18s ease, border-color .18s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--hairline-strong); }
.store-badge img { height: 48px; width: auto; }
.badge-wrap .soon {
  position: absolute;
  top: -9px; right: -9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  box-shadow: 0 4px 12px -2px var(--accent-glow);
}

/* trust row under hero */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  color: var(--ink-subtle);
  font-size: 0.88rem;
}
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

/* ──────────────────────  Category marquee  ───────────────────── */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.012);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.chip .ico { font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ────────────────────  Crossword product panel  ──────────────── */
.preview-wrap {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.preview-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 14px;
}
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-4); display: block; }
.preview-bar .title { margin-left: 8px; font-size: 0.8rem; color: var(--ink-subtle); }
.preview-bar .pill {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255,152,0,.22);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.preview-grid-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.xword {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* per-language count set inline */
  gap: 4px;
  background: var(--canvas);
  padding: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}
.cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: clamp(0.7rem, 1.6vw, 1rem);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.cell.block { background: transparent; border-color: transparent; }
.cell .num {
  position: absolute;
  top: 1px; left: 3px;
  font-size: 0.5rem;
  color: var(--ink-tertiary);
  font-weight: 600;
}
.cell.filled { color: var(--ink); } /* GSAP plays a type-in reveal over this */
.cell.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.clues { display: flex; flex-direction: column; gap: 14px; }
.clue-group h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-subtle); margin: 0 0 8px; }
.clue-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.clue-group li { font-size: 0.86rem; color: var(--ink-muted); display: flex; gap: 8px; }
.clue-group li b { color: var(--accent); font-variant-numeric: tabular-nums; }
.clue-group li.done { color: var(--ink-tertiary); text-decoration: line-through; }

/* ──────────────────────────  Stats  ──────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.stat-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.stat-card .num {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-card.success .num { color: var(--success); }
.stat-card .desc { color: var(--ink); font-size: 0.96rem; margin-bottom: 14px; }
.stat-card .src {
  font-size: 0.76rem;
  color: var(--ink-tertiary);
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.stat-card .src a { color: var(--ink-subtle); text-decoration: underline; }
.stat-card .src a:hover { color: var(--accent); }

.disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: var(--ink-subtle);
}
.disclaimer strong { color: var(--ink); }

/* ────────────────────────  Bento features  ───────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.feature {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--hairline-strong); background: var(--surface-2); }
.feature .ico {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.feature h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.15rem; }
.feature p { font-size: 0.94rem; color: var(--ink-subtle); margin: 0; }
.feature .glow {
  position: absolute;
  width: 200px; height: 200px;
  right: -60px; top: -60px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.feature:hover .glow { opacity: 0.6; }
.feature .cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature .cats span {
  font-size: 0.8rem; color: var(--ink-muted);
  background: var(--surface-3); border: 1px solid var(--hairline);
  padding: 5px 11px; border-radius: var(--r-pill);
}

/* ───────────────────────────  CTA  ───────────────────────────── */
.cta-banner {
  position: relative;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 152, 0, 0.12), transparent 70%),
    var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xxl);
  padding: 64px 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { max-width: 540px; margin: 0 auto 26px; color: var(--ink-muted); }
.cta-banner .badges { justify-content: center; }
.cta-banner .note { color: var(--ink-tertiary); font-size: 0.84rem; margin-top: 20px; }

/* ─────────────────────────  Contact  ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 14px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lift);
}
.contact-form label { display: block; font-size: 0.82rem; color: var(--ink-subtle); margin-bottom: 6px; font-weight: 500; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-3);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .note { color: var(--ink-tertiary); font-size: 0.78rem; margin: 0; }
.contact-side .feat { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-side .feat .ico {
  flex: none; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid rgba(255,152,0,.2);
  border-radius: var(--r-md); font-size: 1.1rem;
}
.contact-side .feat h4 { margin: 0 0 2px; font-size: 0.98rem; color: var(--ink); }
.contact-side .feat p { margin: 0; font-size: 0.88rem; color: var(--ink-subtle); }

/* ──────────────────────────  Footer  ─────────────────────────── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid p { font-size: 0.88rem; color: var(--ink-subtle); margin-top: 14px; max-width: 320px; }
.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-subtle);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-tertiary);
  font-size: 0.82rem;
}

/* ────────────────────  Scroll reveal (GSAP)  ─────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); will-change: transform, opacity; }
.js .reveal-scale { opacity: 0; transform: scale(0.96); }

/* ─────────────────────────  Legal pages  ─────────────────────── */
.legal {
  padding: 64px 0 96px;
  max-width: 820px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-tertiary); font-size: 0.85rem; margin-bottom: 36px; display: block; }
.legal h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 24px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-muted); font-size: 0.96rem; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal address {
  background: var(--surface-1);
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  font-style: normal;
  margin: 16px 0;
  color: var(--ink);
  line-height: 1.7;
}
.legal .placeholder {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  color: var(--accent);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.85em;
}
.legal a { color: var(--accent); }
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ink-subtle);
  font-size: 0.9rem;
}
.back-link:hover { color: var(--accent); }

/* ───────────────────────  Accessibility  ─────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ───────────────────────  Responsive  ────────────────────────── */
@media (max-width: 980px) {
  .preview-grid-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 92px 0 64px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }

  /* Slide-down mobile menu */
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 20px;
    background: rgba(8, 8, 14, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
  .nav.open .nav-cta { display: inline-flex; margin-top: 8px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

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