/*
Theme Name: Dealer Focus AI
Theme URI: https://dealerfocusai.com
Author: Dealer Focus AI
Author URI: https://dealerfocusai.com
Description: Official landing page theme for Dealer Focus AI — the aerospace-grade AI BDC reception agent for automotive dealerships.
Version: 1.0.0
License: Proprietary
License URI: https://dealerfocusai.com/license
Text Domain: dealer-focus-ai
*/

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0f1c;
  --bg-card:     #0e1525;
  --primary:     #3b82f6;
  --primary-dim: rgba(59,130,246,.15);
  --primary-glow:rgba(59,130,246,.5);
  --text:        #f1f5f9;
  --muted:       #64748b;
  --border:      rgba(255,255,255,.07);
  --radius:      1rem;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:        'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ─── Animations ────────────────────────────────────────────── */
@keyframes ping {
  0%   { transform: scale(1); opacity: .75; }
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes spin-slow   { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation ────────────────────────────────────────────── */
.dfa-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(11,15,28,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.dfa-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.dfa-nav__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.dfa-nav__logo-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.dfa-nav__logo-icon svg { width: 18px; height: 18px; color: #fff; }
.dfa-nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
}
.dfa-nav__links a:hover { color: var(--text); }
.dfa-nav__cta { display: flex; gap: .75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  padding: .6rem 1.4rem;
  border-radius: 8px;
  border: none;
  transition: background .2s, opacity .2s;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  font-family: var(--font);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #2563eb; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(255,255,255,.05); }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 1.1rem; border-radius: 10px; }
.btn-white { background: #fff; color: #0b0f1c; }
.btn-white:hover { background: #e2e8f0; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ─── Hero ──────────────────────────────────────────────────── */
.dfa-hero {
  position: relative;
  padding: 10rem 1.5rem 5rem;
  overflow: hidden;
}
.dfa-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(59,130,246,.2) 0%, transparent 60%);
  pointer-events: none;
}
.dfa-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.dfa-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid rgba(59,130,246,.3);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.dfa-hero__badge-dot {
  position: relative;
  width: 8px; height: 8px;
  display: flex; align-items: center; justify-content: center;
}
.dfa-hero__badge-dot span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.dfa-hero__badge-dot span:first-child { animation: ping 1.5s infinite; }

.dfa-hero__h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.dfa-hero__h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dfa-hero__desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.dfa-hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.dfa-hero__img-wrap {
  position: relative;
}
.dfa-hero__img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.25), transparent);
  border-radius: var(--radius);
  filter: blur(40px);
}
.dfa-hero__img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 32px 64px rgba(0,0,0,.5);
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
}

/* ─── Stats ─────────────────────────────────────────────────── */
.dfa-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.01);
  padding: 3rem 1.5rem;
}
.dfa-stats__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.dfa-stat__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}
.dfa-stat__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 500;
}

/* ─── Features ──────────────────────────────────────────────── */
.dfa-features {
  padding: 6rem 1.5rem;
  position: relative;
}
.dfa-features__inner { max-width: 1280px; margin: 0 auto; }
.dfa-section-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .75rem;
}
.dfa-features__hgroup { margin-bottom: 4rem; }
.dfa-features__hgroup h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.dfa-features__hgroup p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}
.dfa-features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.dfa-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  position: relative;
  transition: border-color .25s, transform .25s;
}
.dfa-feature-card:hover {
  border-color: rgba(59,130,246,.35);
  transform: translateY(-4px);
}
.dfa-feature-card__bg-icon {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  opacity: .07;
  transition: opacity .25s;
  pointer-events: none;
}
.dfa-feature-card:hover .dfa-feature-card__bg-icon { opacity: .15; }
.dfa-feature-card__bg-icon svg { width: 120px; height: 120px; color: var(--primary); }
.dfa-feature-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--primary-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.dfa-feature-card__icon svg { width: 24px; height: 24px; color: var(--primary); }
.dfa-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .75rem;
  position: relative; z-index: 1;
}
.dfa-feature-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.dfa-feature-card img {
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative; z-index: 1;
}

