/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #10B981;
  --green-light: #D1FAE5;
  --green-dark: #059669;
  --bg: #F8F9FA;
  --bg-card: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-mid: #475569;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-mid); }

.green { color: var(--green); }
.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ─── LAYOUT ────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ─── ANIMATIONS ────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4), 0 0 40px rgba(16,185,129,0.15); }
  50%       { box-shadow: 0 0 0 16px rgba(16,185,129,0), 0 0 80px rgba(16,185,129,0.3); }
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.12); opacity: 0.8; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp 0.7s ease forwards; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ─── NAVBAR ────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,249,250,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.25rem; font-weight: 700; color: var(--text-dark);
  text-decoration: none;
}
.logo span { color: var(--green); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-mid); text-decoration: none; font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px; font-weight: 600;
  font-size: 0.92rem; cursor: pointer; border: none;
  text-decoration: none; transition: all 0.2s;
}
.btn-primary {
  background: var(--green); color: white;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16,185,129,0.35); }
.btn-outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: white; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ─── HERO ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
  background: radial-gradient(ellipse at 50% 60%, #dcfce7 0%, #f8f9fa 65%);
}
.hero-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.18) 0%, rgba(16,185,129,0.04) 60%, transparent 80%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-ring {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(16,185,129,0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin-slow 20s linear infinite;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-mid);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.7s ease forwards;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse-glow 2s infinite;
}
.hero-content h1 { animation: fadeInUp 0.7s 0.1s ease both; }
.hero-content p {
  font-size: 1.15rem; margin: 20px 0 36px;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 56px;
  animation: fadeInUp 0.7s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--text-dark); }
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }

/* ─── AI DEMO BAR ───────────────────────────────────────────────── */
#ai-demo {
  padding: 0;
  background: var(--text-dark);
}
.demo-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 24px; flex-wrap: wrap; gap: 20px;
}
.demo-bar-text h3 { color: white; font-size: 1.1rem; }
.demo-bar-text p { color: #94A3B8; font-size: 0.9rem; margin-top: 4px; }
.demo-bar-action { display: flex; align-items: center; gap: 16px; }
.ai-tag {
  background: rgba(16,185,129,0.15); color: var(--green);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}

/* ─── SERVICES ──────────────────────────────────────────────────── */
#services { background: white; }
.section-header { text-align: center; margin-bottom: 56px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; }
.service-price {
  display: inline-block; margin-top: 16px;
  color: var(--green); font-weight: 600; font-size: 0.9rem;
}

/* ─── HOW IT WORKS ──────────────────────────────────────────────── */
#how-it-works { background: var(--bg); }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px; margin-top: 56px;
}
.step {
  text-align: center; padding: 40px 28px;
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }

/* ─── INSURANCE ─────────────────────────────────────────────────── */
#insurance { background: white; text-align: center; }
.insurance-grid {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin-top: 40px;
}
.insurance-badge {
  background: var(--bg); border: 1px solid var(--border);
  padding: 16px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; color: var(--text-dark);
  transition: all 0.2s;
}
.insurance-badge:hover { border-color: var(--green); color: var(--green); }

/* ─── TESTIMONIALS ──────────────────────────────────────────────── */
#testimonials { background: var(--bg); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 56px;
}
.testimonial-card {
  background: white; border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
}
.stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-card p { font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--green-dark);
}
.author-name { font-weight: 600; font-size: 0.92rem; }
.author-detail { font-size: 0.8rem; color: var(--text-light); }

/* ─── CONTACT ───────────────────────────────────────────────────── */
#contact { background: white; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-info h2 { margin-bottom: 24px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 24px;
}
.info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.info-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.info-value { font-weight: 600; margin-top: 2px; }
.contact-form { background: var(--bg); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: white;
  font-family: inherit; font-size: 0.92rem; color: var(--text-dark);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--green);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ─── FOOTER ────────────────────────────────────────────────────── */
footer {
  background: var(--text-dark); color: #94A3B8;
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: white; }
.footer-logo span { color: var(--green); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #94A3B8; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 0.82rem; margin-top: 24px; text-align: center; border-top: 1px solid #2D3748; padding-top: 24px; }

/* ─── FLOATING VOICE BUTTON ─────────────────────────────────────── */
#voice-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 200;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 32px rgba(16,185,129,0.45);
  animation: pulse-glow 2.5s ease-in-out infinite, float 3s ease-in-out infinite;
  transition: transform 0.2s;
}
#voice-btn:hover { transform: scale(1.1); }

/* ─── VOICE MODAL ───────────────────────────────────────────────── */
#voice-modal {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
#voice-modal.open { display: flex; }
.modal-card {
  background: white; border-radius: 24px;
  padding: 48px 40px; text-align: center;
  max-width: 420px; width: 90%;
  animation: fadeInUp 0.3s ease;
}
.modal-orb {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 2.5rem;
  animation: pulse-glow 1.5s ease-in-out infinite;
}
.modal-orb.active { background: #dcfce7; animation: pulse-glow 0.8s ease-in-out infinite; }
.modal-status { font-size: 0.88rem; color: var(--text-light); margin-top: 8px; }
.modal-transcript {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 16px; margin: 20px 0; min-height: 80px;
  text-align: left; font-size: 0.88rem; color: var(--text-mid);
  max-height: 160px; overflow-y: auto;
}
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.btn-end {
  background: #FEE2E2; color: #DC2626; border: none;
  padding: 12px 28px; border-radius: 100px; font-weight: 600;
  cursor: pointer; font-size: 0.92rem; transition: all 0.2s;
}
.btn-end:hover { background: #DC2626; color: white; }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Layout */
  section { padding: 64px 0; }
  .container { padding: 0 20px; }

  /* Navbar */
  .nav-links { display: none; }
  .nav-inner .btn { padding: 10px 18px; font-size: 0.82rem; }

  /* Hero */
  #hero { padding-top: 80px; min-height: auto; padding-bottom: 56px; }
  .hero-content { padding: 0 4px; }
  .hero-content p { font-size: 1rem; margin: 16px 0 28px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .hero-buttons .btn-lg { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    margin-top: 40px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .stat-num { font-size: 1.6rem; }
  .hero-orb { width: 320px; height: 320px; }
  .hero-orb-ring { width: 220px; height: 220px; }

  /* AI Demo Bar */
  .demo-bar { flex-direction: column; text-align: center; gap: 16px; padding: 24px 20px; }
  .demo-bar-action { flex-direction: column; align-items: center; gap: 12px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px; }
  .section-header { margin-bottom: 36px; }

  /* How It Works */
  .steps-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .step { padding: 28px 20px; }

  /* Insurance */
  .insurance-grid { gap: 10px; }
  .insurance-badge { padding: 12px 18px; font-size: 0.85rem; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .testimonial-card { padding: 24px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Floating button */
  #voice-btn { bottom: 20px; right: 20px; width: 56px; height: 56px; font-size: 1.4rem; }

  /* Modal */
  .modal-card { padding: 32px 24px; }
  .modal-actions { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero-stats { max-width: 280px; gap: 16px 24px; }
  .stat-num { font-size: 1.4rem; }
}
