/* =====================================================================
   VELOX — Delivery SaaS landing
   Hand-crafted design system. Dark base + red neon glass.
   Fonts: Clash Display (display) · Satoshi (body) · JetBrains Mono (code)
   ===================================================================== */

:root {
  /* Surfaces */
  --bg:        #070709;
  --bg-2:      #0c0c11;
  --bg-3:      #111119;
  --surface:   rgba(255, 255, 255, 0.026);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  /* Brand red */
  --red:       #ff2d46;
  --red-soft:  #ff5c6e;
  --red-deep:  #c40c2a;
  --red-ink:   #7a0418;
  --glow:      rgba(255, 45, 70, 0.45);
  --glow-soft: rgba(255, 45, 70, 0.16);

  /* Text */
  --text:    #f6f6f8;
  --muted:   #9a9aa9;
  --muted-2: #6c6c7a;

  /* Type */
  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-body:    'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1200px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red-soft);
  padding: 7px 14px; border-radius: 999px;
  background: var(--glow-soft);
  border: 1px solid rgba(255, 45, 70, 0.22);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }

.section-head { max-width: 660px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grad-text {
  background: linear-gradient(120deg, #fff 10%, var(--red-soft) 55%, var(--red) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.red-text { color: var(--red-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.96rem; padding: 13px 24px; border-radius: 13px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 34px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px -12px var(--glow); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); backdrop-filter: blur(12px); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Glass card ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 6px 20px -6px var(--glow), inset 0 1px 0 rgba(255,255,255,0.35);
  position: relative; overflow: hidden;
}
.brand-mark svg { width: 21px; height: 21px; color: #fff; position: relative; z-index: 1; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.94rem; color: var(--muted); font-weight: 500; transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .login { font-size: 0.94rem; color: var(--muted); font-weight: 500; padding: 9px 6px; transition: color 0.25s; }
.nav-cta .login:hover { color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border-2); color: var(--text); }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

.mobile-menu {
  position: fixed; inset: 74px 0 auto 0; z-index: 99;
  background: rgba(8,8,12,0.96); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 22px 24px 30px; display: none; flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; animation: drop 0.35s var(--ease); }
.mobile-menu a { padding: 13px 4px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 14px; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: 168px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg .grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.blob.b1 { width: 540px; height: 540px; top: -180px; left: 48%; transform: translateX(-50%); background: radial-gradient(circle, var(--red) 0%, transparent 68%); opacity: 0.32; animation: float 14s ease-in-out infinite; }
.blob.b2 { width: 380px; height: 380px; top: 120px; left: -120px; background: radial-gradient(circle, var(--red-deep) 0%, transparent 70%); opacity: 0.28; animation: float 18s ease-in-out infinite reverse; }
.blob.b3 { width: 320px; height: 320px; top: 80px; right: -100px; background: radial-gradient(circle, #ff7a3c 0%, transparent 72%); opacity: 0.16; animation: float 16s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,26px); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 24px 0 22px; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.hero-stats .stat .num span { color: var(--red-soft); }
.hero-stats .stat .lbl { font-size: 0.82rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* Hero dashboard visual */
.hero-visual { position: relative; }
.dash {
  border-radius: var(--radius-lg); padding: 16px; position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,45,70,0.05);
  backdrop-filter: blur(16px);
}
.dash-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 14px; }
.dash-dots { display: flex; gap: 7px; }
.dash-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); display: block; }
.dash-dots i:first-child { background: var(--red); }
.dash-title { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.dash-live { font-size: 0.72rem; color: var(--red-soft); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.dash-live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

#heroMap { height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.dash-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; }
.dash-tile .k { font-size: 0.68rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-tile .v { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-top: 3px; }
.dash-tile .v small { font-size: 0.7rem; color: var(--red-soft); font-family: var(--font-body); }

/* Floating order chip */
.order-chip {
  position: absolute; left: -28px; bottom: 56px; z-index: 3;
  display: flex; align-items: center; gap: 11px; padding: 12px 15px;
  background: rgba(13,13,18,0.92); border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: 0 22px 50px -20px rgba(0,0,0,0.85); backdrop-filter: blur(14px);
  animation: floatchip 5s ease-in-out infinite;
}
@keyframes floatchip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.order-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }
.order-chip .ic svg { width: 17px; height: 17px; }
.order-chip .t1 { font-size: 0.82rem; font-weight: 600; }
.order-chip .t2 { font-size: 0.7rem; color: var(--muted); }

/* =====================================================================
   MARQUEE / TRUST
   ===================================================================== */
.trust { padding: 30px 0 10px; }
.trust p { text-align: center; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--muted-2); opacity: 0.65; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =====================================================================
   FEATURES
   ===================================================================== */
.features { padding: 100px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 30px 26px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s;
}
.feature::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow-soft), transparent 60%);
  pointer-events: none;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(255,45,70,0.35); background: var(--surface-2); }
.feature:hover::after { opacity: 1; }
.feature .ficon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255,45,70,0.18), rgba(255,45,70,0.04));
  border: 1px solid rgba(255,45,70,0.25); color: var(--red-soft);
}
.feature .ficon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.96rem; }
.feature.wide { grid-column: span 2; }

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.how { padding: 100px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.step { padding: 32px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step .n { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px rgba(255,45,70,0.55); margin-bottom: 18px; }
.step h3 { font-size: 1.22rem; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step .arrow { position: absolute; top: 50px; right: -19px; color: var(--red); z-index: 3; opacity: 0.6; }
.step .arrow svg { width: 26px; height: 26px; }
.step:last-child .arrow { display: none; }

/* =====================================================================
   DEVELOPER / API
   ===================================================================== */
.api { padding: 100px 0; }
.api-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 50px; align-items: center; }
.api-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.api-list li { display: flex; gap: 14px; align-items: flex-start; }
.api-list .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,45,70,0.14); border: 1px solid rgba(255,45,70,0.3); color: var(--red-soft); margin-top: 2px; }
.api-list .tick svg { width: 15px; height: 15px; }
.api-list b { font-weight: 600; }
.api-list p { color: var(--muted); font-size: 0.92rem; }

