/* =========================================================
   GroveXC — Design System
   Modern, dark, quant-style crypto exchange
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Canvas */
  --bg: #05070d;
  --bg-2: #080b14;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-solid: #0c1018;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #eef2f8;
  --text-dim: #9aa6bd;
  --text-faint: #5f6c85;

  /* Accent — electric emerald + cool cyan */
  --accent: #2ee6a6;
  --accent-2: #35d0ff;
  --accent-soft: rgba(46, 230, 166, 0.12);
  --accent-glow: rgba(46, 230, 166, 0.35);
  --violet: #8b7bff;

  /* Semantic */
  --up: #2ee6a6;
  --down: #ff6b6b;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ---------- Ambient background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(46, 230, 166, 0.10), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(53, 208, 255, 0.10), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(139, 123, 255, 0.08), transparent 60%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-dim); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-dim); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.gradient-text {
  background: linear-gradient(100deg, var(--text) 20%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #04120c;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px var(--accent-glow); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; flex-shrink: 0; }
.brand-logo {
  width: 34px; height: 34px; object-fit: contain; display: block;
  filter: drop-shadow(0 4px 12px rgba(46, 230, 166, 0.28));
  transition: transform .4s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(8deg) scale(1.05); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-dim);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--text); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--text-dim); }
.hero-badge svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card-glow::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--border);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.step-num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; color: var(--accent); opacity: 0.4; line-height: 1; }

/* ---------- Live market board ---------- */
.market-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.market-panel::before {
  content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.market-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.market-head .dot-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dot-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.ticker-row {
  display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 12px;
  padding: 15px 14px; border-radius: var(--radius-sm);
  transition: background .3s;
}
.ticker-row + .ticker-row { border-top: 1px solid var(--border); }
.ticker-row:hover { background: var(--surface); }
.ticker-pair { display: flex; align-items: center; gap: 12px; }
.coin-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: .72rem; color: #04120c; }
.ticker-name { font-weight: 600; font-family: var(--font-display); }
.ticker-sub { font-size: .74rem; color: var(--text-faint); font-family: var(--font-mono); }
.ticker-price { font-family: var(--font-mono); font-weight: 600; font-size: 1.02rem; text-align: right; transition: color .4s; }
.ticker-change { font-family: var(--font-mono); font-size: .82rem; text-align: right; padding: 4px 9px; border-radius: 8px; }
.ticker-change.up { color: var(--up); background: rgba(46,230,166,0.1); }
.ticker-change.down { color: var(--down); background: rgba(255,107,107,0.1); }
.flash-up { animation: flashUp .6s; }
.flash-down { animation: flashDown .6s; }
@keyframes flashUp { 0% { color: var(--up); } 100% { color: inherit; } }
@keyframes flashDown { 0% { color: var(--down); } 100% { color: inherit; } }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin: 16px 0 14px; }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 24px; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.stat-label { font-size: .88rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- Table ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 16px 20px; font-size: 0.93rem; }
thead th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
tbody tr { border-bottom: 1px solid var(--border); transition: background .25s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
td .mono { color: var(--text); }

/* ---------- Feature list ---------- */
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: var(--text-dim); }
.check-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; position: relative; }
.page-hero h1 { margin: 18px 0 18px; }
.breadcrumb { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  position: relative; overflow: hidden;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 28px; }

/* ---------- Exchange widget ---------- */
.swap { display: grid; gap: 12px; }
.swap-field { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; transition: border-color .3s; }
.swap-field:focus-within { border-color: var(--accent); }
.swap-field label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.swap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.swap-input { background: transparent; border: none; color: var(--text); font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; width: 100%; outline: none; }
.swap-input::placeholder { color: var(--text-faint); }
.swap-select { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-family: var(--font-display); white-space: nowrap; }
.swap-switch { justify-self: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-solid); color: var(--accent); display: grid; place-items: center; margin: -18px auto; z-index: 2; position: relative; transition: transform .4s var(--ease); }
.swap-switch:hover { transform: rotate(180deg); }
.swap-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-faint); font-family: var(--font-mono); padding: 4px 4px 0; }

/* ---------- Accordion (FAQ / legal) ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.accordion-btn { width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.accordion-btn .chev { transition: transform .35s var(--ease); color: var(--accent); flex-shrink: 0; }
.accordion-item.open .chev { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion-panel-inner { padding: 0 22px 22px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Form ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; color: var(--text-dim); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px; color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--text-faint); margin-top: 6px; }
.form-success { display: none; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); font-size: .92rem; }
.form-success.show { display: block; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 0; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--text-dim); }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* ---------- Info grid (contact / license) ---------- */
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--text-faint); font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; }
.info-row .v { color: var(--text); font-weight: 500; text-align: right; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 72px 0 36px; margin-top: 40px; position: relative; background: linear-gradient(180deg, transparent, rgba(46,230,166,0.02)); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: .92rem; margin-top: 16px; max-width: 34ch; }
.app-badges { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.app-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 16px 9px 14px; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.app-badge:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface); }
.app-badge svg { flex-shrink: 0; }
.app-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.app-badge small { font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.app-badge b { font-family: var(--font-display); font-size: .96rem; font-weight: 600; }
.footer h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 500; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--text-dim); font-size: .92rem; transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { font-size: .88rem; }
.footer-legal .lk { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; }
.footer-legal .lv { color: var(--text); margin-bottom: 12px; }
.footer-legal .lv strong { font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom p { font-size: .82rem; color: var(--text-faint); }
.footer-address { font-size: .86rem; color: var(--text-dim); line-height: 1.8; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 720px; margin: 0 auto;
  background: rgba(12, 16, 24, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.cookie.show { transform: translateY(0); }
.cookie p { font-size: .84rem; flex: 1 1 340px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie .btn { padding: 10px 18px; font-size: .85rem; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .9rem; color: var(--text-dim); white-space: nowrap; }
.marquee-item b { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Divider glow ---------- */
.hr-glow { height: 1px; border: none; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); margin: 0; }

/* ---------- Responsive ---------- */

/* Tighten the nav on mid-size screens so 8 links + CTA never collide */
@media (max-width: 1280px) {
  .nav-inner { gap: 14px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 11px; font-size: 0.88rem; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-ghost { display: none; }   /* keep the primary "Open exchange" only */
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Collapse to the hamburger menu before the full nav would overflow */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.mobile-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 12px; right: 12px;
    background: rgba(8,11,20,0.97); backdrop-filter: blur(18px);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px; gap: 4px;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  }
  .nav.mobile-open .nav-links a { padding: 13px 16px; font-size: 0.98rem; }
  .nav.mobile-open .nav-links a.active { background: var(--accent-soft); }
}

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-row .v { text-align: left; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .btn, .btn-lg { padding: 13px 22px; font-size: 0.92rem; }
  .hero-actions .btn { width: 100%; }
  .app-badges { gap: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
