/* ============================================================
   Vicinic — Landing page
   Palette: #5B9DF9 → #3B82F6 → #2563EB on dark navy #0F1724
   ============================================================ */

:root {
  --navy-900: #0A0E18;
  --navy-800: #0F1724;
  --navy-700: #141B2B;
  --surface: #161E30;
  --surface-2: #1C2538;
  --line: rgba(255, 255, 255, 0.08);
  --blue-300: #93C5FD;
  --blue-400: #5B9DF9;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --green: #10B981;
  --text: #EAF1FF;
  --text-dim: #9AA7BF;
  --grad: linear-gradient(135deg, #5B9DF9 0%, #3B82F6 50%, #2563EB 100%);
  --grad-soft: linear-gradient(135deg, #93C5FD, #5B9DF9);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy-800);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: 'Sora', sans-serif; letter-spacing: -0.02em; line-height: 1.08; }

a { color: inherit; text-decoration: none; }

.grad-text {
  background: linear-gradient(100deg, #93C5FD, #5B9DF9, #2563EB, #93C5FD);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 250% 0; } }

/* ---------------- Ambient background ---------------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; transform: translateZ(0); will-change: transform; background:
    radial-gradient(1200px 800px at 80% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 700px at 10% 10%, rgba(91, 157, 249, 0.12), transparent 55%),
    var(--navy-800); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.38; will-change: transform; animation: drift 22s var(--ease) infinite alternate; }
.blob-1 { width: 520px; height: 520px; background: #3B82F6; top: -140px; right: -80px; }
.blob-2 { width: 460px; height: 460px; background: #5B9DF9; top: 40%; left: -140px; animation-delay: -7s; }
.blob-3 { width: 380px; height: 380px; background: #2563EB; bottom: -120px; right: 20%; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px, 50px) scale(1.15); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 40%, transparent 75%);
  opacity: 0.5;
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(15, 23, 36, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(91,157,249,0.12); border: 1px solid var(--line); }
.brand-name { font-size: 1.25rem; font-weight: 700; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
  border-radius: 999px; padding: 11px 22px; transition: transform 0.2s var(--ease), box-shadow 0.3s; cursor: pointer; }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.nav-cta { font-size: 0.92rem; }

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px;
  padding: 160px clamp(20px, 5vw, 64px) 80px;
  max-width: 1280px; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue-300);
  background: rgba(91,157,249,0.1); border: 1px solid rgba(91,157,249,0.25);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6); animation: pulse 2s infinite; }
.pulse-dot.sm { width: 6px; height: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 22px; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-dim); max-width: 520px; margin-bottom: 34px; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badges.center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0B0F19;
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 20px 11px 16px;
  color: var(--text); transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.3s;
}
.store-badge:hover { transform: translateY(-3px); border-color: rgba(91,157,249,0.5);
  box-shadow: 0 12px 40px -12px rgba(59,130,246,0.6); }
.store-badge svg { flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 0.68rem; color: var(--text-dim); font-weight: 500; }
.store-badge strong { font-size: 1.12rem; font-weight: 700; font-family: 'Sora', sans-serif; }

.trust-row { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy-800);
  margin-left: -10px; background: var(--grad); background-size: 200%;
  background-position: calc(var(--i) * 40%) 50%; }
.avatars span:first-child { margin-left: 0; }
.trust-row p { font-size: 0.9rem; color: var(--text-dim); }

/* ---------------- Phone mockup ---------------- */
.hero-visual { position: relative; display: grid; place-items: center; perspective: 1400px; }
.phone-wrap { transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); transition: transform 0.5s var(--ease);
  transform-style: preserve-3d; will-change: transform; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px;
  background: #0b1120;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.8), inset 0 0 0 10px #05070d;
  padding: 12px;
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #05070d; border-radius: 0 0 16px 16px; z-index: 5; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: #0c1322; }

.map-face { position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, #16233c, #0b1322 70%); }
.map-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(91,157,249,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(91,157,249,0.08) 1px, transparent 1px);
  background-size: 38px 38px; }
.map-roads { position: absolute; inset: 0; opacity: 0.5; }
.map-roads::before, .map-roads::after { content: ""; position: absolute; background: rgba(147,197,253,0.14); }
.map-roads::before { top: 45%; left: -10%; right: -10%; height: 14px; transform: rotate(-8deg); }
.map-roads::after { top: -10%; bottom: -10%; left: 58%; width: 12px; transform: rotate(6deg); }

/* radar */
.radar { position: absolute; top: 48%; left: 46%; }
.radar-ring { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(91,157,249,0.6); transform: translate(-50%,-50%);
  animation: radar 2.6s var(--ease) infinite; animation-delay: var(--delay, 0s); }
@keyframes radar { 0% { width: 20px; height: 20px; opacity: 0.9; } 100% { width: 230px; height: 230px; opacity: 0; } }
.you-dot { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; transform: translate(-50%,-50%);
  border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(59,130,246,0.25), 0 0 20px rgba(59,130,246,0.8); }

/* map pins */
.map-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-100%); }
.map-pin i { display: grid; place-items: center; width: 40px; height: 40px; font-style: normal; font-size: 18px;
  background: rgba(16,22,38,0.92); border: 1px solid rgba(91,157,249,0.4); border-radius: 14px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.7); }
@keyframes pinbob { 0%,100% { transform: translate(-50%,-100%) translateY(0); } 50% { transform: translate(-50%,-100%) translateY(-7px); } }

/* live card */
.live-card { position: absolute; bottom: 20px; left: 16px; right: 16px;
  background: rgba(16,22,38,0.82); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px; animation: cardrise 0.8s var(--ease) 0.6s both; }
@keyframes cardrise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--green); }
.live-card strong { font-size: 0.98rem; font-family: 'Sora', sans-serif; }
.live-card small { font-size: 0.78rem; color: var(--text-dim); }

