:root {
  --bg: #0a0a12;
  --bg-card: #12121f;
  --bg-elevated: #1a1a2e;
  --text: #f0f0f8;
  --text-muted: #9898b8;
  --accent: #2aabee;
  --accent-2: #7c3aed;
  --accent-3: #f59e0b;
  --gradient: linear-gradient(135deg, #2aabee 0%, #7c3aed 50%, #ec4899 100%);
  --radius: 20px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  border-radius: 12px;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 32px rgba(42, 171, 238, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(42, 171, 238, 0.15);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(42, 171, 238, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: 300px;
  background: var(--bg-elevated);
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.phone-notch {
  height: 28px;
  background: var(--bg);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(42, 171, 238, 0.1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.avatar-bot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.phone-header strong { display: block; font-size: 0.95rem; }

.online {
  font-size: 0.75rem;
  color: #4ade80;
}

.phone-chat {
  height: 320px;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}

.phone-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.phone-input button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.bubble {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
  animation: bubbleIn 0.4s ease backwards;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
}

.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
}

.bubble.file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bubble.typing {
  display: flex;
  gap: 4px;
  padding: 0.8rem 1rem;
}

.bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.2s infinite;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.orbit {
  position: absolute;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: orbit 8s ease-in-out infinite;
}

.orbit-1 { top: 10%; right: 0; animation-delay: 0s; }
.orbit-2 { top: 40%; right: -10%; animation-delay: -2s; }
.orbit-3 { bottom: 30%; left: -5%; animation-delay: -4s; }
.orbit-4 { bottom: 10%; right: 5%; animation-delay: -6s; }

@keyframes orbit {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -8px); }
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1.2rem 0;
  background: rgba(42, 171, 238, 0.08);
  border-block: 1px solid rgba(255,255,255,0.06);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  max-width: 700px;
  margin: 0 auto;
}

.section-sub {
  max-width: 560px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-head em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features grid */
.features-wrap {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.features-category-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-left: 0.25rem;
  color: var(--text);
  opacity: 0.92;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.feature-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(42,171,238,0.12) 0%, rgba(124,58,237,0.12) 100%);
  border-color: rgba(42, 171, 238, 0.25);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.feature-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tags li {
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.feature-card[data-color="blue"]:hover { box-shadow: 0 20px 60px rgba(42,171,238,0.15); }
.feature-card[data-color="purple"]:hover { box-shadow: 0 20px 60px rgba(124,58,237,0.15); }
.feature-card[data-color="green"]:hover { box-shadow: 0 20px 60px rgba(74,222,128,0.15); }
.feature-card[data-color="teal"]:hover { box-shadow: 0 20px 60px rgba(45,212,191,0.15); }
.feature-card[data-color="indigo"]:hover { box-shadow: 0 20px 60px rgba(99,102,241,0.15); }
.feature-card[data-color="violet"]:hover { box-shadow: 0 20px 60px rgba(139,92,246,0.15); }
.feature-card[data-color="orange"]:hover { box-shadow: 0 20px 60px rgba(251,146,60,0.15); }
.feature-card[data-color="pink"]:hover { box-shadow: 0 20px 60px rgba(244,114,182,0.15); }
.feature-card[data-color="yellow"]:hover { box-shadow: 0 20px 60px rgba(250,204,21,0.12); }
.feature-card[data-color="red"]:hover { box-shadow: 0 20px 60px rgba(248,113,113,0.15); }
.feature-card[data-color="cyan"]:hover { box-shadow: 0 20px 60px rgba(34,211,238,0.15); }
.feature-card[data-color="lime"]:hover { box-shadow: 0 20px 60px rgba(163,230,53,0.12); }

/* Demo */
.demo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.demo-scenarios {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.scenario {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.scenario:hover {
  background: var(--bg-elevated);
  border-color: rgba(255,255,255,0.12);
}

.scenario.active {
  background: rgba(42, 171, 238, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.scenario span:first-child { font-size: 1.2rem; }

.demo-phone {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  min-height: 420px;
}

.demo-chat {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 420px;
}

/* Parents */
.parents-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem;
}

.parents-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
}

.parents-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.parents-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.parents-list li {
  color: #4ade80;
  font-weight: 500;
}

.money-widget {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.money-header {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.money-bar {
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.money-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  animation: fillGrow 2s ease-out;
}

@keyframes fillGrow {
  from { width: 0 !important; }
}

.money-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.money-pct {
  font-weight: 700;
  color: var(--accent);
}

.money-people {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.paid { color: #4ade80; }
.pending { color: var(--accent-3); }

/* Support */
.support-section {
  padding-top: 4rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.support-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 171, 238, 0.4);
  box-shadow: 0 16px 40px rgba(42, 171, 238, 0.12);
  background: var(--bg-elevated);
}

.support-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  flex-shrink: 0;
}

.support-card div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.support-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
}

.support-card span:not(.support-avatar):not(.support-arrow) {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.support-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.support-card:hover .support-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.support-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover { color: var(--text); }

/* Music toggle */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(18, 18, 31, 0.9);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.music-toggle:hover {
  transform: scale(1.08);
  border-color: rgba(42, 171, 238, 0.5);
  box-shadow: 0 8px 32px rgba(42, 171, 238, 0.2);
}

.music-toggle.playing {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.25);
}

.music-icon {
  position: absolute;
  font-size: 1.4rem;
  transition: opacity 0.2s;
}

.music-on { opacity: 0; }
.music-toggle.playing .music-on { opacity: 1; }
.music-toggle.playing .music-off { opacity: 0; }

.music-bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-toggle.playing .music-bars { display: flex; }
.music-toggle.playing .music-icon { opacity: 0; }

.music-bars span {
  width: 4px;
  background: var(--gradient);
  border-radius: 2px;
  animation: musicBar 0.8s ease-in-out infinite;
}

.music-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.music-bars span:nth-child(3) { height: 10px; animation-delay: 0.3s; }

@keyframes musicBar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* CTA */
.cta-section {
  padding: 4rem 2rem 8rem;
  max-width: 800px;
  margin: 0 auto;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-card p {
  position: relative;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-note {
  position: relative;
  font-size: 0.85rem;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bot {
  margin-top: 0.75rem;
}

.footer-bot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(42, 171, 238, 0.35);
  background: rgba(42, 171, 238, 0.08);
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-bot-link:hover {
  background: rgba(42, 171, 238, 0.16);
  border-color: rgba(42, 171, 238, 0.55);
  color: var(--text);
}

.footer-small {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .orbit { display: none; }

  .feature-card.featured { grid-column: span 1; }

  .demo-layout { grid-template-columns: 1fr; }

  .demo-scenarios {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .scenario { flex: 1 1 calc(50% - 0.5rem); }

  .parents-card { grid-template-columns: 1fr; }

  .nav { display: none; }
}

@media (max-width: 480px) {
  .header { padding: 1rem; }
  .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .scenario { flex: 1 1 100%; }
}