.code-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2); background: #0a0a0f; box-shadow: 0 40px 90px -45px rgba(0,0,0,0.9); }
.code-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
.code-top .tabs { display: flex; gap: 7px; }
.code-top .tabs i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); display: block; }
.code-top .tabs i:first-child { background: var(--red); }
.code-top .fname { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.code-copy { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); transition: 0.25s; }
.code-copy:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.code-copy svg { width: 13px; height: 13px; }
pre { padding: 22px 20px; overflow-x: auto; }
code, pre { font-family: var(--font-mono); font-size: 0.83rem; line-height: 1.75; }
.tok-key { color: var(--red-soft); }
.tok-str { color: #7ee0a8; }
.tok-num { color: #ffb86b; }
.tok-com { color: var(--muted-2); }
.tok-fn { color: #8ab4ff; }

/* =====================================================================
   DRIVER APP SHOWCASE
   ===================================================================== */
.app { padding: 100px 0; }
.app-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.phone {
  width: 252px; border-radius: 38px; padding: 11px;
  background: linear-gradient(160deg, #1a1a22, #0a0a0e);
  border: 1px solid var(--border-2);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.9);
  position: relative;
}
.phone.back { position: absolute; transform: rotate(-9deg) translateX(-72px) scale(0.9); opacity: 0.75; filter: saturate(0.85); }
.phone.front { position: relative; z-index: 2; transform: rotate(4deg) translateX(40px); }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 88px; height: 22px; background: #050507; border-radius: 0 0 14px 14px; z-index: 3; }
.screen { border-radius: 28px; overflow: hidden; background: #0c0c12; aspect-ratio: 9/19.2; position: relative; }
.screen-top { height: 130px; background: linear-gradient(150deg, var(--red), var(--red-ink)); padding: 40px 18px 0; position: relative; }
.screen-top .greet { font-size: 0.72rem; color: rgba(255,255,255,0.8); }
.screen-top .name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: #fff; }
.screen-top .toggle { position: absolute; right: 18px; top: 44px; font-size: 0.62rem; background: rgba(255,255,255,0.22); color: #fff; padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.screen-body { padding: 16px 14px; }
.s-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 13px; margin-top: -34px; position: relative; z-index: 2; box-shadow: 0 16px 30px -16px rgba(0,0,0,0.7); }
.s-card .row { display: flex; justify-content: space-between; align-items: center; }
.s-tag { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-soft); background: var(--glow-soft); padding: 4px 8px; border-radius: 6px; }
.s-amt { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.s-route { margin-top: 12px; font-size: 0.7rem; }
.s-route .pt { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); padding: 5px 0; }
.s-route .pt .pin { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.s-route .pt .pin.a { background: #7ee0a8; box-shadow: 0 0 8px #7ee0a8; }
.s-route .pt .pin.b { background: var(--red); box-shadow: 0 0 8px var(--red); }
.s-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.s-actions .sa { text-align: center; font-size: 0.68rem; font-weight: 600; padding: 9px; border-radius: 9px; }
.s-actions .sa.acc { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }
.s-actions .sa.rej { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); }
.s-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 13px; }
.s-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 6px; text-align: center; }
.s-stat .sv { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.s-stat .sl { font-size: 0.52rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.app-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store-badge { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); }
.store-badge svg { width: 22px; height: 22px; }
.store-badge .sb1 { font-size: 0.62rem; color: var(--muted); }
.store-badge .sb2 { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }

/* =====================================================================
   PORTALS SHOWCASE
   ===================================================================== */
.portals { padding: 100px 0; }
.portal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.portal { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s; }
.portal:hover { transform: translateY(-5px); border-color: rgba(255,45,70,0.3); }
.portal .pv { height: 168px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.portal .pbody { padding: 22px 22px 26px; }
.portal .pbody .ptag { font-size: 0.72rem; color: var(--red-soft); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.portal .pbody h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.portal .pbody p { color: var(--muted); font-size: 0.9rem; }
/* mini mock backgrounds */
.mock { position: absolute; inset: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); padding: 12px; overflow: hidden; }
.mock .bar { height: 7px; border-radius: 4px; background: var(--surface-2); margin-bottom: 7px; }
.mock .bar.r { background: linear-gradient(90deg, var(--red), transparent); width: 55%; }
.mock .chips { display: flex; gap: 6px; margin-top: 10px; }
.mock .chips i { flex: 1; height: 30px; border-radius: 7px; background: var(--surface-2); display: block; }
.mock .chips i.hot { background: linear-gradient(135deg, rgba(255,45,70,0.4), rgba(255,45,70,0.1)); border: 1px solid rgba(255,45,70,0.3); }

/* =====================================================================
   PRICING
   ===================================================================== */
.pricing { padding: 100px 0; }
.price-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -32px 0 50px; }
.price-toggle span { font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.price-toggle span.active { color: var(--text); }
.switch { width: 52px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); position: relative; transition: background 0.3s; }
.switch.on { background: linear-gradient(135deg, var(--red), var(--red-deep)); border-color: transparent; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left 0.3s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.switch.on .knob { left: 26px; }
.save-badge { font-size: 0.72rem; color: var(--red-soft); background: var(--glow-soft); border: 1px solid rgba(255,45,70,0.25); padding: 3px 9px; border-radius: 999px; font-weight: 600; }

.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.plan { padding: 34px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; position: relative; }
.plan.popular { background: linear-gradient(180deg, rgba(255,45,70,0.1), var(--surface)); border-color: rgba(255,45,70,0.4); box-shadow: 0 30px 70px -40px var(--glow); }
.plan .pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep)); padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 20px -8px var(--glow); }
.plan .pname { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.plan .pdesc { color: var(--muted); font-size: 0.86rem; margin: 6px 0 20px; min-height: 38px; }
.plan .pprice { font-family: var(--font-display); font-weight: 600; font-size: 2.9rem; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 4px; }
.plan .pprice .cur { font-size: 1.3rem; color: var(--muted); }
.plan .pprice .per { font-size: 0.86rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.plan .pfeat { margin: 24px 0; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.plan .pfeat li { display: flex; gap: 11px; align-items: center; font-size: 0.92rem; color: var(--muted); }
.plan .pfeat li svg { width: 17px; height: 17px; color: var(--red-soft); flex: none; }
.plan .pfeat li.muted { opacity: 0.4; }
.plan .pfeat li.muted svg { color: var(--muted-2); }
.plan .btn { width: 100%; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.quotes { padding: 100px 0; }
.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.quote { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.quote .stars { color: var(--red); letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 14px; }
.quote p { font-size: 1rem; line-height: 1.7; margin-bottom: 22px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.quote .wn { font-weight: 600; font-size: 0.92rem; }
.quote .wr { font-size: 0.8rem; color: var(--muted); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { padding: 100px 0; }
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--text); }
.faq-q .pm { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border-2); display: grid; place-items: center; transition: 0.3s; color: var(--red-soft); }
.faq-q .pm svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.faq-item.open .pm { background: linear-gradient(135deg, var(--red), var(--red-deep)); border-color: transparent; color: #fff; }
.faq-item.open .pm svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 4px 24px; color: var(--muted); font-size: 0.98rem; }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta { padding: 60px 0 110px; }
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 70px 50px; text-align: center;
  background: linear-gradient(135deg, var(--red-deep), var(--red-ink));
  border: 1px solid rgba(255,45,70,0.4);
  box-shadow: 0 40px 100px -40px var(--glow);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 70%); }
.cta-band .glow2 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(255,160,170,0.6), transparent 65%); top: -200px; left: 50%; transform: translateX(-50%); filter: blur(50px); opacity: 0.5; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 520px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: #fff; color: var(--red-deep); box-shadow: 0 14px 40px -12px rgba(0,0,0,0.5); }
.cta-band .btn-primary:hover { box-shadow: 0 22px 56px -14px rgba(0,0,0,0.6); }
.cta-band .btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: #fff; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--border); padding: 70px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; max-width: 300px; margin: 16px 0 22px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--muted); transition: 0.3s; }
.foot-social a:hover { color: var(--text); border-color: var(--red); background: var(--glow-soft); }
.foot-social svg { width: 18px; height: 18px; }
.foot-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 18px; }
.foot-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 6px 0; transition: color 0.25s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 14px; }
.foot-bottom p { font-size: 0.86rem; color: var(--muted-2); }
.foot-bottom .links { display: flex; gap: 22px; }
.foot-bottom .links a { font-size: 0.86rem; color: var(--muted-2); }
.foot-bottom .links a:hover { color: var(--text); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
/* Hidden initial state only applies when JS is available (progressive enhancement).
   Without JS, content stays fully visible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

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

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 520px; }
  .api-grid, .app-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature-grid, .steps, .portal-grid, .price-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .step .arrow { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .login, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; }
  .hero { padding: 130px 0 70px; }
  .feature-grid, .steps, .portal-grid, .price-grid, .quote-grid { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .plan.popular { transform: none; }
  .order-chip { left: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 50px 26px; }
  .hero-stats { gap: 26px; }
}
@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
  .phone.back { display: none; }
  .phone.front { transform: none; }
}

/* =====================================================================
   HERO PARCEL/RIDE TOGGLE
   ===================================================================== */
.hero-modes { display: inline-flex; gap: 6px; padding: 5px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px; margin-bottom: 22px; }
.hero-modes button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 10px; font-weight: 600; font-size: 0.92rem; color: var(--muted); transition: 0.25s; }
.hero-modes button svg { width: 17px; height: 17px; }
.hero-modes button.active { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff;
  box-shadow: 0 8px 20px -10px var(--glow); }

