:root {
  --primary: #4438E2;
  --primary-dark: #3328B8;
  --primary-soft: #EEECFF;
  --secondary: #00BFA5;
  --accent: #FF6D00;
  --ink: #08082B;
  --muted: #5B5B77;
  --bg: #FBFBFD;
  --card: #FFFFFF;
  --border: #ECECF6;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(8, 8, 43, 0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(68, 56, 226, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(68, 56, 226, 0.65); }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.navbar.scrolled {
  background: rgba(251, 251, 253, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(8, 8, 43, 0.06);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: 10px; font-weight: 800;
}
.brand-name { letter-spacing: -0.02em; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a:not(.btn) { font-weight: 500; color: var(--muted); font-size: 0.95rem; transition: color 0.15s ease; }
.nav-links a:not(.btn):hover { color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.25s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 0;
  background:
    radial-gradient(55% 50% at 85% 5%, rgba(68, 56, 226, 0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}

.badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(68, 56, 226, 0.2);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px -8px rgba(8, 8, 43, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.chip strong { color: var(--ink); font-weight: 600; }

.hero p { color: var(--muted); font-size: 1.05rem; max-width: 470px; margin-bottom: 26px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }

.hero-perks { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-perks span { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.hero-perks span::first-letter { color: var(--secondary); font-weight: 700; }

.trusted-by { color: var(--muted); font-size: 0.85rem !important; margin-bottom: 0 !important; }

/* Hero visual */
.hero-visual { position: relative; }
.mock-window {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.mock-top { display: flex; gap: 7px; padding: 14px 18px; background: #F7F7FD; border-bottom: 1px solid var(--border); }
.mock-top span { width: 11px; height: 11px; border-radius: 50%; }
.mock-top span:nth-child(1) { background: #ff5f57; }
.mock-top span:nth-child(2) { background: #febc2e; }
.mock-top span:nth-child(3) { background: #28c840; }

.mock-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }

.chat { display: flex; gap: 10px; align-items: flex-end; }
.chat.user { justify-content: flex-end; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
.ai-avatar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.user-avatar { background: var(--secondary); }
.bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.88rem;
  background: #F3F2FF;
  color: var(--ink);
}
.chat.user .bubble { background: linear-gradient(135deg, var(--secondary), #00a88f); color: #fff; }

.scores { background: #F7F7FD; border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: grid; gap: 10px; margin-top: 6px; }
.score label { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.bar { height: 8px; background: #E6E6F6; border-radius: 99px; overflow: hidden; margin-top: 5px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 99px; }

.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
}
.chip-1 { top: -18px; left: -24px; animation: float 6s ease-in-out infinite; }
.chip-2 { bottom: 26px; right: -22px; color: var(--secondary); animation: float 7s ease-in-out infinite 0.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px -28px rgba(8, 8, 43, 0.2);
  padding: 30px 36px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 900; color: var(--primary); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: #F2F1FF; }
.section-logos { padding: 56px 0; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.kicker { color: var(--primary); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; margin: 12px 0 14px; font-weight: 900; }
.section-head p { color: var(--muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.88rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative;
  text-align: center;
  padding: 34px 20px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-icon { font-size: 1.6rem; margin-bottom: 6px; }
.step-num {
  position: absolute;
  top: -14px; right: 20px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 0.9rem;
}
.step h3 { margin-bottom: 8px; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* Logos */
.logos-title { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #A6A6C8;
  letter-spacing: -0.02em;
  filter: grayscale(1);
  opacity: 0.85;
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars { color: #F5A623; letter-spacing: 3px; }
.testimonial-card p { color: var(--ink); font-size: 0.95rem; flex: 1; }
.author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.author strong { display: block; font-size: 0.92rem; }
.author span { color: var(--muted); font-size: 0.8rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 50px -22px rgba(68, 56, 226, 0.45);
  position: relative;
}
.price-tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.05rem; }
.price .amount { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }
.price .period { color: var(--muted); font-size: 0.85rem; }
.price-card ul { list-style: none; display: grid; gap: 10px; flex: 1; }
.price-card li { color: var(--muted); font-size: 0.9rem; position: relative; padding-left: 26px; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 18px; font-size: 0.94rem; }

/* CTA */
.cta-card {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 24px;
  padding: 56px 40px;
  color: #fff;
}
.cta-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; font-weight: 900; }
.cta-card p { opacity: 0.92; margin-bottom: 26px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 460px; margin: 0 auto; }
.cta-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font);
}
.cta-form .btn-primary { background: var(--ink); box-shadow: none; }
.cta-note { margin-top: 16px; font-size: 0.82rem; opacity: 0.8; }

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 60px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 40px; }
.footer .brand-name { color: #fff; }
.footer .tagline { color: #A9A9C8; margin-top: 10px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: #A9A9C8; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; }
.footer-bottom span { color: #8A8AA8; font-size: 0.82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-chips, .hero-cta, .hero-perks { justify-content: center; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .features-grid, .steps, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(280px, 78%);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--card);
    box-shadow: -10px 0 40px rgba(8, 8, 43, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 30px;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 100; position: relative; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 110px 0 0; }
  .features-grid, .steps, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 24px 18px; }
  .section { padding: 64px 0; }
  .float-chip.chip-1 { left: 4px; }
  .float-chip.chip-2 { right: 4px; }
  .logos { gap: 28px; }
}
