/* ==========================================================================
   Orbit — marketing site
   Tokens extracted from Figma file sgwklghNut6QTb0agavGKH ("Orbit Driver website")
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #0b1f3a;   /* primary dark surface */
  --navy-deep:   #081627;   /* darker band */
  --navy-soft:   #16324f;   /* raised card on navy */
  --black:       #000000;   /* "Latest features" band */

  --cyan:        #5ed3f3;   /* accent — headings, buttons, links */
  --cyan-strong: #38b6ea;   /* hover */
  --cyan-soft:   #a8e1f8;

  --ink:         #0f172a;   /* body text on light */
  --ink-2:       #1e293b;
  --ink-soft:    #475569;
  --slate:       #94a3b8;   /* muted text on dark */

  --white:       #ffffff;
  --paper:       #e6edf5;   /* light section tint */
  --line:        rgba(255, 255, 255, .14);
  --line-dark:   rgba(15, 23, 42, .12);

  /* Layout */
  --wrap:  1180px;
  --nav-h: 76px;
  --r-sm:  10px;
  --r:     16px;
  --r-lg:  24px;

  /* Type scale (clamped for responsive) */
  --fs-display: clamp(2.4rem, 1.3rem + 3.6vw, 3.5rem);   /* 56px */
  --fs-section: clamp(2rem, 1.2rem + 2.6vw, 3rem);       /* 48px */
  --fs-card:    clamp(1.15rem, 1rem + .6vw, 1.44rem);    /* 23px */
  --fs-body:    clamp(1rem, .96rem + .2vw, 1.19rem);     /* 19px */
  --fs-sm:      .875rem;

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

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }

.dark   { background: var(--navy);      color: var(--white); }
.darker { background: var(--navy-deep); color: var(--white); }
.ink    { background: var(--black);     color: var(--white); }
.dark p, .darker p, .ink p { color: rgba(255, 255, 255, .82); }

.section-head { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; }

.h-display { font-size: var(--fs-display); font-weight: 800; }
.h-section { font-size: var(--fs-section); font-weight: 700; color: var(--cyan); }
.h-card    { font-size: var(--fs-card);    font-weight: 700; color: var(--cyan); }
.eyebrow   { font-size: var(--fs-sm); font-weight: 500; color: var(--slate); margin-bottom: 8px; }
.on-light .h-section { color: var(--cyan); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 600; border: 1px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary  { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-strong); }
.btn-navy     { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--ink-2); }
.btn-ghost    { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-outline  { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-outline:hover { background: var(--cyan); color: var(--navy); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent; transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.nav.on-dark  { color: var(--white); }
.nav.on-dark.scrolled { background: rgba(11, 31, 58, .92); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.3rem; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--cyan-strong); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero h1 { max-width: 14ch; margin-inline: auto; color: var(--navy); }
.hero p  { max-width: 52ch; margin: 22px auto 0; color: var(--ink-soft); }
.hero .btn { margin-top: 32px; }
.hero-media img { width: 100%; height: clamp(280px, 42vw, 560px); object-fit: cover; }

/* ---------- media band (full-bleed photo) ---------- */
.band img { width: 100%; height: clamp(300px, 40vw, 620px); object-fit: cover; }

/* ---------- split (copy + image) ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split-media img { width: 100%; border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 4 / 3; }
.split-copy .btn { margin-top: 26px; }
.split-copy p { margin-top: 16px; }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.car-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: 0 0 100%; scroll-snap-align: start; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.car-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: var(--white);
  transition: background .18s var(--ease);
}
.car-btn:hover { background: rgba(255, 255, 255, .22); }
.car-btn.is-primary { background: var(--cyan); color: var(--navy); }
.car-btn.is-primary:hover { background: var(--cyan-strong); }
.car-dots { display: flex; gap: 9px; }
.car-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .3); transition: background .18s var(--ease);
}
.car-dots button[aria-current="true"] { background: var(--cyan); }
.on-light .car-btn { background: rgba(15, 23, 42, .08); color: var(--ink); }
.on-light .car-dots button { background: rgba(15, 23, 42, .18); }

/* ---------- cards ---------- */
.card-row {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.card-row::-webkit-scrollbar { display: none; }
.card-row > * { flex: 0 0 clamp(260px, 30%, 340px); scroll-snap-align: start; }

.card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; color: var(--white); background: var(--navy);
  isolation: isolate;
}
.card > img.card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 31, 58, .25) 0%, rgba(11, 31, 58, .92) 72%);
}
.card.solid { background: var(--navy); }
.card.solid::after { display: none; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 1rem; }
.card .btn { margin-top: 20px; align-self: flex-start; }
.card-phone { margin-top: 20px; width: 78%; align-self: center; }

