/* ==========================================================================
   Mawqoot — Design System
   Tokens → Base → Layout → Components → Utilities → Animations
   ========================================================================== */

:root {
  /* Brand */
  --primary-900: #06301f;
  --primary-700: #0a4f38;
  --primary-600: #0f6f4f;
  --primary-500: #14875f;
  --primary-400: #1ea876;
  --primary-300: #4fc999;
  --gold-500: #c9a227;
  --gold-400: #dbb94a;

  /* Neutrals (light) */
  --bg: #faf9f6;
  --bg-alt: #f2f1eb;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.66);
  --border: rgba(20, 24, 22, 0.09);
  --border-strong: rgba(20, 24, 22, 0.14);
  --text: #14201b;
  --text-secondary: #4d5b55;
  --text-tertiary: #7c8983;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 45%, var(--primary-400) 100%);
  --gradient-accent-text: linear-gradient(120deg, var(--gold-500), var(--primary-500) 65%);
  --gradient-mesh: radial-gradient(60% 60% at 15% 10%, rgba(20, 135, 95, 0.18), transparent 60%),
    radial-gradient(50% 55% at 90% 15%, rgba(201, 162, 39, 0.16), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(20, 168, 118, 0.14), transparent 60%);

  /* Layout */
  --nav-h: 68px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 20, 0.06), 0 1px 1px rgba(15, 23, 20, 0.04);
  --shadow-md: 0 12px 28px -12px rgba(15, 23, 20, 0.22);
  --shadow-lg: 0 28px 60px -20px rgba(15, 23, 20, 0.32);
  --shadow-glow: 0 8px 24px -6px rgba(15, 111, 79, 0.45);

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Type scale */
  --fs-display: clamp(2.25rem, 1.55rem + 3.1vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.03rem + 0.4vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 560ms;

  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e0c;
  --bg-alt: #0f1512;
  --surface: #131a17;
  --surface-glass: rgba(19, 26, 23, 0.62);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5f3;
  --text-secondary: #a9b6b0;
  --text-tertiary: #77857f;

  --gradient-mesh: radial-gradient(60% 60% at 15% 10%, rgba(30, 168, 118, 0.22), transparent 60%),
    radial-gradient(50% 55% at 90% 15%, rgba(219, 185, 74, 0.14), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(30, 168, 118, 0.16), transparent 60%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 28px 60px -20px rgba(0, 0, 0, 0.65);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0e0c;
    --bg-alt: #0f1512;
    --surface: #131a17;
    --surface-glass: rgba(19, 26, 23, 0.62);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f3f5f3;
    --text-secondary: #a9b6b0;
    --text-tertiary: #77857f;
    --gradient-mesh: radial-gradient(60% 60% at 15% 10%, rgba(30, 168, 118, 0.22), transparent 60%),
      radial-gradient(50% 55% at 90% 15%, rgba(219, 185, 74, 0.14), transparent 60%),
      radial-gradient(60% 60% at 50% 100%, rgba(30, 168, 118, 0.16), transparent 60%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 28px 60px -20px rgba(0, 0, 0, 0.65);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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; scroll-behavior: auto !important; }
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: var(--fs-body);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; inset-inline-start: var(--space-4); top: -100px;
  background: var(--primary-600); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm); z-index: 200; transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

.container { max-width: 1120px; margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-9); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-small); font-weight: 700; color: var(--primary-600);
  background: color-mix(in srgb, var(--primary-500) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-500) 24%, transparent);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
}
:root[data-theme="dark"] .eyebrow { color: var(--primary-300); }

/* Dark-mode legibility for the small green/gold badge labels.
   Without these they keep their light-mode ink (#0a4f38 / #866b0f) and drop
   to ~1.8:1 contrast on the dark surfaces. */
:root[data-theme="dark"] .hero-status-label,
:root[data-theme="dark"] .story-label,
:root[data-theme="dark"] .screen-pill,
:root[data-theme="dark"] .trust-icon { color: var(--primary-300); }
:root[data-theme="dark"] .future-kicker,
:root[data-theme="dark"] .hero-float-label,
:root[data-theme="dark"] .screen-pill.gold { color: var(--gold-400); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow,
  :root:not([data-theme="light"]) .hero-status-label,
  :root:not([data-theme="light"]) .story-label,
  :root:not([data-theme="light"]) .screen-pill,
  :root:not([data-theme="light"]) .trust-icon { color: var(--primary-300); }
  :root:not([data-theme="light"]) .future-kicker,
  :root:not([data-theme="light"]) .hero-float-label,
  :root:not([data-theme="light"]) .screen-pill.gold { color: var(--gold-400); }
}

