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

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --primary-50: #eef2ff;
  --accent: #06d6a0;
  --accent-dark: #05b384;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Header ─────────────────────────────────────── */

.site-header {
  background: var(--white);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--dark);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 800;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ───────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1f4e 50%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 72px);
}

@media (min-width: 769px) {
  .hero {
    max-width: none;
    padding: 5rem calc((100% - 1200px) / 2 + 2rem) 6rem;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 650;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 214, 160, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.stat span {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── Phone Mockup ──────────────────────────────── */

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 380px;
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(79, 70, 229, 0.15);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-bubble {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--gray-800);
  position: relative;
}

.bubble-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.ai-bubble.incoming {
  background: var(--gray-100);
  align-self: flex-start;
  max-width: 88%;
  border-bottom-left-radius: 4px;
}

.ai-bubble.incoming .bubble-label {
  color: var(--gray-500);
}

.ai-bubble.outgoing {
  background: var(--primary-50);
  border: 1px solid rgba(79, 70, 229, 0.12);
  align-self: flex-end;
  max-width: 88%;
  border-bottom-right-radius: 4px;
}

.ai-bubble.outgoing .bubble-label {
  color: var(--primary);
}

.ai-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 600;
  padding: 0.5rem 0;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* ── Section Shared ────────────────────────────── */

.section {
  padding: 5.5rem 2rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Features ──────────────────────────────────── */

.features-section {
  background: var(--white);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ── How It Works ──────────────────────────────── */

.how-section {
  background: var(--gray-50);
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--gray-300);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ── Benefits ──────────────────────────────────── */

.benefits-section {
  background: var(--white);
}

.benefits-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.benefit-metric {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── Testimonial ───────────────────────────────── */

.testimonial-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1f4e 100%);
  color: var(--white);
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-card blockquote {
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 400;
  opacity: 0.92;
  font-style: italic;
  margin-bottom: 2rem;
}

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

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

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  text-align: left;
}

.testimonial-author span {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ── Demo Form ─────────────────────────────────── */

.demo-section {
  background: var(--gray-50);
}

.form-wrapper {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
  color: var(--gray-800);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.checkbox-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--gray-500);
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-group label a:hover {
  color: var(--primary-dark);
}

.btn-submit {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 0.9rem;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ── Footer ────────────────────────────────────── */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.6;
  max-width: 260px;
}

.footer-links-group h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-group a {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}

.footer-links-group a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.825rem;
  opacity: 0.45;
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .header-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 4rem;
    text-align: center;
    min-height: auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 100%;
    max-width: 360px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

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

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

  .form-wrapper {
    padding: 1.75rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
