:root {
  --bg: #06060c;
  --panel: rgba(18, 18, 32, .62);
  --line: rgba(255, 255, 255, .09);
  --text: #eef0ff;
  --muted: #9a9cb8;
  --a1: #7c5cff;
  --a2: #22d3ee;
  --a3: #f472b6;
  --radius: 22px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }
.muted { color: var(--muted); }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.fallback-orb { display: none; position: fixed; width: 60vmin; height: 60vmin; right: -10vmin; top: 10vh; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--a2), var(--a1) 45%, transparent 70%); filter: blur(20px); opacity: .6; z-index: 0; }
.no-webgl .fallback-orb { display: block; }
.no-webgl #scene { display: none; }

.nav, main, .footer { position: relative; z-index: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--a1), #5b3df5 50%, var(--a2)); background-size: 200% 100%; box-shadow: 0 12px 40px -12px rgba(124, 92, 255, .7); transition: background-position .4s, transform .2s; }
.btn:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-full { width: 100%; }

.nav { position: fixed; inset: 0 0 auto 0; display: flex; align-items: center; gap: 28px; padding: calc(14px + env(safe-area-inset-top)) clamp(16px, 5vw, 64px) 14px; transition: background .3s; z-index: 10; }
.nav.scrolled { background: rgba(6, 6, 12, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: .12em; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 16px var(--a2); }
.nav-links { display: flex; gap: 26px; margin-left: auto; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }

.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(16px, 6vw, 96px) 80px; max-width: 900px; }
.pill { display: inline-block; align-self: flex-start; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
h1 { font-size: clamp(40px, 7.4vw, 88px); line-height: 1.02; }
.grad { background: linear-gradient(90deg, var(--a2), var(--a1) 50%, var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { margin-top: 24px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--a2); transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translate(-50%, 12px); opacity: 0; } }

.section { padding: clamp(80px, 12vw, 140px) clamp(16px, 6vw, 96px); }
h2 { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.08; margin-bottom: 36px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 1100px; }
.feature, .plan, .steps li, .faq details, .cta-box, .phone { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.feature { padding: 26px; transition: transform .3s, border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .5); }
.feature .ic { font-size: 28px; }
.feature h3 { margin: 14px 0 8px; font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: clamp(28px, 6vw, 80px); align-items: center; max-width: 1200px; }
.split h2 { margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.checks li::before { content: "✓"; color: var(--a2); margin-right: 10px; font-weight: 700; }
.phone { padding: 0; overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.phone-top small { display: block; color: var(--a2); font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--display); background: linear-gradient(135deg, var(--a1), var(--a2)); }
.chat { height: 380px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: msgIn .35s ease both; }
.msg.user { align-self: flex-end; background: #2b2b45; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .2)); border: 1px solid rgba(124, 92, 255, .35); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; font-size: 12px; color: var(--a2); background: rgba(34, 211, 238, .08); border: 1px dashed rgba(34, 211, 238, .4); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1100px; }
.steps li { padding: 26px; }
.steps b { font: 700 14px var(--display); color: var(--a2); }
.steps h3 { margin: 10px 0 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.billing { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 28px; }
.billing button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; }
.billing button.active { background: rgba(255, 255, 255, .1); color: var(--text); }
.billing span { color: var(--a2); font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; max-width: 1100px; }
.plan { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: rgba(124, 92, 255, .6); box-shadow: 0 30px 80px -40px rgba(124, 92, 255, .8); }
.tag { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.cost { font: 700 40px var(--display); margin: 8px 0; }
.cost small { font: 500 15px var(--sans); color: var(--muted); }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 15px; flex: 1; }
.plan li::before { content: "•"; color: var(--a2); margin-right: 8px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--a2); font-size: 20px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 12px; }

.cta-box { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); text-align: center; }
.cta-box h2 { margin-bottom: 12px; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 26px; }
.cta-form input { padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--text); font: 16px var(--sans); min-width: 0; }
.cta-form input:focus { outline: 2px solid var(--a1); }
.cta-form .invalid { border-color: var(--a3); }
.form-msg { min-height: 1.5em; margin-top: 14px; color: var(--a2); font-size: 14px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 30px clamp(16px, 6vw, 96px) calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grad, .scroll-hint span { animation: none; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  #scene { opacity: .8; }
  h1, h2, .lead, .muted, .checks { text-shadow: 0 2px 18px rgba(6, 6, 12, .9); }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding-top: 110px; }
  .actions .btn { flex: 1 1 auto; }
  .chat { height: 340px; }
}
