:root {
  --primary: #1E293B;
  --primary-soft: #334155;
  --accent: #00C2A8;
  --accent-hover: #00b098;
  --accent-warm: #10B981;
  --accent-secondary: #3B82F6;
  --amber: #F5A623;
  --critical: #E74C3C;
  --ok: #22C55E;
  --bg-light: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 194, 168, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Header */
header {
  padding: 1.25rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  z-index: 1100;
}

.logo img {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--primary);
  font-size: 0.95rem;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 10rem 0 6rem;
  background: radial-gradient(circle at top right, rgba(0, 194, 168, 0.05), transparent),
              radial-gradient(circle at bottom left, rgba(11, 31, 58, 0.02), transparent);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 194, 168, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 194, 168, 0.2);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 540px;
  line-height: 1.7;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.trust-pill:hover {
  border-color: var(--accent);
  background: var(--white);
  transform: translateY(-1px);
}

.trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.product-mock {
  width: 100%;
  max-width: 480px;
  background: var(--primary);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(11, 31, 58, 0.25);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.product-mock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Stats Bar */
.stats-bar {
  padding: 3rem 0;
  background: var(--white);
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Features */
.features {
  padding: 10rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 2rem;
  color: var(--accent);
  background: rgba(0, 194, 168, 0.08);
  padding: 12px;
  border-radius: 16px;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* App Preview */
.app-preview {
  padding: 10rem 0;
  background: var(--primary);
  color: var(--white);
}

.app-preview h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

.phone-frame {
  background: #0f172a;
  border-radius: 40px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: translateY(-10px);
}

.phone-screen {
  background: #000;
  border-radius: 30px;
  aspect-ratio: 9/19;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  position: relative;
}

.phone-label {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

/* VIN History */
.vin-callout {
  padding: 10rem 0;
  background: var(--bg-light);
}

.vin-box {
  background: var(--white);
  border-radius: 32px;
  padding: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

/* Testimonials */
.testimonials {
  padding: 10rem 0;
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: var(--bg-light);
  border-radius: 24px;
  border: 1px solid #f1f5f9;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-main);
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing {
  padding: 10rem 0;
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.price-card {
  padding: 4rem 2.5rem;
  border-radius: 32px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  text-align: left;
  transition: all 0.3s ease;
}

.price-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
  box-shadow: 0 30px 60px -12px rgba(11, 31, 58, 0.15);
  z-index: 10;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--primary);
}

.price-features {
  list-style: none;
  margin: 2rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.price-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* FAQ */
.faq {
  padding: 10rem 0;
  background: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.5rem 2rem;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-muted);
  background: var(--white);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.faq-item.active .faq-answer {
  padding: 0.5rem 2rem 1.5rem;
  max-height: 200px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Footer */
footer {
  padding: 6rem 0 3rem;
  background: var(--primary);
  color: var(--white);
}

footer .logo span, footer h4 {
  color: var(--white);
}

footer a {
  color: rgba(255,255,255,0.6);
}

footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-grid, .vin-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .trust-row {
    justify-content: center;
  }
  .product-mock {
    margin: 0 auto;
  }
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  body.nav-open .nav-links {
    right: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Screenshot showcase */
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.screenshots-showcase {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.showcase-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.showcase-tab {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: var(--white);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.showcase-tab:hover {
  border-color: var(--accent);
}

.showcase-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
}

.showcase-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.25), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

.phone-frame-lg {
  width: 300px;
  position: relative;
  z-index: 1;
}

.phone-notch {
  width: 100px;
  height: 22px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto -11px;
  position: relative;
  z-index: 2;
}

.phone-iframe {
  width: 100%;
  aspect-ratio: 9/19.5;
  border: 0;
  border-radius: 30px;
  display: block;
  background: #0B1F3A;
}

.showcase-caption {
  margin-top: 1.75rem;
  text-align: center;
  max-width: 420px;
}

.showcase-caption strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.showcase-caption span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.showcase-foot {
  text-align: center;
  margin-top: 3rem;
}

.showcase-foot a {
  color: var(--accent);
  font-weight: 600;
}

/* Legacy inline phone mocks */
.ui-bar {
  height: 4px;
  width: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0 auto 8px;
}

.ui-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.ui-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.72rem;
  color: #e2e8f0;
}

.ui-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.ui-dot.ok { background: var(--ok); }
.ui-dot.warn { background: var(--amber); }

.ui-chat {
  background: var(--accent);
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 12px 12px 4px 12px;
  font-size: 0.7rem;
  align-self: flex-end;
  max-width: 85%;
}

.ui-chat.reply {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border-radius: 12px 12px 12px 4px;
  align-self: flex-start;
}

.pulse-ring {
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin: 12px auto;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .showcase-layout {
    grid-template-columns: 1fr;
  }
  .showcase-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .showcase-tab {
    flex: 1 1 calc(33% - 0.5rem);
    text-align: center;
    font-size: 0.85rem;
    padding: 0.65rem;
  }
}