.gradient-text {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-head { text-align: center; max-width: 620px; margin-inline: auto; margin-bottom: var(--space-7); }
.section-head h2 { font-size: var(--fs-h2); margin-block: var(--space-3) var(--space-3); }
.section-head p { color: var(--text-secondary); font-size: var(--fs-lead); }

/* Focus visibility (WCAG) */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.nav.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1120px; margin-inline: auto; padding-inline: var(--space-5);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 800; font-size: 1.1rem; }
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-glow); flex-shrink: 0;
}
.brand .brand-mark svg { width: 19px; height: 19px; }

.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a {
  font-weight: 600; font-size: var(--fs-small); color: var(--text-secondary);
  position: relative; padding-block: var(--space-1);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gradient-brand); transition: width var(--dur-base) var(--ease-out); border-radius: var(--radius-full);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

/* Hamburger (mobile only — shown via media query) */
.nav-actions .nav-toggle { display: none; }
.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.lang-btn { width: auto; padding-inline: var(--space-4); font-size: var(--fs-small); font-weight: 700; }
.icon-btn:hover { color: var(--primary-600); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0) scale(0.96); }
:root[data-theme="dark"] .icon-btn:hover { color: var(--primary-300); }
.icon-btn .icon-sun { display: none; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: none; }
:root[data-theme="dark"] .icon-btn .icon-sun { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85rem 1.6rem; border-radius: var(--radius-full); font-weight: 700; font-size: var(--fs-small);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-glow);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%);
  transition: opacity var(--dur-fast) var(--ease-out);
}
.btn-primary:hover::before { opacity: 1; animation: sheen 1.1s var(--ease-out); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(15, 111, 79, 0.55); }
@keyframes sheen { to { transform: translateX(120%); } }

