:root {
  --bg:       #0f0e17;
  --surface:  #1a1830;
  --card:     #221f38;
  --border:   #2e2b4a;
  --text:     #fffffe;
  --muted:    #a7a9be;
  --code-bg:  #13111f;

  --py-gold:  #ffd166;
  --py-blue:  #4db8ff;
  --accent1:  #ff6b6b;
  --accent3:  #06d6a0;
  --accent5:  #c77dff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 8vw;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(255,209,102,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(77,184,255,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(199,125,255,0.07) 0%, transparent 40%);
  pointer-events: none;
}

/* floating code fragments in background */
.hero-bg-code {
  position: absolute;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: rgba(255,209,102,0.06);
  white-space: pre;
  pointer-events: none;
  user-select: none;
}

.hero-left { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,209,102,0.1);
  border: 1px solid rgba(255,209,102,0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--py-gold);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '🐍';
  font-size: 14px;
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title .line-1 { color: var(--text); }
.hero-title .line-2 {
  background: linear-gradient(135deg, var(--py-gold), var(--py-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .line-3 { color: var(--muted); font-size: 0.65em; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-sub strong { color: var(--py-gold); }

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--py-gold), #ffaa33);
  color: #0f0e17;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255,209,102,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--py-gold); color: var(--py-gold); }

/* ── REPL WIDGET ─────────────────────────── */
.hero-right { position: relative; z-index: 2; }

.repl-widget {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,209,102,0.08);
}

.repl-bar {
  background: #1c1929;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.repl-dots { display: flex; gap: 6px; }
.repl-dots span { width: 10px; height: 10px; border-radius: 50%; }
.repl-dots span:nth-child(1) { background: #ff5f56; }
.repl-dots span:nth-child(2) { background: #ffbd2e; }
.repl-dots span:nth-child(3) { background: #27c93f; }

.repl-title {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  text-align: center;
}

.repl-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--py-gold);
  background: rgba(255,209,102,0.1);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.repl-tabs {
  display: flex;
  background: #161422;
  border-bottom: 1px solid var(--border);
}

.repl-tab {
  padding: 9px 18px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  user-select: none;
}
.repl-tab.active { color: var(--py-gold); border-bottom-color: var(--py-gold); background: rgba(255,209,102,0.05); }
.repl-tab:hover:not(.active) { color: var(--text); }

.repl-body {
  padding: 24px;
  font-family: 'Fira Code', monospace;
  font-size: 0.84rem;
  line-height: 2;
  min-height: 280px;
  position: relative;
}

.repl-panel { display: none; }
.repl-panel.active { display: block; }

/* Syntax */
.kw  { color: #c77dff; }
.fn  { color: #06d6a0; }
.str { color: #ffaa6b; }
.cm  { color: #4a4870; font-style: italic; }
.num { color: #ff6b9d; }
.cls { color: #ffd166; }
.out { color: #a7f3d0; opacity: 0.8; }
.prompt { color: #4db8ff; }

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--py-gold);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.repl-run-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255,209,102,0.12);
  border: 1px solid rgba(255,209,102,0.3);
  color: var(--py-gold);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.repl-run-btn:hover { background: rgba(255,209,102,0.2); transform: translateY(-1px); }

.repl-output {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  min-height: 56px;
  background: rgba(0,0,0,0.2);
}

/* ── STATS ROW ───────────────────────────── */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 8vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--py-gold), var(--py-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ── SECTION SHARED ──────────────────────── */
.section {
  padding: 100px 8vw;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--py-gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 60px;
  line-height: 1.8;
}

/* ── ADVICE SECTION ──────────────────────── */
.advice-section { background: var(--bg); }

.advice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.advice-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.advice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, linear-gradient(90deg, var(--py-gold), var(--py-blue)));
}
.advice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.advice-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.advice-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.advice-card .card-meta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--py-gold);
  margin-bottom: 14px;
}

.advice-card p {
  font-size: 0.95rem;
  color: #c8c8dc;
  line-height: 1.8;
  margin-bottom: 10px;
}

.advice-card p:last-child { margin-bottom: 0; }

.advice-card .highlight {
  color: var(--py-gold);
  font-weight: 700;
}
.advice-card .highlight-blue { color: var(--py-blue); font-weight: 700; }
.advice-card .highlight-teal { color: var(--accent3); font-weight: 700; }
.advice-card .highlight-purple { color: var(--accent5); font-weight: 700; }

.advice-card.featured-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1e1a35, #1a2035);
  border-color: rgba(255,209,102,0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.advice-card.featured-card::before {
  background: linear-gradient(90deg, var(--py-gold), var(--py-blue), var(--accent5));
}

.featured-quote {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.4;
  color: var(--text);
}
.featured-quote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--py-gold), var(--py-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LANG TIER SECTION ───────────────────── */
.lang-section { background: var(--surface); }

.tiers { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }

.tier {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s;
}
.tier:hover { transform: translateX(6px); }

.tier-label {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.tier-rank {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tier-lang {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  line-height: 1;
}

.tier-body {
  padding: 28px 32px;
  border-left: 1px solid var(--border);
  background: var(--card);
}

.tier-body h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.tier-body p {
  font-size: 0.92rem;
  color: #c0c0d8;
  line-height: 1.75;
}

.tier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tier-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tier-1 .tier-label { background: linear-gradient(135deg, #1f1c00, #2a2400); }
.tier-1 .tier-rank  { color: var(--py-gold); }
.tier-1 .tier-lang  { color: var(--py-gold); }
.tier-1             { border-color: rgba(255,209,102,0.3); }

.tier-2 .tier-label { background: linear-gradient(135deg, #001a2a, #001f35); }
.tier-2 .tier-rank  { color: var(--py-blue); }
.tier-2 .tier-lang  { color: var(--py-blue); }
.tier-2             { border-color: rgba(77,184,255,0.25); }

.tier-3 .tier-label { background: linear-gradient(135deg, #1a0a2e, #200e38); }
.tier-3 .tier-rank  { color: var(--accent5); }
.tier-3 .tier-lang  { color: var(--accent5); }
.tier-3             { border-color: rgba(199,125,255,0.25); }

.tier-keep .tier-label { background: linear-gradient(135deg, #0a1e15, #0c2019); }
.tier-keep .tier-rank  { color: var(--accent3); }
.tier-keep .tier-lang  { color: var(--accent3); font-size: 1.2rem; }
.tier-keep             { border-color: rgba(6,214,160,0.2); }

/* ── ROADMAP SECTION ─────────────────────── */
.roadmap-section { background: var(--bg); }

.roadmap-track {
  position: relative;
  padding-left: 48px;
  max-width: 900px;
}

.roadmap-track::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--py-gold), var(--py-blue), var(--accent5), var(--accent3), var(--py-gold));
}

.roadmap-phase {
  position: relative;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.roadmap-phase.visible {
  opacity: 1;
  transform: translateX(0);
}

.roadmap-phase::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--phase-color, var(--py-gold));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--phase-color, var(--py-gold));
  z-index: 2;
}

.phase-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  cursor: pointer;
  transition: all 0.25s;
  border-left: 3px solid var(--phase-color, var(--py-gold));
}
.phase-inner:hover { transform: translateX(4px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.phase-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.phase-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.phase-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--phase-color, var(--py-gold));
  background: rgba(255,209,102,0.08);
  padding: 3px 10px;
  border-radius: 20px;
}

.phase-duration {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.phase-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.phase-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 560px;
}

.phase-expand-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.phase-expand-btn:hover { border-color: var(--py-gold); color: var(--py-gold); }
.phase-expand-btn.open { transform: rotate(180deg); }

.phase-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.phase-details.open { max-height: 600px; }

.phase-details-inner {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.phase-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.topic-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #d0d0e8;
  transition: all 0.2s;
}
.topic-chip:hover { background: rgba(255,209,102,0.08); border-color: rgba(255,209,102,0.3); color: var(--py-gold); }

.phase-project {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,209,102,0.05);
  border: 1px solid rgba(255,209,102,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
}

.phase-project-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.phase-project-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--py-gold);
  margin-bottom: 3px;
}
.phase-project-desc { font-size: 0.88rem; color: #c8c8dc; }

.phase-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--py-gold);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.phase-cta-link:hover { gap: 10px; }

/* ── META SKILLS SECTION ─────────────────── */
.meta-section { background: var(--surface); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.meta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.2s;
}
.meta-card:hover { transform: translateY(-5px); }

.meta-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }

.meta-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.meta-card p {
  font-size: 0.9rem;
  color: #c0c0d8;
  line-height: 1.75;
}

/* ── BOTTOM CTA ──────────────────────────── */
.bottom-cta {
  padding: 120px 8vw;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.bottom-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,209,102,0.08) 0%, transparent 65%);
}

.bottom-cta h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}

.bottom-cta h2 span {
  background: linear-gradient(135deg, var(--py-gold), var(--py-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bottom-cta p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
}

.bottom-cta .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  padding: 28px 8vw;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--py-gold);
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

/* ── REVEAL ANIMATIONS ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 60px 6vw; gap: 40px; }
  .advice-grid { grid-template-columns: 1fr; }
  .advice-card.featured-card { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 1fr; }
  .tier-body { border-left: none; border-top: 1px solid var(--border); }
  .stat-item { padding: 12px 20px; }
}

@media (max-width: 600px) {
  .section { padding: 70px 5vw; }
  .hero { padding: 50px 5vw; }
  .stats-strip { flex-direction: column; gap: 16px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; text-align: center; }
  .stat-item:last-child { border-bottom: none; }
}