/* ═══════════════════════════════════════════════
   CervIQ — shared stylesheet (all pages)
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a0f1e;
  --navy2: #0d1526;
  --teal: #0ea5e9;
  --teal2: #38bdf8;
  --accent: #22d3ee;
  --white: #ffffff;
  --gray: #94a3b8;
  --gray2: #64748b;
  --light: #e2e8f0;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: var(--navy);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  min-height: var(--nav-h);
  padding: 0.75rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,15,30,0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--gray); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
  padding: 0.5rem 0; /* larger tap target */
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--white);
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--light); transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Focus visibility everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal2);
  outline-offset: 2px;
}

/* Anchor targets don't hide under the fixed nav */
section[id], main[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(14,165,233,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(34,211,238,0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image: linear-gradient(var(--teal) 1px, transparent 1px),
                    linear-gradient(90deg, var(--teal) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.3);
  color: var(--teal2); font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}

.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.1; font-weight: 800;
  margin-bottom: 1.5rem; letter-spacing: -1px;
}

.hero-title em { font-style: italic; color: var(--teal2); }

.hero-sub {
  font-size: 1.1rem; color: var(--gray); line-height: 1.7;
  max-width: 480px; margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  padding: 0.85rem 2rem; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #0284c7);
  color: var(--white); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(14,165,233,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.4);
}

.btn-secondary {
  padding: 0.85rem 2rem; border-radius: 8px;
  border: 1px solid var(--border); color: var(--light);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: background 0.2s, border-color 0.2s;
  background: var(--card);
}

.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

/* ── HERO STATS ── */
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--white), var(--teal2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.75rem; color: var(--gray); margin-top: 0.25rem; line-height: 1.3; }

/* ── DEVICE ILLUSTRATION ── */
.hero-visual { position: relative; }

.device-frame {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 0 60px rgba(14,165,233,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
}

.device-screen {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(14,165,233,0.15);
  border-radius: 16px;
  padding: 1.5rem;
}

.device-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.device-dot { width: 8px; height: 8px; border-radius: 50%; }
.device-dot.red { background: #ef4444; }
.device-dot.yellow { background: #f59e0b; }
.device-dot.green { background: #22c55e; }

.device-title { font-size: 0.75rem; color: var(--gray); margin-left: 0.5rem; }

.metric-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.metric-row:last-child { border-bottom: none; }

.metric-label { font-size: 0.8rem; color: var(--gray); }
.metric-value {
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--teal2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-sub { font-size: 0.7rem; color: var(--gray2); margin-top: 0.1rem; }

.badge-live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80; font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.badge-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80; animation: pulse 1.5s infinite;
}

.floating-card {
  position: absolute;
  background: rgba(10,15,30,0.9);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 12px; padding: 0.75rem 1.1rem;
  font-size: 0.8rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 2;
}

.fc-label { color: var(--gray); font-size: 0.7rem; margin-bottom: 0.2rem; }
.fc-value { font-weight: 700; color: var(--white); }

.fc1 { top: -1.5rem; right: -1.5rem; animation: floatA 4s ease-in-out infinite; }
.fc2 { bottom: 3rem; left: -5.5rem; animation: floatB 5s ease-in-out infinite; }
.fc3 { bottom: -2rem; right: -1.5rem; animation: floatA 3.5s ease-in-out infinite 1s; }

@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}

/* ── SECTIONS ── */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

h2 em { font-style: italic; color: var(--teal2); }

.section-intro {
  font-size: 1.05rem; color: var(--gray); max-width: 600px;
  margin-bottom: 3.5rem; line-height: 1.7;
}

/* ── PROBLEM ── */
#problem { border-top: 1px solid var(--border); }

.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}

.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0; transition: opacity 0.3s;
}

.problem-card:hover { border-color: rgba(14,165,233,0.3); transform: translateY(-4px); }
.problem-card:hover::before { opacity: 1; }

.problem-num {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--teal); margin-bottom: 0.75rem;
}

.problem-icon { font-size: 2rem; margin-bottom: 1rem; }

.problem-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; }
.problem-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* ── SOLUTION ── */
.solution-badges {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem;
}

.sol-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(14,165,233,0.1); border: 1px solid rgba(14,165,233,0.25); color: var(--teal2);
}

#solution {
  background: linear-gradient(180deg, transparent 0%, rgba(14,165,233,0.04) 50%, transparent 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  max-width: 100%; padding: 6rem 2rem;
}

#solution > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}

.tech-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.tech-card:hover { transform: translateY(-4px); border-color: rgba(14,165,233,0.3); }

.tech-badge {
  display: inline-block;
  background: rgba(14,165,233,0.15); border: 1px solid rgba(14,165,233,0.3);
  color: var(--teal); font-size: 0.7rem; font-weight: 800;
  padding: 0.25rem 0.6rem; border-radius: 4px; letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.tech-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; }
.tech-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* ── TEAM ── */
.team-founders {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 1.5rem;
}

.advisory-tag {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gray); text-align: center;
  margin-bottom: 1.5rem;
}

.team-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.team-card:hover { transform: translateY(-4px); border-color: rgba(14,165,233,0.3); }

.team-avatar { font-size: 2.5rem; margin-bottom: 1rem; }

.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }

.team-role {
  font-size: 0.8rem; font-weight: 600; color: var(--teal);
  margin-bottom: 0.5rem;
}