/* =====================================================================
   MOBILE APP TAB BAR (native-app feel on phones)
   ===================================================================== */
.mobile-tabbar { display: none; }
@media (max-width: 720px) {
  .mobile-tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    background: rgba(13,13,18,0.86); backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%); border: 1px solid var(--border-2);
    border-radius: 20px; padding: 8px; justify-content: space-around;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.85);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .mobile-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 0.62rem; font-weight: 600; color: var(--muted); padding: 6px 14px; border-radius: 13px; transition: 0.2s; }
  .mobile-tabbar a svg { width: 20px; height: 20px; }
  .mobile-tabbar a.active { color: var(--red-soft); background: var(--glow-soft); }
  body { padding-bottom: 92px; }
  .hero-modes { width: 100%; }
  .hero-modes button { flex: 1; justify-content: center; padding: 11px 8px; }
}

/* =====================================================================
   HOW-IT-WORKS — illustrated steps
   ===================================================================== */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hstep { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.hstep:hover { transform: translateY(-5px); border-color: rgba(255,45,70,0.3); }
.hvis { height: 170px; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; position: relative;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,45,70,0.08), var(--bg-2));
  display: grid; place-items: center; margin-bottom: 20px; }
.hmeta .hn { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--red-soft);
  letter-spacing: 0.1em; }
