/* Tokens measured from candy.ai (palette) and replika.com (type scale, CTA shape) */
:root {
  --bg: #0d0a0f;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.64);
  --text-faint: rgba(255, 255, 255, 0.4);
  --accent: #f53b70;
  --accent-hover: #ee5876;
  --accent-soft: rgba(245, 59, 112, 0.12);
  --container: 1180px;
  --radius-pill: 100px;
  --radius-lg: 28px;
  --radius-md: 16px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", -apple-system, "system-ui", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

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

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px 24px;
  font-weight: 500;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: rgba(13, 10, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo .tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}

.logo .accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Atmosphere — dark equivalent of replika.com's sky/clouds hero background:
   soft blurred blobs drifting slowly instead of a literal cloud photo. */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-atmosphere span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite;
}

.hero-atmosphere .cloud-1 {
  width: 620px;
  height: 620px;
  top: -18%;
  right: -8%;
  background: radial-gradient(circle, rgba(245, 59, 112, 0.32) 0%, rgba(245, 59, 112, 0) 70%);
  animation-duration: 26s;
}

.hero-atmosphere .cloud-2 {
  width: 420px;
  height: 420px;
  top: 10%;
  left: -6%;
  background: radial-gradient(circle, rgba(147, 77, 235, 0.22) 0%, rgba(147, 77, 235, 0) 70%);
  animation-duration: 30s;
  animation-delay: -6s;
}

.hero-atmosphere .cloud-3 {
  width: 380px;
  height: 380px;
  bottom: -12%;
  right: 18%;
  background: radial-gradient(circle, rgba(238, 88, 118, 0.18) 0%, rgba(238, 88, 118, 0) 70%);
  animation-duration: 34s;
  animation-delay: -14s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere span { animation: none; }
}

.hero .container { position: relative; z-index: 1; }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(245, 59, 112, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 28px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.store-badge:hover { background: #202020; border-color: rgba(255, 255, 255, 0.18); }

.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.1; }

.store-badge .store-text small { font-size: 0.62rem; color: var(--text-faint); }

.store-badge .store-text strong { font-size: 0.95rem; font-weight: 600; }

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

.hero-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.hero-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.chat-bubble {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: #fff;
  color: #16121a;
  padding: 14px 18px;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 240px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

.online-pill {
  position: absolute;
  top: 20px;
  right: -12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2); }

/* Phone mockup — app screenshot treatment, replika.com-style device frame */
.phone-frame {
  position: relative;
  width: 280px;
  margin: 0 auto;
  padding: 14px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 44px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #0a0a0a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  background: linear-gradient(180deg, #1c1420, #0d0a0f 60%);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
}

.phone-screen .chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.phone-screen .chat-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.phone-screen .chat-header .name { font-size: 0.85rem; font-weight: 600; }

.phone-screen .chat-header .status { font-size: 0.68rem; color: #3ddc84; display: flex; align-items: center; gap: 4px; }

.phone-screen .chat-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.chat-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.76rem;
  line-height: 1.4;
}

.chat-msg.in { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }

.chat-msg.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }

.phone-screen .chat-input {
  margin: 0 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.phone-screen .chat-input svg { width: 16px; height: 16px; color: var(--accent-hover); flex-shrink: 0; }

/* Section shared */
section { padding: 96px 0; }

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

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.features-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card.compact { padding: 28px; }

.feature-card .protection-level {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 10px; }

.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* Split (customize) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.split-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.split-list { list-style: none; margin: 28px 0 36px; padding: 0; display: flex; flex-direction: column; gap: 18px; }

.split-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-muted); }

.split-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent-hover); margin-top: 2px; }

.split h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }

.split > p { color: var(--text-muted); font-size: 1.05rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }

.step { position: relative; padding-top: 8px; }

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
}

.step h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 10px; }

.step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  font-family: inherit;
}

.faq-question .chevron { transition: transform 0.2s ease; flex-shrink: 0; color: var(--text-faint); }

.faq-item.open .faq-question .chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer p { margin: 0; padding: 0 24px 20px; }

/* Final CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--container) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.cta-banner h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }

.cta-banner p { color: var(--text-muted); font-size: 1.05rem; margin: 0 0 32px; }

.cta-banner .hero-cta { justify-content: center; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }

.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.9rem; }

.footer-links a:hover { color: #fff; }

.footer-disclaimer { color: var(--text-faint); font-size: 0.82rem; line-height: 1.7; max-width: 760px; }

.footer-bottom { color: var(--text-faint); font-size: 0.82rem; margin-top: 24px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Scroll-spy nav */
.nav-links a.active { color: #fff; }

.nav-links a { position: relative; transition: color 0.15s ease; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a.active::after { transform: scaleX(1); }

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 3rem; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .features-grid, .features-grid.grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .cta-banner { padding: 48px 24px; }
  .cta-banner h2, .section-head h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 2.4rem; }
  .chat-bubble { left: 12px; }
  .online-pill { right: 12px; }
  .phone-frame { width: 240px; }
}
