/* ===========================================================
   DEALER GROWTH AI — Design System
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Forest depths */
  --forest-darkest: #0A1F15;
  --forest-deep: #0F2A1C;
  --forest: #1A3A2A;
  --forest-mid: #2D5F44;
  --forest-light: #4A8366;

  /* Warm accents */
  --gold: #C8A96E;
  --gold-light: #E5D2A8;
  --gold-pale: #F5EDD8;

  /* Electric highlight - the "AI" punctuation */
  --signal: #B8FF5E;
  --signal-soft: #D6FF93;

  /* Neutrals */
  --bone: #FAF7F1;
  --paper: #F5F1E8;
  --ink: #0E1410;
  --smoke: #4A5550;
  --mist: #8C9590;
  --fog: #D0D4CE;

  /* Typography */
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1320px;
  --gutter: clamp(1.5rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'cv11' on;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ TYPOGRAPHY SYSTEM ============ */

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-mid);
}

.eyebrow-signal { color: var(--signal); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--forest-darkest);
}

h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.92; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-size: 1.25rem; line-height: 1.2; }

p { color: var(--smoke); }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.45; color: var(--ink); max-width: 50ch; }

em.signal {
  font-style: italic;
  font-family: var(--display);
  color: var(--forest-mid);
}

/* ============ LAYOUT ============ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

/* ============ NAVIGATION ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(14, 20, 16, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--forest-darkest);
}

.nav-logo .mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--forest-darkest);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.nav-logo .mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--signal) 0%, transparent 50%);
  opacity: 0.65;
}

.nav-logo .mark::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest-deep);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a:hover { color: var(--forest-mid); }

.nav-cta {
  background: var(--forest-darkest);
  color: var(--bone);
  padding: 0.625rem 1.1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-cta:hover {
  background: var(--forest);
  transform: translateY(-1px);
}

.nav-cta .arrow { transition: transform 0.2s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(2px); }

@media (max-width: 800px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: 100px;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--forest-darkest);
  color: var(--bone);
}
.btn-primary:hover {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(10, 31, 21, 0.45);
}

.btn-signal {
  background: var(--signal);
  color: var(--forest-darkest);
  font-weight: 600;
}
.btn-signal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(184, 255, 94, 0.55);
  background: var(--signal-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--forest-darkest);
  border: 1px solid rgba(14, 20, 16, 0.15);
}
.btn-ghost:hover {
  border-color: var(--forest-darkest);
  background: rgba(14, 20, 16, 0.04);
}

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 9rem 0 6rem;
  background: var(--bone);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 20, 16, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 20, 16, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
}

.hero-bg .glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 255, 94, 0.18) 0%, transparent 60%);
  top: -200px; right: -200px;
  filter: blur(40px);
}

.hero-bg .glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.15) 0%, transparent 60%);
  bottom: -200px; left: -100px;
  filter: blur(60px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero h1 {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--forest-mid);
  position: relative;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 0.08em;
  left: 0;
  right: 0;
  height: 0.12em;
  background: var(--signal);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 1.2s var(--ease) 1.4s forwards;
}

@keyframes drawLine {
  to { transform: scaleX(1); }
}

.hero-lede {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 56ch;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s var(--ease) 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeUp 1s var(--ease) 0.6s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-meta {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(14, 20, 16, 0.1);
  animation: fadeUp 1s var(--ease) 0.8s both;
}

.hero-meta-item .num {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--forest-darkest);
  letter-spacing: -0.03em;
}

.hero-meta-item .num em {
  font-style: italic;
  color: var(--forest-mid);
}

.hero-meta-item .label {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--smoke);
  margin-top: 0.4rem;
  max-width: 22ch;
}

/* ============ SECTION HEADERS ============ */

.section-head {
  margin-bottom: 4rem;
  max-width: 720px;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.section-head h2 em {
  font-style: italic;
  color: var(--forest-mid);
}

.section-head .lede {
  color: var(--smoke);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

/* ============ FOOTER ============ */

.footer {
  background: var(--forest-darkest);
  color: var(--paper);
  padding: 6rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184, 255, 94, 0.06) 0%, transparent 60%);
  filter: blur(40px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.footer-brand h3 {
  font-family: var(--display);
  color: var(--bone);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: var(--mist);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: var(--paper);
  font-size: 0.92rem;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-col a:hover { opacity: 1; color: var(--signal); }

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--mist);
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer-bottom .meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ============ UTILITIES ============ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.text-signal { color: var(--signal); }
.text-gold { color: var(--gold); }
.text-mid { color: var(--forest-mid); }

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(14, 20, 16, 0.15), transparent);
  margin: 5rem 0;
}

/* Selection */
::selection {
  background: var(--signal);
  color: var(--forest-darkest);
}