/* ─── Deep Dive ─────────────────────────────────────────────── */
.dfa-deepdive {
  padding: 6rem 1.5rem;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.dfa-deepdive::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.dfa-deepdive__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.dfa-deepdive h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 2rem;
}
.dfa-check-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.dfa-check-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.dfa-check-list li svg {
  flex-shrink: 0;
  margin-top: .15rem;
  width: 22px; height: 22px;
  color: var(--primary);
}
.dfa-deepdive__cta-wrap { margin-top: 2.5rem; }

/* Metrics terminal widget */
.dfa-terminal {
  position: relative;
}
.dfa-terminal__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  pointer-events: none;
}
.dfa-terminal__ring--1 {
  inset: -2.5rem;
  border-color: rgba(255,255,255,.05);
  animation: spin-slow 60s linear infinite;
}
.dfa-terminal__ring--2 {
  inset: -5rem;
  border-color: rgba(255,255,255,.08);
  animation: spin-reverse 40s linear infinite;
}
.dfa-terminal__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 32px 64px rgba(0,0,0,.4);
  position: relative; z-index: 1;
}
.dfa-terminal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.dfa-terminal__label {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dfa-terminal__dots { display: flex; gap: .4rem; }
.dfa-terminal__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dfa-terminal__rows { display: flex; flex-direction: column; gap: 1.25rem; }
.dfa-terminal__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .875rem;
  color: var(--muted);
}
.dfa-terminal__row-val { color: var(--text); }
.dfa-terminal__row-val--accent { color: var(--primary); }

/* ─── CTA ───────────────────────────────────────────────────── */
.dfa-cta {
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.dfa-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(59,130,246,.08);
  pointer-events: none;
}
.dfa-cta__blob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: rgba(59,130,246,.18);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}
.dfa-cta__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.dfa-cta h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.dfa-cta p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.dfa-cta__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* Demo Form */
.dfa-form-wrap {
  background: rgba(11,15,28,.65);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
.dfa-form-wrap h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.dfa-form-wrap > p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: .95rem;
}
.dfa-form { display: flex; flex-direction: column; gap: 1rem; }
.dfa-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dfa-form__group { display: flex; flex-direction: column; gap: .35rem; }
.dfa-form label { font-size: .8rem; font-weight: 500; color: var(--muted); }
.dfa-form input {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font);
  width: 100%;
  transition: border-color .2s;
  outline: none;
}
.dfa-form input::placeholder { color: var(--muted); }
.dfa-form input:focus { border-color: var(--primary); }
.dfa-form .btn { width: 100%; margin-top: .5rem; height: 52px; font-size: 1rem; }
.dfa-form__error { color: #f87171; font-size: .875rem; }
.dfa-form__success {
  text-align: center;
  padding: 2rem;
}
.dfa-form__success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-dim);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.dfa-form__success-icon svg { width: 32px; height: 32px; color: var(--primary); }
.dfa-form__success h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.dfa-form__success p { color: var(--muted); }

/* ─── Footer ────────────────────────────────────────────────── */
.dfa-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3rem 1.5rem;
  font-size: .875rem;
  color: var(--muted);
}
.dfa-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}
.dfa-footer__brand {
  display: flex; align-items: center; gap: .4rem;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.dfa-footer__brand svg { width: 18px; height: 18px; color: var(--primary); }
.dfa-footer__links { display: flex; gap: 2rem; flex-wrap: wrap; }
.dfa-footer__links a:hover { color: var(--text); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dfa-hero__inner,
  .dfa-deepdive__inner { grid-template-columns: 1fr; gap: 3rem; }
  .dfa-features__grid { grid-template-columns: 1fr; }
  .dfa-stats__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dfa-nav__links { display: none; }
  .dfa-hero { padding-top: 7rem; }
  .dfa-form__row { grid-template-columns: 1fr; }
  .dfa-cta__btns { flex-direction: column; align-items: center; }
  .dfa-stats__inner { grid-template-columns: 1fr 1fr; }
  .dfa-hero__btns { flex-direction: column; }
}
@media (max-width: 480px) {
  .dfa-stats__inner { grid-template-columns: 1fr; }
  .dfa-footer__inner { flex-direction: column; text-align: center; }
  .dfa-footer__links { justify-content: center; }
}
