/* ============================================================
   Cyber Fleet Services — shared design system
   Tesla-inspired: geometric sans, red accent, high contrast
   ============================================================ */

:root {
  --red: #e82127;
  --red-dark: #b71a1f;
  --black: #0a0a0a;
  --ink: #171a20;        /* Tesla's signature dark */
  --grey-900: #1c1f26;
  --grey-700: #393c41;
  --grey-500: #5c5e62;
  --grey-300: #a2a4a8;
  --grey-100: #f4f4f4;
  --white: #ffffff;
  --max: 1200px;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { font-size: 1.05rem; color: var(--grey-700); }

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

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

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--grey-300);
}
.btn-ghost:hover { background: #fff; }
.btn-block { display: block; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #eee;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot { color: var(--red); }
.brand-logo { height: 26px; width: 26px; display: block; flex: 0 0 auto; }
.footer .brand { display: flex; align-items: center; gap: 10px; }
.footer .brand .brand-logo { height: 30px; width: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--grey-700);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-cta { padding: 9px 20px; font-size: 0.85rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 120px 24px 130px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 460px at 50% -10%, rgba(232, 33, 39, 0.30), transparent 60%),
    linear-gradient(180deg, #15171c 0%, #0a0a0a 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; margin: 18px auto 0; }
.hero p.lede {
  color: var(--grey-300);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 60ch;
  margin: 22px auto 0;
}
.hero-actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  margin: 56px auto 0;
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat b {
  font-family: var(--display);
  font-size: 2.2rem;
  color: #fff;
  display: block;
  letter-spacing: -0.02em;
}
.hero-stats .stat span { color: var(--grey-300); font-size: 0.85rem; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 70ch; margin: 0 auto 56px; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; font-size: 1.12rem; }
.bg-grey { background: var(--grey-100); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: var(--grey-300); }

/* ---------- Audience ramp cards ---------- */
.ramps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ramp {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ramp:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ddd; }
.ramp .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(232, 33, 39, 0.08);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ramp h3 { margin-bottom: 10px; }
.ramp p { font-size: 0.98rem; flex-grow: 1; }
.ramp .ramp-list { list-style: none; margin: 18px 0 24px; }
.ramp .ramp-list li {
  font-size: 0.92rem; color: var(--grey-700);
  padding-left: 24px; position: relative; margin-bottom: 9px;
}
.ramp .ramp-list li::before {
  content: "→"; position: absolute; left: 0; color: var(--red); font-weight: 700;
}

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: left; }
.step .num {
  font-family: var(--display); font-weight: 800; font-size: 2.6rem;
  color: var(--red); line-height: 1; opacity: 0.9;
}
.step h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.step p { font-size: 0.95rem; }

/* ---------- Feature / benefit grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid #ededed; }
.bg-ink .feature { background: var(--grey-900); border-color: #2a2d33; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: 0.95rem; }

/* ---------- Q&A blocks (AEO) ---------- */
.qa { max-width: 820px; margin: 0 auto; }
.qa-item { border-bottom: 1px solid #e6e6e6; padding: 26px 0; }
.qa-item h3 { font-size: 1.22rem; margin-bottom: 10px; }
.qa-item p { font-size: 1.02rem; }
.qa-item p + p { margin-top: 10px; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 10px;
  padding: 36px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.6rem; }
.form-card .sub { margin: 8px 0 24px; font-size: 0.98rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--grey-700); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font); font-size: 1rem;
  border: 1px solid #d6d6d6; border-radius: var(--radius); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232, 33, 39, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { font-size: 0.82rem; color: var(--grey-500); margin-top: 14px; }
.consent a { color: var(--red); text-decoration: underline; }
.form-success {
  display: none; background: #f0faf2; border: 1px solid #b7e4c2;
  color: #1d6b34; padding: 16px 18px; border-radius: var(--radius);
  font-size: 0.95rem; margin-top: 16px;
}

/* benefits column next to form */
.benefits-list { list-style: none; }
.benefits-list li {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #ececec;
}
.benefits-list li .check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem; margin-top: 2px;
}
.benefits-list li b { font-family: var(--display); display: block; font-size: 1rem; }
.benefits-list li span { font-size: 0.92rem; color: var(--grey-700); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--red); color: #fff; text-align: center; padding: 72px 24px; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255, 255, 255, 0.9); max-width: 56ch; margin: 14px auto 28px; }
.cta-strip .btn-ghost { background: #fff; border: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 92px 24px 76px; }
.page-hero .container { max-width: 860px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--grey-300); font-size: 1.2rem; margin-top: 16px; max-width: 60ch; }
.page-hero .eyebrow { color: #ff5a5f; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--grey-300); padding: 64px 24px 36px; }
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
}
.footer h4 {
  color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px; font-weight: 600;
}
.footer a { display: block; color: var(--grey-300); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.15s; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.footer .tag { font-size: 0.92rem; max-width: 34ch; }
.footer-bottom {
  max-width: var(--max); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid #222; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--grey-500);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ramps, .steps, .features { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid #eee;
    padding: 16px 24px; gap: 18px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}
