/* ------- tokens ------- */
:root {
  --bg: #0b0b16;
  --bg-soft: #12112099;
  --surface: #17162a;
  --surface-2: #1d1c34;
  --text: #efeefc;
  --muted: #a7a5c6;
  --border: #2a284a;
  --brand: #6c5ce7;
  --brand-2: #00d2ff;
  --brand-3: #ff6bcb;
  --accent: #ffd166;
  --ok: #29e3a5;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1200px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7ff;
    --bg-soft: #ffffffcc;
    --surface: #ffffff;
    --surface-2: #f1f1fb;
    --text: #0e0d23;
    --muted: #5e5c82;
    --border: #e6e5f6;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--muted); }

/* ------- animated background orbs ------- */
.bg-orb {
  position: fixed; z-index: -1;
  width: 620px; height: 620px; border-radius: 50%;
  filter: blur(110px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.orb-1 { top: -180px; left: -200px; background: radial-gradient(circle, var(--brand), transparent 60%); }
.orb-2 { top: 30%; right: -220px; background: radial-gradient(circle, var(--brand-2), transparent 60%); animation-delay: -6s; }
.orb-3 { bottom: -260px; left: 30%; background: radial-gradient(circle, var(--brand-3), transparent 60%); animation-delay: -12s; }

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

/* ------- nav ------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: var(--bg-soft);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: .6rem; }
.nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 38px; height: 38px; padding: 0;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--text); margin: 4px auto;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------- buttons ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(108,92,231,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(108,92,231,.65); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn.disabled { opacity: .55; pointer-events: none; }

/* ------- layout ------- */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}
.section.alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, var(--surface-2) 20%, var(--surface-2) 80%, transparent);
}
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block; padding: .3rem .75rem; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow.light { background: rgba(255,255,255,.14); color: #fff; }

/* ------- hero ------- */
.hero { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(4rem, 7vw, 6rem); }
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}
.hero-copy h1 { margin-bottom: 1.2rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 50%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 200%; animation: hueShift 8s ease-in-out infinite;
}
@keyframes hueShift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; color: var(--muted); margin-bottom: 1.3rem;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(41,227,165,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(41,227,165,.6); }
  80% { box-shadow: 0 0 0 10px rgba(41,227,165,0); }
  100% { box-shadow: 0 0 0 0 rgba(41,227,165,0); }
}
.lede { font-size: 1.12rem; max-width: 44ch; }
.hero-actions { display: flex; gap: .75rem; margin: 1.75rem 0 2rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; border-top: 1px solid var(--border); padding-top: 1.25rem;
}
.hero-stats strong { display: block; font-size: 1.5rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* hero art (phone mock) */
.hero-art { position: relative; height: 560px; }
.phone {
  position: relative; width: 320px; height: 560px; margin: 0 auto;
  background: linear-gradient(160deg, #1a1930, #0f0e1d);
  border-radius: 48px; border: 1px solid var(--border);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  animation: phoneFloat 8s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #000; border-radius: 20px;
}
.phone-screen {
  position: absolute; inset: 60px 16px 16px;
  background: linear-gradient(180deg, #16152b, #0f0e1d);
  border-radius: 32px; padding: 1rem;
  display: flex; flex-direction: column; gap: .75rem;
  overflow: hidden;
}
.app-card {
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  padding: .7rem; border-radius: 14px; backdrop-filter: blur(6px);
}
.app-card .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex: none; }
.app-card .avatar.alt { background: linear-gradient(135deg, var(--brand-3), var(--accent)); }
.app-card .lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.app-card .l1 { height: 8px; border-radius: 4px; background: rgba(255,255,255,.28); width: 60%; }
.app-card .l1.alt { width: 80%; }
.app-card .l2 { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); width: 80%; }
.app-card .l2.alt { width: 50%; }
.app-card .stars { color: var(--accent); font-size: .78rem; letter-spacing: 1px; }
.float-a { animation: floatA 5s ease-in-out infinite; }
.float-b { animation: floatA 6s ease-in-out infinite reverse; }
.float-c { animation: floatA 7s ease-in-out infinite; }
@keyframes floatA {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.app-badge {
  position: absolute; right: 24px; bottom: 28px;
  background: var(--ok); color: #002e1c; padding: .35rem .7rem;
  border-radius: 999px; font-size: .75rem; font-weight: 700;
  box-shadow: 0 8px 20px rgba(41,227,165,.4);
  animation: floatA 4s ease-in-out infinite;
}

/* ------- trust strip ------- */
.trust {
  max-width: var(--max); margin: -1.5rem auto 0;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.trust p { font-size: .85rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: .9rem; }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem;
  opacity: .7; font-weight: 700; letter-spacing: .02em;
}

/* ------- feature grid ------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.feature {
  padding: 1.8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(108,92,231,.14), transparent 60%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.feature:hover::after { opacity: 1; }
.feature h3 { margin-bottom: .4rem; }
.feature p { margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, transparent), color-mix(in srgb, var(--brand-2) 30%, transparent));
  margin-bottom: 1.1rem; position: relative;
}
.icon::before {
  content: ""; width: 22px; height: 22px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.i-check::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); }
.i-circle::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='7' r='4'/><path d='M3 21v-1a6 6 0 0 1 6-6'/><circle cx='17' cy='17' r='4'/></svg>"); }
.i-shield::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2l8 4v6c0 5-3.5 9-8 10-4.5-1-8-5-8-10V6l8-4z'/><path d='M9 12l2 2 4-4'/></svg>"); }
.i-lock::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='11' width='16' height='10' rx='2'/><path d='M8 11V7a4 4 0 0 1 8 0v4'/></svg>"); }
.i-spark::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8'/></svg>"); }
.i-bell::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 16v-5a6 6 0 0 0-12 0v5l-2 3h16l-2-3z'/><path d='M10 20a2 2 0 0 0 4 0'/></svg>"); }

/* ------- steps ------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  padding: 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 1rem;
}
.steps p { margin: 0; }

/* ------- spotlight (safe mode) ------- */
.spotlight {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  max-width: var(--max); margin: 2rem auto; padding: clamp(3rem, 6vw, 5rem) clamp(1.4rem, 4vw, 3rem);
  background: linear-gradient(135deg, #2a1d6e, #4a1d87 50%, #7d1d6e);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(108,92,231,.5);
  overflow: hidden;
  position: relative;
}
.spotlight::before {
  content: ""; position: absolute; inset: -40% -20% auto auto;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,203,.4), transparent 60%);
  filter: blur(40px);
}
.spotlight h2, .spotlight p, .spotlight li { color: #fff; }
.spotlight p { color: rgba(255,255,255,.82); }
.bullets { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.bullets li::before { content: "✓"; margin-right: .5rem; color: var(--ok); font-weight: 800; }

.chat { display: flex; flex-direction: column; gap: .6rem; position: relative; z-index: 1; }
.bubble {
  padding: .85rem 1rem; border-radius: 18px; max-width: 82%;
  font-size: .95rem; line-height: 1.45; color: #fff;
  backdrop-filter: blur(6px);
  animation: bubbleIn .6s var(--ease) both;
}
.bubble.a { background: rgba(255,255,255,.14); border-top-left-radius: 6px; align-self: flex-start; }
.bubble.b { background: transparent; padding: 0; font-size: .75rem; opacity: .7; margin-top: -.3rem; align-self: flex-start; }
.bubble.owner {
  align-self: flex-end; border-top-right-radius: 6px;
  background: linear-gradient(135deg, var(--brand-3), var(--accent));
  color: #1a0a2a; font-weight: 500;
}
.bubble:nth-child(1) { animation-delay: .1s; }
.bubble:nth-child(2) { animation-delay: .3s; }
.bubble:nth-child(3) { animation-delay: .6s; }
.bubble:nth-child(4) { animation-delay: 1s; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------- pricing ------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  padding: 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .75rem; position: relative;
  transition: transform .3s var(--ease), border-color .3s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(180deg, var(--surface), var(--surface-2)) padding-box,
              linear-gradient(135deg, var(--brand), var(--brand-3)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 60px -20px rgba(108,92,231,.45);
}
.price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.4rem; font-weight: 800; margin: 0; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: .25rem 0 auto; display: grid; gap: .4rem; }
.price-card li { color: var(--muted); }
.price-card li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.price-card .btn { align-self: stretch; }
.ribbon {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--accent); color: #2a1a00;
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

/* ------- testimonials ------- */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.quote {
  margin: 0; padding: 1.8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.08rem; line-height: 1.5; }
.quote figcaption { color: var(--muted); font-size: .9rem; }

/* ------- faq ------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .6rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; transition: border-color .2s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; color: var(--brand); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .75rem 0 0; }

/* ------- cta ------- */
.cta {
  max-width: 920px; margin: 2rem auto 5rem;
  padding: clamp(2.5rem, 6vw, 4rem); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 50%, var(--brand-3));
  color: #fff; text-align: center;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.cta h2, .cta p { color: #fff; }
.cta p { opacity: .88; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.cta .btn-primary { background: #fff; color: #2a1d6e; }
.cta .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ------- footer ------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem;
  max-width: var(--max); margin: 0 auto;
}
.foot-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.foot-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .9rem; }
.foot-grid a { display: block; color: var(--text); margin-bottom: .4rem; }
.foot-grid a:hover { color: var(--brand); }
.muted { color: var(--muted); }
.foot-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem;
}

/* ------- reveal on scroll ------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ------- responsive ------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 1rem 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .feature-grid, .steps, .pricing-grid, .quotes { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}
