/* Core theme - Light theme matching Nexuma */
:root {
  --bg: #ffffff;
  --panel: #fafbfc;
  --panel-soft: #f5f7fa;
  --text: #0a0e27;
  --muted: #6b7280;
  --accent: #0a0e27;
  --accent-2: #0a0e27;
  --border: rgba(0, 0, 0, 0.06);
  --radius: 0;
  --shadow: none;
  --shadow-lg: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

.page-video-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 150vh;
  transform: translate(-50%, -50%) scale(0.85);
  object-fit: cover;
  object-position: center;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.page-video-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .page-video-bg {
    width: 150vw;
    height: 150vh;
    transform: translate(-50%, -50%) scale(0.7);
  }
}

@media (max-width: 480px) {
  .page-video-bg {
    width: 180vw;
    height: 180vh;
    transform: translate(-50%, -50%) scale(0.6);
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.5);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0; }
h1, h2, h3, h4 { margin: 0 0 12px; color: var(--text); }

#nav-container {
  position: sticky;
  top: 0;
  z-index: 10000;
  transition: box-shadow 0.2s ease;
}

#nav-container.scrolled .navbar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  transform: scale(0.8);
  transform-origin: top center;
  padding: 12.8px 19.2px;
  gap: 14.4px;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(250, 251, 252, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  border-radius: 0;
  transition: transform 0.3s ease, padding 0.3s ease, gap 0.3s ease, box-shadow 0.2s ease;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex: 1;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover { 
  color: var(--text); 
  background: rgba(0, 0, 0, 0.06);
}
.nav-links a.active { 
  color: var(--text); 
  background: rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: 10px; }

.primary, .secondary, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
}

.primary {
  background: #0a0e27;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 14, 39, 0.25), 0 2px 4px rgba(10, 14, 39, 0.15);
  border: 1px solid #0a0e27;
}
.primary:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(10, 14, 39, 0.35), 0 3px 6px rgba(10, 14, 39, 0.2);
  background: #1a1e37;
}
.secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.secondary:hover { 
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ghost:hover { 
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.panel {
  margin: 0;
  padding: 0 clamp(20px, 4vw, 40px);
  margin-bottom: clamp(24px, 4vw, 48px);
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.panel:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.panel:last-child {
  margin-bottom: 0;
}

/* Hero section - specific styling */
#hero.panel,
#hero.hero {
  padding-bottom: 0;
  margin-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.hero > * { position: relative; z-index: 1; }
.hero__content {
  padding: clamp(16px, 2vw, 24px) 0;
}
.hero__content h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.2; }
.hero__content .lede { font-size: 18px; margin: 12px 0 18px; }

.cta-row { display: flex; gap: 12px; margin: 14px 0 20px; flex-wrap: wrap; }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font-size: 14px; }

.hero__visual { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  gap: 0;
}

.hero__visual .car-animation {
  margin-top: -80px;
}

/* Car Animation */
.car-animation {
  width: clamp(175px, 35vw, 315px);
  height: clamp(175px, 35vw, 315px);
  max-width: 100%;
  flex-shrink: 0;
}

.car-animation svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero Logo Animation */
.ai-logo-animation {
  width: clamp(175px, 35vw, 315px);
  height: clamp(175px, 35vw, 315px);
  max-width: 100%;
  flex-shrink: 0;
}

.ai-logo-animation svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .car-animation {
    width: clamp(175px, 42vw, 262.5px);
    height: clamp(175px, 42vw, 262.5px);
  }
  .ai-logo-animation {
    width: clamp(175px, 42vw, 262.5px);
    height: clamp(175px, 42vw, 262.5px);
  }
  .hero__visual .car-animation {
    margin-top: -60px;
  }
}

