/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #ffffff;
  --surface:  #f8fafc;
  --border:   #e2e8f0;
  --text:     #0f172a;
  --muted:    #475569;
  --muted2:   #64748b;
  --b1:       #2563eb;
  --b2:       #06b6d4;
  --b3:       #0ea5e9;
  --accent:   #f59e0b;
  --ok:       #10b981;
  --danger:   #ef4444;
  --radius:   20px;
  --shadow-sm: 0 2px 12px rgba(37,99,235,.08);
  --shadow:    0 8px 40px rgba(37,99,235,.14);
  --shadow-lg: 0 24px 80px rgba(37,99,235,.18);
  --tr:        .2s cubic-bezier(.4,0,.2,1);
  --grad:      linear-gradient(to right, var(--b1), var(--b2));
  --grad2:     linear-gradient(135deg, var(--b2), var(--b3));
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
a { color: var(--b1); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Layout ── */
.wrap { position: relative; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(37,99,235,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -.3px;
  color: var(--text); text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.logo-icon svg { width: 20px; height: 20px; fill: white; }
.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: 9px;
  transition: color var(--tr), background var(--tr);
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 18px rgba(37,99,235,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.45); }
.btn-ghost {
  background: transparent; border: 1px solid #e2e8f0; color: var(--text);
}
.btn-ghost:hover { border-color: #cbd5e1; color: var(--text); transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }

/* ── Hero ── */
.hero-wrap {
  padding: 80px 0 0;
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 40%, #e0f2fe 100%);
  overflow: hidden;
  position: relative;
}
.hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(37,99,235,.1), transparent),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(6,182,212,.1), transparent);
  pointer-events: none;
}
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding-bottom: 80px; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: white; border: 1.5px solid rgba(37,99,235,.2);
  color: var(--b1); font-size: 12px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 22px;
  box-shadow: 0 2px 12px rgba(37,99,235,.1);
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 700; line-height: 1.06; letter-spacing: -.8px;
  margin-bottom: 20px; color: var(--text);
}
h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--muted); margin-bottom: 36px;
  max-width: 480px; line-height: 1.75;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.trust-dots { display: flex; }
.trust-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); border: 2.5px solid white;
  margin-right: -9px; display: grid; place-items: center;
  font-size: 12px; box-shadow: 0 2px 8px rgba(37,99,235,.2);
}

