/* ─── Brand tokens (mirror mobile/lib/src/theme/app_theme.dart) ─── */
:root {
  --bg:            #141122;
  --surface-low:  #1B1829;
  --surface:      #242136;
  --surface-high: #2E2A40;
  --primary:      #CEBDFF;
  --on-primary:   #1A1730;
  --secondary:    #BDC2FF;
  --text:         #E6DFF8;
  --muted:        #8E8A9A;
  --divider:      #2A2644;
  --gold:         #E9C400;
  --pink:         #FF4E8A;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;

  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-w: 1120px;
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.2; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; }
p  { margin: 0; color: var(--muted); }

/* ─── Header ─── */
.site-header {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__logo {
  border-radius: 9px;
  box-shadow: 0 0 24px rgba(206, 189, 255, 0.25);
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 96px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(206, 189, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 80% at 90% 30%, rgba(189, 194, 255, 0.08), transparent 70%),
    var(--bg);
}
.hero__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(230, 223, 248, 0.7);
  box-shadow: 0 0 6px rgba(230, 223, 248, 0.6);
}
.star--gold {
  background: rgba(233, 196, 0, 0.85);
  box-shadow: 0 0 8px rgba(233, 196, 0, 0.7);
  width: 4px; height: 4px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 32px;
}
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 72px; padding-top: 48px; }
}
.hero__copy { max-width: 560px; }
.hero__logo {
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 20px 60px -10px rgba(206, 189, 255, 0.35);
}
.hero__title {
  color: var(--text);
  margin-bottom: 18px;
}
.hero__sub {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 44ch;
}
.hero__note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ─── CTA badges ─── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  background: var(--surface-high);
  border: 1px solid var(--divider);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.badge:hover {
  background: #38334d;
  border-color: rgba(206, 189, 255, 0.4);
  transform: translateY(-1px);
}
.badge__glyph { display: inline-flex; color: var(--text); }
.badge__text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.badge__text small { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.badge__text strong { font-size: 1.05rem; font-weight: 600; }

/* ─── Phone mockup ─── */
.phone {
  --pw: 280px;
  --ph: 560px;
  position: relative;
  width: var(--pw);
  height: var(--ph);
  margin: 0 auto;
  background: linear-gradient(180deg, #2A2740 0%, #1B1829 100%);
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(206, 189, 255, 0.12),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0d0a18;
  border-radius: 999px;
  z-index: 2;
}
.phone__screen {
  position: relative;
  background: var(--bg);
  border-radius: 32px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 14px 14px;
}
@media (min-width: 1024px) {
  .phone { --pw: 300px; --ph: 600px; }
}

/* chat header inside the phone */
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 12px;
  border-bottom: 0.5px solid var(--divider);
}
.chat-header__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(206, 189, 255, 0.18);
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.chat-header__meta { display: flex; flex-direction: column; line-height: 1.2; }
.chat-header__name { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.chat-header__role { color: var(--muted); font-size: 0.72rem; }

/* chat bubbles */
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 2px;
  overflow: hidden;
}
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  font-size: 0.82rem;
  line-height: 1.45;
  border-radius: 18px;
}
.bubble--user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--on-primary);
  border-bottom-right-radius: 6px;
}
.bubble--agent {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
}
.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: bob 1.1s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bob {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.55; }
  40% { transform: translateY(-3px); opacity: 1; }
}

/* phone composer */
.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-high);
  border-radius: 22px;
  padding: 8px 8px 8px 14px;
}
.composer__field {
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
}
.composer__send {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ─── THREE PROPS ─── */
.props {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-low) 100%);
}
.props__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 760px) {
  .props__inner { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.prop {
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 28px 24px;
  border-radius: var(--r-md);
}
.prop__icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
}
.prop h3 { color: var(--text); margin-bottom: 8px; }
.prop p  { color: var(--muted); font-size: 0.95rem; }

/* ─── SECTION HEADS ─── */
.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h2 { color: var(--text); margin-bottom: 8px; }
.section-head p  { color: var(--muted); }

/* ─── PERSONAS ─── */
.personas {
  padding: 80px 24px;
  background: var(--surface-low);
}
.personas__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .personas__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .personas__grid { grid-template-columns: repeat(3, 1fr); } }
.persona {
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 22px;
  border-radius: var(--r-md);
  transition: transform 160ms ease, border-color 160ms ease;
}
.persona:hover {
  transform: translateY(-2px);
  border-color: rgba(206, 189, 255, 0.35);
}
.persona__name {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.persona__line { color: var(--muted); font-size: 0.93rem; }
.persona__line em { color: var(--primary); font-style: italic; }

/* ─── ASK ABOUT ANYONE ─── */
.people {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--surface-low) 0%, var(--bg) 100%);
}
.people__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) { .people__inner { grid-template-columns: 1fr 1fr; gap: 56px; } }
.people__copy h2 { color: var(--text); margin-bottom: 16px; }
.people__copy p  { color: var(--muted); margin-bottom: 12px; max-width: 48ch; }
.people__copy strong { color: var(--primary); font-weight: 600; }
.people__demo {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mention-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-high);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  white-space: nowrap;
}
.mention-chip__avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(206, 189, 255, 0.18);
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.mention-chip__name { color: var(--text); font-size: 0.8rem; font-weight: 600; display: block; line-height: 1.2; }
.mention-chip__handle { color: var(--muted); font-size: 0.68rem; display: block; line-height: 1.2; }
.composer--mock .composer__field { color: var(--text); }
.composer--mock .composer__field strong { color: var(--primary); font-weight: 600; }

/* ─── PRIVACY ─── */
.privacy {
  padding: 64px 24px;
  background: var(--bg);
}
.privacy__inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.privacy__icon { font-size: 2rem; }
.privacy h3 { color: var(--text); margin-bottom: 6px; }
.privacy p  { color: var(--muted); font-size: 0.95rem; }

/* ─── FINAL CTA ─── */
.cta {
  padding: 96px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(206, 189, 255, 0.10), transparent 70%),
    var(--bg);
}
.cta h2 { color: var(--text); margin-bottom: 8px; }
.cta p  { color: var(--muted); margin-bottom: 32px; }
.cta .cta-row { justify-content: center; }

/* ─── FOOTER ─── */
.site-footer {
  padding: 28px 24px 44px;
  border-top: 1px solid var(--divider);
  background: var(--bg);
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
}
.site-footer nav a:hover { color: var(--text); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