@media (max-width: 480px) {
  .car-animation {
    width: clamp(140px, 49vw, 210px);
    height: clamp(140px, 49vw, 210px);
  }
  .ai-logo-animation {
    width: clamp(140px, 49vw, 210px);
    height: clamp(140px, 49vw, 210px);
  }
  .hero__visual .car-animation {
    margin-top: -40px;
  }
}
.glass-card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 0;
  border: none;
  border-top: none;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.glass-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.glass-card ul { padding-left: 18px; margin: 8px 0 12px; color: var(--text); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.hero-metrics div {
  padding: 20px;
  border-radius: 0;
  border: none;
  border-top: none;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.hero-metrics div:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.hero-metrics strong { display: block; font-size: 20px; }
.hero-metrics span { color: var(--muted); font-size: 14px; }

.section-header { 
  margin-bottom: 40px; 
  padding: clamp(24px, 3vw, 32px) 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(10px, 1.5vw, 12px);
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.tag {
  display: inline-block;
  padding: clamp(4px, 1vw, 6px) clamp(8px, 1.5vw, 10px);
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: clamp(10px, 1.5vw, 12px);
  margin: 0 0 8px;
}
.tag.success { 
  color: #059669; 
  border-color: rgba(5, 150, 105, 0.2);
  background: rgba(5, 150, 105, 0.1);
}
.pill {
  display: inline-flex;
  padding: clamp(4px, 1vw, 6px) clamp(10px, 1.5vw, 12px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: clamp(11px, 1.8vw, 13px);
  border: 1px solid var(--border);
}

.grid {
  display: grid;
  gap: 0;
}
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Benefits section - light blue background */
#benefits.panel {
  background: rgba(173, 216, 230, 0.225);
}

/* How It Works section - light teal background (professional contrast to light blue) */
#how-it-works.panel {
  background: rgba(144, 238, 224, 0.225);
}

/* What You Get section - light sage green background (professional complement) */
#what-you-get.panel {
  background: rgba(152, 251, 152, 0.225);
}

/* Add spacing between items in specific sections */
#benefits.panel .grid,
#how-it-works.panel .grid,
#use-cases.panel .grid,
#social-proof.panel .grid {
  gap: clamp(16px, 2vw, 24px);
}

/* Benefits section cards - add bottom padding */
#benefits.panel .card {
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 32px) clamp(48px, 6vw, 64px) clamp(24px, 3vw, 32px);
}

/* How It Works section cards - add bottom padding */
#how-it-works.panel .step-card {
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 32px) clamp(48px, 6vw, 64px) clamp(24px, 3vw, 32px);
}

/* What You Get section - add bottom padding to list items */
#what-you-get.panel li {
  padding-bottom: clamp(24px, 3vw, 32px) !important;
}

/* What You Get section - white background for list container */
#what-you-get.panel .split > div:first-child {
  background: #ffffff;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 8px;
}

/* How It Works vertical layout */
.how-it-works-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.step-description {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  max-width: 700px;
}

.step-image {
  width: 100%;
  max-width: 600px;
  margin: 24px auto 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 0;
  border: none;
  border-top: none;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}