/* business feature cards (image + floating label) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; }
.feature { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.feature.raise { margin-bottom: 42px; }
.feature-label {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(8, 22, 39, .82); backdrop-filter: blur(8px);
  border-radius: var(--r); padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.feature-label strong { display: block; font-size: 1rem; color: var(--white); }
.feature-label span   { font-size: .82rem; color: rgba(255, 255, 255, .74); }

/* ---------- logo strip ---------- */
.logos { text-align: center; }
.logos p { color: var(--cyan); font-weight: 700; margin-bottom: 34px; }
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(32px, 6vw, 76px);
}
.logo-row img { height: clamp(34px, 4vw, 56px); width: auto; opacity: .92; }
/* two-line lockups read small at a shared height — give them a little more */
.logo-row img[alt^="McKinsey"] { height: clamp(44px, 5.4vw, 76px); }

/* ---------- airport (map background) ---------- */
.map-bg { position: relative; overflow: hidden; background: #12395e; }
.map-bg > img.map-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .18; z-index: 0;
}
.map-bg > .wrap { position: relative; z-index: 1; }

/* ---------- app band ---------- */
.appband { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.appband-copy h2 { color: var(--navy); }
.appband-copy p { color: var(--ink-soft); margin-top: 16px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.app-block { margin-top: 28px; }
.app-block h3 {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.btn-outline-navy { background: transparent; color: var(--navy); border-color: rgba(11, 31, 58, .28); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--white); padding-top: 72px; padding-bottom: 40px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.2fr;
  gap: 32px;
}
.footer h4 { color: var(--cyan); font-size: 1rem; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer li a { color: rgba(255, 255, 255, .76); font-size: .95rem; }
.footer li a:hover { color: var(--cyan); }
.footer-brand { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.footer-brand img.mark { height: 28px; }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); transition: background .18s var(--ease);
}
.socials a:hover { background: var(--cyan); color: var(--navy); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-base {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; font-size: .9rem; }
.footer-legal a { color: rgba(255, 255, 255, .7); }
.footer-legal a:hover { color: var(--cyan); }
.footer-copy { width: 100%; text-align: center; margin-top: 30px; font-size: .9rem; color: rgba(255, 255, 255, .62); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-dark); background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.dark .field input, .dark .field select, .dark .field textarea {
  background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent;
}
.field .err { display: none; color: #ff8a8a; font-size: .8rem; margin-top: 5px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff8a8a; }
.form-ok, .form-err { display: none; padding: 13px 16px; border-radius: var(--r-sm); font-size: .95rem; }
.form-ok  { background: rgba(94, 211, 243, .14); color: var(--cyan); }
.form-err { background: rgba(255, 138, 138, .14); color: #ff8a8a; }
.form.sent .form-ok, .form.failed .form-err { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.dark .faq-item, .darker .faq-item { border-color: var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; padding: 22px 0; text-align: left;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-size: 1.05rem; font-weight: 600; color: inherit;
}
.faq-q::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--cyan); }
.faq-item.open .faq-q::after { content: "\2013"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { padding-bottom: 22px; }

/* ---------- legal / prose pages ---------- */
.page-head { background: var(--navy); color: var(--white); padding: calc(var(--nav-h) + 48px) 0 56px; }
.page-head h1 { color: var(--white); font-size: var(--fs-section); font-weight: 800; }
.page-head .meta { margin-top: 14px; color: var(--cyan-soft); font-size: .95rem; }

.prose { max-width: 760px; margin-inline: auto; padding-block: clamp(48px, 6vw, 80px); }
.prose h2 {
  font-size: 1.4rem; font-weight: 700; color: var(--navy);
  margin: 42px 0 14px; padding-top: 4px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink-2); margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.prose li { margin-bottom: 9px; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--cyan-strong); text-decoration: underline; text-underline-offset: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--line-dark); margin: 40px 0; }
.prose .note {
  background: var(--paper); border-radius: var(--r); padding: 18px 20px;
  font-size: .95rem; margin-top: 32px;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .split.reverse, .appband { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature.raise { margin-bottom: 0; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 18px; position: absolute;
    top: var(--nav-h); left: 0; right: 0; padding: 24px 28px 30px;
    background: var(--white); box-shadow: 0 12px 24px rgba(15, 23, 42, .1); color: var(--ink);
  }
  .nav.on-dark.open .nav-links { background: var(--navy); color: var(--white); }
  .card-row > * { flex-basis: 82%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

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