:root {
  --primary: #7C3AED;
  --primary-light: #9333EA;
  --pink: #EC4899;
  --pink-deep: #C2277A;
  --tint: #EDE9FE;
  --ink: #1C1C2E;
  --secondary: #55536E;
  --bg: #F5F3FF;
  --bg-soft: #FBFAFF;
  --card: #FFFFFF;
  --border: #E9E4F9;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --bubble-radius: 22px;
  --bubble-tail: 6px;
  --shadow: 0 20px 40px -20px rgba(28, 28, 46, 0.3);
  --shadow-sm: 0 8px 20px -12px rgba(28, 28, 46, 0.18);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--tint); color: var(--primary); }

h1, h2, h3, .btn, .badge-soon, .brand, .nav-links, .premium-tag, .thread-avatar, .bubble-meta, .footer-brand, .footer-col h3 {
  font-family: "Outfit", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }

section { padding: 96px 0; scroll-margin-top: 84px; }

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--secondary); font-size: 17px; margin: 0; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -18px rgba(28, 28, 46, 0.35); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--primary); transform: translateY(-1px); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  background: var(--tint);
  border: 1px solid #DDD6FE;
  padding: 13px 22px;
  border-radius: 999px;
}
.badge-soon .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(28, 28, 46, 0.2);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .company { display: block; font-size: 11px; font-weight: 500; color: var(--secondary); letter-spacing: 0.02em; font-family: "DM Sans", sans-serif; }

.nav-links { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; color: var(--ink); }
.nav-links a { padding: 8px 14px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; }
.nav-links a:hover { background: #fff; color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero — chat exchange */
.hero { padding: 76px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.hero h1 { font-family: "Outfit", sans-serif; font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 20px; font-weight: 600; }
.hero h1 .quote { color: var(--ink); }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .done { display: block; color: var(--ink); }

.hero p.lead { font-size: 18px; color: var(--secondary); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-size: 13.5px; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: none; }

.hero-visual { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 400px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 65%);
  filter: blur(50px);
  z-index: 0;
}

.bubble {
  position: relative;
  z-index: 1;
  border-radius: var(--bubble-radius);
  padding: 18px 22px;
  max-width: 320px;
  box-shadow: 0 14px 32px -18px rgba(28, 28, 46, 0.3);
}
.bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-bottom-right-radius: var(--bubble-tail);
}
.bubble.ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--bubble-tail);
}

.bubble-wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-bottom: 10px; }
.bubble-wave span { width: 3px; border-radius: 2px; background: rgba(255,255,255,0.95); }
.bubble-wave span:nth-child(1) { height: 40%; } .bubble-wave span:nth-child(2) { height: 80%; }
.bubble-wave span:nth-child(3) { height: 55%; } .bubble-wave span:nth-child(4) { height: 100%; }
.bubble-wave span:nth-child(5) { height: 65%; } .bubble-wave span:nth-child(6) { height: 45%; }
.bubble-wave span:nth-child(7) { height: 75%; } .bubble-wave span:nth-child(8) { height: 35%; }
.bubble-wave span:nth-child(9) { height: 60%; } .bubble-wave span:nth-child(10) { height: 30%; }
.bubble-meta { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.92); }
.bubble.ai .bubble-meta { color: var(--secondary); margin-top: 8px; }
.bubble.ai strong { color: var(--primary); }
.bubble-bars { display: flex; align-items: flex-end; gap: 4px; height: 18px; margin: 8px 0; }
.bubble-bars div { width: 6px; background: var(--primary); border-radius: 2px; }

.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; padding: 22px 24px; font-size: 13.5px; font-weight: 500; color: var(--secondary); }
.trust-strip .wrap span { display: flex; align-items: center; gap: 8px; }

/* Message-thread chrome */
.thread-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; flex: none;
}
.thread-label { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 24px; }
.thread-label span { font-size: 13.5px; font-weight: 500; color: var(--secondary); }

/* Feature list — one AI reply bubble, not a grid of identical cards */
.feature-list-bubble {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--bubble-radius);
  border-top-left-radius: var(--bubble-tail);
  padding: 6px 28px;
}
.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row-body h3 {
  font-size: 17px; margin-bottom: 6px; font-family: "Outfit", sans-serif; font-weight: 600;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.feature-row-body p { font-size: 14.5px; color: var(--secondary); margin: 0; }
.premium-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--pink-deep));
  padding: 3px 10px; border-radius: 999px;
}

/* Showcase carousel */
.carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border-top-left-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 44px 28px 32px;
}
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.carousel-slide { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.carousel-slide h3 { font-family: "Outfit", sans-serif; font-weight: 600; font-size: clamp(20px, 3vw, 26px); margin-bottom: 12px; color: var(--ink); }
.carousel-slide h3 .accent { color: var(--primary); display: block; }
.carousel-slide .desc { color: var(--secondary); font-size: 15px; max-width: 380px; margin: 0 auto 28px; }
.carousel-media { width: 100%; display: flex; justify-content: center; }
.carousel-media img { width: 280px; max-width: 100%; filter: drop-shadow(0 20px 32px rgba(28, 28, 46, 0.18)); }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--primary);
  transition: transform 0.15s ease;
  z-index: 2;
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.08); }
.carousel-arrow.prev { left: 10px; } .carousel-arrow.next { right: 10px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(124, 58, 237, 0.25); border: none; padding: 0; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}
.carousel-dot.active { background: var(--primary); transform: scaleX(3); }

