/* ============================================================
   Spot Compass LLC — Smart Parking Management
   ============================================================ */

:root {
  --bg:        #05121a;
  --bg-2:      #081b24;
  --panel:     #0c2530;
  --panel-2:   #103240;
  --ink:       #eaf6f8;
  --muted:     #93b3bd;
  --line:      rgba(120,180,195,.15);
  --teal:      #2fb0c0;   /* bright brand teal for dark bg */
  --teal-deep: #237e8a;   /* logo teal */
  --blue:      #2b93a3;   /* secondary teal */
  --orange:    #e67428;   /* logo orange */
  --orange-2:  #f2913f;
  --amber:     #e67428;
  --grad:      linear-gradient(120deg, #33c6d6, #1f8b9a 58%, #16707d);
  --radius:    18px;
  --shadow:    0 30px 60px -20px rgba(0,0,0,.6);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name { font-family: 'Sora', sans-serif; line-height: 1.08; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }

section { position: relative; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  background: var(--grad);
  color: #05121b;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
  box-shadow: 0 12px 30px -10px rgba(47,176,192,.5);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(47,176,192,.6); filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--teal); background: rgba(47,176,192,.06); box-shadow: none; }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.1rem; font-family: 'Sora',sans-serif; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 200;
  box-shadow: 0 0 12px rgba(47,176,192,.7);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,18,26,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: .8rem; padding-bottom: .8rem;
}
.brand { display: flex; align-items: center; gap: .6rem; z-index: 2; }
.brand-mark { display: grid; place-items: center; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(15deg) scale(1.05); }
.brand-name { font-weight: 800; font-size: 1.25rem; }
.brand-name span { color: var(--teal); }
.brand-name small { font-size: .7rem; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: .95rem; color: var(--muted); transition: color .25s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: #05121b; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 2; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem clamp(1rem,4vw,3rem) 4rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle,#1f7a8c,transparent 70%); top: -120px; right: -80px; animation: float1 14s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle,#c95f1e,transparent 70%); bottom: -140px; left: -100px; opacity: .32; animation: float2 18s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(-40px,40px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(50px,-30px) scale(1.05); } }

.grid-floor {
  position: absolute; inset: 40% -20% -20% -20%;
  background-image:
    linear-gradient(rgba(120,150,220,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,220,.09) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 80%);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.hero-logo { display: block; height: 88px; width: auto; margin-bottom: 1.6rem; filter: drop-shadow(0 8px 22px rgba(0,0,0,.4)); }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 1.3rem; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 40ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: 'Sora',sans-serif; font-size: 2rem; font-weight: 800; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* Live card */
.hero-visual { display: grid; place-items: center; }
.live-card {
  width: 100%; max-width: 380px;
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 1.4rem; box-shadow: var(--shadow);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat { 50% { transform: translateY(-14px); } }
.live-head { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; font-weight: 500; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(47,176,192,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47,176,192,0); } }
.live-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; margin-bottom: 1.1rem; }
.slot { aspect-ratio: 1/1.3; border-radius: 6px; background: rgba(120,180,195,.08); border: 1px solid rgba(120,180,195,.2); transition: background .5s, border-color .5s, transform .4s; }
.slot.occupied { background: rgba(230,116,40,.24); border-color: rgba(230,116,40,.55); }
.slot.free { background: rgba(47,176,192,.18); border-color: rgba(47,176,192,.55); }
.slot.just { transform: scale(1.14); }
.live-foot { display: flex; align-items: center; gap: 1rem; font-size: .8rem; color: var(--muted); }
.live-foot b { color: var(--ink); font-size: 1rem; }
.live-pill { margin-left: auto; padding: .3rem .7rem; border-radius: 999px; background: rgba(47,176,192,.14); color: var(--teal); font-weight: 600; }

/* Scroll hint */
.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); text-align: center; color: var(--muted); font-size: .78rem; letter-spacing: .1em; z-index: 1; }
.mouse { width: 22px; height: 34px; border: 2px solid var(--muted); border-radius: 12px; margin: .5rem auto 0; position: relative; }
.mouse i { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; border-radius: 2px; background: var(--teal); animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,10px)} }