.card--dim { background: #ffffff; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.card li { margin-bottom: 6px; }

.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  border: none;
  border-top: none;
  border-radius: 0;
  padding: clamp(24px, 3vw, 32px);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.comparison:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.comparison h3 { margin-bottom: 8px; }
.comparison ul { padding-left: 18px; margin: 0; color: var(--muted); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-row span {
  padding: clamp(6px, 1.2vw, 8px) clamp(10px, 1.5vw, 12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 600;
  font-size: clamp(11px, 1.8vw, 13px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  align-items: center;
}

.split > div {
  padding: clamp(16px, 2vw, 24px);
}

.device {
  justify-self: end;
  max-width: 320px;
  width: 100%;
}
.screen {
  border-radius: 0;
  border: none;
  padding: clamp(24px, 3vw, 32px);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.screen:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.screen ul { padding-left: 18px; margin: 10px 0 14px; }

.quote p { font-size: clamp(14px, 2.5vw, 16px); color: var(--text); }
.quote span { color: var(--muted); font-size: clamp(12px, 2vw, 14px); }

.pricing-grid {
  gap: clamp(16px, 2vw, 24px);
}
.pricing-grid .card {
  border-top: none;
  background: #ffffff;
}
.pricing-grid .card h3 { margin-bottom: 6px; }
.pricing-grid .small { color: var(--muted); margin: 0 0 10px; }
.pricing-grid .card:hover {
  background: #ffffff;
}
.featured {
  background: #ffffff;
  border: none;
}
.featured:hover {
  background: #ffffff;
}

.faq details {
  border: none;
  border-top: none;
  border-radius: 0;
  padding: clamp(24px, 3vw, 32px);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: clamp(12px, 1.5vw, 16px);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.faq details + details { margin-top: 0; }
.faq details:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.faq p { margin-top: 8px; }

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.footer-links { display: flex; gap: 28px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .tiny { color: #9ca3af; grid-column: 1 / -1; margin: 6px 0 0; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsive - Tablet and below */
@media (max-width: 1024px) {
  main { 
    padding: 0; 
    max-width: 100%;
  }
  .panel { 
    margin-bottom: clamp(20px, 3vw, 40px);
    padding: 0 clamp(20px, 4vw, 40px); 
  }
  .panel:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  .hero { gap: 40px; }
}

/* Mobile responsive - Mobile devices */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { 
    display: inline-flex; 
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9); 
    border: 1px solid var(--border); 
    color: var(--text); 
    padding: 8px 10px; 
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  .navbar { 
    flex-wrap: wrap; 
    padding: 12px 16px;
    position: relative;
  }
  .navbar.open .nav-links,
  .navbar.open .nav-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    gap: 8px;
    z-index: 10001;
  }
  .navbar.open .nav-links a,
  .navbar.open .nav-actions a {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  main { 
    padding: 0; 
  }
  .panel { 
    margin-bottom: clamp(16px, 3vw, 32px);
    padding: 0 clamp(20px, 4vw, 24px); 
  }
  .panel:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  
  h1 { 
    font-size: clamp(28px, 8vw, 36px) !important; 
    line-height: 1.2;
    margin-bottom: 16px;
  }
  h2 { 
    font-size: clamp(24px, 7vw, 30px) !important; 
    line-height: 1.3;
  }
  h3 { 
    font-size: clamp(20px, 6vw, 24px) !important; 
  }
  .lede {
    font-size: clamp(16px, 4vw, 18px) !important;
    line-height: 1.6;
  }
  
  .hero { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  .hero__content {
    order: 1;
  }
  .hero__visual {
    order: 2;
  }
  
  .split { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  .grid.cols-2,
  .grid.cols-3 { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  
  .primary, .secondary, .ghost {
    padding: 14px 20px;
    min-height: 44px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }
  .cta-row { 
    flex-direction: column; 
    gap: 12px;
    margin: 20px 0;
  }
  .cta-row .primary,
  .cta-row .secondary { 
    width: 100%; 
  }
  
  .card {
    padding: 16px;
  }
  .glass-card {
    padding: 16px;
  }
  
  .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
  }
  .hero-metrics div {
    padding: 12px;
  }
  
  .footer {
    padding: 24px 16px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
  
  body {
    overflow-x: hidden;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Small phones - Extra small screens */
@media (max-width: 480px) {
  main { 
    padding: 0; 
  }
  .panel { 
    margin-bottom: clamp(12px, 2vw, 24px);
    padding: 0 clamp(16px, 3vw, 20px); 
  }
  .panel:first-child {
    margin-top: 0;
    padding-top: 0;
  }
  .navbar {
    padding: 10px 12px;
    position: relative;
  }
  .navbar.open .nav-links,
  .navbar.open .nav-actions {
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    padding: 12px;
    z-index: 10001;
  }
  
  h1 { 
    font-size: clamp(24px, 9vw, 32px) !important; 
  }
  h2 { 
    font-size: clamp(20px, 8vw, 26px) !important; 
  }
  
  .primary, .secondary, .ghost {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .card, .glass-card {
    padding: 14px;
  }
  
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  
  .footer {
    padding: 20px 12px;
  }
}