/* How it works — thread */
.how-it-works { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.thread { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.thread-row { display: flex; gap: 14px; align-items: flex-start; }
.thread-row.reveal { transform: translateX(-24px); }
.thread-row.reveal.in-view { transform: translateX(0); }
.thread-bubble {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--bubble-radius); border-top-left-radius: var(--bubble-tail);
  padding: 18px 22px; flex: 1;
}
.thread-bubble h3 { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.thread-bubble p { font-size: 14.5px; color: var(--secondary); margin: 0; }

/* Privacy */
.privacy-section .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.privacy-card {
  background: linear-gradient(135deg, #1C1C2E, #2E1B4D);
  color: #fff; border-radius: var(--bubble-radius); border-top-left-radius: 8px;
  padding: 44px;
}
.privacy-card h2 { color: #fff; font-size: 30px; margin-bottom: 16px; font-family: "Outfit", sans-serif; }
.privacy-card p { color: #C9C6DA; font-size: 15.5px; margin: 0; }

.privacy-list { display: flex; flex-direction: column; gap: 22px; }
.privacy-item { display: flex; gap: 16px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.privacy-item:hover { transform: translateX(4px); }
.privacy-item .ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.privacy-item:hover .ico { transform: scale(1.1); }
.privacy-item h3 { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.privacy-item p { font-size: 14.5px; color: var(--secondary); margin: 0; }

/* Currencies */
.currency-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.currency-pill {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.currency-pill:hover { transform: translateY(-3px) scale(1.04); }
.currency-note { text-align: center; color: var(--secondary); font-size: 14.5px; margin-top: 24px; }

/* FAQ — question/answer as a chat exchange, animated via grid-template-rows (not height) */
.faq-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.faq-item { display: flex; flex-direction: column; gap: 12px; }
.faq-question {
  align-self: flex-end;
  text-align: left;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: var(--bubble-radius);
  border-bottom-right-radius: var(--bubble-tail);
  padding: 16px 22px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 80%;
  font-family: "DM Sans", sans-serif;
  transition: transform 0.15s ease;
}
.faq-question:hover { transform: translateY(-2px); }
.faq-question .plus { flex: none; transition: transform 0.2s ease; color: #fff; margin-left: auto; }
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  align-self: flex-start;
  max-width: 85%;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-answer-inner p {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--bubble-radius); border-bottom-left-radius: var(--bubble-tail);
  padding: 16px 22px; margin: 0; color: var(--secondary); font-size: 15px;
}

/* Final CTA */
.final-cta {
  position: relative;
  background: linear-gradient(135deg, #7C3AED, var(--pink-deep));
  border-radius: var(--bubble-radius); border-top-left-radius: 10px;
  padding: 64px 40px; text-align: center; color: #fff; margin: 0 24px; overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); filter: blur(2px);
  animation: float 7s ease-in-out infinite; pointer-events: none;
}
.final-cta::before { width: 140px; height: 140px; top: -50px; left: -40px; }
.final-cta::after { width: 100px; height: 100px; bottom: -30px; right: -20px; animation-delay: -3s; }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; font-family: "Outfit", sans-serif; }
.final-cta p { color: rgba(255,255,255,0.92); max-width: 500px; margin: 0 auto 30px; font-size: 16px; }
.final-cta .badge-soon { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.32); color: #fff; }
.final-cta .badge-soon .dot { background: #fff; }

/* Footer */
footer { background: #14121F; color: #B9B6C9; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-grid p { font-size: 14.5px; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8A87A0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.features-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.thread-row.reveal:nth-child(2) { transition-delay: 0.1s; }
.thread-row.reveal:nth-child(3) { transition-delay: 0.2s; }
.privacy-list .reveal:nth-child(2) { transition-delay: 0.1s; }
.privacy-list .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-anim { opacity: 1; animation: none; }
  .bubble.me, .bubble.ai, .final-cta::before, .final-cta::after { animation: none !important; }
}

/* Hero entrance */
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-anim { opacity: 0; animation: heroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: var(--d, 0s); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.bubble.me { animation: float 6s ease-in-out infinite; }
.bubble.ai { animation: float 6s ease-in-out infinite; animation-delay: -3s; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; max-width: 100%; align-items: center; }
  .bubble { max-width: 300px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .privacy-section .wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost, .nav-cta .badge-soon { display: none; }
  .nav-toggle { display: block; }
  .brand span { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .final-cta { margin: 0 12px; padding: 48px 24px; }
  .faq-question, .faq-answer { max-width: 92%; }

  .nav-links.mobile-open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
  }
  .nav-links.mobile-open a { padding: 12px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-links.mobile-open a:last-child { border-bottom: none; }
}