.hmeta h3 { font-size: 1.2rem; margin: 4px 0 8px; }
.hmeta p { color: var(--muted); font-size: 0.94rem; }

/* Step 1 — mini booking card */
.mini-book { width: 80%; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 13px; box-shadow: 0 18px 40px -20px rgba(0,0,0,0.8); }
.mb-row { display: flex; align-items: center; gap: 9px; font-size: 0.74rem; color: var(--muted); padding: 4px 0; }
.mdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mdot.a { background: #7ee0a8; box-shadow: 0 0 7px #7ee0a8; }
.mdot.b { background: var(--red); box-shadow: 0 0 7px var(--red); }
.mb-veh { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; padding: 7px 9px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; }
.mb-v { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--text); }
.mb-v svg { width: 15px; height: 15px; color: var(--red-soft); }
.mb-veh b { font-family: var(--font-display); font-size: 0.92rem; }
.mb-btn { text-align: center; font-size: 0.74rem; font-weight: 600; color: #fff; padding: 9px; border-radius: 9px;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); box-shadow: 0 8px 18px -8px var(--glow); }

/* Step 2 — notification */
.mini-notif { width: 82%; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 14px; padding: 14px;
  display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.8); }
.mn-bell { position: relative; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }
.mn-bell svg { width: 19px; height: 19px; }
.mn-bell .ping { position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--red); opacity: 0.7;
  animation: mping 1.8s ease-out infinite; }
