/* =========================================================
   DemoPilot — Landing Page Theme
   Deep navy / electric teal system
   ========================================================= */

:root {
  --navy-deep: #1E3A5F;
  --navy-darker: #0F1C2E;
  --teal: #00D4B4;
  --teal-dark: #00A88E;
  --teal-glow: rgba(0, 212, 180, 0.18);
  --warm-white: #F8F6F2;
  --warm-white-alt: #F0ECE4;
  --text-dark: #1A1A2E;
  --text-muted: #6B7A8C;
  --text-white: rgba(255, 255, 255, 0.85);
  --orange: #FF6B35;
  --white: #FFFFFF;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: #E0DAD0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--warm-white);
  color: var(--text-dark);
}

/* =========================================================
   STICKY HEADER
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border-light);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  padding: 20px 48px;
}

.nav.scrolled {
  padding: 10px 48px;
  box-shadow: 0 2px 24px rgba(15, 28, 46, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--navy-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: font-size 0.3s ease;
}

.nav.scrolled .nav-logo { font-size: 18px; }

.nav-tag {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.nav.scrolled .nav-tag { opacity: 0; pointer-events: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.nav-link:hover { opacity: 1; color: var(--teal); }

/* =========================================================
   HERO — Deep Navy
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy-darker) 100%);
  overflow: hidden;
  padding: 120px 48px 80px;
}

/* Layered gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 180, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 180, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/generated-images/company_178261/a8e350dd-147e-40d4-9510-4a5e1123bb0b.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Staggered text animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* Badge */
.hero-badge {
  display: inline-block;
  background: var(--teal-glow);
  border: 1px solid rgba(0, 212, 180, 0.3);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 28px;
}

/* Headline */
.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* Sub */
.hero-sub {
  font-size: 17px;
  color: var(--text-white);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
}

/* CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* CTA Button — shimmer animation */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  background: linear-gradient(135deg, var(--teal) 0%, #00E8C8 50%, var(--teal) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  color: var(--navy-darker);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 212, 180, 0.35);
}

.btn-primary:active { transform: translateY(-1px); }

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-large { font-size: 16px; padding: 16px 36px; }

.hero-cta-note {
  font-size: 13px;
  color: var(--text-white);
  opacity: 0.6;
  max-width: 200px;
  line-height: 1.5;
}

/* Browser mockup */
.hero-visual { position: relative; }

.site-browser {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.06);
}

.browser-bar {
  background: #2A3F54;
  padding: 12px 16px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.browser-content { padding: 28px; }

.site-header { margin-bottom: 24px; }

.site-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--navy-deep);
  margin-bottom: 4px;
}

.site-tagline { font-size: 13px; color: var(--text-muted); }

.site-service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.service-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
  transform: translateY(-2px);
}

.service-icon {
  width: 28px;
  height: 28px;
  background: var(--navy-deep);
  border-radius: 50%;
  margin: 0 auto 8px;
  opacity: 0.6;
}

.service-name { font-size: 12px; font-weight: 600; color: var(--navy-deep); margin-bottom: 4px; }
.service-price { font-size: 11px; color: var(--text-muted); }

/* Chat widget */
.chat-widget {
  background: var(--navy-deep);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.chat-avatar {
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
}

.chat-body { display: flex; flex-direction: column; gap: 8px; }

.chat-msg {
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 85%;
}

.chat-msg--bot {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-msg--user {
  background: var(--teal);
  color: var(--navy-darker);
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg--bot.confirmed {
  background: rgba(0, 212, 180, 0.18);
  color: var(--teal);
}

.site-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stat {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.stat-val {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--navy-deep);
}

.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* =========================================================
   PROOF STRIP
   ========================================================= */
.proof {
  background: var(--navy-deep);
  padding: 56px 48px;
}

.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.proof-stat { flex: 1; text-align: center; }

.proof-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 40px;
  color: var(--teal);
  margin-bottom: 8px;
}

.proof-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.proof-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
}

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header { text-align: center; margin-bottom: 64px; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.15;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.5s ease;
}

/* Fade-in on scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.1);
  transform: translateY(-4px);
}

.feature-icon-wrap { margin-bottom: 20px; }

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   TESTIMONIALS — new section
   ========================================================= */
.testimonials {
  background: var(--warm-white);
  padding: 100px 48px;
}

.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.5s ease;
}

.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.1);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.star-icon {
  color: var(--orange);
  font-size: 16px;
  line-height: 1;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-deep), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}

.author-meta {}
.author-name { font-size: 14px; font-weight: 700; color: var(--navy-deep); }
.author-detail { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  padding: 80px 48px;
  background: var(--warm-white-alt);
}

.how-header { text-align: center; margin-bottom: 60px; }

.steps-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 24px;
}

.step-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 48px;
  color: var(--navy-deep);
  opacity: 0.1;
  margin-bottom: 12px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-arrow { flex-shrink: 0; padding: 0 8px; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing {
  padding: 100px 48px;
  background: var(--navy-deep);
}

.pricing-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.pricing .section-label { color: var(--teal); }

.pricing-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--white);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.pricing-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 36px;
  text-align: left;
  position: relative;
}

.pricing-card--main {
  background: rgba(0, 212, 180, 0.08);
  border-color: rgba(0, 212, 180, 0.25);
}

.pricing-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--navy-darker);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.pricing-name { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.price-val {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 42px;
  color: var(--white);
}

.price-note { font-size: 13px; color: rgba(255,255,255,0.5); }
.price-per { font-size: 16px; color: rgba(255,255,255,0.5); }

.pricing-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding-left: 20px;
  position: relative;
}

.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.8;
}

/* Urgency — pulse animation */
.pricing-urgency {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
  animation: pulse-urgency 2.5s ease-in-out infinite;
}

@keyframes pulse-urgency {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.1); }
}

.timer-icon { flex-shrink: 0; }

.pricing-normal {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.pricing-normal strong { color: rgba(255,255,255,0.65); }

/* =========================================================
   CLOSING CTA
   ========================================================= */
.closing {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.closing-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.footer-tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-copy { font-size: 12px; color: var(--text-muted); opacity: 0.6; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
  .scroll-reveal { opacity: 1; transform: none; }
  .btn-primary { animation: none; }
  .pricing-urgency { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-left { order: 1; }
  .hero-right { order: 2; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .proof-inner { flex-direction: column; gap: 32px; }
  .proof-divider { width: 40px; height: 1px; }
  .steps-row { flex-direction: column; gap: 32px; }
  .step-arrow { display: none; }
  .hero { padding: 100px 24px 80px; }
  .features { padding: 60px 24px; }
  .testimonials { padding: 60px 24px; }
  .pricing { padding: 60px 24px; }
  .how { padding: 60px 24px; }
  .closing { padding: 60px 24px; }
  .nav { padding: 16px 24px; }
  .site-service-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-cta-note { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}