/* ShuttleSense — marketing site styles. Brand tokens match the app (lib/theme). */
:root {
  --indigo: #4C6FFF;
  --indigo-deep: #3954D6;
  --violet: #8A5BFF;
  --coral: #FF6B6B;
  --sky: #2DB7F5;
  --green: #18B26B;
  --amber: #FF9F40;
  --rose: #FF5470;
  --ink: #1A1F36;
  --slate: #6B7280;
  --mist: #9AA1AE;
  --cloud: #F6F7FB;
  --surface: #FFFFFF;
  --line: #E9ECF3;
  --grad: linear-gradient(135deg, #5B7BFF 0%, #8A5BFF 100%);
  --grad-smash: linear-gradient(135deg, #FF5470 0%, #FF8A5B 100%);
  --shadow: 0 18px 40px rgba(26, 31, 54, 0.10);
  --shadow-sm: 0 6px 18px rgba(26, 31, 54, 0.07);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.eyebrow { color: var(--indigo); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.center { text-align: center; }
.muted { color: var(--slate); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(76,111,255,.35); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 70px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 21px; }
.brand .s1 { color: var(--ink); } .brand .s2 { color: var(--indigo); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: 8px; }
.nav-mobile { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 60px; line-height: 1.02; font-weight: 800; }
.hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--slate); margin: 22px 0 30px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { margin-top: 22px; color: var(--mist); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; }
.blob.a { width: 360px; height: 360px; background: #8A5BFF55; top: -80px; right: -60px; }
.blob.b { width: 320px; height: 320px; background: #4C6FFF44; bottom: -120px; left: -80px; }

/* Phone mockup */
.phone {
  width: 300px; height: 612px; margin: 0 auto; border-radius: 44px;
  background: #0E1120; padding: 12px; box-shadow: 0 40px 80px rgba(26,31,54,.28); position: relative;
}
.phone::before { content:''; position:absolute; top:20px; left:50%; transform:translateX(-50%); width:120px; height:26px; background:#0E1120; border-radius:14px; z-index:3; }
.screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: var(--cloud); position: relative; }
.screen-top { height: 168px; background: var(--grad); padding: 30px 20px 0; color: #fff; }
.screen-top .st-label { opacity:.85; font-size: 12px; font-weight: 600; }
.screen-top .st-num { font-family:'Space Grotesk'; font-size: 40px; font-weight: 800; margin-top: 4px; }
.screen-cards { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: -42px; }
.scard { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 14px; }
.scard .ic { width: 30px; height: 30px; border-radius: 9px; display:flex; align-items:center; justify-content:center; font-size:15px; }
.scard .v { font-family:'Space Grotesk'; font-weight: 800; font-size: 20px; margin-top: 8px; }
.scard .l { color: var(--mist); font-size: 11px; }
.court-mini { margin: 4px 16px; background: linear-gradient(180deg,#2FA37A,#1C8E6A); border-radius: 14px; height: 150px; position: relative; box-shadow: var(--shadow-sm); overflow: hidden; }
.court-mini .ln { position:absolute; background: rgba(255,255,255,.85); }
.dot { position:absolute; width:9px; height:9px; border-radius:50%; border:2px solid #fff; opacity:0; transform: scale(.2); animation: dotPop .5s cubic-bezier(.34,1.56,.64,1) forwards; }
.dot:nth-child(4) { animation-delay: 1.1s; }
.dot:nth-child(5) { animation-delay: 2.0s; }
.dot:nth-child(6) { animation-delay: 2.9s; }
.dot:nth-child(7) { animation-delay: 3.8s; }
@keyframes dotPop { to { opacity: 1; transform: scale(1); } }

/* Animated shuttle trajectory across the mini court */
.traj { position: absolute; inset: 0; width: 100%; height: 100%; }
.traj path {
  fill: none; stroke: #FFE45B; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 330; stroke-dashoffset: 330;
  filter: drop-shadow(0 0 4px rgba(255,228,91,.8));
  animation: drawTraj 5.2s ease-in-out infinite;
}
.traj circle {
  fill: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.9));
  offset-path: path('M 16 112 Q 64 10 122 50 Q 178 92 228 26');
  animation: rideTraj 5.2s ease-in-out infinite;
}
@keyframes drawTraj {
  0% { stroke-dashoffset: 330; }
  62% { stroke-dashoffset: 0; }
  86% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes rideTraj {
  0% { offset-distance: 0%; opacity: 0; }
  4% { opacity: 1; }
  62% { offset-distance: 100%; opacity: 1; }
  70% { opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Hero entrance + scroll-reveal */
.hero-grid > div:first-child { animation: fadeUp .7s ease-out both; }
.hero .phone { animation: fadeUp .7s ease-out .15s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .dot, .traj path, .traj circle, .hero-grid > div:first-child, .hero .phone { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Pills row */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.pill { background: var(--cloud); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--slate); }

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 15px; }
.tint-indigo { background: #EAEEFF; color: var(--indigo); }
.tint-coral { background: #FFE9E9; color: var(--coral); }
.tint-green { background: #E3F7EE; color: var(--green); }
.tint-sky { background: #E2F4FD; color: var(--sky); }
.tint-violet { background: #EFEAFF; color: var(--violet); }
.tint-amber { background: #FFF1E2; color: var(--amber); }

/* Section heads */
.sec-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { font-size: 40px; font-weight: 800; margin: 12px 0; }
.sec-head p { color: var(--slate); font-size: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 12px; }
.step .num { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad); color: #fff; font-family:'Space Grotesk'; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(76,111,255,.32); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--slate); }

/* Dark showcase */
.dark { background: var(--ink); color: #fff; border-radius: 32px; }
.dark .sec-head h2 { color: #fff; }
.dark .sec-head p { color: #AEB4C7; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 18px; }
.metric .mv { font-family:'Space Grotesk'; font-weight: 800; font-size: 26px; }
.metric .ml { color: #AEB4C7; font-size: 13px; margin-top: 2px; }
.metric .mv.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip:text; color: transparent; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.price { background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 32px; position: relative; }
.price.featured { border-color: var(--indigo); box-shadow: 0 24px 50px rgba(76,111,255,.18); }
.price .tag { position: absolute; top: -13px; right: 24px; background: var(--grad); color: #fff; font-weight: 700; font-size: 12px; padding: 6px 14px; border-radius: 999px; }
.price h3 { font-size: 22px; }
.price .amt { font-family:'Space Grotesk'; font-size: 46px; font-weight: 800; margin: 8px 0 2px; }
.price .amt span { font-size: 16px; color: var(--mist); font-weight: 600; }
.price .sub { color: var(--slate); margin-bottom: 20px; }
.price ul { list-style: none; margin: 20px 0; display: grid; gap: 12px; }
.price li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.price li .ck { color: var(--green); font-weight: 800; }
.price .btn { width: 100%; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--indigo); font-size: 24px; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--slate); margin-top: 12px; }

/* CTA band */
.cta-band { background: var(--grad); border-radius: 32px; padding: 64px 40px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 40px; font-weight: 800; }
.cta-band p { opacity: .9; font-size: 18px; margin: 12px 0 28px; }
.cta-band .btn-primary { background: #fff; color: var(--indigo); box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* Footer */
footer { background: var(--cloud); border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--slate); margin-top: 14px; max-width: 280px; font-size: 14px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mist); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--slate); font-weight: 500; margin-bottom: 10px; font-size: 15px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mist); font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* Legal pages */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 0; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--slate); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .hero .phone { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .sec-head h2, .cta-band h2 { font-size: 30px; }
  .section { padding: 64px 0; }
}

/* --- Slickness layer ------------------------------------------------- */

/* Live-stats ticker: a quiet stream of analysis output. */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); margin-top: 26px; }
.ticker-track { display: flex; gap: 34px; width: max-content; padding: 11px 0; animation: tickerMove 30s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 7px; color: var(--slate); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ticker .td { width: 7px; height: 7px; border-radius: 50%; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Phone mockup: gentle 3D tilt on hover. */
.hero-grid { perspective: 1200px; }
.phone { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; }
.phone:hover { transform: rotateY(-7deg) rotateX(3deg) translateY(-6px); box-shadow: 0 56px 100px rgba(26,31,54,.34); }

/* Animated brand gradient on headline accents. */
.grad-text { background-size: 220% 220%; animation: gradDrift 7s ease-in-out infinite; }
@keyframes gradDrift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Featured pricing card: soft breathing glow. */
.price.featured { animation: featuredGlow 4.5s ease-in-out infinite; }
@keyframes featuredGlow {
  0%,100% { box-shadow: 0 24px 50px rgba(76,111,255,.18); }
  50% { box-shadow: 0 26px 60px rgba(138,91,255,.30); }
}

/* Dark-section court demo: live shot placement. */
.court-demo { position: relative; max-width: 560px; margin: 0 auto 40px; }
.court-demo svg { width: 100%; height: auto; display: block; }
.cd-line { stroke: rgba(255,255,255,.45); stroke-width: 1.2; fill: none; }
.cd-net { stroke: rgba(255,255,255,.85); stroke-width: 2; }
.cd-traj { fill: none; stroke: #FFE45B; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255,228,91,.7)); stroke-dasharray: 270; stroke-dashoffset: 270; animation: cdDraw 6s ease-in-out infinite; }
@keyframes cdDraw { 0% { stroke-dashoffset: 270; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 95%,100% { stroke-dashoffset: 0; opacity: 0; } }
.cd-dot { opacity: 0; animation: cdPop 6s ease-out infinite; }
.cd-dot.d2 { animation-delay: 1.4s; }
.cd-dot.d3 { animation-delay: 2.6s; }
.cd-dot.d4 { animation-delay: 3.4s; }
@keyframes cdPop { 0%,8% { opacity: 0; transform: scale(.3); transform-origin: center; transform-box: fill-box; } 14% { opacity: 1; transform: scale(1.25); } 20% { transform: scale(1); } 88% { opacity: 1; } 100% { opacity: 0; } }
.cd-label { fill: #9FB0FF; font-size: 9px; font-weight: 700; letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .grad-text, .price.featured, .cd-traj, .cd-dot { animation: none; }
  .cd-dot { opacity: 1; }
  .cd-traj { stroke-dashoffset: 0; }
  .phone, .phone:hover { transform: none; }
}