.glow-ring { position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 60%); filter: blur(40px); z-index: -1; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px,5vw,64px) 40px; }
.stat { text-align: center; padding: 26px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); }
.stat .num { display: block; font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); background: var(--grad-soft);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat label { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }

/* ---------------- Sections ---------------- */
section.features, section.how, section.cta { max-width: 1200px; margin: 0 auto; padding: 90px clamp(20px,5vw,64px); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card { position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s; }
.feature-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(91,157,249,0.14), transparent 70%);
  opacity: 0; transition: opacity 0.4s; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(91,157,249,0.4); }
.feature-card:hover::before { opacity: 1; }
.ficon { font-size: 1.9rem; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 16px; background: rgba(91,157,249,0.1); border: 1px solid var(--line); margin-bottom: 18px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.96rem; }

/* How */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
.step { text-align: center; padding: 20px; }
.step-no { display: inline-block; font-family: 'Sora',sans-serif; font-weight: 800; font-size: 1rem;
  width: 52px; height: 52px; line-height: 52px; border-radius: 50%; margin-bottom: 16px;
  color: var(--blue-300); background: rgba(91,157,249,0.1); border: 1px solid rgba(91,157,249,0.3); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }
.step-line { height: 2px; background: linear-gradient(90deg, rgba(91,157,249,0.5), rgba(91,157,249,0.05));
  border-radius: 2px; min-width: 40px; }

/* CTA */
.cta { }
.cta-inner { position: relative; text-align: center; padding: 70px 40px; border-radius: 32px;
  background: linear-gradient(180deg, rgba(37,99,235,0.14), rgba(255,255,255,0.02));
  border: 1px solid rgba(91,157,249,0.25); overflow: hidden; }
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin: 14px 0 14px; }
.cta-glow { top: -120px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); padding: 48px clamp(20px,5vw,64px);
  max-width: 1200px; margin: 40px auto 0; display: grid; gap: 14px; place-items: center; text-align: center; }
.footer .brand { justify-content: center; }
.foot-tag { color: var(--text-dim); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--text); }
.footer small { color: #5c6880; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 130px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .store-badges, .trust-row { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .phone { width: 260px; height: 530px; }
  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Extra animations & flourishes
   ============================================================ */

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, #5B9DF9, #2563EB); box-shadow: 0 0 12px rgba(59,130,246,0.7);
  transition: width 0.1s linear; }

/* Animated nav underline */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--grad-soft); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Store badge shine sweep */
.store-badge { position: relative; overflow: hidden; }
.store-badge::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease); }
.store-badge:hover::after { left: 140%; }

/* Rotating conic glow ring behind phone */
.hero-visual::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(91,157,249,0.22), transparent 40%, rgba(37,99,235,0.2), transparent 70%);
  filter: blur(20px); z-index: -2; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Staggered pin pop-in (plays once when hero visual revealed) */
.map-pin { opacity: 0; }
.hero-visual.in .map-pin { animation: pinpop 0.6s var(--ease) forwards, pinbob 4s ease-in-out infinite; }
.hero-visual.in .map-pin.p1 { animation-delay: 0.5s, 1.1s; }
.hero-visual.in .map-pin.p2 { animation-delay: 0.65s, 1.25s; }
.hero-visual.in .map-pin.p3 { animation-delay: 0.8s, 1.4s; }
.hero-visual.in .map-pin.p4 { animation-delay: 0.95s, 1.55s; }
@keyframes pinpop {
  0% { opacity: 0; transform: translate(-50%,-70%) scale(0.4); }
  70% { transform: translate(-50%,-108%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%,-100%) scale(1); }
}

/* Live activity ticker */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.02); margin-top: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 42px; width: max-content; padding: 14px 0;
  animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dim);
  font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Gentle entrance for the hero eyebrow pill */
.hero .eyebrow { animation: slidefade 0.8s var(--ease) both; }
@keyframes slidefade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
  .map-pin { opacity: 1 !important; }
}

/* ============================================================
   Legal / Privacy page
   ============================================================ */
.legal { max-width: 860px; margin: 0 auto; padding: 150px clamp(20px,5vw,40px) 80px; }
.legal-head { text-align: center; margin-bottom: 20px; }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 14px; }
.legal-meta { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.legal-meta span { font-size: 0.85rem; color: var(--text-dim); background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

.toc { margin: 36px auto 48px; padding: 22px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); }
.toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-300);
  margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; align-items: baseline; color: var(--text-dim); font-size: 0.95rem;
  padding: 6px 0; transition: color 0.2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: 'Sora',sans-serif; font-weight: 700;
  font-size: 0.8rem; color: var(--blue-400); }
.toc a:hover { color: var(--text); }

.legal-body h2 { font-size: 1.5rem; margin: 40px 0 12px; scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--text-dim); margin-bottom: 14px; }
.legal-body ul { list-style: none; display: grid; gap: 10px; margin: 6px 0 18px; }
.legal-body li { position: relative; padding-left: 26px; color: var(--text-dim); }
.legal-body li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--grad); }
.legal-body li b, .legal-body p b { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--blue-300); }
.legal-body a:hover { text-decoration: underline; }
.legal-contact { margin-top: 10px; padding: 22px 26px; border-radius: var(--radius);
  background: rgba(91,157,249,0.06); border: 1px solid rgba(91,157,249,0.25); }
.back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px;
  color: var(--text-dim); font-weight: 600; transition: color 0.2s; }
.back-home:hover { color: var(--text); }

@media (max-width: 560px) { .toc ol { grid-template-columns: 1fr; } }
