/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080810;
  --bg-card:    rgba(255,255,255,0.04);
  --bg-card-h:  rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.08);
  --border-h:   rgba(255,255,255,0.18);
  --text:       #f0f0f8;
  --text-muted: #8888aa;
  --purple:     #8b5cf6;
  --purple-light:#a78bfa;
  --pink:       #ec4899;
  --rose:       #f43f5e;
  --glow:       rgba(139,92,246,0.35);
  --radius:     16px;
  --radius-lg:  24px;
  --font:       'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── Canvas ────────────────────────────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(8,8,16,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--pink)) !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── Sections ──────────────────────────────────────────────────────────────── */
section { position: relative; z-index: 1; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-badge {
  display: inline-block;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 540px;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-badge {
  display: inline-block;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 460px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(139,92,246,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(139,92,246,0.6);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-h);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.btn-large { padding: 18px 36px; font-size: 17px; }

/* ─── Hero Visual ───────────────────────────────────────────────────────────── */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 500px;
}

/* Orb */
.orb-container {
  position: absolute;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c084fc, #7c3aed 50%, #4c1d95);
  box-shadow: 0 0 60px rgba(139,92,246,0.8), 0 0 120px rgba(139,92,246,0.4);
  animation: pulse 4s ease-in-out infinite;
  position: relative;
  z-index: 3;
}
.orb-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite 0.5s;
  z-index: 2;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin linear infinite;
}
.ring-1 {
  width: 180px; height: 180px;
  border-color: rgba(139,92,246,0.4);
  animation-duration: 8s;
  transform: rotateX(70deg);
}
.ring-2 {
  width: 240px; height: 240px;
  border-color: rgba(236,72,153,0.3);
  animation-duration: 12s;
  animation-direction: reverse;
  transform: rotateX(70deg) rotateZ(30deg);
}
.ring-3 {
  width: 300px; height: 300px;
  border-color: rgba(167,139,250,0.2);
  animation-duration: 20s;
  transform: rotateX(70deg) rotateZ(60deg);
}

/* Phone */
.phone-mockup {
  width: 220px;
  height: 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 36px;
  padding: 40px 16px 24px;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  animation: float 6s ease-in-out infinite;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}
.phone-screen { height: 100%; overflow: hidden; }

/* Chat demo */
.chat-demo { display: flex; flex-direction: column; gap: 8px; }
.chat-msg {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 85%;
  animation: slideIn 0.4s ease;
}
.chat-msg.ai {
  background: rgba(139,92,246,0.25);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
  color: #e2d9f3;
}
.chat-msg.user {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(139,92,246,0.15);
  border-radius: 18px 18px 18px 4px;
  width: fit-content;
}
.chat-typing span {
  width: 6px; height: 6px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ─── Stats Bar ─────────────────────────────────────────────────────────────── */
.stats-bar {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto 100px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 32px 48px;
  backdrop-filter: blur(20px);
}
.stat { text-align: center; }
.stat-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* ─── Features ──────────────────────────────────────────────────────────────── */
.features {
  padding: 60px 0 100px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.card-large { grid-column: span 2; }
.card-wide { grid-column: span 2; }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Memory dots */
.memory-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.memory-node {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.3s;
}
.memory-node.active {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.4);
  color: var(--purple-light);
}

/* Hinglish demo */
.hinglish-demo {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.h-msg {
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-style: italic;
  color: #c4b5fd;
}

/* ─── How it works ──────────────────────────────────────────────────────────── */
.how { padding: 60px 0 100px; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
  position: relative;
}
.step {
  flex: 1;
  padding: 0 24px;
}
.step-num {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(139,92,246,0.6), rgba(236,72,153,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.step-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  margin-top: 28px;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ─── Reviews ───────────────────────────────────────────────────────────────── */
.reviews { padding: 60px 0 100px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.review-featured {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.25);
  transform: scale(1.02);
}
.review-stars {
  font-size: 16px;
  color: #f59e0b;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.review-author { font-size: 13px; font-weight: 600; color: var(--text); }

/* ─── Download CTA ──────────────────────────────────────────────────────────── */
.download-cta {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.download-cta h2 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 16px;
}
.download-cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ─── Animations ────────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}
@keyframes spin {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to   { transform: rotateX(70deg) rotateZ(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40%           { transform: scale(1); opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease forwards; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-subtitle { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-visual { min-height: 300px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .card-large, .card-wide { grid-column: span 2; }
  .steps { flex-direction: column; gap: 24px; }
  .step-line { width: 1px; height: 40px; margin: 0 0 0 24px; background: linear-gradient(180deg, var(--purple), var(--pink)); }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-featured { transform: none; }
  .stats-bar { flex-direction: column; gap: 24px; }
  .stat-divider { width: 100px; height: 1px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .card-large, .card-wide { grid-column: span 1; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
