/* =============================================================
   BLACK VELAR Agency — landing
   Brutalist bold sans (Space Grotesk 700) × Dark Mode × Performance
   Tokens · base · layout · markers · nav · hero · footer · responsive
   ============================================================= */

:root {
  /* ---- Surfaces ---- */
  --bg-deep:        #0A0A0B;
  --bg-elevated:    #131316;
  --bg-paper:       #1C1C20;
  --bg-overlay:     rgba(10, 10, 11, 0.82);

  /* ---- Text ---- */
  --text-primary:   #F4F4F2;
  --text-secondary: #9A9A98;
  --text-muted:     #5C5C5A;
  --text-inverse:   #0A0A0B;

  /* ---- Accents (orange fire system — main accent is orange) ---- */
  --accent-acid:       #FF5B2E;   /* main accent (orange; legacy token name) */
  --accent-acid-hover: #E84A1F;
  --accent-orange:     #FF5B2E;
  --accent-orange-h:   #E84A1F;
  --accent-orange-l:   #FF8C42;
  --accent-warm:       #E63946;   /* deeper fire-red — Problem differentiation */
  --accent-fire:       #E63946;
  --accent-cool:       #5210B8;   /* parent VELAR violet — now minimal use */
  --accent-mint:       #4ECCB7;   /* the climb / mountain */

  /* ---- Gradients (used at 5 points only) ---- */
  --gradient-orange:        linear-gradient(135deg, #FF5B2E 0%, #FF8C42 100%);
  --gradient-fire:          linear-gradient(135deg, #E63946 0%, #FF5B2E 50%, #FF8C42 100%);
  --gradient-orange-radial: radial-gradient(ellipse at top right, rgba(255,91,46,0.18) 0%, rgba(255,91,46,0.04) 40%, transparent 70%);
  --gradient-cta:           linear-gradient(135deg, #FF5B2E 0%, #E63946 100%);

  /* ---- Lines ---- */
  --border-hair:   rgba(244, 244, 242, 0.08);
  --border-strong: rgba(244, 244, 242, 0.22);
  --border-acid:   rgba(255, 91, 46, 0.40);

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

  /* ---- Fluid type scale ---- */
  --fz-display-xl: clamp(52px, 10vw, 190px);
  --fz-display-lg: clamp(40px, 7vw, 120px);
  --fz-display-md: clamp(30px, 4.4vw, 68px);
  --fz-display-sm: clamp(26px, 3.2vw, 46px);
  --fz-h2:         clamp(26px, 3.2vw, 52px);
  --fz-h3:         clamp(20px, 2.2vw, 32px);
  --fz-h4:         clamp(17px, 1.5vw, 22px);
  --fz-body-lg:    clamp(17px, 1.3vw, 20px);
  --fz-body:       16px;
  --fz-small:      14px;
  --fz-micro:      12px;

  /* ---- Line-height ---- */
  --lh-tight:  0.95;
  --lh-snug:   1.04;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  /* ---- Spacing (8pt) ---- */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-6: 24px;  --space-8: 32px;  --space-12: 48px; --space-16: 64px;
  --space-24: 96px; --space-32: 128px; --space-48: 192px;

  /* ---- Layout ---- */
  --max-w: 1440px;
  --gutter: clamp(24px, 5vw, 80px);

  /* ---- Motion ---- */
  --ease-out-quart:    cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-expo:     cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast:    150ms;
  --dur-base:    320ms;
  --dur-slow:    720ms;
  --dur-glacial: 1200ms;
}

/* =============================================================
   RESET
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fz-body);
  line-height: var(--lh-normal);
  letter-spacing: -0.01em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-acid); color: var(--text-inverse); }

/* noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   LAYOUT HELPERS
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { position: relative; padding-block: clamp(80px, 11vh, 156px); }

/* ---- Double section markers ---- */
.sec-markers {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: clamp(40px, 6vh, 72px);
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.mk-left {
  font-size: var(--fz-small);
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.mk-left .sl { color: var(--accent-acid); padding-inline: 3px; font-weight: 500; }
.mk-right {
  font-size: var(--fz-micro);
  letter-spacing: 0.16em;
  color: var(--text-muted);
  opacity: 0.7;
  white-space: nowrap;
  text-align: right;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fz-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---- Display type (brutalist, uppercase) ---- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.accent-acid { color: var(--accent-acid); }
.accent-warm { color: var(--accent-warm); }
.lead {
  font-size: var(--fz-body-lg);
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  max-width: 64ch;
  text-wrap: pretty;
}

/* ---- Badge / pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fz-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  padding: 6px 11px;
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fz-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 28px;
  border-radius: 0;
  overflow: hidden;
  transition: color var(--dur-base) var(--ease-out-quart),
              border-color var(--dur-base) var(--ease-out-quart);
  isolation: isolate;
}
.btn .btn-label, .btn .btn-arrow { position: relative; z-index: 2; }
.btn-arrow { transition: transform var(--dur-base) var(--ease-out-quart); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { background: var(--gradient-orange); color: var(--text-inverse); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--gradient-fire);
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-base) var(--ease-out-quart);
}
.btn-primary:hover::before { clip-path: inset(0 0 0 0); }

.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--accent-acid);
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-base) var(--ease-out-quart);
}
.btn-ghost:hover { color: var(--text-inverse); border-color: var(--accent-acid); }
.btn-ghost:hover::before { clip-path: inset(0 0 0 0); }

.btn:active { transform: scale(0.98); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .chip:focus-visible,
image-slot:focus-visible {
  outline: 2px solid var(--accent-acid);
  outline-offset: 3px;
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--dur-base) var(--ease-out-quart),
              border-color var(--dur-base) var(--ease-out-quart);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--bg-overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; flex-direction: column; gap: 3px; line-height: 0.9; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand-name .b { color: transparent; -webkit-text-stroke: 1px var(--text-primary); transition: color var(--dur-base) var(--ease-out-quart); }
.brand:hover .b { color: var(--text-primary); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.75;
}

.nav-links { display: flex; align-items: center; gap: var(--space-8); }
.nav-links a {
  font-family: var(--font-mono);
  font-size: var(--fz-small);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: var(--fz-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-acid);
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 1px solid var(--border-acid);
  padding: 11px 18px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-cta:hover { background: var(--accent-acid); color: var(--text-inverse); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text-primary); transition: transform var(--dur-base), opacity var(--dur-base); }
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 92px; padding-bottom: 0;
  position: relative;
  background: var(--gradient-orange-radial);
}
.hero > .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(14px, 3vh, 38px); }
.hero-marker { margin-bottom: clamp(10px, 1.8vh, 24px); }

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, min(6.1vw, 8.4vh), 116px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 16ch;
}
.hero-h1 .word { display: inline-block; }
.js .hero-h1 .word { opacity: 0; transform: translateY(42px); }
.reveal-ready .hero-h1 .word { animation: wordIn var(--dur-slow) var(--ease-out-expo) forwards; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }
.hero-h1 em { font-style: normal; background: var(--gradient-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- hero grid: text 55 / visual 45 ---- */
.hero-grid { display: grid; grid-template-columns: 55% 45%; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(8px, 1.4vh, 22px); }
.hero-sub { max-width: 600px; margin-top: clamp(14px, 2.2vh, 30px); }
.hero-sub .lead { margin-bottom: var(--space-6); }
.hero-sub .lead strong { color: var(--text-primary); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-stat-mobile { display: none; }

/* ---- phone visual ---- */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 560px; }
.phone-parallax { position: relative; z-index: 1; will-change: transform; }
.phone-float { animation: floatPhone 6s ease-in-out infinite; }
.phone {
  position: relative;
  width: clamp(232px, 18vw, 264px);
  height: 532px;
  background: #1A1A1C;
  border-radius: 40px;
  transform: rotate(-6deg);
  box-shadow: 0 48px 96px rgba(255,91,46,0.25), inset 0 0 0 1px rgba(255,255,255,0.06);
  padding: 13px;
}
.js .phone { opacity: 0; }
.reveal-ready .phone { animation: phoneIn 800ms var(--ease-out-expo) forwards; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(34px) rotate(-6deg); } to { opacity: 1; transform: translateY(0) rotate(-6deg); } }
@keyframes floatPhone { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- iOS lock-screen ---- */
.phone-screen.lock {
  width: 100%; height: 100%;
  border-radius: 30px;
  padding: 13px 11px 11px;
  display: flex; flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 26%, rgba(255,91,46,0.16) 0%, rgba(255,91,46,0.04) 38%, transparent 64%),
    linear-gradient(180deg, #0A0A0B 0%, #1A1A1C 100%);
  font-family: -apple-system, system-ui, "Manrope", sans-serif;
}
.ios-status { display: flex; align-items: center; justify-content: space-between; padding: 1px 6px 0; color: #fff; }
.ios-time { font-weight: 600; font-size: 11px; letter-spacing: 0.01em; }
.ios-status-r { display: inline-flex; align-items: center; gap: 5px; }
.ios-sig, .ios-wifi { fill: #fff; }
.ios-sig { width: 15px; height: 10px; }
.ios-wifi { width: 14px; height: 10px; }
.ios-batt { display: inline-flex; align-items: center; gap: 3px; }
.ios-batt-pct { font-weight: 600; font-size: 11px; }
.ios-batt-ic { position: relative; width: 20px; height: 11px; border: 1px solid rgba(255,255,255,0.55); border-radius: 3px; padding: 1.5px; }
.ios-batt-ic::after { content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); width: 2px; height: 4px; background: rgba(255,255,255,0.55); border-radius: 0 1px 1px 0; }
.ios-batt-ic i { display: block; width: 100%; height: 100%; background: #fff; border-radius: 1.5px; }

.ios-lock { text-align: center; padding: 12px 0 10px; color: #fff; }
.ios-date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.01em; opacity: 0.7; margin-bottom: 3px; }
.ios-clock { font-family: var(--font-display); font-weight: 700; font-size: 54px; line-height: 0.92; letter-spacing: -0.03em; }

.ios-notif-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); padding: 0 5px 6px; }
.ios-notifs { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.ios-notif { --rest: 1; display: flex; gap: 8px; align-items: center; flex-shrink: 0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 9px 11px; backdrop-filter: blur(8px); }
.ios-notifs .ios-notif:nth-child(4) { --rest: 0.82; }
.ios-notifs .ios-notif:nth-child(5) { --rest: 0.64; }
.ios-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.ios-ic svg { width: 24px; height: 24px; }
.ios-ic.ig { background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%); }
.ios-ic.ig svg { width: 15px; height: 15px; }
.ios-ic.fb { background: #1877F2; }
.ios-fb-f { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 16px; line-height: 1; color: #fff; margin-top: 1px; }
.ios-ic.gg { background: #fff; }
.ios-ic.gg svg { width: 14px; height: 14px; }
.ios-ntxt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.ios-nr1 { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ios-napp { font-family: var(--font-display); font-weight: 500; font-size: 11.5px; color: #fff; letter-spacing: -0.01em; white-space: nowrap; }
.ios-ntime { font-size: 9.5px; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.ios-nr2 { font-family: var(--font-body); font-size: 10.5px; color: rgba(255,255,255,0.7); }
.ios-namt { color: var(--accent-orange); font-weight: 600; }

.ios-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 16px 22px 4px; }
.ios-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 11px 18px 2px; }
.ios-circ { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); display: grid; place-items: center; opacity: 0.62; }
.ios-circ svg { width: 18px; height: 18px; }

.js .ios-notif { opacity: 0; transform: translateY(-10px); }
.reveal-ready .ios-notif { animation: notifIn 460ms var(--ease-out-expo) forwards; }
.reveal-ready .ios-notif:nth-child(1) { animation-delay: 0.80s; }
.reveal-ready .ios-notif:nth-child(2) { animation-delay: 0.90s; }
.reveal-ready .ios-notif:nth-child(3) { animation-delay: 1.00s; }
.reveal-ready .ios-notif:nth-child(4) { animation-delay: 1.10s; }
.reveal-ready .ios-notif:nth-child(5) { animation-delay: 1.20s; }
@keyframes notifIn { to { opacity: var(--rest); transform: translateY(0); } }

/* ---- floating badges ---- */
.badges-parallax { position: absolute; inset: 0; z-index: 5; pointer-events: none; will-change: transform; }
.hbadge { position: absolute; }
.hb-float { animation: floatBadge 4.2s ease-in-out infinite; }
.b1 .hb-float { animation-duration: 3.8s; animation-delay: 0.4s; }
.b2 .hb-float { animation-duration: 5s; animation-delay: 0.8s; }
.b3 .hb-float { animation-duration: 4.6s; animation-delay: 0.2s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.fb-card { border-radius: 16px; padding: 12px 15px; box-shadow: 0 12px 32px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 6px; transform: rotate(var(--tilt,0deg)); }
.fb-white { background: #F4F4F2; color: #0A0A0B; }
.fb-orange { background: var(--gradient-orange); color: #0A0A0B; flex-direction: row; align-items: center; gap: 13px; }
.fb-orange .fb-col { display: flex; flex-direction: column; gap: 5px; }
.fb-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(10,10,11,0.55); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fb-label.dark { color: rgba(10,10,11,0.62); }
.fb-dot { width: 6px; height: 6px; border-radius: 50%; background: #2CCB6B; flex-shrink: 0; }
.fb-row { display: inline-flex; align-items: baseline; gap: 5px; }
.fb-num { font-family: var(--font-display); font-weight: 700; font-size: 37px; letter-spacing: -0.03em; line-height: 0.9; color: #0A0A0B; font-variant-numeric: tabular-nums; }
.fb-uah { font-size: 32px; }
.fb-arr { font-family: var(--font-body); font-size: 17px; line-height: 1; }
.fb-arr.up { color: var(--accent-orange); }
.fb-arr.down { color: var(--accent-fire); font-size: 14px; margin-left: 2px; }
.fb-spark { width: 34px; height: 19px; flex-shrink: 0; opacity: 0.85; }

.fb-cpl { gap: 5px; }
.fb-cpl .fb-label { justify-content: flex-start; }
.fb-cpl-nums { display: flex; align-items: baseline; gap: 7px; }
.fb-old { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #9A9A98; text-decoration: line-through; }
.fb-to { color: #9A9A98; font-size: 14px; }
.fb-new { font-size: 30px; color: var(--accent-orange); }
.fb-chart { width: 100%; height: 42px; margin-top: 2px; }
.fb-line { stroke-dasharray: var(--len, 320); stroke-dashoffset: var(--len, 320); }
.fb-area, .fb-marker { opacity: 0; }
.fb-cpl.drawn .fb-line { transition: stroke-dashoffset 1.2s var(--ease-out-quart); stroke-dashoffset: 0; }
.fb-cpl.drawn .fb-area { transition: opacity 0.4s ease 1.1s; opacity: 1; }
.fb-cpl.drawn .fb-marker { transition: opacity 0.3s ease 1.2s; opacity: 1; }

.b1 { top: 7%; left: -9%; --tilt: -1.5deg; }
.b2 { top: 41%; right: -1%; --tilt: 2deg; }
.b3 { bottom: 11%; left: -7%; --tilt: -2deg; width: 214px; }
.js .fb-card { opacity: 0; transform: scale(0.85) rotate(var(--tilt,0deg)); }
.reveal-ready .fb-card { animation: badgeIn 420ms var(--ease-out-expo) forwards; }
.reveal-ready .b1 .fb-card { animation-delay: 1.4s; }
.reveal-ready .b2 .fb-card { animation-delay: 1.6s; }
.reveal-ready .b3 .fb-card { animation-delay: 1.8s; }
@keyframes badgeIn { to { opacity: 1; transform: scale(1) rotate(var(--tilt,0deg)); } }

/* marquee */
.marquee { border-top: 1px solid var(--border-hair); border-bottom: 1px solid var(--border-hair); overflow: hidden; padding-block: var(--space-6); margin-top: 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); padding-inline: var(--space-6); white-space: nowrap;
}
.marquee-track .dot { color: var(--accent-acid); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { border-top: 1px solid var(--border-hair); padding-block: var(--space-24) var(--space-12); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-12); align-items: start; }
.footer .brand { margin-bottom: var(--space-4); }
.footer .brand-name { font-size: 28px; }
.footer .brand-sub { font-size: 12px; }
.footer-note { font-family: var(--font-mono); font-size: var(--fz-small); color: var(--text-muted); letter-spacing: 0.02em; margin-top: var(--space-4); }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--fz-micro); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: var(--space-6); }
.footer-col a { display: block; color: var(--text-secondary); margin-bottom: var(--space-3); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--accent-acid); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-24); padding-top: var(--space-6); border-top: 1px solid var(--border-hair); font-family: var(--font-mono); font-size: var(--fz-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.footer-bottom .links { display: flex; gap: var(--space-6); }
.footer-bottom a:hover { color: var(--accent-orange); }

/* =============================================================
   RESPONSIVE (global)
   ============================================================= */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav.menu-open .mobile-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu {
    position: fixed; inset: 78px 0 0 0; background: var(--bg-deep);
    border-top: 1px solid var(--border-hair);
    display: flex; flex-direction: column; padding: var(--gutter); gap: var(--space-6);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur-base) var(--ease-out-quart), opacity var(--dur-base);
  }
  .mobile-menu a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 8vw, 44px); color: var(--text-primary); padding-block: var(--space-2); border-bottom: 1px solid var(--border-hair); }
  .mobile-menu .btn { margin-top: var(--space-6); justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .footer-bottom { flex-direction: column; }
  .sec-markers { flex-direction: column; gap: var(--space-2); }
  .mk-right { text-align: left; }
}
.mobile-menu { display: none; }
@media (max-width: 860px) { .mobile-menu { display: flex; } }

@media (max-width: 520px) {
  .marquee-track { animation-duration: 60s; }
}

/* ---- hero visual responsive ---- */
@media (max-width: 1279px) and (min-width: 1024px) {
  .hero-visual { min-height: 500px; }
  .phone { width: 232px; height: 488px; border-radius: 36px; padding: 12px; }
  .phone-screen.lock { border-radius: 28px; }
  .ios-clock { font-size: 48px; }
  .b1 { left: -6%; } .b2 { right: 0%; } .b3 { left: -5%; width: 198px; }
  .fb-num { font-size: 33px; } .fb-uah { font-size: 29px; } .fb-new { font-size: 27px; }
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(40px, 6vh, 72px); }
  .hero-sub { max-width: none; }
  .hero-visual { min-height: 0; }
  .badges-parallax { display: none; }
  .phone { transform: rotate(-3deg); }
  @keyframes phoneIn { from { opacity: 0; transform: translateY(34px) rotate(-3deg); } to { opacity: 1; transform: translateY(0) rotate(-3deg); } }
}
@media (max-width: 767px) {
  .hero-visual { display: none; }
  .hero-stat-mobile { display: flex; align-items: baseline; gap: 14px; margin-top: var(--space-8); }
  .hsm-num { font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 0.85; letter-spacing: -0.04em; background: var(--gradient-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hsm-lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); line-height: 1.3; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .hero-h1 .word { opacity: 1; transform: none; }
  .js .phone { opacity: 1; transform: rotate(-6deg); }
  .js .ios-notif { opacity: var(--rest); transform: none; }
  .js .fb-card { opacity: 1; transform: rotate(var(--tilt,0deg)); }
}