@keyframes mping { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(1.35); opacity: 0; } }
.mn-body b { font-size: 0.82rem; font-weight: 600; }
.mn-body span { display: block; font-size: 0.7rem; color: var(--muted); }
.mn-acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 2px; }
.mn-acts span { text-align: center; font-size: 0.74rem; font-weight: 600; padding: 8px; border-radius: 9px; }
.mn-acts .rej { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); }
.mn-acts .acc { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }

/* Step 3 — mini live map */
.mini-map { position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 26px 26px; background-color: var(--bg-2); }
.mm-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg-2); }
.mm-pin.a { left: 20px; bottom: 18px; background: #7ee0a8; box-shadow: 0 0 0 4px rgba(126,224,168,0.2); }
.mm-pin.b { right: 14px; top: 16px; background: var(--red); box-shadow: 0 0 0 4px var(--glow-soft); }
.mm-cap { position: absolute; left: 52%; top: 38%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(255,45,70,0.6);
  animation: mmfloat 3s ease-in-out infinite; }
.mm-cap svg { width: 14px; height: 14px; }
@keyframes mmfloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-6px,-7px); } }
.mm-eta { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 600; color: var(--text); padding: 6px 11px; border-radius: 999px;
  background: rgba(8,8,12,0.85); border: 1px solid var(--border-2); backdrop-filter: blur(8px); }
.mm-eta .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }

@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* =====================================================================
   PROFILE CHIP (signed-in)
   ===================================================================== */
.vx-profile { position: relative; }
.vx-profile-btn { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); transition: 0.2s; }
.vx-profile-btn:hover { background: rgba(255,255,255,0.08); }
.vx-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.vx-av.lg { width: 44px; height: 44px; font-size: 1rem; }
.vx-pn { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.vx-chev { width: 15px; height: 15px; color: var(--muted); transition: transform 0.25s; }
.vx-profile.open .vx-chev { transform: rotate(180deg); }
.vx-profile-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 248px; z-index: 200;
  background: rgba(13,13,18,0.96); backdrop-filter: blur(20px); border: 1px solid var(--border-2);
  border-radius: 16px; padding: 8px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.22s, transform 0.22s; }
.vx-profile.open .vx-profile-menu { opacity: 1; transform: none; pointer-events: auto; }
.vx-pm-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.vx-pm-id b { display: block; font-weight: 600; font-size: 0.95rem; }
.vx-pm-id span { font-size: 0.8rem; color: var(--muted); }
.vx-pm-role { display: inline-block; margin: 0 10px 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red-soft); background: var(--glow-soft);
  border: 1px solid rgba(255,45,70,0.25); padding: 4px 9px; border-radius: 999px; }
.vx-pm-link { display: block; }
.vx-pm-link > a, .vx-pm-link button, a.vx-pm-link { display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 10px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: 0.18s; text-align: left; }
a.vx-pm-link:hover, .vx-pm-link button:hover { background: var(--surface-2); color: var(--text); }
.vx-pm-link svg { width: 17px; height: 17px; flex: none; }
.vx-pm-link.logout { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.vx-pm-link.logout button { color: var(--red-soft); }
.track-profile { position: fixed; top: 18px; right: 18px; z-index: 600; }