/* ---------- Trust marquee ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee { display: flex; }
.marquee-track { display: flex; align-items: center; gap: 2rem; padding: 1.1rem 0; white-space: nowrap; animation: scroll-x 26s linear infinite; }
.marquee-track span { font-family: 'Sora',sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--muted); opacity: .65; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Pinned parking scene ---------- */
.park-scene { height: 320vh; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.park-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.park-stage {
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 0 clamp(1rem,4vw,3rem);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center;
}
.park-caption { max-width: 34ch; }
.park-step { font-family: 'Sora',sans-serif; font-size: 3.4rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--teal); display: block; line-height: 1; margin-bottom: .6rem; }
.park-caption h2 { font-size: clamp(1.8rem,3.4vw,2.8rem); margin-bottom: .8rem; transition: opacity .4s; }
.park-caption p { color: var(--muted); font-size: 1.08rem; transition: opacity .4s; }
.park-progress { margin-top: 1.6rem; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.park-progress i { display: block; height: 100%; width: 0%; background: var(--grad); border-radius: 4px; }

.park-lot-wrap { position: relative; }
.park-lot { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.lot-readout { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.lot-readout span { color: var(--ink); font-family: 'Sora',sans-serif; font-weight: 700; }
.lot-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.lot-bar i { display: block; height: 100%; width: 0%; background: var(--grad); }

/* Parking spot & car svg styles */
.spot-slot { fill: none; stroke: rgba(140,170,230,.35); stroke-width: 2; }
.spot-slot.filled { stroke: rgba(47,176,192,.55); }
.car { opacity: 0; transition: opacity .05s; }

/* ---------- Generic section ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(4rem,10vh,8rem) clamp(1rem,4vw,3rem); }
.section-head { max-width: 620px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem,4vw,3rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 2rem; margin-bottom: 1rem; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(47,176,192,.1); }
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Platform split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-copy h2 { font-size: clamp(1.9rem,4vw,2.8rem); margin-bottom: 1rem; }
.split-copy p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.6rem; }
.check-list { list-style: none; margin-bottom: 2rem; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(47,176,192,.15); color: var(--teal);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}

.dash {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem;
  box-shadow: var(--shadow);
}
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.dash-tile { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.dash-tile span { font-size: .78rem; color: var(--muted); display: block; margin-bottom: .4rem; }
.dash-tile b { font-family: 'Sora',sans-serif; font-size: 1.6rem; display: flex; align-items: flex-end; gap: .5rem; }
.bar-live { width: 8px; height: 30px; background: var(--grad); border-radius: 3px; align-self: center; }
.dash-chart { border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.02); border: 1px solid var(--line); margin-bottom: 1rem; }
.dash-chart svg { width: 100%; height: 120px; display: block; }
#dashLine { stroke-dasharray: 900; stroke-dashoffset: 900; }
.dash.in #dashLine { animation: draw 2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-legend { display: flex; gap: 1.2rem; font-size: .8rem; color: var(--muted); }
.dash-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-card {
  position: relative; max-width: 780px; margin: 0 auto;
  background: linear-gradient(160deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(2.5rem,6vw,4.5rem); overflow: hidden;
}
.contact-glow { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(47,176,192,.25), transparent 70%); top: -150px; left: 50%; transform: translateX(-50%); filter: blur(40px); }
.contact-card h2 { font-size: clamp(2rem,5vw,3.2rem); margin-bottom: 1rem; position: relative; }
.contact-card > p { color: var(--muted); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 2rem; position: relative; }
.contact-card .btn { position: relative; }
.contact-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Contact form ---------- */
.contact-form { position: relative; text-align: left; max-width: 620px; margin: 0 auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; margin-bottom: 1rem; }
.field input, .field textarea {
  width: 100%; padding: 1.35rem 1rem .55rem; font: inherit; color: var(--ink);
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 12px; outline: none; resize: vertical;
  transition: border-color .3s var(--ease), background .3s, box-shadow .3s;
}
.field textarea { min-height: 120px; }
.field label {
  position: absolute; left: 1rem; top: 1rem; color: var(--muted);
  font-size: 1rem; pointer-events: none; transform-origin: left top;
  transition: transform .2s var(--ease), color .2s;
}
.field label span { opacity: .6; font-size: .8em; }
.field input:focus, .field textarea:focus {
  border-color: var(--teal); background: rgba(47,176,192,.05);
  box-shadow: 0 0 0 3px rgba(47,176,192,.12);
}
/* float label when focused or filled (placeholder shown = empty) */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-.65rem) scale(.72); color: var(--teal);
}
.field textarea + label { top: 1rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-submit { margin-top: .4rem; width: 100%; overflow: hidden; }
.form-submit .btn-spinner {
  width: 18px; height: 18px; border-radius: 50%; display: none;
  border: 2px solid rgba(5,18,27,.35); border-top-color: #05121b;
  animation: spinner .7s linear infinite;
}
@keyframes spinner { to { transform: rotate(360deg); } }
.contact-form.sending .btn-label { opacity: .5; }
.contact-form.sending .btn-spinner { display: inline-block; }
.contact-form.sending .form-submit { pointer-events: none; }

.form-status { margin-top: 1rem; font-size: .95rem; min-height: 1.2em; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.form-status.show { opacity: 1; transform: none; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #ff8a6b; }
.field.invalid input, .field.invalid textarea { border-color: #ff8a6b; box-shadow: 0 0 0 3px rgba(255,138,107,.12); }

/* success state — collapse form, show confirmation */
.contact-form.sent { text-align: center; }
.contact-form.sent > *:not(.form-success) { display: none; }
.form-success { display: none; padding: 1rem 0; }
.contact-form.sent .form-success { display: block; animation: popIn .5s var(--ease); }
.form-success .check {
  width: 66px; height: 66px; margin: 0 auto 1rem; border-radius: 50%;
  background: rgba(47,176,192,.14); display: grid; place-items: center;
}
.form-success .check svg { width: 34px; height: 34px; }
.form-success .check path { stroke: var(--teal); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s .15s var(--ease) forwards; }
.form-success h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.form-success p { color: var(--muted); }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3.5rem clamp(1rem,4vw,3rem) 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-logo { height: 74px; width: auto; opacity: .92; }
.footer-brand p { color: var(--muted); margin-top: .9rem; max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { color: var(--muted); transition: color .25s; }
.footer-links a:hover { color: var(--teal); }
.footer-base { max-width: 1200px; margin: 1.5rem auto 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2){transition-delay:.08s}
.cards .reveal:nth-child(3){transition-delay:.16s}
.cards .reveal:nth-child(4){transition-delay:.24s}
.cards .reveal:nth-child(5){transition-delay:.32s}
.cards .reveal:nth-child(6){transition-delay:.4s}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .split, .park-stage { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .park-stage { gap: 1.5rem; }
  .park-caption { max-width: none; text-align: center; margin: 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .park-scene { height: 300vh; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column;
    background: rgba(5,18,26,.96); backdrop-filter: blur(16px);
    padding: 5.5rem 2rem 2rem; gap: 1.4rem; align-items: flex-start;
    transform: translateY(-100%); transition: transform .4s var(--ease);
    border-bottom: 1px solid var(--line); height: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav.open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .footer-inner { flex-direction: column; }
}

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