.btn-secondary {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.btn-store {
  background: #10151a; color: #fff; border: 1px solid rgba(255,255,255,0.1);
  padding: 0.7rem 1.4rem; gap: var(--space-3); box-shadow: var(--shadow-md);
}
.btn-store.is-disabled {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}
.btn-store:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-store svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-store .store-text { text-align: start; line-height: 1.25; }
.btn-store small { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.75; }
.btn-store span.store-name { font-size: 0.95rem; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-block: var(--space-8);
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
}
.hero > .container { width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background-image: var(--gradient-mesh); }
.hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: float 9s ease-in-out infinite;
}
.orb-1 { width: 320px; height: 320px; background: var(--primary-400); top: -80px; inset-inline-start: -60px; }
.orb-2 { width: 260px; height: 260px; background: var(--gold-400); top: 40px; inset-inline-end: -60px; animation-delay: -3s; }
.orb-3 { width: 220px; height: 220px; background: var(--primary-300); bottom: -80px; inset-inline-start: 30%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.05); } }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: var(--space-8);
}
.hero-copy { max-width: 680px; }
.hero-copy h1 { font-size: var(--fs-display); margin-block: var(--space-5) var(--space-4); }
.hero-copy .tag { font-size: var(--fs-lead); color: var(--text-secondary); max-width: 620px; }
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}
.hero-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.hero-status-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.hero-status-card strong { display: block; margin-top: var(--space-2); font-size: 1.05rem; }
.hero-status-card p { color: var(--text-secondary); font-size: 0.9rem; margin-top: var(--space-2); }
.hero-status-label {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary-500) 12%, transparent);
  color: var(--primary-700);
  font-size: 0.72rem;
  font-weight: 800;
}
.hero-countdown {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.hero-countdown span {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hero-countdown-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  overflow: hidden;
}
.hero-countdown-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gradient-brand);
}
.hero-demo-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.demo-pill {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.demo-pill:hover, .demo-pill.is-active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.hero-chips { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.hero-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--surface-glass); border: 1px solid var(--border); backdrop-filter: blur(10px);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); font-size: var(--fs-small);
  font-weight: 600; color: var(--text-secondary); box-shadow: var(--shadow-sm);
  animation: bob 6s ease-in-out infinite;
}
.hero-chip svg { width: 16px; height: 16px; color: var(--primary-600); }
:root[data-theme="dark"] .hero-chip svg { color: var(--primary-300); }
.hero-chip:nth-child(2) { animation-delay: -1.5s; }
.hero-chip:nth-child(3) { animation-delay: -3s; }
.hero-chip:nth-child(4) { animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.badges { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; margin-top: var(--space-7); }

.hero-visual {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-mockup {
  position: absolute;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,243,236,0.92));
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
:root[data-theme="dark"] .phone-mockup {
  background: linear-gradient(180deg, rgba(27,33,30,0.96), rgba(17,21,19,0.96));
  border-color: rgba(255,255,255,0.06);
}
.phone-mockup--back {
  width: min(290px, 82vw);
  inset-inline-start: 6%;
  bottom: 14%;
  transform: rotate(-8deg);
  --r: -8deg;
  animation: floatPhone 8s var(--ease-in-out) infinite;
}
.phone-mockup--front {
  width: min(320px, 86vw);
  inset-inline-end: 2%;
  top: 4%;
  transform: rotate(4deg);
  z-index: 1;
  --r: 4deg;
  animation: floatPhone 8s var(--ease-in-out) infinite 0.8s;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.phone-screen {
  border-radius: 26px;
  padding: var(--space-4);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(243,239,231,0.94));
  border: 1px solid rgba(20,24,22,0.08);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
:root[data-theme="dark"] .phone-screen {
  background: linear-gradient(180deg, rgba(21,27,24,0.98), rgba(16,20,18,0.96));
  border-color: rgba(255,255,255,0.06);
}
.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 700;
}
.phone-status {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.phone-status span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.screen-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.screen-pill {
  display: inline-flex;
  align-self: flex-start;
  border-radius: var(--radius-full);
  padding: 0.28rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--primary-500) 10%, transparent);
  color: var(--primary-700);
}
.screen-pill.gold {
  background: color-mix(in srgb, var(--gold-500) 18%, transparent);
  color: #836a13;
}
.next-prayer {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-500) 14%, transparent), color-mix(in srgb, var(--gold-500) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary-500) 14%, var(--border));
  border-radius: 22px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
}
.next-prayer strong { font-size: 1.4rem; }
.next-prayer p { color: var(--text-secondary); font-size: var(--fs-small); }
.time-list {
  display: grid;
  gap: var(--space-2);
}
.time-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.time-list strong { color: var(--text); }
.time-list--active {
  border-color: color-mix(in srgb, var(--primary-500) 26%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-500) 14%, transparent), color-mix(in srgb, var(--gold-500) 10%, transparent));
}
.screen-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-500) 10%, transparent), color-mix(in srgb, var(--surface) 82%, transparent));
  border: 1px solid var(--border);
}
.screen-card--light strong { font-size: 1.25rem; }
.screen-card--light p { color: var(--text-secondary); font-size: 0.9rem; }
.screen-list {
  display: grid;
  gap: var(--space-2);
  margin-top: auto;
}
.screen-list span {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border: 1px solid var(--border);
}
.screen-list i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary-500) 12%, transparent);
}
.screen-list strong { font-size: 0.9rem; }
.screen-list small { color: var(--text-tertiary); font-size: 0.72rem; }
.hero-float-card {
  position: absolute;
  inset-inline-end: 0;
  bottom: 8%;
  z-index: 2;
  padding: var(--space-4) var(--space-5);
  max-width: 220px;
  border-radius: 24px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px) saturate(180%);
}
.hero-float-card strong { display: block; margin-top: var(--space-2); line-height: 1.35; }
.hero-float-label {
  display: inline-flex;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--gold-500) 16%, transparent);
  color: #866b0f;
  font-size: 0.7rem;
  font-weight: 800;
}

.screen-title, .screen-card, .time-list div, .mini-feature-card, .trust-card, .future-card, .hero-status-card {
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.demo-shift {
  animation: demoShift 380ms var(--ease-out);
}
@keyframes demoShift {
  from { opacity: 0.55; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.time-list--active {
  position: relative;
  overflow: hidden;
}
.time-list--active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: activeSweep 2.8s linear infinite;
}
@keyframes activeSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  /* Fixed, not absolute: the hero grows past 100svh once its content is
     taller than the viewport, which parked this 150-370px below the fold at
     most desktop sizes. Physical `left` on purpose too — translateX(-50%) is
     not direction-aware, so pairing it with inset-inline-start pushed it
     off-centre by half its own width in RTL. */
  position: fixed; left: 50%; z-index: 90;
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  color: var(--text-tertiary); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  /* It floats over live content now, so it carries its own backdrop. */
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--shadow-sm);
  opacity: 0; animation: indicatorIn var(--dur-slow) var(--ease-out) 1.1s forwards;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}
