/* ============================================================
   NEXT STOP DISPATCH — DESIGN SYSTEM v2
   Layout pattern: airy sectioned page (nav / hero / stat band /
   card grid / feature grid / steps / CTA band / footer)
   Palette: near-black chassis, chrome type, purple/magenta pulse
   Display: Oswald   Body: Work Sans   Mono/data: JetBrains Mono
   ============================================================ */

:root{
  --bg:            #0a0710;
  --bg-elevated:   #150f22;
  --bg-elevated-2: #1c1430;
  --line:          #2b2140;

  --purple-deep:   #4c1789;
  --purple:        #7c1fd1;
  --purple-bright: #a855f7;
  --pulse:         #c471ed;

  --chrome:        #d8dbe0;
  --chrome-bright: #f4f5f7;

  --ink:           #ede9f4;
  --muted:         #a598bd;
  --muted-2:       #726387;

  --ok:            #7fe0b8;

  --radius:        6px;
  --radius-lg:     14px;
  --container:     1180px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:'Oswald', sans-serif; font-weight:600; letter-spacing:0.01em; margin:0; }
p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}

body{
  background-image:
    radial-gradient(1100px 600px at 15% -10%, rgba(124,31,209,0.16), transparent 60%),
    radial-gradient(900px 500px at 110% 20%, rgba(196,113,237,0.10), transparent 55%);
  background-repeat: no-repeat;
}

.wrap{ max-width: var(--container); margin:0 auto; padding: 0 24px; }

/* ---------- NAV (Appassionata-style: centered link row + single CTA) ---------- */
.site-nav{
  position: sticky; top:0; z-index: 100;
  background: rgba(10,7,16,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-nav.scrolled{ background: rgba(10,7,16,0.97); box-shadow: 0 8px 26px rgba(0,0,0,0.4); }
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:84px; gap:20px; transition: height .3s var(--ease); }
.site-nav.scrolled .wrap{ height:60px; }
.nav-brand img{ height:52px; width:auto; transition: height .3s var(--ease); }
.site-nav.scrolled .nav-brand img{ height:36px; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  font-family:'Oswald', sans-serif; font-size:0.86rem; letter-spacing:0.09em; text-transform:uppercase;
  color: var(--muted); padding: 8px 0; position:relative; transition: color .2s var(--ease);
}
.nav-links a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:2px;
  background: linear-gradient(90deg, var(--purple-bright), var(--pulse));
  transform: scaleX(0); transform-origin:left; transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--chrome-bright); }
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-cta{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.nav-toggle{ display:none; }

@media (max-width: 980px){
  .nav-links{
    position:fixed; top:84px; left:0; right:0; bottom:0;
    background: var(--bg); flex-direction:column; justify-content:flex-start;
    padding: 40px 24px; gap:26px; transform: translateX(100%); transition: transform .3s var(--ease);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ font-size:1.1rem; }
  .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:40px; height:40px; background:none; border:0; cursor:pointer; padding:0;
  }
  .nav-toggle span{ display:block; height:2px; width:100%; background: var(--chrome-bright); transition: all .25s var(--ease); }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .nav-overlay{ display:none; position:fixed; inset:0; top:84px; background:rgba(0,0,0,0.5); z-index:90; }
  .nav-overlay.open{ display:block; }
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Oswald', sans-serif; font-size:0.85rem; letter-spacing:0.08em; text-transform:uppercase;
  padding: 15px 28px; border-radius: var(--radius); cursor:pointer; border:1px solid transparent;
  transition: all .22s var(--ease); white-space:nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--purple), var(--purple-bright));
  color: #fff; box-shadow: 0 6px 24px rgba(124,31,209,0.35);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px rgba(168,85,247,0.45); }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--chrome); }
.btn-ghost:hover{ border-color: var(--purple-bright); color: var(--chrome-bright); }
.btn-block{ width:100%; }

/* Nav CTA: periodic scale-pop + shadow bloom every ~5s, plus continuous shimmer sweep */
.nav-cta .btn-primary{
  position: relative;
  overflow: hidden;
  animation: nav-cta-pop 5s ease-in-out infinite;
}
.nav-cta .btn-primary::after{
  content:'';
  position:absolute;
  top:0; left:-60%;
  width:40%; height:100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.65) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: shimmer-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
.nav-cta .btn-primary:hover{ animation-play-state: paused; }
.nav-cta .btn-primary:hover::after{ animation-play-state: paused; }
@keyframes shimmer-sweep{
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes nav-cta-pop{
  0%, 88%, 100% { transform: scale(1); box-shadow: 0 6px 24px rgba(124,31,209,0.35); }
  94%           { transform: scale(1.09); box-shadow: 0 10px 34px rgba(168,85,247,0.65), 0 0 22px rgba(196,113,237,0.55); }
}
@media (prefers-reduced-motion: reduce){
  .nav-cta .btn-primary{ animation:none; }
  .nav-cta .btn-primary::after{ animation:none; display:none; }
}

/* ---------- EYEBROW / HEADINGS ---------- */
.eyebrow{
  font-family:'JetBrains Mono', monospace; font-size:0.78rem; letter-spacing:0.16em; text-transform:uppercase;
  color: var(--purple-bright); display:flex; align-items:center; gap:10px; margin-bottom:14px;
}
.eyebrow::before{ content:''; width:26px; height:2px; background: linear-gradient(90deg, var(--pulse), transparent); }
.chrome-text{
  background: linear-gradient(180deg, var(--chrome-bright) 0%, var(--chrome) 55%, var(--muted) 130%);
  -webkit-background-clip: text; background-clip:text; color:transparent;
  line-height:1.08;
}
.lede{ color: var(--muted); font-size:1.08rem; max-width: 58ch; }

.section-intro{ text-align:center; max-width:680px; margin:0 auto 52px; }
.section-intro .eyebrow{ justify-content:center; }
.section-intro h2{ font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--chrome-bright); }
.section-intro p{ color: var(--muted); margin-top:14px; font-size:1.02rem; }

