/* ---------- Base ---------- */
:root {
  --bg: #05060f;
  --bg-alt: #0a0c1c;
  --text: #eef0ff;
  --text-dim: #9aa0c3;
  --accent: #7c5cff;
  --accent-2: #33d9c4;
  --accent-3: #ff5ca8;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --container: 1140px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

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

/* ---------- Background FX ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: var(--accent); top: -10%; left: -8%; }
.orb-2 { width: 380px; height: 380px; background: var(--accent-2); top: 30%; right: -10%; animation-delay: -6s; }
.orb-3 { width: 320px; height: 320px; background: var(--accent-3); bottom: -12%; left: 20%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .6;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 15, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color .25s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 12px 32px -8px rgba(124, 92, 255, 0.8); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(124,92,255,0.08); }

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  padding: 10px 22px;
  font-size: 0.9rem;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  z-index: 1;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-inner { max-width: 620px; flex: 1 1 480px; }

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.8rem;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-title .line { display: block; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -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; }
}

.hero-sub {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 540px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  margin-top: 90px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-scroll span {
  width: 22px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

.hero-visual {
  position: relative;
  width: 360px;
  flex: 0 0 360px;
  z-index: 1;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, rgba(124,92,255,0.35), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}

.chat-widget {
  background: rgba(16, 18, 34, 0.85);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  animation: floatWidget 6s ease-in-out infinite;
}
@keyframes floatWidget {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.chat-header-text { display: flex; flex-direction: column; gap: 3px; }
.chat-header-text strong { font-size: 0.92rem; }
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.chat-status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  display: inline-block;
}

.chat-body {
  height: 320px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  animation: msgIn .35s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.typing { display: flex; gap: 4px; padding: 14px; align-items: center; }
.msg.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingDot 1.2s ease-in-out infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 20px 20px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  font-size: 0.82rem;
}
.chat-send {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-send svg { width: 14px; height: 14px; fill: #fff; }

@media (max-width: 900px) {
  .hero-row { justify-content: center; text-align: center; }
  .hero-inner { flex-basis: 100%; }
  .hero-visual { flex-basis: 100%; max-width: 360px; width: 100%; margin: 0 auto; }
  .hero-actions, .hero-scroll { justify-content: center; margin-left: auto; margin-right: auto; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections shared ---------- */
section { position: relative; z-index: 1; padding: 120px 0; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: 16px auto 0;
}

/* ---------- Features ---------- */
.card-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.06);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; fill: #fff; stroke: #fff; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Explore ---------- */
.explore-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .explore-inner { grid-template-columns: 1fr; } }

.explore-text h2 { margin-bottom: 20px; }
.explore-text p { color: var(--text-dim); font-size: 1.05rem; }
.checklist { margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 6px; height: 3px;
  border-left: 2px solid #05060f;
  border-bottom: 2px solid #05060f;
  transform: rotate(-45deg);
}

.orbit-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.orbit-core {
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2), var(--accent));
  box-shadow: 0 0 60px rgba(124,92,255,0.6);
}
.orbit-path {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  inset: 15%;
}
.orbit-path-1 { inset: 5%; animation: spin 14s linear infinite; }
.orbit-path-2 { inset: 18%; animation: spin 20s linear infinite reverse; }
.orbit-path-3 { inset: 31%; animation: spin 10s linear infinite; }
.orbit-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 14px var(--accent-3);
  transform: translateX(-50%);
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-num {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-2);
}
.stat p { color: var(--text-dim); margin-top: 8px; }

/* ---------- CTA ---------- */
.cta-inner {
  text-align: center;
  max-width: 620px;
}
.cta-inner h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; }
.cta-inner p { color: var(--text-dim); margin-top: 14px; }

.cta-form {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-form input {
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  min-width: 280px;
  font-size: 0.95rem;
}
.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.cta-note { margin-top: 14px; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-links a { color: var(--text-dim); transition: color .2s; }
.footer-links a:hover { color: var(--accent-2); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(5,6,15,0.97);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: 260px;
    left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