/* Its job is done the moment the visitor scrolls.
   !important rather than `animation: none` — killing the animation would drop
   the forwards fill, so returning to the top would replay the 1.1s delay and
   leave the pill blank. An important declaration outranks the animation while
   the intro keyframes stay intact underneath. */
.scroll-indicator.is-hidden {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}
.scroll-indicator:hover { color: var(--primary-600); transform: translateX(-50%) translateY(3px); }
:root[data-theme="dark"] .scroll-indicator:hover { color: var(--primary-300); }
.scroll-indicator .mouse {
  width: 26px; height: 40px; border-radius: var(--radius-full);
  border: 2px solid var(--border-strong);
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-indicator .mouse .dot {
  width: 4px; height: 8px; border-radius: var(--radius-full);
  background: var(--gradient-brand);
  animation: scrollDot 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(10px); }
}
@keyframes indicatorIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { opacity: 1; animation: none; }
  .scroll-indicator .mouse .dot { animation: none; opacity: 1; }
}
/* Shown on every screen. Because it's fixed and overlays content, it shrinks
   to a compact pill where vertical space is tight rather than disappearing. */
@media (max-width: 640px), (max-height: 700px) {
  .scroll-indicator {
    flex-direction: row;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: 0.7rem;
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }
  .scroll-indicator .mouse { width: 18px; height: 27px; padding-top: 5px; border-width: 1.5px; }
  .scroll-indicator .mouse .dot { width: 3px; height: 6px; }
}

/* Sticky header would otherwise cover the top of any anchored target. */
:target, #main, #features, #story, #trust, #future {
  scroll-margin-top: calc(var(--nav-h) + var(--space-3));
}

.section-alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-alt) 72%, transparent), color-mix(in srgb, var(--bg) 92%, transparent));
  border-block: 1px solid var(--border);
}

/* ---------- Story ---------- */
.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}
.story-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.story-block--solution {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-500) 9%, var(--surface)), color-mix(in srgb, var(--gold-500) 8%, var(--surface)));
  border-color: color-mix(in srgb, var(--primary-500) 16%, var(--border));
}
.story-label {
  display: inline-flex;
  margin-bottom: var(--space-3);
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary-500) 12%, transparent);
  color: var(--primary-700);
  font-size: 0.72rem;
  font-weight: 800;
}
.story-block p { color: var(--text-secondary); font-size: var(--fs-lead); }
.story-bridge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
  position: relative;
}
.story-bridge span {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--primary-500) 28%, transparent);
}
.story-bridge svg { width: 24px; height: 24px; }