.section{ padding: 96px 0; }
.section.tight{ padding: 64px 0; }
.section.no-top{ padding-top:0; }
.section.no-bottom{ padding-bottom:0; }
.section.elevated{ background: var(--bg-elevated); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* ---------- HERO ---------- */
.hero{ padding: 76px 0 60px; position:relative; }
.hero-grid{ display:grid; grid-template-columns: 1.15fr 0.85fr; gap:56px; align-items:center; }
.hero h1{ font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top:32px; }
.hero-visual{
  aspect-ratio: 1/1; border-radius: var(--radius-lg); border:1px solid var(--line);
  background:
    radial-gradient(circle at 30% 25%, rgba(168,85,247,0.35), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(196,113,237,0.22), transparent 50%),
    var(--bg-elevated);
  display:flex; align-items:center; justify-content:center; padding:14%;
  position:relative; overflow:hidden;
}
.hero-visual::before{
  content:''; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero-visual img{ position:relative; z-index:1; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); animation: kenburns 17s ease-in-out infinite alternate; transform-origin: 55% 45%; }
@keyframes kenburns{
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.09) translate(-1.5%, -1.5%); }
}
@media (prefers-reduced-motion: reduce){ .hero-visual img{ animation:none; } }
@media (max-width: 900px){ .hero-grid{ grid-template-columns:1fr; } .hero-visual{ aspect-ratio: 16/10; max-width:420px; margin:0 auto; } }

/* ---------- STAT BAND (Appassionata's 120+ / 15+ / 500+ row) ---------- */
.stat-band{
  display:grid; grid-template-columns: repeat(4,1fr); gap:1px;
  background: var(--line); border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden;
  margin-top: 56px;
}
.stat-band .stat-item{ background: var(--bg-elevated); padding: 26px 18px; text-align:center; }
.stat-band .stat-num{ display:block; font-family:'Oswald',sans-serif; font-weight:600; font-size:1.7rem; color: var(--chrome-bright); }
.stat-band .stat-label{ display:block; margin-top:6px; font-size:0.78rem; color: var(--muted); letter-spacing:0.02em; }
@media (max-width: 760px){ .stat-band{ grid-template-columns: repeat(2,1fr); } }

/* ---------- CARD GRID ---------- */
.card-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.card-grid.cols-2{ grid-template-columns: repeat(2,1fr); }
@media (max-width: 900px){ .card-grid, .card-grid.cols-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--bg-elevated); border:1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover{ transform: translateY(-4px); border-color: var(--purple-bright); box-shadow: 0 18px 40px rgba(76,23,137,0.28); }
.card h3{ font-size:1.15rem; color: var(--chrome-bright); }
.card p{ color: var(--muted); margin-top:12px; font-size:0.95rem; }
.card .tag{
  display:inline-block; font-family:'JetBrains Mono',monospace; font-size:0.72rem; letter-spacing:0.08em;
  color: var(--purple-bright); background: rgba(168,85,247,0.12); border:1px solid rgba(168,85,247,0.3);
  padding:4px 10px; border-radius: 20px;
}

.medallion{
  width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple)); margin-bottom:18px;
  box-shadow: 0 8px 20px rgba(76,23,137,0.4);
  transition: transform .45s var(--ease);
}
.card:hover .medallion{ transform: scale(1.16) rotate(-4deg); }
.medallion svg{ width:24px; height:24px; stroke: #fff; fill:none; stroke-width:1.8; }

.hero-visual{ overflow:hidden; }
.hero-visual:hover img{ animation-play-state: paused; transform: scale(1.06); transition: transform .6s var(--ease); }

.card table{ width:100%; border-collapse:collapse; margin-top:20px; }
.card table th{ text-align:left; font-family:'JetBrains Mono',monospace; font-size:0.7rem; letter-spacing:0.06em; text-transform:uppercase; color: var(--muted-2); padding-top:12px; }
.card table td{ font-size:0.92rem; color: var(--ink); padding-bottom:4px; }

/* ---------- FEATURE GRID (why choose — icon + title + text, 5 up like quartet) ---------- */
.feature-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap:36px 28px; }
.feature-item{ text-align:left; }
.feature-item h3{ font-size:1.02rem; color: var(--chrome-bright); margin-bottom:8px; }
.feature-item p{ color: var(--muted); font-size:0.92rem; }

