/* =====================================================
   CustomerText Design System
   Brand: Blue (#1E90FF), Editorial Confidence
   Light default + Dark mode toggle
   ===================================================== */

:root {
  /* Brand Colors — Primary (blue) */
  --primary:         #1E90FF;
  --primary-light:   #4da6ff;
  --primary-dark:    #1574cc;
  --primary-logo:    #1E90FF;

  /* Neutrals — Light theme (default) */
  --bg-primary:    #f8f9fc;
  --bg-elevated:   #eef1f6;
  --bg-card:       #ffffff;
  --bg-card-hover: #f4f7fb;
  --surface:       #dce2ec;
  --border:        rgba(30, 144, 255, 0.12);
  --border-strong: rgba(30, 144, 255, 0.25);

  /* Text — Light theme */
  --text-primary:    #0f172a;
  --text-secondary:  #475569;
  --text-muted:      #94a3b8;
  --text-on-primary: #ffffff;

  /* Theme-dependent surfaces */
  --header-blur-bg:  rgba(248, 249, 252, 0.85);
  --mobile-nav-bg:   rgba(248, 249, 252, 0.97);
  --logo-text:       #0f172a;
  --card-shadow:     0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --card-shadow-hover: 0 12px 40px rgba(0,0,0,0.08);
  --demo-shadow:     0 20px 60px rgba(0,0,0,0.08);

  /* Gradients — Light theme */
  --grad-primary:  linear-gradient(135deg, #1E90FF 0%, #1574cc 100%);
  --grad-hero:     linear-gradient(160deg, #f8f9fc 0%, #eef2f7 40%, #f0f4f8 100%);
  --grad-radial:   radial-gradient(ellipse at 30% 20%, rgba(30,144,255,0.06) 0%, transparent 60%);
  --grad-card:     linear-gradient(180deg, rgba(30,144,255,0.02) 0%, transparent 40%);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container:   1200px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:    0.6s;

  /* Backward-compatible aliases */
  --blue: var(--primary);
  --blue-light: var(--primary-light);
  --blue-dark: var(--primary-dark);
  --blue-logo: var(--primary-logo);
  --text-on-blue: var(--text-on-primary);
  --grad-blue: var(--grad-primary);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary:    #0a0e13;
  --bg-elevated:   #10161e;
  --bg-card:       #141c28;
  --bg-card-hover: #1a2436;
  --surface:       #1c2637;
  --border:        rgba(30, 144, 255, 0.10);
  --border-strong: rgba(30, 144, 255, 0.22);

  --text-primary:    #f0f2f5;
  --text-secondary:  #8b95a5;
  --text-muted:      #5a6577;

  --header-blur-bg:  rgba(10, 14, 19, 0.88);
  --mobile-nav-bg:   rgba(10, 14, 19, 0.97);
  --logo-text:       #ffffff;
  --card-shadow:     none;
  --card-shadow-hover: 0 12px 40px rgba(0,0,0,0.25);
  --demo-shadow:     0 20px 60px rgba(0,0,0,0.3);

  --grad-hero:     linear-gradient(160deg, #0a0e13 0%, #10161e 40%, #0c131c 100%);
  --grad-radial:   radial-gradient(ellipse at 30% 20%, rgba(30,144,255,0.07) 0%, transparent 60%);
  --grad-card:     linear-gradient(180deg, rgba(30,144,255,0.03) 0%, transparent 40%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* =====================================================
   Scroll Reveal
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =====================================================
   Header
   ===================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.header.scrolled {
  background: var(--header-blur-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.logo-customer { color: var(--primary-logo); }
.logo-text     { color: var(--logo-text); }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.3s, background 0.3s;
}
.nav-link:hover,
.nav-link.active { color: var(--text-primary); background: rgba(30, 144, 255, 0.08); }
.nav-link.active { color: var(--primary); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-on-primary);
  box-shadow: 0 2px 16px rgba(30, 144, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(30, 144, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30, 144, 255, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-ghost:hover { background: rgba(30, 144, 255, 0.08); }

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn:disabled { cursor: not-allowed; transform: none; }

/* =====================================================
   Theme Toggle
   ===================================================== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(30, 144, 255, 0.05);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--grad-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(30,144,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -15%;
  width: 50%; height: 50%;
  background: radial-gradient(ellipse, rgba(30,144,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1400px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(30, 144, 255, 0.1);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Demo */
.hero-demo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  box-shadow: var(--demo-shadow), 0 0 0 1px var(--border);
}
.hero-demo iframe {
  width: 100%; height: 100%;
  border: none;
}

/* =====================================================
   Section Shared
   ===================================================== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0; border: none;
}

/* =====================================================
   Features Grid
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 36px 32px;
  background: var(--grad-card);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(30, 144, 255, 0.1);
  color: var(--primary);
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =====================================================
   Stats Bar
   ===================================================== */
.stats-bar {
  padding: 60px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =====================================================
   Testimonials
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--border-strong); }

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: #f0b429;
}
.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(30,144,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  padding: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-inner h2 em { font-style: italic; color: var(--primary); }
.cta-inner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   Pricing
   ===================================================== */
.pricing-section {
  padding-top: calc(72px + var(--section-pad));
  background: var(--grad-hero);
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 56px;
}
.pricing-toggle-btn {
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.pricing-toggle-btn.active {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 2px 12px rgba(30, 144, 255, 0.3);
}
.pricing-save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(30, 144, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 20px 60px rgba(30,144,255,0.10);
  transform: scale(1.03);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-popular-tag {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-primary);
  background: var(--primary);
  border-radius: 6px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.1;
}
.plan-price .period {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}
.plan-credits {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.plan-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(30, 144, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231E90FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card .btn { width: 100%; margin-top: 28px; }

.price-hidden { display: none; }

/* =====================================================
   About Page
   ===================================================== */
.page-hero {
  padding: calc(72px + 80px) 0 80px;
  background: var(--grad-hero);
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-radial);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-text h3 em { font-style: italic; color: var(--primary); }
.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-image {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.value-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.value-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* =====================================================
   Contact Page
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.3s;
}
.contact-info-card:hover { border-color: var(--border-strong); }

.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 144, 255, 0.1);
  border-radius: 10px;
  color: var(--primary);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-info-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-card p,
.contact-info-card a { font-size: 0.9rem; color: var(--text-secondary); }
.contact-info-card a:hover { color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =====================================================
   Footer
   ===================================================== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.65;
  margin-top: 12px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

.footer-compliance {
  padding: 20px 0;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-compliance p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.footer-compliance a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-compliance a:hover { color: var(--primary-light); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color 0.3s, background 0.3s;
}
.footer-socials a:hover { color: var(--primary); background: rgba(30, 144, 255, 0.1); }
.footer-socials svg { width: 18px; height: 18px; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .menu-toggle { display: flex; }
  .header-cta .btn-ghost { display: none; }

  .hero { min-height: auto; padding: calc(72px + 40px) 0 60px; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .values-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-inner { padding: 40px 24px; }

  .widget-preview-content { grid-template-columns: 1fr; }
  .widget-preview-text { display: none; }
  .install-step { flex-direction: column; text-align: center; }
  .install-step-number { margin: 0 auto; }
  .widget-options-table { overflow-x: auto; }
  .widget-options-table table { min-width: 580px; }
}

/* =====================================================
   Widget Page
   ===================================================== */

/* --- Preview Section --- */
.widget-preview-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.widget-preview-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--demo-shadow);
}

.widget-preview-browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.widget-preview-dots {
  display: flex;
  gap: 6px;
}
.widget-preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
}
.widget-preview-dots span:nth-child(1) { background: #ff5f57; }
.widget-preview-dots span:nth-child(2) { background: #febc2e; }
.widget-preview-dots span:nth-child(3) { background: #28c840; }

.widget-preview-url {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 6px 16px;
  border-radius: 6px;
  font-family: var(--font-body);
}

.widget-preview-body {
  padding: 40px;
}

.widget-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.widget-preview-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-preview-placeholder-line {
  height: 12px;
  background: var(--surface);
  border-radius: 6px;
}

.widget-preview-embed {
  display: flex;
  justify-content: center;
}

/* --- Embed Code Section --- */
.embed-code-card {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

.embed-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.embed-code-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.embed-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(30, 144, 255, 0.1);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 8px;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.embed-code-copy:hover {
  background: rgba(30, 144, 255, 0.18);
  border-color: var(--primary);
}
.embed-code-copy.copied {
  background: rgba(40, 200, 64, 0.15);
  border-color: rgba(40, 200, 64, 0.3);
  color: #28c840;
}
.embed-code-copy svg {
  width: 14px;
  height: 14px;
}

.embed-code-block {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}
.embed-code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre;
}

.embed-code-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.embed-code-note strong {
  color: var(--primary);
  font-weight: 600;
}

/* --- Customization Table --- */
.widget-options-table {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

.widget-options-table table {
  width: 100%;
  border-collapse: collapse;
}

.widget-options-table thead {
  background: var(--bg-elevated);
}

.widget-options-table th {
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.widget-options-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.widget-options-table tr:last-child td {
  border-bottom: none;
}

.widget-options-table code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  background: rgba(30, 144, 255, 0.08);
  color: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
}

/* --- Installation Steps --- */
.install-steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.install-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.install-step:last-child {
  border-bottom: none;
}

.install-step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(30, 144, 255, 0.1);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.install-step-content h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.install-step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.install-step-content code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  background: rgba(30, 144, 255, 0.08);
  color: var(--primary-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Widget page responsive (1024px) */
@media (max-width: 1024px) {
  .widget-preview-content { grid-template-columns: 1fr; }
  .widget-preview-text { display: none; }
}