/* ---------- Feature groups ---------- */
.feature-groups {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
}
.feature-group {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.feature-group--featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-5);
  align-items: start;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-500) 5%, var(--surface)), color-mix(in srgb, var(--gold-500) 5%, var(--surface)));
}
.feature-group-head h3 {
  font-size: 1.4rem;
  margin-block: var(--space-3) var(--space-2);
}
.feature-group-head p { color: var(--text-secondary); }
.feature-group-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.mini-feature-card {
  background: color-mix(in srgb, var(--bg) 48%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.mini-feature-card .icon-badge {
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
}
.mini-feature-card h4 { font-size: 1rem; margin-bottom: var(--space-2); }
.mini-feature-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 1120px;
  margin-inline: auto;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.trust-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary-500) 12%, transparent);
  color: var(--primary-700);
  margin-bottom: var(--space-4);
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-card h3 { font-size: 1.02rem; margin-bottom: var(--space-2); }
.trust-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* ---------- Future ideas ---------- */
.future-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.future-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.future-card h3 { font-size: 1.05rem; margin-top: var(--space-2); margin-bottom: var(--space-2); }
.future-card p { color: var(--text-secondary); font-size: 0.92rem; }
.future-kicker {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--gold-500) 18%, transparent);
  color: #866b0f;
  font-size: 0.72rem;
  font-weight: 800;
}
.future-counter {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.future-counter strong {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.05em;
}
.future-counter span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.map-preview {
  position: relative;
  min-height: 170px;
  border-radius: 22px;
  margin-top: var(--space-4);
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--primary-500) 16%, transparent) 0 7px, transparent 8px),
    radial-gradient(circle at 68% 64%, color-mix(in srgb, var(--gold-500) 18%, transparent) 0 8px, transparent 9px),
    linear-gradient(135deg, color-mix(in srgb, var(--primary-500) 8%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.8;
}
.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-400);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary-500) 12%, transparent);
  animation: pinPulse 2.3s var(--ease-in-out) infinite;
}
.pin-1 { inset-inline-start: 24%; top: 32%; }
.pin-2 { inset-inline-start: 54%; top: 58%; background: var(--gold-400); animation-delay: -0.6s; }
.pin-3 { inset-inline-start: 78%; top: 24%; animation-delay: -1.2s; }
@keyframes pinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.ecosystem-orbit {
  position: relative;
  min-height: 180px;
  margin-top: var(--space-4);
  transform: scale(var(--orbit-scale, 1));
}
.orbit-center,
.orbit-item {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.orbit-center {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow);
}
.orbit-item {
  min-width: 72px;
  padding: 0.34rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.orbit-1 { animation: orbitA 7s linear infinite; }
.orbit-2 { animation: orbitB 9s linear infinite; }
.orbit-3 { animation: orbitC 11s linear infinite; }
.orbit-4 { animation: orbitD 13s linear infinite; }
@keyframes orbitA { from { transform: translate(-50%, -50%) rotate(0deg) translateX(78px) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg) translateX(78px) rotate(-360deg); } }
@keyframes orbitB { from { transform: translate(-50%, -50%) rotate(90deg) translateX(58px) rotate(-90deg); } to { transform: translate(-50%, -50%) rotate(450deg) translateX(58px) rotate(-450deg); } }
@keyframes orbitC { from { transform: translate(-50%, -50%) rotate(180deg) translateX(94px) rotate(-180deg); } to { transform: translate(-50%, -50%) rotate(540deg) translateX(94px) rotate(-540deg); } }
@keyframes orbitD { from { transform: translate(-50%, -50%) rotate(270deg) translateX(70px) rotate(-270deg); } to { transform: translate(-50%, -50%) rotate(630deg) translateX(70px) rotate(-630deg); } }
.video-teaser {
  min-height: 170px;
  margin-top: var(--space-4);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary-500) 24%, var(--surface)), color-mix(in srgb, var(--gold-500) 12%, var(--surface)));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.video-teaser::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}
.play-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  color: var(--primary-700);
  box-shadow: var(--shadow-lg);
}
.play-badge svg { width: 22px; height: 22px; margin-inline-start: 3px; }

/* ---------- Feature cards ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--space-5); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card .icon-badge {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: var(--space-4); box-shadow: var(--shadow-glow);
  transition: transform var(--dur-base) var(--ease-out);
}
.card:hover .icon-badge { transform: scale(1.08) rotate(-4deg); }
.card .icon-badge svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--gradient-brand); color: #fff; text-align: center;
  padding: var(--space-9) var(--space-6);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 20% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(50% 60% at 90% 100%, rgba(219,185,74,.25), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
.cta-band p { opacity: 0.92; max-width: 480px; margin-inline: auto; font-size: var(--fs-lead); }
.cta-band .badges { margin-top: var(--space-7); }
.cta-band .btn-store { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); backdrop-filter: blur(6px); }
.cta-band .btn-store:hover { background: rgba(255,255,255,0.18); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); margin-top: var(--space-9); }
.footer-inner {
  max-width: 1120px; margin-inline: auto; padding: var(--space-8) var(--space-5) var(--space-6);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.footer-column {
  display: grid;
  gap: var(--space-3);
}
.footer-brand p { color: var(--text-secondary); font-size: var(--fs-small); margin-top: var(--space-2); max-width: 280px; }
.footer-contact {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-contact:hover { color: var(--primary-600); }
:root[data-theme="dark"] .footer-contact:hover { color: var(--primary-300); }
.footer-heading {
  font-size: var(--fs-small);
  font-weight: 800;
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}
.footer-links a { font-size: var(--fs-small); font-weight: 600; color: var(--text-secondary); transition: color var(--dur-fast) var(--ease-out); }
.footer-links a:hover { color: var(--primary-600); }
:root[data-theme="dark"] .footer-links a:hover { color: var(--primary-300); }
.footer-bottom {
  max-width: 1120px; margin-inline: auto; padding: var(--space-5); border-top: 1px solid var(--border);
  font-size: var(--fs-small); color: var(--text-tertiary); text-align: center;
}

/* ---------- Page hero (privacy / support) ---------- */
.page-hero { padding-block: var(--space-9) var(--space-7); text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.page-hero p { color: var(--text-secondary); margin-top: var(--space-3); font-size: var(--fs-lead); }
.back-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--fs-small); color: var(--primary-600); margin-bottom: var(--space-5); transition: gap var(--dur-fast) var(--ease-out); }
.back-link:hover { gap: var(--space-3); }
.back-link svg { width: 16px; height: 16px; }
[dir="rtl"] .back-link svg { transform: scaleX(-1); }
:root[data-theme="dark"] .back-link { color: var(--primary-300); }