/* ---------- STEPS (Appassionata's 3 Easy Steps) ---------- */
.steps-row{ display:grid; grid-template-columns: repeat(3,1fr); gap:32px; counter-reset: step; }
@media (max-width: 860px){ .steps-row{ grid-template-columns:1fr; } }
.step{ position:relative; padding-left: 0; }
.step-num{
  font-family:'Oswald',sans-serif; font-weight:600; font-size:0.95rem; color: var(--purple-bright);
  border:1px solid var(--purple-bright); border-radius:50%; width:38px; height:38px;
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.step h3{ font-size:1.08rem; color: var(--chrome-bright); margin-bottom:8px; }
.step p{ color: var(--muted); font-size:0.94rem; }

/* ---------- SPLIT (two-column content block) ---------- */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
@media (max-width: 900px){ .split{ grid-template-columns:1fr; gap:36px; } }
.split h2{ font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--chrome-bright); }

/* ---------- CTA BAND ---------- */
.cta-band{
  border-radius: var(--radius-lg); padding: 48px 44px;
  background: linear-gradient(120deg, var(--purple-deep), var(--purple) 55%, var(--purple-bright));
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h2{ font-size: clamp(1.3rem, 2.6vw, 1.9rem); color:#fff; }
.cta-band p{ color: rgba(255,255,255,0.82); margin-top:8px; }
.cta-band .btn-primary{ background: #fff; color: var(--purple-deep); box-shadow:none; }
.cta-band .btn-primary:hover{ background: var(--chrome-bright); }

/* ---------- FORMS ---------- */
.field{ margin-bottom:18px; }
.field label{ display:block; font-family:'JetBrains Mono',monospace; font-size:0.76rem; letter-spacing:0.05em; color: var(--muted); margin-bottom:8px; text-transform:uppercase; }
.field input, .field select, .field textarea{
  width:100%; background: var(--bg); border:1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); padding: 13px 14px; font-family:'Work Sans',sans-serif; font-size:0.95rem;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--purple-bright); }
.field textarea{ min-height:110px; resize:vertical; }
.form-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
@media (max-width:640px){ .form-grid-2{ grid-template-columns:1fr; } }

/* ---------- COVERAGE / LOCATION CHIPS ---------- */
.chip-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }
@media (max-width:780px){ .chip-grid{ grid-template-columns:1fr 1fr; } }
.chip{
  font-family:'JetBrains Mono',monospace; font-size:0.82rem; letter-spacing:0.03em; color: var(--muted);
  border:1px solid var(--line); padding:14px 16px; border-radius: var(--radius); display:block;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
a.chip:hover{ border-color: var(--purple-bright); color: var(--chrome-bright); background: rgba(168,85,247,0.06); }

.map-frame{ width:100%; height:380px; border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; }
.map-frame iframe{ width:100%; height:100%; border:0; filter: grayscale(0.3) invert(0.92) hue-rotate(230deg) contrast(0.9); }

/* ---------- Pulse divider (signature element) ---------- */
.pulse-divider{
  width:100%; height: 64px; overflow:hidden; position:relative;
}
.pulse-divider svg{ width:100%; height:100%; display:block; }
.pulse-line{
  fill:none; stroke: var(--pulse); stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw 2.4s var(--ease) forwards;
  filter: drop-shadow(0 0 6px rgba(196,113,237,0.55));
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce){ .pulse-line{ animation:none; stroke-dashoffset:0; } }

/* ---------- FOOTER (Appassionata-style: brand + nav cols + contact strip + bottom bar) ---------- */
footer{ background: var(--bg-elevated); border-top:1px solid var(--line); padding-top: 64px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.3fr; gap:36px; padding-bottom:44px; }
@media (max-width: 980px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid p{ color: var(--muted); font-size:0.92rem; margin-top:6px; }
.footer-grid h4{ font-size:0.82rem; letter-spacing:0.1em; text-transform:uppercase; color: var(--chrome-bright); margin-bottom:16px; }
.footer-grid > div > a{ display:block; color: var(--muted); font-size:0.92rem; padding:6px 0; transition: color .2s var(--ease); }
.footer-grid > div > a:hover{ color: var(--purple-bright); }
.icon-link{ display:flex !important; align-items:center; gap:10px; }
.icon-link svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; flex-shrink:0; }
.footer-bottom{
  border-top:1px solid var(--line); padding:22px 0; display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:10px; font-size:0.82rem; color: var(--muted-2);
}

.center{ text-align:center; margin-left:auto; margin-right:auto; }
.mt-xl{ margin-top:30px; }

/* ---------- SCROLL REVEAL (alternating horizontal slide) ---------- */
.reveal{
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.dir-left{ transform: translateX(-64px); }
.reveal.dir-right{ transform: translateX(64px); }
.reveal.dir-up{ transform: translateY(30px); }
.reveal.in-view{ opacity: 1; transform: translate(0,0); }

.reveal-hero{ opacity:0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-hero.in-view{ opacity:1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-hero{ opacity:1 !important; transform:none !important; transition:none !important; }
  .hero-visual img{ animation:none !important; }
}