.team-org { font-size: 0.8rem; color: var(--gray); line-height: 1.4; }

/* ── CONTACT ── */
#contact { border-top: 1px solid var(--border); text-align: center; }
#contact h2 { margin-bottom: 1rem; }
#contact .section-intro { margin-left: auto; margin-right: auto; }

.contact-grid {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3rem;
}

.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 2.5rem;
  text-align: center; min-width: 200px;
}

.contact-card a {
  color: var(--teal2); font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover { color: var(--white); }
.contact-label { font-size: 0.8rem; color: var(--gray); margin-top: 0.5rem; }
.contact-icon { font-size: 2rem; margin-bottom: 1rem; }

/* ── CONTACT FORM ── */
.contact-form-wrap {
  max-width: 540px; margin: 2.5rem auto 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  text-align: left;
}

.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;
}

.contact-form .form-row { margin-bottom: 1.1rem; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray2); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(14,165,233,0.5);
  background: rgba(0,0,0,0.35);
}

.contact-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.privacy-consent {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.82rem; color: var(--gray);
  line-height: 1.5; cursor: pointer;
  margin-bottom: 1.4rem;
}

.privacy-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 0.1rem;
  accent-color: var(--teal);
  cursor: pointer;
}

.privacy-consent a { color: var(--teal2); text-decoration: none; }
.privacy-consent a:hover { text-decoration: underline; }

.contact-form button[type="submit"] {
  width: 100%;
  min-height: 48px;
  padding: 0.9rem 2rem; border-radius: 8px; border: none;
  background: linear-gradient(135deg, var(--teal), #0284c7);
  color: var(--white); font-weight: 700; font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(14,165,233,0.3);
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.4);
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}

.form-success { display: none; text-align: center; padding: 1rem 0.5rem; }
.form-success.is-visible { display: block; }
.contact-form.is-hidden { display: none; }

.form-success-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.form-success h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.75rem; color: var(--white);
}

.form-success p { font-size: 0.95rem; color: var(--gray); line-height: 1.6; }

.form-error {
  display: none;
  font-size: 0.85rem; color: #f87171;
  margin-bottom: 1rem; text-align: center;
}
.form-error.is-visible { display: block; }

/* ── LEGAL PAGES ── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem 2rem 5rem;
}

.legal-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}

.legal-page h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.legal-updated { font-size: 0.85rem; color: var(--gray); margin-bottom: 3rem; }

.legal-page h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  margin-top: 2.5rem; margin-bottom: 1rem;
  color: var(--white);
}

.legal-page h2:first-of-type { margin-top: 0; }

.legal-page p {
  font-size: 0.95rem; color: var(--light); line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-page ul { margin: 0 0 1.25rem 1.25rem; color: var(--light); }

.legal-page li { font-size: 0.95rem; line-height: 1.75; margin-bottom: 0.5rem; }

.legal-page a { color: var(--teal2); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

.legal-page strong { color: var(--white); font-weight: 600; }

.legal-divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

.legal-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--gray);
  text-decoration: none; margin-bottom: 2rem;
}
.legal-back:hover { color: var(--teal2); }

.legal-fineprint { font-size: 0.82rem; color: var(--gray2); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--gray2);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-legal {
  max-width: 640px; margin: 0 auto 1rem;
  font-size: 0.78rem; line-height: 1.6; color: var(--gray2);
}

.footer-links {
  display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-links a, .footer-links button {
  color: var(--gray); font-size: 0.78rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 0.25rem 0;
}

.footer-links a:hover, .footer-links button:hover { color: var(--teal2); }

/* ── COOKIE CONSENT BANNER ── */
.cookie-banner {
  position: fixed; z-index: 300;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 460px; margin-left: auto;
  background: var(--navy2);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

.cookie-banner h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 0;
  margin-bottom: 0.5rem; color: var(--white);
}

.cookie-banner p {
  font-size: 0.82rem; color: var(--gray); line-height: 1.55;
  margin-bottom: 1rem;
}

.cookie-banner a { color: var(--teal2); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }

.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.cookie-btn {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-family: inherit; font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}

.cookie-btn.accept {
  border: none;
  background: linear-gradient(135deg, var(--teal), #0284c7);
  color: var(--white);
}
.cookie-btn.accept:hover { opacity: 0.9; }

.cookie-btn.decline {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--light);
}
.cookie-btn.decline:hover { background: rgba(255,255,255,0.08); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .team-founders { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  nav.site-nav { padding: 0.6rem 1.25rem; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,15,30,0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }

  #hero { padding: 6.5rem 1.25rem 3.5rem; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }

  /* Keep the product mock-up on mobile, but drop the overflowing floating cards */
  .floating-card { display: none; }
  .device-frame { padding: 1.5rem; max-width: 420px; margin: 0 auto; }

  .hero-stats { gap: 1.25rem 2rem; justify-content: flex-start; }
  .hero-sub { font-size: 1rem; }

  section { padding: 4rem 1.25rem; }
  #solution { padding: 4rem 1.25rem; }

  .contact-grid { gap: 1rem; }
  .contact-card { padding: 1.5rem; flex: 1 1 100%; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; margin-top: 2rem; }

  .legal-page { padding: 7rem 1.25rem 4rem; }

  footer { padding: 2rem 1.25rem; }
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2.1rem; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary {
    flex: 1 1 100%; text-align: center;
  }
}

/* ── REDUCED MOTION (a11y / battery) ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