/* ---------- Prose (privacy content) ---------- */
.prose-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: var(--space-7); max-width: 780px; margin-inline: auto;
}
.prose-card .muted { color: var(--text-tertiary); font-size: var(--fs-small); margin-bottom: var(--space-5); }
.prose-card h2 { font-size: 1.15rem; color: var(--primary-600); margin-block: var(--space-6) var(--space-3); }
:root[data-theme="dark"] .prose-card h2 { color: var(--primary-300); }
.prose-card h2:first-of-type { margin-top: 0; }
.prose-card p, .prose-card li { color: var(--text-secondary); margin-bottom: var(--space-3); }
.prose-card ul { padding-inline-start: 1.3rem; list-style: disc; }
.prose-card li::marker { color: var(--primary-500); }
.prose-card strong { color: var(--text); }
.prose-card a { color: var(--primary-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="dark"] .prose-card a { color: var(--primary-300); }

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--gradient-brand); color: #fff; border-radius: var(--radius-lg);
  padding: var(--space-7); text-align: center; box-shadow: var(--shadow-glow);
  max-width: 780px; margin: 0 auto var(--space-8);
}
.contact-card p { opacity: 0.92; margin-bottom: var(--space-5); font-size: var(--fs-lead); }
.contact-card .btn { background: #fff; color: var(--primary-700); }
.contact-card .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(0,0,0,0.3); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5); font-weight: 700; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--text-tertiary); transition: transform var(--dur-base) var(--ease-out); }
.faq-item[open] summary .chevron { transform: rotate(180deg); color: var(--primary-600); }
:root[data-theme="dark"] .faq-item[open] summary .chevron { color: var(--primary-300); }
.faq-item .faq-body { padding: 0 var(--space-5) var(--space-5); color: var(--text-secondary); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-bg .orb, .hero-chip { animation: none; }
}

/* ==========================================================================
   Responsive — mobile-friendly ladder: 1080 → 900 → 640 → 400
   ========================================================================== */

/* ---------- Small laptop / large tablet ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: var(--space-5); }
  .hero-layout { gap: var(--space-6); grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr); }
  .hero-visual { min-height: 560px; }
  .phone-mockup--back { width: min(250px, 46vw); }
  .phone-mockup--front { width: min(276px, 50vw); }
  .phone-screen { min-height: 520px; }
  .hero-float-card { max-width: 190px; padding: var(--space-3) var(--space-4); }
  .feature-group { grid-column: span 6; }
  .trust-grid, .future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Tablet / mobile: nav collapses ---------- */
