/* Trackster — landing page. Cinematic expedition-editorial.
   Dark, atmospheric, topographic. Self-contained (legal pages use styles.css). */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:      #0a0d0a;
  --bg-2:    #10140f;
  --panel:   #151a14;
  --ink:     #f1f5ee;
  --muted:   #97a596;
  --faint:   #5e6b5d;
  --green:   #56e07e;
  --green-d: #2fae5b;
  --line:    rgba(255,255,255,.10);
  --line-2:  rgba(255,255,255,.06);
  --max:     1180px;
  --display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
}

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

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

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* film grain overlay across whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: .035;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ─────────────────────────── NAV ─────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(10,13,10,.85), rgba(10,13,10,0));
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 6px 20px rgba(86,224,126,.30);
}
.nav .links { display: flex; align-items: center; gap: 26px; }
.nav .links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav .links a:hover { color: var(--ink); }
.nav .btn-sm {
  font-size: 13px; font-weight: 600; color: var(--bg);
  background: var(--green); padding: 9px 16px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.nav .btn-sm:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(86,224,126,.4); }
@media (max-width: 720px){ .nav .links a.hide-sm { display:none; } }

/* ─────────────────────────── HERO ─────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: slowzoom 22s ease-out forwards; }
@keyframes slowzoom { to { transform: scale(1); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(8,11,8,.94) 0%, rgba(8,11,8,.78) 38%, rgba(8,11,8,.20) 70%, rgba(8,11,8,.55) 100%),
    linear-gradient(to top, var(--bg) 2%, rgba(10,13,10,0) 32%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.hero-copy .eyebrow::before { content:""; width: 26px; height: 1px; background: var(--green); }
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.6vw, 88px);
  line-height: .96; letter-spacing: -.025em; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 460px; margin-bottom: 36px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--green); color: #06120a; box-shadow: 0 10px 30px rgba(86,224,126,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(86,224,126,.5); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* app-store badges */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 17px; border-radius: 14px;
  background: #0e120d; border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.btn-store:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.btn-store svg { width: 24px; height: 24px; flex: none; }
