:root {
  --green-900: #063d27;
  --green-800: #0b5d3b;
  --green-600: #059669;
  --green-400: #34d399;
  --green-100: #d1fae5;
  --ink: #0f172a;
  --muted: #5b6b7f;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.grad {
  background: linear-gradient(100deg, var(--green-800), var(--green-600) 55%, var(--green-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 6s ease-in-out infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }

/* scroll progress */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--green-600), var(--green-400)); }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled { background: rgba(248, 250, 252, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--green-900); }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 28px; font-weight: 600; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--green-600); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: var(--green-600); color: #fff; border: 2px solid transparent;
  box-shadow: 0 10px 24px -10px rgba(5, 150, 105, .7);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(5, 150, 105, .8); background: #04805a; }
.btn:active { transform: translateY(0); }
.btn-small { padding: 9px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--green-800); border-color: rgba(11, 93, 59, .25); box-shadow: none; }
.btn-ghost:hover { background: rgba(5, 150, 105, .08); box-shadow: none; }
.btn-light { background: #fff; color: var(--green-800); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.btn-light:hover { background: #f0fdf4; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }

/* hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(16px, 4vw, 64px);
  padding: 120px clamp(16px, 5vw, 72px) 72px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(11, 93, 59, .07); mask-image: radial-gradient(70% 60% at 65% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 65% 40%, #000, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 460px; height: 460px; background: #a7f3d0; top: -120px; right: -80px; }
.b2 { width: 380px; height: 380px; background: #bbf7d0; bottom: -140px; left: -100px; animation-delay: -5s; }
.b3 { width: 260px; height: 260px; background: #99f6e4; top: 40%; left: 38%; opacity: .35; animation-delay: -9s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.12); } }

.hero-copy, .hero-visual { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--green-800); box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .3); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green-600); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.hero h1 { font-size: clamp(44px, 6.4vw, 86px); font-weight: 800; margin: 20px 0 18px; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 38px 0 0; color: var(--muted); font-size: 14px; }
.trust b { color: var(--green-800); font-size: 16px; margin-right: 4px; }

/* phone */
.hero-visual { display: grid; place-items: center; perspective: 1200px; min-height: 560px; }
.phone {
  position: relative; width: min(300px, 70vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #1b2a24, #0a120e); box-shadow: 0 50px 80px -30px rgba(6, 61, 39, .55), 0 0 0 2px rgba(255, 255, 255, .06) inset;
  transform: rotateY(-14deg) rotateX(6deg); transition: transform .2s ease-out; animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -14px; } }
.notch { position: absolute; top: 16px; left: 50%; width: 84px; height: 22px; border-radius: 14px; background: #060b08; transform: translateX(-50%); z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 34px; background: #f8fafc; overflow: hidden; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 44px 16px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.app-title { font-weight: 800; font-size: 16px; flex: 1; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; color: var(--green-600); letter-spacing: .06em; }
.map { flex: 1; position: relative; background: linear-gradient(180deg, #ecfdf5, #f0fdf4); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.streets path { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.route { fill: none; stroke: url(#route); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.8s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stop { fill: #fff; stroke: var(--green-600); stroke-width: 3; }
.bus .ring { fill: rgba(5, 150, 105, .22); animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.eta { margin: 0 12px 10px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 14px 26px -16px rgba(15, 23, 42, .5); display: flex; align-items: center; justify-content: space-between; }
.eta small { display: block; color: var(--muted); font-size: 11px; }
.eta strong { font-size: 22px; letter-spacing: -.02em; color: var(--green-800); }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 11px; font-weight: 800; }
.tabbar { display: flex; justify-content: space-around; align-items: center; padding: 10px 14px 16px; background: #fff; border-top: 1px solid var(--line); }
.tabbar span { width: 22px; height: 22px; border-radius: 7px; background: #e2e8f0; }
.tabbar .on { width: 52px; background: var(--green-600); border-radius: 12px; }

.float {
  position: absolute; z-index: 2; padding: 10px 16px; border-radius: 16px; background: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 18px 34px -16px rgba(15, 23, 42, .45); display: inline-flex; align-items: center; gap: 8px; animation: bob 5s ease-in-out infinite;
}
.f1 { top: 12%; left: -2%; }
.f2 { top: 48%; right: -4%; animation-delay: -1.5s; }
.f3 { bottom: 10%; left: 2%; animation-delay: -3s; }

/* marquee */
.marquee { overflow: hidden; background: var(--green-900); color: #d1fae5; padding: 18px 0; }
.track { display: flex; width: max-content; gap: 48px; animation: scroll 32s linear infinite; font-weight: 700; font-size: 18px; letter-spacing: .01em; }
.track span::after { content: "✦"; margin-left: 48px; color: var(--green-400); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(72px, 10vw, 128px) clamp(16px, 5vw, 72px); max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--green-600); margin-bottom: 12px; }
.section h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.card, .role {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03); transition: box-shadow .3s, border-color .3s;
  transform-style: preserve-3d;
}
.card:hover, .role:hover { box-shadow: 0 30px 50px -28px rgba(6, 61, 39, .35); border-color: #bbf7d0; }
.ico { width: 52px; height: 52px; border-radius: 16px; background: var(--green-100); display: grid; place-items: center; margin-bottom: 20px; transition: transform .4s var(--ease), background .3s; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--green-800); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .ico { transform: rotate(-8deg) scale(1.1); background: var(--green-600); }
.card:hover .ico svg { stroke: #fff; }
.card h3, .role h3 { font-size: 21px; margin-bottom: 8px; }
.card p, .role p { color: var(--muted); }

/* steps */
.how { position: relative; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.step { position: relative; z-index: 1; padding-top: 8px; }
.num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff; background: linear-gradient(140deg, var(--green-600), var(--green-800)); box-shadow: 0 16px 30px -12px rgba(5, 150, 105, .8); margin-bottom: 20px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 320px; }
.steps-line { position: absolute; top: 40px; left: 32px; right: 32px; height: 2px; background: var(--line); z-index: 0; }
.steps-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--green-600), var(--green-400)); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.role { background: linear-gradient(180deg, #fff, #f0fdf4); }
.role ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.role li { padding-left: 28px; position: relative; font-weight: 600; }
.role li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5d3b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* CTA */
.cta-band { position: relative; margin: 0 clamp(12px, 3vw, 40px) clamp(40px, 6vw, 72px); border-radius: 36px; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #0f7a4f, var(--green-900)); color: #fff; padding: clamp(56px, 8vw, 104px) 24px; text-align: center; }
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-icon { margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); animation: bob 5s ease-in-out infinite; }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; }
.cta-band p { color: #bbf7d0; margin-top: 14px; font-size: 18px; }
.cta-band .cta { justify-content: center; }
.ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); pointer-events: none; animation: ringout 6s ease-out infinite; }
.r1 { width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; }
.r2 { width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; animation-delay: -3s; }
@keyframes ringout { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 28px clamp(16px, 5vw, 72px) 40px; color: var(--muted); font-size: 14px; }
.footer .brand { font-size: 17px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .24s; } .d3 { transition-delay: .36s; } .d4 { transition-delay: .48s; }
.hero .reveal { animation: none; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; text-align: left; }
  .hero-visual { min-height: 520px; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps-line { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; }
  .steps-line i { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .f1 { left: 0; } .f2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .route { stroke-dashoffset: 0; }
}

/* legal pages */
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--green-800); }
.legal { padding: 120px clamp(16px, 5vw, 72px) 64px; }
.legal-doc { max-width: 780px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); box-shadow: 0 30px 60px -40px rgba(6, 61, 39, .35); }
.legal-doc h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; margin-top: 4px; }
.legal-meta { color: var(--muted); font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.legal-body { margin-top: 28px; }
.legal-body h2 { font-size: 26px; margin: 36px 0 10px; }
.legal-body h3 { font-size: 21px; margin: 30px 0 8px; color: var(--green-800); }
.legal-body h4 { font-size: 17px; margin: 22px 0 6px; }
.legal-body p, .legal-body li { color: #334155; font-size: 17px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 8px; }
.legal-body a { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }
.legal-error { color: #b91c1c; font-weight: 600; }