@media (max-width: 900px) {
  .nav-inner { gap: var(--space-2); }

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

  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--space-5) var(--space-5);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; animation: navPanelIn var(--dur-base) var(--ease-out); }
  .nav-links a {
    font-size: 1rem;
    color: var(--text);
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  @keyframes navPanelIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .section { padding-block: var(--space-8); }
  .hero { padding-block: var(--space-7); min-height: 0; }
  .prose-card, .contact-card { padding: var(--space-5); }

  .hero-layout { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-copy .tag { margin-inline: auto; }
  .hero-actions, .badges, .hero-chips, .hero-demo-switcher { justify-content: center; }
  .hero-visual { min-height: 600px; }
  .phone-mockup--back { width: min(250px, 42vw); inset-inline-start: 4%; bottom: 14%; }
  .phone-mockup--front { width: min(280px, 46vw); inset-inline-end: 4%; top: 2%; }
  .hero-float-card { inset-inline: auto; left: 50%; transform: translateX(-50%); bottom: 0; }

  .story-panel { grid-template-columns: 1fr; }
  .story-bridge { margin-inline: auto; transform: rotate(90deg); }

  .feature-group, .feature-group--featured { grid-column: span 12; }
  .feature-group--featured { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
}

/* ---------- Phone: single column everywhere, phones stack in flow ---------- */
@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
  .nav-inner { padding-inline: var(--space-4); }
  .nav-links { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-7); }

  .hero-copy h1 { text-wrap: balance; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-status-grid { grid-template-columns: 1fr; }

  /* Absolutely-positioned mockups don't survive narrow widths — put them in flow. */
  .hero-visual {
    min-height: 0;
    flex-direction: column;
    gap: var(--space-5);
  }
  .phone-mockup {
    position: static;
    width: min(320px, 100%);
    margin-inline: auto;
    transform: none;
    animation: none;
  }
  .phone-mockup--back { display: none; }
  .phone-screen { min-height: 0; }
  .hero-float-card {
    position: static;
    transform: none;
    max-width: min(320px, 100%);
    margin-inline: auto;
    text-align: center;
  }

  .feature-group, .mini-feature-card, .story-block, .trust-card, .future-card, .card {
    padding: var(--space-5);
  }
  .feature-group-cards { grid-template-columns: 1fr; }
  .trust-grid, .future-grid, .features-grid { grid-template-columns: 1fr; }

  .cta-band { padding: var(--space-8) var(--space-5); border-radius: var(--radius-lg); }
  .prose-card, .contact-card { padding: var(--space-5) var(--space-4); }
  .faq-item summary { padding: var(--space-4); gap: var(--space-3); }
  .faq-item .faq-body { padding: 0 var(--space-4) var(--space-4); }

  .footer-inner { grid-template-columns: 1fr; padding: var(--space-7) var(--space-4) var(--space-5); }
  .footer-contact { justify-self: start; }
  .footer-links { gap: var(--space-2) var(--space-3); }
  .footer-bottom { padding: var(--space-4); }
}

/* ---------- Very small phones (≤360px devices) ---------- */
@media (max-width: 400px) {
  .container { padding-inline: var(--space-3); }
  .nav-inner { padding-inline: var(--space-3); gap: var(--space-1); }
  .brand { font-size: 1rem; }
  .brand .brand-mark { width: 30px; height: 30px; }
  .icon-btn.lang-btn { padding-inline: var(--space-3); }
  .btn { padding: 0.8rem 1.2rem; }
  .btn-store { padding: 0.65rem 1rem; }
  .badges { gap: var(--space-3); }
  .badges .btn-store { flex: 1 1 100%; }
  .hero-chips { gap: var(--space-2); }
  .hero-countdown span { font-size: 1.2rem; }
  .demo-pill { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  .future-counter { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  /* Orbit radii are fixed px — shrink the whole rig so labels aren't clipped. */
  .ecosystem-orbit { --orbit-scale: 0.74; min-height: 150px; }
}

/* ---------- Touch devices: comfortable hit areas, no hover-only reveals ---------- */
@media (hover: none) {
  .icon-btn { width: 44px; height: 44px; }
  .icon-btn.lang-btn { width: auto; }
  .demo-pill { min-height: 44px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .footer-links a, .footer-contact { padding-block: var(--space-1); }
  .card:hover, .btn-store:hover, .btn-secondary:hover, .btn-primary:hover, .icon-btn:hover {
    transform: none;
  }
}

/* ---------- Landscape phones: hero shouldn't lock to viewport height ---------- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; padding-block: var(--space-7); }
}

@media (min-width: 1440px) {
  .container { max-width: 1280px; }
}

/* ---------- Print: privacy/terms/support are documents people print ---------- */
@media print {
  .nav, .scroll-indicator, .hero-bg, .hero-visual, .site-footer,
  .badges, .hero-demo-switcher, .cta-band, #future { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose-card, .contact-card, .faq-item {
    box-shadow: none; border: 1px solid #ccc; background: #fff; color: #000;
    break-inside: avoid;
  }
  .contact-card { background: #fff !important; color: #000 !important; }
  .prose-card h2 { color: #000; }
  .faq-item .faq-body { display: block !important; }
  a[href^="http"]::after, a[href^="mailto"]::after {
    content: " (" attr(href) ")"; font-size: 9pt; color: #555;
  }
  .section { padding-block: 0; }
}
