/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1b2a;
  --bg-2: #0a1628;
  --surface: #1a2d4a;
  --surface-2: #152438;
  --border: #1e3a5f;
  --accent-coral: #FF6B6B;
  --accent-coral-dim: rgba(255, 107, 107, 0.15);
  --accent-gold: #FFD93D;
  --accent-gold-dim: rgba(255, 217, 61, 0.15);
  --accent-blue: #3d7ab5;
  --accent-blue-dim: rgba(61, 122, 181, 0.15);
  --text: #e8f0fe;
  --text-muted: #8ba3c7;
  --text-dim: #4a6fa5;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow-1 {
  width: 600px; height: 600px;
  top: -100px; left: -200px;
  background: radial-gradient(circle, rgba(61,122,181,0.12) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 500px; height: 500px;
  bottom: 0; right: -100px;
  background: radial-gradient(circle, rgba(255,107,107,0.08) 0%, transparent 70%);
}
.floating-shapes { position: absolute; inset: 0; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}
.shape-1 {
  width: 300px; height: 300px;
  border: 1px solid var(--accent-gold);
  top: 15%; right: 8%;
  animation: float1 8s ease-in-out infinite;
}
.shape-2 {
  width: 180px; height: 180px;
  background: var(--accent-blue-dim);
  top: 60%; right: 20%;
  animation: float2 10s ease-in-out infinite;
}
.shape-3 {
  width: 120px; height: 120px;
  border: 1px solid var(--accent-coral);
  top: 25%; left: 5%;
  animation: float3 7s ease-in-out infinite;
}
.shape-4 {
  width: 80px; height: 80px;
  background: var(--accent-gold-dim);
  bottom: 20%; left: 15%;
  animation: float1 9s ease-in-out infinite reverse;
}
@keyframes float1 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-20px) rotate(5deg)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
@keyframes float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold-dim);
  border: 1px solid rgba(255,217,61,0.3);
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: 'Fredoka', sans-serif;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; gap: 16px; }
.hero-app-store { cursor: pointer; }
.hero-note { font-size: 0.82rem; color: var(--text-dim); }

/* === TUTOR CARD === */
.tutor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(61,122,181,0.1);
  position: relative;
  overflow: hidden;
}
.tutor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold));
  border-radius: 20px 20px 0 0;
}
.tutor-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.tutor-avatar svg { display: block; }
.tutor-info { display: flex; flex-direction: column; gap: 2px; }
.tutor-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.1rem; }
.tutor-role { font-size: 0.78rem; color: var(--text-muted); }
.tutor-status { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity: 0.5 } }
.tutor-status span { font-size: 0.75rem; color: #22c55e; font-weight: 600; }

.tutor-message {
  background: var(--accent-blue-dim);
  border: 1px solid rgba(61,122,181,0.3);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--text);
}

.tutor-chat-bubbles { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  max-width: 85%;
  line-height: 1.5;
}
.bubble-user {
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
}
.bubble-tutor {
  background: var(--accent-blue-dim);
  border: 1px solid rgba(61,122,181,0.2);
  align-self: flex-start;
  border-radius: 12px 12px 12px 4px;
}
.bubble-correct { border-left: 3px solid #22c55e; }

/* XP Bar */
.tutor-xp-bar { margin-bottom: 14px; }
.xp-bar-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold));
  border-radius: 100px;
  transition: width 1s ease;
}
.xp-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.xp-level { margin-left: auto; color: var(--accent-gold); font-weight: 600; }

