/* =========================================================================
   CargoAI — landing styles
   Direction: "freight dispatch terminal" — industrial display type,
   monospaced data, orange signal accent, a route line running the page.
   Design tokens live in :root.
   ========================================================================= */

:root {
  /* color */
  --bg:        #080c15;
  --bg-2:      #0b1120;
  --surface:   rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .14);
  --text:      #eef2f8;
  --muted:     #93a0b4;
  --muted-2:   #5e6c80;
  --accent:    #f5a02b;   /* signal orange — the in-app action color */
  --accent-2:  #ffbe5c;
  --green:     #34c77b;
  --blue:      #5847ff;   /* CargoAI brand blue (lifted for dark-bg legibility) */
  --cream:     #f0e0c0;   /* CargoAI brand cream */

  /* type */
  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SF Mono", monospace;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* layout */
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #1a1205; }

/* ============ shared type ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow__marker {
  display: inline-grid; place-items: center;
  width: 30px; height: 22px; border: 1px solid var(--accent);
  border-radius: 4px; color: var(--accent);
  font-size: .68rem; letter-spacing: 0;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.04;
  letter-spacing: -.02em; color: var(--text);
}
.section-title em {
  font-style: normal; color: var(--accent);
}

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  padding: 11px 20px; border-radius: 10px; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn--accent {
  background: var(--accent); color: #1a1205;
  box-shadow: 0 6px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 75%, transparent); }

/* store buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-buttons--center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 17px; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text); transition: transform .2s var(--ease), border-color .2s, background .2s;
  backdrop-filter: blur(8px);
}
.store-btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(255,255,255,.08); }
.store-btn__icon { width: 26px; height: 26px; flex: none; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1.06rem; }
.store-btn__text small { font-weight: 500; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ============ header ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; display: block; }
.footer__brand .brand__logo { height: 32px; }
.header__nav { display: flex; gap: 32px; }
.header__nav a {
  font-size: .92rem; font-weight: 600; color: var(--muted);
  position: relative; transition: color .2s;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.header__nav a:hover { color: var(--text); }
.header__nav a:hover::after { width: 100%; }
@media (max-width: 760px) { .header__nav { display: none; } }

/* ============ hero ============ */
.hero { position: relative; padding-top: 132px; padding-bottom: 0; overflow: hidden; }
.hero__glow {
  position: absolute; top: -10%; left: 50%; width: 80vw; height: 70vh;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  filter: blur(30px); opacity: .55; pointer-events: none; will-change: transform;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0, #000 35%, transparent 78%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; padding-bottom: 60px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 100px;
  background: var(--surface); margin-bottom: 26px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 70%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent);} 70% { box-shadow: 0 0 0 9px transparent;} 100% { box-shadow: 0 0 0 0 transparent;} }

.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: .98;
  letter-spacing: -.035em; margin-bottom: 24px;
}
.hero__title span { display: block; }
.hero__title--accent {
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--cream));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero__note { margin-top: 18px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted-2); letter-spacing: .02em; }

/* hero device stage — the FRONT phone sits in normal flow and defines the
   stage height; the back phone + badges are positioned relative to it, so the
   composition never overflows regardless of screenshot dimensions. */
.hero__stage { position: relative; justify-self: center; width: min(300px, 70vw); margin-block: 10px; }
.device {
  position: relative; border-radius: 38px;
  background: linear-gradient(150deg, #20262f, #0c0f15);
  padding: 9px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.5) inset;
}
.device img { width: 100%; height: auto; border-radius: 30px; display: block; background: #0b1020; }
.device__island {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; background: #05070b; border-radius: 100px; z-index: 3;
}
/* One gentle float on the front phone only — enough life, no jank, and the
   badges/back phone stay put (they're anchored to its edges). */
.device--front {
  position: relative; z-index: 2; will-change: transform;
  animation: float 7s ease-in-out infinite;
}
.device--back {
  position: absolute; top: -2%; right: -32%; width: 82%; z-index: 1; opacity: .9;
  transform: rotate(5deg);
  -webkit-mask-image: linear-gradient(210deg, #000 55%, transparent);
          mask-image: linear-gradient(210deg, #000 55%, transparent);
}
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.hero__badge {
  position: absolute; z-index: 4; font-family: var(--font-mono);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid var(--line-2); border-radius: 12px;
  backdrop-filter: blur(8px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7);
}
.hero__badge--rate {
  top: 14%; right: -10%; padding: 10px 14px; display: flex; flex-direction: column; line-height: 1.15;
}
.hero__badge-k { font-size: .58rem; letter-spacing: .2em; color: var(--muted); }
.hero__badge-v { font-size: 1.3rem; font-weight: 700; color: var(--green); }
.hero__badge-v small { font-size: .7rem; color: var(--muted); }
.hero__badge--bid {
  bottom: 9%; left: -8%; padding: 9px 14px; display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; color: var(--text);
}
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ============ stats ============ */
.stats { padding: clamp(56px, 8vw, 96px) 0; }
.stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.stat { background: var(--bg); padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 38px); }
.stat__value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--accent); line-height: 1;
  display: block; margin-bottom: 14px; letter-spacing: -.02em;
}
.stat__value small { font-size: .42em; color: var(--muted); }
.stat__label { color: var(--muted); font-size: .96rem; max-width: 22ch; }
@media (max-width: 720px) { .stats__grid { grid-template-columns: 1fr; } }