.btn-store .s { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.btn-store .s small { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.btn-store .s b { font-family: var(--display); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
/* iOS first to launch — give it the accent */
.btn-store.ios { background: var(--green); border-color: transparent; color: #06120a; box-shadow: 0 10px 30px rgba(86,224,126,.32); }
.btn-store.ios .s small { color: rgba(6,18,10,.62); }
.btn-store.ios:hover { box-shadow: 0 16px 40px rgba(86,224,126,.48); }
.hero .trust { margin-top: 30px; font-size: 13.5px; color: var(--faint); display:flex; align-items:center; gap:10px; }
.hero .trust b { color: var(--muted); font-weight: 500; }

/* phone in hero */
.hero-phone { justify-self: end; position: relative; }
.hero-phone .glow { position: absolute; inset: -16% -12%; z-index:0; background: radial-gradient(circle, rgba(86,224,126,.28), transparent 62%); filter: blur(20px); }

.phone {
  position: relative; z-index: 1;
  width: 290px; border-radius: 44px; padding: 9px;
  background: linear-gradient(160deg, #20271f, #0c100c);
  box-shadow: 0 2px 0 rgba(255,255,255,.06) inset, 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05);
}
.phone img { width: 100%; border-radius: 36px; }
.hero-phone .phone { transform: rotate(3deg); }

/* coordinate ticker badge floating on phone */
.geo-badge {
  position: absolute; z-index: 3; left: -42px; bottom: 70px;
  background: rgba(13,17,12,.86); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px;
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.geo-badge b { color: var(--green); }
.geo-badge .row { display:flex; gap: 16px; }

/* ─────────────────── ticker / capabilities strip ─────────────────── */
.ticker { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; }
.ticker .track { display: flex; gap: 48px; white-space: nowrap; padding: 18px 0; width: max-content; animation: scroll 32s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display:flex; align-items:center; gap: 48px; }
.ticker span::after { content: "▲"; color: var(--green); font-size: 9px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ─────────────────────────── SECTIONS ─────────────────────────── */
.section { position: relative; padding: 110px 0; }
.section.topo::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: url("assets/topo.svg") center/1100px no-repeat;
  opacity: .06; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.section .wrap { position: relative; z-index: 1; }

.sec-head { max-width: 620px; margin-bottom: 64px; }
.sec-head .eyebrow { display:inline-flex; align-items:center; gap:10px; margin-bottom: 18px; }
.sec-head .eyebrow::before { content:""; width:26px; height:1px; background: var(--green); }
.sec-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; letter-spacing: -.02em; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* alternating feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; margin-bottom: 130px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .f-media { order: 2; }
.f-copy .kicker { font-family: var(--mono); font-size: 12px; letter-spacing:.14em; text-transform:uppercase; color: var(--green); }
.f-copy h3 { font-family: var(--display); font-weight: 700; font-size: clamp(28px,3vw,40px); line-height: 1.04; letter-spacing: -.02em; margin: 14px 0 18px; }
.f-copy p { color: var(--muted); font-size: 17.5px; max-width: 460px; }
.f-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.f-list li { display:flex; gap: 12px; align-items:flex-start; color: var(--ink); font-size: 15.5px; }
.f-list li::before { content:""; flex:none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: rgba(86,224,126,.14); border:1px solid rgba(86,224,126,.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356e07e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; background-size: 11px; }

.f-media { position: relative; display: flex; justify-content: center; }
.f-media .halo { position:absolute; inset: 6% 14%; background: radial-gradient(circle, rgba(86,224,126,.16), transparent 65%); filter: blur(24px); }
.f-media .phone { width: 280px; }
.feature .phone { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.feature:hover .phone { transform: translateY(-8px); }
/* dual phones for the social feature */
.f-media.duo { gap: 0; }
.f-media.duo .phone { width: 232px; }
.f-media.duo .phone:nth-child(2){ position: relative; z-index: 2; transform: rotate(-4deg); }
.f-media.duo .phone:nth-child(3){ position: relative; z-index: 1; margin-left: -78px; margin-top: 52px; transform: rotate(5deg); }
.feature:hover .f-media.duo .phone:nth-child(2){ transform: rotate(-4deg) translateY(-8px); }
.feature:hover .f-media.duo .phone:nth-child(3){ transform: rotate(5deg) translateY(-8px); }

/* ─────────────────────────── GALLERY ─────────────────────────── */
.gallery { columns: 2; column-gap: 16px; }
.gallery figure { position: relative; break-inside: avoid; margin-bottom: 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #dfe7da;
  background: linear-gradient(to top, rgba(6,9,6,.85), transparent);
  display: flex; justify-content: space-between;
}
.gallery figcaption b { color: var(--green); font-weight: 500; }

/* ─────────────────────────── COMMUNITY ─────────────────────────── */
.community { position: relative; overflow: hidden; }
.community .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.community h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 60px); line-height: .98; letter-spacing: -.025em; }
.community h2 em { font-style: normal; color: var(--green); }
.community .lede { color: var(--muted); font-size: 18.5px; margin-top: 22px; max-width: 480px; }
.community .sign { margin-top: 30px; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); }
.community .sign b { color: var(--green); }
.community .btn-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.community .micro { font-size: 13.5px; color: var(--faint); font-family: var(--mono); letter-spacing: .04em; }

/* the "trail" — numbered waypoints joined by a dashed route line */
.trail { position: relative; padding-left: 8px; }
.trail::before {
  content: ""; position: absolute; left: 31px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--green), rgba(86,224,126,.15));
  background-size: 2px 14px; /* dashed look via repeating mask */
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 8px, transparent 8px 16px);
          mask-image: repeating-linear-gradient(to bottom, #000 0 8px, transparent 8px 16px);
}
.step { position: relative; display: flex; gap: 22px; padding: 18px 0; }
.step .node {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--panel); border: 1.5px solid var(--green);
  font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--green);
  box-shadow: 0 0 0 6px var(--bg), 0 0 22px rgba(86,224,126,.25);
}
.community .grid .step .node { box-shadow: 0 0 0 6px var(--bg-2), 0 0 22px rgba(86,224,126,.25); }
.step h4 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 340px; }

/* ─────────────────────────── CTA ─────────────────────────── */
.cta-final { position: relative; padding: 130px 0; text-align: center; overflow: hidden; }
.cta-final .bg { position:absolute; inset:0; z-index:0; }
.cta-final .bg img { width:100%; height:100%; object-fit:cover; }
.cta-final .bg::after { content:""; position:absolute; inset:0; background: linear-gradient(to bottom, var(--bg), rgba(10,13,10,.72), var(--bg)); }
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.025em; max-width: 760px; margin: 16px auto 26px; }
.cta-final p { color: var(--muted); font-size: 19px; max-width: 480px; margin: 0 auto 38px; }

/* ─────────────────────────── FOOTER ─────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; padding: 34px 28px; }
.footer .brand { font-size: 17px; }
.footer .spacer { flex: 1; }
.footer a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--green); }
.footer .copy { width: 100%; color: var(--faint); font-size: 12.5px; font-family: var(--mono); letter-spacing: .05em; padding-top: 6px; }

/* ─────────────────────────── REVEAL ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay:.08s } [data-delay="2"]{ transition-delay:.16s } [data-delay="3"]{ transition-delay:.24s } [data-delay="4"]{ transition-delay:.32s }

@media (prefers-reduced-motion: reduce){
  .reveal { opacity:1; transform:none; }
  .hero-bg img { animation: none; transform: none; }
  .ticker .track { animation: none; }
}

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 880px){
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { justify-self: center; }
  .hero-phone .phone { transform: rotate(0); }
  .geo-badge { left: -10px; }
  .feature { grid-template-columns: 1fr; gap: 40px; margin-bottom: 88px; }
  .feature.flip .f-media { order: 0; }
  .gallery { columns: 1; }
  .community .grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 480px){
  .wrap { padding: 0 20px; }
  .phone { width: 250px !important; }
  .f-media.duo .phone:nth-child(3){ margin-left: -60px; }
}
