/* ============================================================
   Car-Search.ai v3 — Dealer marketing landing
   Faithful to Figma (node 27670-77). LIGHT theme is default.
   Dark theme available via [data-theme="dark"] toggle.
   ============================================================ */

@font-face { font-family:'Space Grotesk'; src:url('/fonts/SpaceGrotesk/SpaceGrotesk-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'Space Grotesk'; src:url('/fonts/SpaceGrotesk/SpaceGrotesk-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'Space Grotesk'; src:url('/fonts/SpaceGrotesk/SpaceGrotesk-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'DM Sans'; src:url('/fonts/DMSans/DMSans_18pt-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'DM Sans'; src:url('/fonts/DMSans/DMSans-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }

:root {
  --orange:#E86008; --orange-deep:#C24E05;
  --teal:#38B6A3;
  --head:'Space Grotesk', system-ui, sans-serif;
  --body:'DM Sans', system-ui, sans-serif;
  --radius:16px; --radius-lg:24px; --maxw:1180px;
}

/* LIGHT (default — matches Figma) */
:root, [data-theme="light"] {
  --bg:#FFFFFF;
  --band:#EDF2F8;
  --surface:#FFFFFF;
  --surface-2:#F4F7FB;
  --line:#E6EAF1;
  --line-strong:#D5DCE6;
  --text:#0C0E12;
  --text-2:#5A6472;
  --text-3:#8B95A3;
  --card-shadow:0 18px 44px rgba(16,24,40,.10);
  --footer-grad: linear-gradient(160deg,#BFE8EE 0%, #DCE7EE 55%, #EEF4F8 100%);
}
/* DARK (alternate) */
[data-theme="dark"] {
  --bg:#0B0C0F;
  --band:#101216;
  --surface:#16181D;
  --surface-2:#1C1F26;
  --line:rgba(255,255,255,.09);
  --line-strong:rgba(255,255,255,.16);
  --text:#F4F6F8;
  --text-2:#AEB6C2;
  --text-3:#7A828F;
  --card-shadow:0 24px 60px rgba(0,0,0,.45);
  --footer-grad: radial-gradient(120% 140% at 50% 0%, #12161b 0%, #0B0C0F 60%);
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0; font-family:var(--body); color:var(--text); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.6;
  transition:background .3s ease, color .3s ease;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
h1,h2,h3,h4 { font-family:var(--head); font-weight:700; line-height:1.12; margin:0; letter-spacing:-.005em; }
.container { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section { padding:90px 0; position:relative; }
.center { text-align:center; }

.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--head); font-weight:500; font-size:13px;
  letter-spacing:.16em; text-transform:uppercase; color:var(--text);
}
.eyebrow svg { width:15px; height:15px; }
.section-title { font-size:38px; margin-top:14px; color:var(--text); }
.section-sub { color:var(--text-2); font-size:16px; max-width:560px; margin:14px auto 0; }

/* ---- Buttons (Figma: pill, orange / black) ---- */
.btn {
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--head); font-weight:500; font-size:15px;
  padding:14px 24px; border-radius:999px; cursor:pointer;
  border:1px solid transparent; transition:transform .16s ease, box-shadow .16s, background .16s, border-color .16s;
  white-space:nowrap;
}
.btn:hover { transform:translateY(-1px); }
.btn .arr { display:inline-flex; transition:transform .16s; }
.btn:hover .arr { transform:translateX(3px); }
.btn-orange { background:var(--orange); color:#fff; box-shadow:0 8px 22px rgba(232,96,8,.28); }
.btn-orange:hover { background:#d4570a; box-shadow:0 12px 30px rgba(232,96,8,.38); }
.btn-dark { background:#0C0E12; color:#fff; }
.btn-dark:hover { background:#000; }
.btn-outline { background:transparent; color:var(--text); border-color:var(--line-strong); }
.btn-outline:hover { border-color:var(--text); }

/* ============================================================
   NAV  (Figma: white, colored logo, links right, black Try It Free)
   ============================================================ */
.nav {
  position:sticky; top:0; z-index:100;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(12px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand img { height:30px; width:auto; }
.nav-links { display:flex; align-items:center; gap:32px; }
.nav-links a { font-family:var(--head); font-size:15px; color:var(--text); font-weight:500; opacity:.85; transition:opacity .15s,color .15s; }
.nav-links a:hover { opacity:1; color:var(--orange); }
.nav-right { display:flex; align-items:center; gap:14px; }
.theme-toggle {
  width:42px; height:42px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; background:var(--surface-2); border:1px solid var(--line); color:var(--text); transition:background .2s, transform .2s;
}
.theme-toggle:hover { background:var(--band); transform:translateY(-1px); }
.theme-toggle svg { width:19px; height:19px; }
.theme-toggle .moon { display:none; }
[data-theme="dark"] .theme-toggle .sun { display:none; }
[data-theme="dark"] .theme-toggle .moon { display:block; }
.nav-toggle { display:none; background:none; border:0; cursor:pointer; color:var(--text); }

/* ============================================================
   HERO — clean two-column, theme-aware (light + dark)
   Left: copy. Right: live chat panel. Soft branded aura behind.
   ============================================================ */
.hero { position:relative; overflow:hidden; padding:80px 0 96px; background:
  radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--band) 70%, transparent), transparent 60%),
  var(--bg); }
.hero-aura {
  position:absolute; z-index:0; width:760px; height:760px; right:-180px; top:-220px; pointer-events:none;
  background:radial-gradient(circle, rgba(232,96,8,.16) 0%, rgba(56,182,163,.10) 45%, transparent 70%);
  filter:blur(8px);
}
.hero-inner { position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.hero-copy { text-align:left; }
.hero-pill {
  display:inline-flex; align-items:center; gap:8px; margin-bottom:22px;
  font-family:var(--head); font-weight:500; font-size:12.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text); background:var(--surface-2); border:1px solid var(--line); padding:8px 14px; border-radius:999px;
}
.hero-pill .pdot { width:7px; height:7px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal); }
.hero h1 { font-size:50px; line-height:1.08; margin:0 0 20px; color:var(--text); }
.hero .sub { font-size:17px; color:var(--text-2); max-width:520px; margin:0 0 30px; line-height:1.7; }
.hero .sub strong { color:var(--text); font-weight:600; }
.hero-actions { display:flex; gap:14px; margin-bottom:40px; flex-wrap:wrap; }
.hero-stats { display:flex; align-items:center; gap:24px; }
.hero-stats b { font-family:var(--head); font-size:26px; color:var(--text); display:block; line-height:1; }
.hero-stats span { font-size:12.5px; color:var(--text-2); }
.hero-stats .div { width:1px; height:34px; background:var(--line); }

/* chat panel */
.hero-panel { position:relative; }
.chatui {
  position:relative; z-index:2; background:var(--surface); border-radius:var(--radius-lg); overflow:hidden; text-align:left;
  box-shadow:var(--card-shadow); border:1px solid var(--line);
}
.chatui-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:15px 20px; border-bottom:1px solid var(--line); }
.chatui-logo { height:22px; width:auto; }
.chatui-status { display:inline-flex; align-items:center; gap:7px; font-family:var(--head); font-size:12.5px; color:var(--text-2); }
.chatui-dot { width:8px; height:8px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal); }
.chatui-body { padding:20px; background:var(--surface-2); }
.cb-row { display:flex; margin-bottom:14px; }
.cb-user { justify-content:flex-end; }
.cb-user .cb-bubble { background:var(--orange); color:#fff; border-radius:14px 14px 4px 14px; }
.cb-ai { gap:10px; align-items:flex-start; }
.cb-ava { flex:0 0 auto; width:30px; height:30px; border-radius:50%; background:var(--teal); color:#022; display:flex; align-items:center; justify-content:center; }
.cb-ava svg { width:16px; height:16px; }
.cb-ai .cb-bubble { background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:4px 14px 14px 14px; }
.cb-bubble { max-width:80%; padding:11px 15px; font-size:13.5px; line-height:1.5; }
.cb-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin:2px 0 0 40px; }
.cb-card { background:var(--surface); border:1px solid var(--line); border-radius:11px; overflow:hidden; }
.cb-card img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.cb-card img.ph { aspect-ratio:4/3; background:var(--band); }
.cb-meta { padding:8px 10px; }
.cb-meta strong { display:block; font-family:var(--head); font-size:12.5px; color:var(--text); }
.cb-meta span { font-size:11.5px; color:var(--text-2); }
.chatui-input { display:flex; align-items:center; gap:10px; padding:13px 16px; border-top:1px solid var(--line); background:var(--surface); }
.chatui-input span { flex:1; color:var(--text-3); font-size:14px; }
.chatui-input button { width:38px; height:38px; border:0; border-radius:10px; background:var(--orange); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.chatui-input button svg { width:18px; height:18px; }
/* floating accent tags */
.ptag {
  position:absolute; z-index:3; display:inline-flex; align-items:center; gap:8px;
  background:var(--orange); color:#fff; font-family:var(--head); font-weight:500; font-size:13px;
  padding:9px 15px; border-radius:999px; box-shadow:0 12px 28px rgba(232,96,8,.4);
  animation:float 4.5s ease-in-out infinite;
}
.ptag .d { width:6px; height:6px; border-radius:50%; background:#fff; }
.ptag-1 { top:-16px; left:-18px; }
.ptag-2 { bottom:-16px; right:-14px; animation-delay:1.2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ============================================================
   COMMON SEARCHES  (Figma: mini chat-UI cards)
   ============================================================ */
.cards-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; }
.search-card {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; transition:transform .22s, box-shadow .22s, border-color .22s; text-align:left;
}
.search-card:hover { transform:translateY(-5px); box-shadow:var(--card-shadow); border-color:var(--line-strong); }
.search-card .mock { background:var(--surface-2); padding:16px; border-bottom:1px solid var(--line); }
.search-card .mock-bar {
  display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--line);
  border-radius:10px; padding:10px 12px; font-size:13px; color:var(--text);
}
.search-card .mock-bar .q { flex:1; font-family:var(--head); font-weight:500; }
.search-card .mock-bar .ic { color:var(--text-3); display:inline-flex; }
.search-card .mock-bar .ic svg { width:15px; height:15px; }
.search-card .mock-body { margin-top:12px; display:flex; gap:8px; }
.search-card .mock-body img { width:50%; border-radius:8px; aspect-ratio:4/3; object-fit:cover; }
.search-card .mock-illus { margin-top:12px; height:96px; border-radius:8px; background:radial-gradient(circle at 50% 80%, rgba(232,96,8,.18), transparent 60%), var(--surface); display:flex; align-items:center; justify-content:center; color:var(--orange); }
.search-card .mock-illus svg { width:42px; height:42px; }
.search-card .mock-table { margin-top:12px; background:var(--surface); border:1px solid var(--line); border-radius:8px; overflow:hidden; font-size:11.5px; }
.search-card .mock-table .row { display:flex; justify-content:space-between; padding:7px 10px; color:var(--text-2); }
.search-card .mock-table .row.hl { background:var(--orange); color:#fff; font-weight:600; }
.search-card .body { padding:20px 22px 24px; }
.search-card h3 { font-size:18px; margin-bottom:8px; color:var(--text); }
.search-card p { font-size:14px; color:var(--text-2); margin:0; }
.section-cta { display:flex; justify-content:center; margin-top:44px; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.band { background:var(--band); }
.quote-block { text-align:center; max-width:760px; margin:0 auto; }
.stars { color:var(--orange); letter-spacing:4px; font-size:18px; margin-bottom:16px; }
.quote-title { font-family:var(--head); font-weight:700; font-size:22px; margin-bottom:14px; color:var(--text); }
.quote-body { font-size:20px; line-height:1.5; color:var(--text); margin-bottom:22px; font-family:var(--head); font-weight:500; }
.quote-author { display:inline-flex; align-items:center; gap:12px; }
.quote-author .avatar { width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg,var(--teal),#2c9e8d); color:#012; display:flex; align-items:center; justify-content:center; font-family:var(--head); font-weight:700; font-size:14px; }
.quote-author .who { text-align:left; }
.quote-author .who strong { font-family:var(--head); font-size:15px; display:block; color:var(--text); }
.quote-author .who span { font-size:13px; color:var(--text-2); }

/* ============================================================
   WHY / FEATURES (6 cells, 2 orange accents — Figma)
   ============================================================ */
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:48px; text-align:left; }
.feature {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 26px; transition:transform .22s, box-shadow .22s, border-color .22s;
}
.feature:hover { transform:translateY(-5px); box-shadow:var(--card-shadow); border-color:var(--line-strong); }
.feature.accent { background:linear-gradient(135deg,var(--orange) 0%, #F08A3C 100%); border-color:transparent; color:#fff; box-shadow:0 16px 40px rgba(232,96,8,.30); }
.feature.accent p { color:rgba(255,255,255,.92); }
.feature.accent .feat-icon { background:rgba(255,255,255,.2); color:#fff; }
.feat-icon { width:46px; height:46px; border-radius:13px; background:var(--surface-2); color:var(--text); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.feat-icon svg { width:22px; height:22px; }
.feature h3 { font-size:18px; margin-bottom:10px; color:var(--text); }
.feature.accent h3 { color:#fff; }
.feature p { font-size:14px; color:var(--text-2); margin:0; }

/* ============================================================
   ABOUT (Figma: teal "Car-Search.ai" + orange "Purpose-built…")
   ============================================================ */
.about { max-width:740px; margin:0 auto; }
.about .eyebrow { margin-bottom:24px; }
.about-head { font-family:var(--head); font-weight:700; font-size:38px; line-height:1.2; margin-bottom:24px; color:var(--text); }
.about-head .teal { color:var(--teal); }
.about-head .chip { display:inline-flex; vertical-align:middle; width:38px; height:38px; border-radius:50%; background:#0C0E12; color:#fff; align-items:center; justify-content:center; margin:0 4px; }
.about p { font-size:21px; line-height:1.5; color:var(--text-2); margin:0 0 22px; }
.about p .orange { color:var(--orange); font-weight:500; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; max-width:960px; margin:48px auto 0; }
.review-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px; text-align:left; }
.review-card .stars { font-size:16px; margin-bottom:14px; }
.review-card p { font-size:15px; color:var(--text); margin:0 0 20px; line-height:1.6; }

/* ============================================================
   FAQ (Figma: title + photo left, accordion right)
   ============================================================ */
.faq-head { text-align:left; margin-bottom:36px; }
.faq-wrap { display:grid; grid-template-columns:.85fr 1.15fr; gap:48px; align-items:start; }
.faq-photo { border-radius:var(--radius); overflow:hidden; aspect-ratio:3/4; }
.faq-photo img { width:100%; height:100%; object-fit:cover; }
.faq-list { }
.faq-item { border-bottom:1px solid var(--line); }
.faq-q {
  width:100%; text-align:left; background:none; border:0; cursor:pointer; color:var(--text);
  font-family:var(--head); font-weight:500; font-size:16px;
  padding:22px 4px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq-q .pm { flex:0 0 auto; width:20px; height:20px; position:relative; }
.faq-q .pm::before,.faq-q .pm::after { content:''; position:absolute; background:var(--text-2); border-radius:2px; transition:transform .25s,background .2s; }
.faq-q .pm::before { top:9px; left:2px; width:16px; height:2px; }
.faq-q .pm::after { top:2px; left:9px; width:2px; height:16px; }
.faq-item.open .faq-q .pm::after { transform:rotate(90deg); opacity:0; }
.faq-item.open .faq-q .pm::before { background:var(--orange); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a p { padding:0 4px 22px; margin:0; font-size:15px; color:var(--text-2); line-height:1.65; }
.faq-item.open .faq-a { max-height:340px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display:grid; grid-template-columns:.95fr 1.05fr; gap:54px; align-items:start; }
.contact-info h2 { font-size:38px; margin-bottom:16px; color:var(--text); }
.contact-info p { color:var(--text-2); font-size:16px; margin-bottom:26px; }
.contact-points { list-style:none; padding:0; margin:0; display:grid; gap:16px; }
.contact-points li { display:flex; gap:14px; align-items:flex-start; }
.contact-points .ic { flex:0 0 auto; width:42px; height:42px; border-radius:12px; background:var(--surface-2); color:var(--orange); display:flex; align-items:center; justify-content:center; }
.contact-points .ic svg { width:20px; height:20px; }
.contact-points strong { font-family:var(--head); display:block; font-size:15px; color:var(--text); }
.contact-points span { font-size:14px; color:var(--text-2); }
.contact-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:34px; box-shadow:var(--card-shadow); }
.field { margin-bottom:18px; }
.field label { display:block; font-family:var(--head); font-size:13.5px; font-weight:500; color:var(--text-2); margin-bottom:8px; }
.field input,.field select,.field textarea {
  width:100%; background:var(--surface-2); border:1px solid var(--line); border-radius:12px;
  color:var(--text); font-family:var(--body); font-size:15px; padding:13px 15px; outline:none; transition:border-color .2s, box-shadow .2s;
}
.field input:focus,.field select:focus,.field textarea:focus { border-color:var(--orange); box-shadow:0 0 0 3px rgba(232,96,8,.15); }
.field textarea { resize:vertical; min-height:110px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.contact-card .btn { width:100%; justify-content:center; margin-top:6px; }
.form-note { font-size:13px; color:var(--text-3); margin-top:14px; text-align:center; }
.form-success { display:none; text-align:center; padding:30px 10px; }
.form-success.show { display:block; }
.form-success .check { width:56px; height:56px; border-radius:50%; background:rgba(56,182,163,.16); color:var(--teal); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.form-success h3 { font-size:22px; margin-bottom:8px; color:var(--text); }
.form-success p { color:var(--text-2); }

/* ============================================================
   FINAL CTA  (Figma: light-blue band, headline, toggle of two btns)
   ============================================================ */
.final-cta { text-align:center; }
.final-cta h2 { font-size:38px; max-width:720px; margin:0 auto 16px; color:var(--text); }
.final-cta p { font-size:16px; color:var(--text-2); max-width:620px; margin:0 auto 30px; }
.cta-toggle { display:inline-flex; gap:8px; background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:8px; box-shadow:var(--card-shadow); }

/* ============================================================
   FOOTER (Figma: white card on gradient band)
   ============================================================ */
.footer { background:var(--footer-grad); padding:70px 0 40px; margin-top:0; }
.footer-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:44px 48px; box-shadow:var(--card-shadow); }
.footer-grid { display:grid; grid-template-columns:1.7fr 1fr 1fr; gap:42px; }
.footer .brand { margin-bottom:16px; display:inline-block; }
.footer .brand img { height:26px; }
.footer-blurb { font-size:14px; color:var(--text-2); max-width:320px; margin:0; line-height:1.65; }
.footer h4 { font-family:var(--head); font-size:15px; margin-bottom:16px; color:var(--text); }
.footer ul { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.footer ul a { font-size:14px; color:var(--text-2); transition:color .15s; }
.footer ul a:hover { color:var(--orange); }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); margin-top:36px; padding-top:22px; }
.footer-bottom span { font-size:13px; color:var(--text-2); }
.socials { display:flex; gap:10px; }
.socials a { width:34px; height:34px; border-radius:50%; background:#1A1A1A; color:#fff; display:flex; align-items:center; justify-content:center; transition:background .2s; }
.socials a:hover { background:var(--orange); }
.socials svg { width:16px; height:16px; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:980px){
  .nav-links { display:none; }
  .nav-toggle { display:inline-flex; }
  .hero-inner { grid-template-columns:1fr; gap:48px; }
  .hero-copy { text-align:center; }
  .hero .sub { margin-left:auto; margin-right:auto; }
  .hero-actions, .hero-stats { justify-content:center; }
  .hero h1 { font-size:38px; }
  .cards-3,.feature-grid { grid-template-columns:1fr; }
  .reviews { grid-template-columns:1fr; }
  .faq-wrap,.contact-grid { grid-template-columns:1fr; gap:36px; }
  .faq-photo { aspect-ratio:16/9; max-height:280px; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .section { padding:64px 0; }
  .section-title,.about-head,.contact-info h2,.final-cta h2 { font-size:30px; }
  .about p { font-size:18px; }
  .tag-2 { right:-8px; }
}
@media (max-width:560px){
  .hero h1 { font-size:30px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .field-row { grid-template-columns:1fr; }
  .footer-card { padding:30px 24px; }
}