/* ── Chat mockup ── */
.chat-card {
  background: white;
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.chat-card:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.chat-topbar {
  background: var(--grad);
  height: 5px;
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbff;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(37,99,235,.3);
}
.chat-avatar svg { width: 20px; height: 20px; fill: white; }
.chat-name { font-weight: 700; font-size: 14px; color: var(--text); }
.chat-status { font-size: 11px; color: var(--ok); font-weight: 600; }
.chat-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; background: #fafbff; }
.msg { display: flex; flex-direction: column; gap: 3px; animation: slideUp .4s ease both; }
.msg:nth-child(1){ animation-delay:.1s }
.msg:nth-child(2){ animation-delay:.3s }
.msg:nth-child(3){ animation-delay:.5s }
.msg:nth-child(4){ animation-delay:.7s }
@keyframes slideUp {
  from { opacity:0; transform:translateY(12px) }
  to   { opacity:1; transform:none }
}
.msg-sender { font-size: 11px; color: var(--muted); padding: 0 4px; font-weight: 600; }
.msg-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.55; max-width: 100%;
}
.msg-bubble.user  { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.msg-bubble.bot   { background: #eff6ff; border: 1px solid #bfdbfe; border-bottom-left-radius: 4px; color: var(--text); }
.msg-bubble.ok    { background: #d1fae5; border: 1px solid #6ee7b7; border-bottom-left-radius: 4px; color: #065f46; }
.vote-row { display: flex; gap: 8px; margin-top: 8px; }
.vote-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--border); background: white; cursor: default; color: var(--muted);
}
.vote-btn.active { background: #eff6ff; border-color: #93c5fd; color: var(--b1); }
.progress-bar { height: 5px; background: #dbeafe; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--grad); border-radius: 99px; width: 67%; animation: grow 1s .9s ease both; }
@keyframes grow { from{width:0} to{width:67%} }

/* ── Wave divider ── */
.wave-divider { line-height: 0; display: block; }
.wave-divider svg { display: block; width: 100%; }

/* ── Stats strip ── */
.stats-strip {
  background: white;
  border-radius: var(--radius); padding: 40px 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; text-align: center;
  margin: 64px 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stats-strip + * { } /* spacer already in margin */
.stat-num {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-divider { width: 1px; background: var(--border); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ── Section common ── */
.section { padding: 80px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--b1); margin-bottom: 12px;
}
.section-tag::before {
  content: ''; width: 18px; height: 2px; background: var(--grad); border-radius: 2px;
}
h2 {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 700;
  letter-spacing: -.5px; margin-bottom: 14px; color: var(--text);
}
.section-sub { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 48px; line-height: 1.7; }

/* ── Features ── */
.features-section { background: var(--surface); padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  cursor: default; position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform var(--tr);
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #bfdbfe; }
.feat-card:hover::before { transform: scaleX(1); }
.feat-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(37,99,235,.12);
}
.feat-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--text); }
.feat-desc  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── How it works ── */
.how-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.timeline  { display: flex; flex-direction: column; gap: 0; }
.tl-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px;
  padding-bottom: 32px; position: relative;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step:not(:last-child)::after {
  content: ''; position: absolute; left: 23px; top: 50px;
  width: 2px; bottom: 0;
  background: linear-gradient(to bottom, #bfdbfe, transparent);
}
.tl-num {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad);
  display: grid; place-items: center; font-weight: 900; font-size: 16px; color: white;
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(37,99,235,.3);
  position: relative; z-index: 1;
}
.tl-content { padding-top: 10px; }
.tl-content strong { display: block; font-weight: 700; font-size: 15px; margin-bottom: 5px; color: var(--text); }
.tl-content p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.cmd-card {
  background: #0d1117;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky; top: 90px;
}
.cmd-title {
  padding: 16px 20px; font-weight: 700; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 8px; color: #8899b0;
}
.cmd-dot { width: 11px; height: 11px; border-radius: 50%; }
.cmd-dot.r { background: #ff5f57; }
.cmd-dot.y { background: #ffbd2e; }
.cmd-dot.g { background: #28c840; }
.cmd-body { padding: 20px; }
.cmd-line {
  display: flex; gap: 14px; padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px;
}
.cmd-line:last-child { border-bottom: none; padding-bottom: 0; }
.cmd-name { color: #93c5fd; font-family: ui-monospace, monospace; font-weight: 700; white-space: nowrap; }
.cmd-desc { color: #6b7a99; }

/* ── FAQ ── */
.faq-section { background: var(--surface); padding: 80px 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 740px; margin: 0 auto; }
details.faq-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr);
}
details.faq-item[open] { border-color: #93c5fd; box-shadow: 0 4px 20px rgba(37,99,235,.1); }
details.faq-item summary {
  padding: 20px 24px; font-weight: 700; font-size: 15px; color: var(--text);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: #eff6ff; display: grid; place-items: center;
  font-size: 16px; line-height: 1; color: var(--b1);
  transition: background var(--tr), transform var(--tr);
}
details.faq-item[open] .faq-icon { background: var(--b1); color: white; transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; font-size: 14px; color: var(--muted); line-height: 1.75; border-top: 1px solid var(--border); padding-top: 16px; }

/* ── CTA ── */
.cta-section {
  border-radius: 28px; padding: 72px 48px; text-align: center;
  position: relative; overflow: hidden; margin: 0 0 80px;
  background: var(--grad);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,255,255,.12), transparent),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(255,255,255,.08), transparent);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(26px, 4vw, 44px); margin-bottom: 14px; position: relative; color: white; }
.cta-section p  { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; position: relative; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-white {
  background: white; color: var(--b1); font-weight: 800;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.btn-outline-white {
  background: transparent; border: 2px solid rgba(255,255,255,.4); color: white; font-weight: 700;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: white; transform: translateY(-1px); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0; color: var(--muted); font-size: 13px;
  background: white;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--text); font-size: 15px; }
.footer-logo .logo-icon { width: 30px; height: 30px; border-radius: 9px; }
.footer-logo .logo-icon svg { width: 17px; height: 17px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); transition: color var(--tr); font-weight: 500; }
.footer-links a:hover { color: var(--b1); text-decoration: none; }

/* ── Code inline ── */
code {
  font-family: ui-monospace, monospace; font-size: .88em;
  background: #eff6ff; color: var(--b1);
  padding: 2px 7px; border-radius: 6px; border: 1px solid #bfdbfe;
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Legal pages (privacy, terms) ── */
.legal-page { padding: 60px 0 80px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 6px; }
.legal-page .date { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.card p, .card li { font-size: 15px; color: var(--muted); line-height: 1.75; }
.card ul, .card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.card a { color: var(--b1); font-weight: 500; }
.card a:hover { text-decoration: underline; }

/* ── Pill label ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eff6ff; color: var(--b1); font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .3px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 56px; }
  .chat-card { transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-wrap { grid-template-columns: 1fr; gap: 40px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 28px 24px; }
  .cmd-card { position: static; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .cta-section { padding: 48px 24px; border-radius: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  h1 { font-size: 36px; }
}