/* ================================================
   MathsCool Landing Page - style.css
   ================================================ */

:root {
  --primary: #6C63FF;
  --secondary: #FF6584;
  --accent: #FFD700;
  --success: #10B981;
  --info: #0EA5E9;
  --bg: #0F0E1A;
  --surface: #1A1830;
  --surface2: #231E3D;
  --text: #F1F0FF;
  --text-muted: #9B98B8;
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Poppins', sans-serif;
  --font-fun: 'Comic Neue', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UTILS ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.highlight { color: var(--primary); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-top: 8px; margin-bottom: 40px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-fun);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; align-items: center; 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); }
.btn-nav {
  background: var(--primary) !important;
  color: var(--text) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.btn-nav:hover { opacity: 0.85; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.4);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), #9B5DE5);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5); }
.btn-primary.large { font-size: 1.1rem; padding: 16px 36px; }
.play-badge { height: 36px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); font-family: var(--font-fun); }
.stat span:last-child { font-size: 0.75rem; color: var(--text-muted); }
.stat-sep { color: rgba(255,255,255,0.2); font-size: 1.5rem; }

.hero-visual { flex: 1; display: flex; justify-content: center; }
.phone-mockup {
  position: relative;
  width: 280px;
  aspect-ratio: 9/19;
  background: var(--surface2);
  border-radius: 40px;
  padding: 8px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}
.phone-mockup.small { width: 240px; }
.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }

/* ===== FEATURES ===== */
.features { background: var(--surface); }
.features h2, .features .section-sub { text-align: center; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(108, 99, 255, 0.3); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== STAGE SECTION ===== */
.stage-section { background: var(--bg); }
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-layout.reverse { flex-direction: row-reverse; }
.split-text { flex: 1; }
.split-visual { flex: 1; display: flex; justify-content: center; }

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.split-text h2 { margin-bottom: 16px; }
.split-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 24px; }

.difficulty-zones {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zone { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.zone-icon { font-size: 1.1rem; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-list li { font-size: 0.95rem; color: var(--text-muted); }

/* ===== LABS SECTION ===== */
.labs-section { background: var(--surface); }
.labs-types { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.lab-type {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.lab-emoji { font-size: 1.8rem; flex-shrink: 0; }
.lab-type div { display: flex; flex-direction: column; gap: 2px; }
.lab-type strong { font-size: 0.95rem; font-weight: 700; }
.lab-type span { font-size: 0.85rem; color: var(--text-muted); }

/* ===== LEVELS ===== */
.levels-section { background: var(--bg); text-align: center; }
.levels-section h2 { margin-bottom: 8px; }
.levels-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.level-chip {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-fun);
  color: var(--text);
  transition: all 0.2s;
}
.level-chip:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.05); }
.level-chip.college { border-color: rgba(108, 99, 255, 0.3); color: var(--primary); }

/* ===== ARTICLE ===== */
.article-section { background: var(--surface); }
.article-content {
  max-width: 740px;
}
.article-content h2 { margin-bottom: 8px; }
.article-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; }
.article-content p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.9; margin-bottom: 20px; }
.article-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; margin-top: 32px; color: var(--text); }
.article-content ul { margin-left: 20px; margin-bottom: 20px; }
.article-content li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 8px; }
.article-content strong { color: var(--text); }
.article-content em { color: var(--primary); font-style: normal; }
.article-cta { margin-top: 32px; }

/* ===== DOWNLOAD CTA ===== */
.download-cta {
  background: linear-gradient(135deg, #1A1830 0%, #2D1B4E 100%);
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid rgba(108, 99, 255, 0.2);
}
.download-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.download-cta p { color: var(--text-muted); margin-bottom: 36px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
.footer {
  background: #0A090F;
  padding: 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; max-width: 260px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: rgba(255,255,255,0.2); font-size: 0.8rem; text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .split-layout, .split-layout.reverse { flex-direction: column; }
  .nav-links a:not(.btn-nav) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