/* Rewards */
.tutor-rewards { display: flex; gap: 8px; flex-wrap: wrap; }
.reward-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
}
.reward-badge.earned { background: var(--accent-gold-dim); color: var(--accent-gold); border: 1px solid rgba(255,217,61,0.3); }
.reward-badge.locked { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stat { text-align: center; }
.stat-number { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--accent-gold); display: block; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* === FEATURES === */
.features {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.features-header { text-align: center; margin-bottom: 56px; }
.features-label {
  display: inline-block;
  background: var(--accent-coral-dim);
  color: var(--accent-coral);
  border: 1px solid rgba(255,107,107,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 16px;
}
.features-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: rgba(61,122,181,0.5);
  transform: translateY(-2px);
}
.feature-card.feature-tall { grid-row: span 2; }
.feature-card.feature-wide { grid-column: span 2; }

.feature-icon { margin-bottom: 16px; }
.feature-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* Feature visuals */
.voice-visual, .plan-visual { margin-top: 16px; }

.voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-bottom: 8px;
}
.wave-bar {
  width: 4px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 100px;
  animation: wave 1.2s ease-in-out infinite;
}
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.15s; }
.wave-bar:nth-child(8) { animation-delay: 0.25s; }
.wave-bar:nth-child(9) { animation-delay: 0.35s; }
.wave-bar:nth-child(10) { animation-delay: 0.45s; }
.wave-bar:nth-child(11) { animation-delay: 0.2s; }
.wave-bar:nth-child(12) { animation-delay: 0.3s; }
.wave-bar:nth-child(13) { animation-delay: 0.1s; }
.wave-bar:nth-child(14) { animation-delay: 0.2s; }
.wave-bar:nth-child(15) { animation-delay: 0s; }
@keyframes wave {
  0%,100% { height: 8px; }
  50% { height: 36px; }
}
.voice-visual span { font-size: 0.75rem; color: var(--accent-blue); font-weight: 600; }

.plan-progress { }
.plan-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  position: relative;
}
.plan-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), #5a9fd4);
  border-radius: 100px;
}
.plan-fill-secondary {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent-coral), #ff8a8a);
  border-radius: 100px;
  opacity: 0.6;
}
.plan-fill-tertiary {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), #ffe566);
  border-radius: 100px;
  opacity: 0.5;
}
.plan-labels { display: flex; justify-content: space-between; }
.plan-labels span { font-size: 0.72rem; color: var(--text-dim); font-weight: 600; }
.plan-caption { font-size: 0.75rem; color: var(--text-muted); font-style: italic; margin-top: 4px; display: block; }

/* === HOW === */
.how {
  padding: 80px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-header { text-align: center; margin-bottom: 56px; }
.how-label {
  display: inline-block;
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
  border: 1px solid rgba(61,122,181,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 16px;
}
.how-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px;
  padding: 0 20px;
}
.step-number {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(255,107,107,0.3);
}
.step-content h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.step-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-blue), var(--border));
  margin-bottom: 40px;
}

/* === PRICING === */
.pricing {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-header { text-align: center; margin-bottom: 48px; }
.pricing-label {
  display: inline-block;
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border: 1px solid rgba(255,217,61,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 16px;
}
.pricing-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.pricing-card-featured {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px rgba(255,217,61,0.2), 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
}
.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-gold));
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pricing-tier {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 0.88rem; display: flex; align-items: flex-start; gap: 10px; }
.pricing-features li::before { content: ''; flex-shrink: 0; margin-top: 2px; }
li.included::before { display: block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%2322c55e'/%3E%3Cpath d='M5.5 9l2.5 2.5 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center/contain; }
li.not-included::before { display: block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%232d3f5a'/%3E%3Cpath d='M6.5 6.5l5 5M11.5 6.5l-5 5' stroke='%236a8ab8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain; }
li.included { color: var(--text); }
li.not-included { color: var(--text-dim); text-decoration: line-through; }

/* === CLOSING === */
.closing {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}
.closing-content { max-width: 800px; margin: 0 auto; text-align: center; }
.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.closing p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }
.closing-visual {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.closing-stat { text-align: center; }
.closing-stat-num {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 6px;
}
.closing-stat-desc { font-size: 0.82rem; color: var(--text-muted); max-width: 160px; }

/* === FOOTER === */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.1rem; }
.footer-copy { font-size: 0.82rem; color: var(--text-dim); max-width: 400px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-sub { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-tall { grid-row: span 1 !important; }
  .feature-wide { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { width: 2px; height: 40px; background: linear-gradient(180deg, var(--border), var(--accent-blue), var(--border)); margin: 0; }
  }

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .nav-links { display: none; }
  .closing-visual { gap: 28px; }
  .closing-stat-num { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 60px; height: 1px; }
}