/* ============ features ============ */
.features { padding: clamp(40px, 7vw, 80px) 0; }
.features__grid {
  margin-top: 48px; display: grid; gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.feature {
  background: var(--bg); padding: clamp(26px, 3vw, 38px);
  transition: background .3s; position: relative;
}
.feature::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.feature:hover { background: var(--bg-2); }
.feature:hover::after { width: 100%; }
.feature__icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px;
  border-radius: 13px; margin-bottom: 20px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 9px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features__grid { grid-template-columns: 1fr; } }

/* ============ route / how it works ============ */
.route { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.route__line { list-style: none; margin-top: 56px; position: relative; max-width: 760px; --draw: 0; }
/* dim dashed track (the full road) */
.route__line::before {
  content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(var(--line-2) 0 10px, transparent 10px 22px);
}
/* bright orange trail, drawn from the top down as you scroll (--draw 0→1) */
.route__line::after {
  content: ""; position: absolute; left: 23px; top: 8px; width: 2px;
  height: calc((100% - 16px) * var(--draw));
  background: repeating-linear-gradient(var(--accent) 0 10px, transparent 10px 22px);
  box-shadow: 0 0 12px -1px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: height .15s linear;
}
.stop { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 26px; padding-bottom: 44px; }
.stop:last-child { padding-bottom: 0; }
.stop__node {
  position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px -4px color-mix(in srgb, var(--accent) 60%, transparent);
}
.stop__mile { font-family: var(--font-mono); font-size: .56rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.stop--end .stop__node { background: var(--accent); }
.stop--end .stop__mile { color: #1a1205; }
.stop__body { padding-top: 4px; }
.stop__body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 8px; letter-spacing: -.01em; }
.stop__body p { color: var(--muted); max-width: 46ch; }

/* ============ chat band ============ */
.chatband { padding: clamp(50px, 8vw, 100px) 0; }
.chatband__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.chatband__copy .eyebrow { justify-content: center; }
.chatband__lead { color: var(--muted); font-size: 1.06rem; margin: 18px auto 28px; max-width: 46ch; }
.chatband__list { list-style: none; display: inline-grid; gap: 14px; text-align: left; grid-template-columns: repeat(2, auto); }
.chatband__list li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: .98rem; }
@media (max-width: 560px) { .chatband__list { grid-template-columns: 1fr; } }
.tick { flex: none; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--green) 16%, transparent); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* decorative chat card (an illustration, not an app screenshot) */
.chatcard {
  justify-self: center; width: min(400px, 100%);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
}
.chatcard__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chatcard__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--blue), #2a1cc8); }
.chatcard__who { display: flex; flex-direction: column; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.chatcard__who i { font-style: normal; font-size: .74rem; font-weight: 500; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.chatcard__who i b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chatcard__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 80%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; position: relative;
  animation: bubble-in .5s var(--ease) both;
}
.bubble i { display: block; font-style: normal; font-family: var(--font-mono); font-size: .62rem; color: var(--muted-2); margin-top: 5px; }
.bubble--in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble--out { align-self: flex-end; background: color-mix(in srgb, var(--accent) 90%, #000); color: #1a1205; border-bottom-right-radius: 5px; }
.bubble--out i { color: #6b4d12; }
.bubble--media { display: flex; gap: 6px; flex-wrap: wrap; }
.bubble__photo { width: 64px; height: 64px; border-radius: 9px; background: linear-gradient(135deg, #2a3346, #161c28); border: 1px solid rgba(255,255,255,.15); position: relative; }
.bubble__photo::after { content: ""; position: absolute; left: 10px; bottom: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--muted-2); box-shadow: 0 -7px 0 -1px var(--muted-2); }
.bubble--media i { width: 100%; text-align: right; }
.bubble--typing { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; gap: 4px; padding: 13px 14px; border-bottom-left-radius: 5px; }
.bubble--typing b { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.3s infinite; }
.bubble--typing b:nth-child(2) { animation-delay: .2s; } .bubble--typing b:nth-child(3) { animation-delay: .4s; }
.chatcard__input { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .9rem; background: var(--surface); }
.chatcard__send { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.chatcard__send::after { content: ""; position: absolute; left: 9px; top: 10px; width: 0; height: 0; border: 6px solid transparent; border-left-color: #1a1205; border-right: 0; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-3px);} }
@media (max-width: 860px) { .chatband__inner { grid-template-columns: 1fr; } .chatband__copy { text-align: center; } .chatband__lead { margin-inline: auto; } .chatband__list { display: inline-grid; text-align: left; } }

/* ============ screens ============ */
.screens { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 110px); overflow: hidden; }
.screens__head { max-width: 640px; }
.screens__sub { margin-top: 16px; color: var(--muted); font-size: 1.04rem; }
.screens__hint { margin-top: 18px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

.screens__rail {
  margin-top: 44px; display: flex; gap: clamp(20px, 3vw, 36px);
  /* Center the cards when they all fit (wide screens); `safe` falls back to
     flex-start on narrow screens so the leftmost card stays reachable when the
     rail overflows and scrolls. Fixes the "shifted to the left" look on QHD. */
  justify-content: safe center;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--pad) 28px;
  cursor: grab; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.screens__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.screens__rail::-webkit-scrollbar { height: 6px; }
.screens__rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 100px; }
.shot { flex: 0 0 auto; width: min(270px, 72vw); scroll-snap-align: center; }
.shot__step {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 6px; margin-bottom: 16px; background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.shot .device { transition: transform .35s var(--ease); }
.shot:hover .device { transform: translateY(-8px); }
.device--mini { padding: 7px; border-radius: 30px; }
/* Uniform frame height across the rail + reserves space before load (no
   collapse/shift), regardless of each screenshot's exact dimensions. */
.device--mini img { aspect-ratio: 9 / 19.5; object-fit: cover; object-position: center top; border-radius: 24px; }
.device--mini .device__island { width: 64px; height: 17px; top: 13px; }
.shot figcaption { margin-top: 20px; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ============ final CTA ============ */
.cta { position: relative; padding: clamp(70px, 12vw, 150px) 0; text-align: center; overflow: hidden; }
.cta__glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 70vw; height: 60vh;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  filter: blur(40px); opacity: .6; pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta__mark { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 28px; box-shadow: 0 16px 44px -12px rgba(245,160,43,.6); }
.cta__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 18px; }
.cta__sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); margin-bottom: 36px; max-width: 34ch; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 36px; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .brand { margin-bottom: 16px; }
.footer__brand p { color: var(--muted); font-size: .92rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: .94rem; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .84rem; font-family: var(--font-mono); }
.footer__legal { display: flex; gap: 22px; white-space: nowrap; }
.footer__legal a:hover { color: var(--accent); }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__bottom { flex-direction: column; gap: 14px; text-align: center; } }

/* ============ hero responsive ============ */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 40px; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .store-buttons { justify-content: center; }
  .hero__stage { margin-top: 28px; width: min(260px, 64vw); }
  .device--back { right: -28%; width: 78%; }
  .hero__sub { margin-inline: auto; }
}
@media (max-width: 420px) {
  .device--back { display: none; }
  .hero__badge--rate { right: -2%; }
  .hero__badge--bid { left: -2%; }
}

/* ============ reveal animations ============ */
/* Only hide reveal content once JS is confirmed running (html.has-js). If the
   script fails to load, everything stays visible — no blank sections. */
.has-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-load { opacity: 0; transform: translateY(22px); animation: reveal-load .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes reveal-load { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-load { opacity: 1 !important; transform: none !important; animation: none !important; }
  .device--front, .device--back, .hero__badge, .pulse,
  .bubble, .bubble--typing b { animation: none !important; }
  .route__line::after { transition: none !important; }
}

/* ---------- live feed: loads just delivered ---------- */
.feed { display: flex; align-items: center; gap: 20px; padding: 14px var(--pad, 24px); border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.feed[hidden] { display: none; }
.feed__label { flex: none; display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.feed__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 199, 123, .6); animation: feed-pulse 2s infinite; }
.feed__viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.feed__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: feed-slide var(--feed-dur, 120s) linear infinite; }
.feed__viewport:hover .feed__track { animation-play-state: paused; }
.feed__item { display: inline-flex; align-items: baseline; gap: 10px; padding: 0 24px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 14px; color: var(--muted); }
.feed__item b { color: var(--text); font-weight: 600; }
.feed__item .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.feed__item time { font-size: 12px; color: var(--muted-2); }
@keyframes feed-slide { to { transform: translateX(-50%); } }
@keyframes feed-pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 199, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 123, 0); } }
@media (max-width: 640px) { .feed { flex-direction: column; align-items: flex-start; gap: 10px; } .feed__viewport { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .feed__track, .feed__dot { animation: none; } .feed__viewport { overflow-x: auto; mask-image: none; } }
