/* ============================================================
   AllCarsAI – styles.css
   ============================================================ */

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

:root {
  --bg:        #0a0b0f;
  --bg-card:   #111318;
  --bg-card2:  #16181f;
  --border:    rgba(255,255,255,0.07);
  --accent:    #e8441a;
  --accent2:   #f97316;
  --text:      #f0f0f2;
  --text-muted:#8a8c96;
  --radius:    16px;
  --radius-sm: 10px;
  --font:      'Inter', system-ui, sans-serif;
  --max-w:     1120px;
  --nav-h:     68px;
}

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  border: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(232,68,26,0.35);
}
.btn--primary:hover { box-shadow: 0 8px 32px rgba(232,68,26,0.5); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); }

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,11,15,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.logo-icon { font-size: 1.3rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.btn) {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--text); }

/* --- Section Shared --- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 56px;
}

/* --- Gradient text --- */
.gradient-text {
  background: linear-gradient(135deg, #ff6b35, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(232,68,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Left column spans both rows */
.hero__badge,
.hero__headline,
.hero__sub,
.hero__cta {
  grid-column: 1;
}

.hero__mockup {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent2);
  width: fit-content;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Phone Mockup --- */
.phone-frame {
  width: 280px;
  height: 580px;
  background: #1a1b22;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 8px #0f1014,
    0 0 0 10px rgba(255,255,255,0.05),
    0 40px 100px rgba(0,0,0,0.6),
    0 0 60px rgba(232,68,26,0.12);
  padding: 16px;
  position: relative;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0d0e13;
  border-radius: 32px;
  overflow: hidden;
  padding: 20px 16px;
}

.app-ui { display: flex; flex-direction: column; gap: 12px; }

.app-header { margin-bottom: 4px; }
.app-greeting { font-size: 0.7rem; color: var(--text-muted); }
.app-car { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em; }

.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.app-card--alert .card-icon { font-size: 1.3rem; color: #f59e0b; }
.app-card--fuel .card-icon  { font-size: 1.3rem; color: #3b82f6; }

.card-title { font-size: 0.82rem; font-weight: 600; }
.card-sub   { font-size: 0.72rem; color: var(--text-muted); }

.app-wheelz {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
}

.wheelz-avatar {
  width: 32px; height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}

.wheelz-bubble {
  background: rgba(232,68,26,0.12);
  border: 1px solid rgba(232,68,26,0.25);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.5;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(232,68,26,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(232,68,26,0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(232,68,26,0.04) 50%, transparent 100%);
  border-top: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
}

.step {
  flex: 1;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}
.step:hover { border-color: rgba(232,68,26,0.3); }

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-divider {
  width: 40px;
  min-width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  align-self: center;
  opacity: 0.4;
  border-radius: 2px;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.download__glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(232,68,26,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.download__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download .section-sub { margin-bottom: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy { font-size: 0.85rem; color: var(--text-muted); }

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__badge { margin: 0 auto 24px; }
  .hero__sub { margin: 0 auto 40px; }
  .hero__cta { justify-content: center; }
  .hero__mockup {
    grid-column: 1;
    grid-row: auto;
  }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav__links a:not(.btn) { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__headline { font-size: 2.4rem; }
  .features__grid { grid-template-columns: 1fr; }
  .steps {
    flex-direction: column;
    gap: 16px;
  }
  .step-divider {
    width: 2px;
    height: 24px;
    min-width: auto;
    align-self: center;
  }
  .footer__inner { flex-direction: column; text-align: center; }
  .phone-frame { width: 240px; height: 500px; }
}
