/* ═══════════════════════════════════════════════════════
   DevLearn — Landing Page Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ─── Reset & variables ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0F0F1A;
  --bg-2:       #13131F;
  --bg-card:    #1A1A2E;
  --bg-code:    #0D0D1A;
  --accent:     #6C63FF;
  --accent-2:   #4FC3F7;
  --accent-3:   #00E676;
  --text:       #F0F0FF;
  --text-2:     #9898B8;
  --border:     rgba(108, 99, 255, 0.18);
  --radius:     16px;
  --ease:       0.25s ease;
  --font:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
img  { max-width: 100%; display: block; }
code { font-family: var(--mono); }

/* ─── Layout helpers ─────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ─── Utility ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.28);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #7c74ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(108, 99, 255, 0.4);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}
.btn--outline:hover {
  border-color: rgba(108, 99, 255, 0.5);
  color: var(--text);
}

/* ─── Scroll reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal--right { transform: translateX(48px); }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Store buttons ──────────────────────────────────── */
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-buttons--centered { justify-content: center; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  transition: all var(--ease);
}
.store-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.store-btn svg { flex-shrink: 0; }
.store-btn__sub  { display: block; font-size: 10px; color: var(--text-2); line-height: 1.2; }
.store-btn__main { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }

/* ══════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15, 15, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 40px;
}

.logo {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
}
.logo__bracket { color: var(--accent); }
.logo__accent  { color: var(--accent-2); }

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--ease);
}
.nav__link:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: 68px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero__title {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero__body {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-2);
}

.hero__bg-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 68%);
  top: 50%; right: -120px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Phone mockup */
.hero__phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.phone {
  width: 272px;
  background: var(--bg-card);
  border-radius: 44px;
  border: 1.5px solid rgba(108, 99, 255, 0.35);
  box-shadow:
    0 0 0 10px rgba(108, 99, 255, 0.04),
    0 48px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.phone__island {
  width: 96px; height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.phone__screen {
  padding: 12px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.app-streak {
  background: rgba(255, 140, 66, 0.15);
  color: #FF8C42;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.app-card {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(79, 195, 247, 0.08));
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: 12px;
  padding: 12px;
}
.app-card__tag   { font-size: 10px; color: var(--accent-2); font-weight: 600; margin-bottom: 4px; }
.app-card__title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.app-card__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}

.app-code {
  background: var(--bg-code);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
}
.code-line { white-space: nowrap; }
.ct { color: #C792EA; }   /* type      */
.cv { color: #82AAFF; }   /* variable  */
.ck { color: #C3E88D; }   /* keyword   */
.cn { color: #F78C6C; }   /* number    */
.cf { color: #82AAFF; }   /* function  */
.cs { color: #C3E88D; }   /* string    */
.co { color: var(--accent-2); } /* operator */

.app-quiz { font-size: 12px; }
.quiz-label {
  font-size: 10px;
  color: var(--text-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.quiz-q { font-weight: 600; font-size: 12px; margin-bottom: 7px; }
.quiz-opt {
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}
.quiz-opt--correct {
  border-color: rgba(0, 230, 118, 0.45);
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-3);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.stat__num {
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__suffix {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.stat__label {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 52px;
  background: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.feature-card:hover {
  border-color: rgba(108, 99, 255, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.feature-card__icon { font-size: 34px; margin-bottom: 18px; }
.feature-card h3    { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p     { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════ */
.how-it-works { background: var(--bg-2); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  display: block;
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step__body  { font-size: 14px; color: var(--text-2); line-height: 1.7; }

.step-arrow {
  font-size: 26px;
  color: var(--accent);
  opacity: 0.45;
  align-self: center;
  flex-shrink: 0;
  padding-bottom: 32px;
}

/* ══════════════════════════════════════════════════════
   STACKS
══════════════════════════════════════════════════════ */
.stacks__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.stack-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.stack-chip:hover {
  border-color: rgba(108, 99, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.stack-chip__icon {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════ */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--pro {
  border-color: rgba(108, 99, 255, 0.5);
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.09), var(--bg-card));
  box-shadow: 0 0 48px rgba(108, 99, 255, 0.12);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #9b5de5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pricing-card__badge--gold {
  background: linear-gradient(135deg, #f5a623, #f7c94e);
  color: #1a1000;
}

.pricing-card--lifetime {
  border-color: rgba(245, 166, 35, 0.35);
  background: linear-gradient(145deg, rgba(245, 166, 35, 0.07), var(--bg-card));
}

.pricing-card__plan  { font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.pricing-card__price {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  line-height: 1;
}
.pricing-card__price span { font-size: 17px; font-weight: 400; color: var(--text-2); }
.pricing-card__desc  { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-card__features li { font-size: 14px; padding-left: 4px; }
.pricing-card__features li.yes { color: var(--text); }
.pricing-card__features li.yes::before { content: '✓  '; color: var(--accent-3); }
.pricing-card__features li.no  { color: var(--text-2); }
.pricing-card__features li.no::before  { content: '✕  '; color: rgba(255,255,255,0.2); }

.pricing-card .btn { width: 100%; }

/* ══════════════════════════════════════════════════════
   CTA
══════════════════════════════════════════════════════ */
.cta__inner {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(79, 195, 247, 0.06));
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  position: relative;
}

.cta__body {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 40px;
  position: relative;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  padding-bottom: 52px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 14px;
  line-height: 1.65;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 10px;
  transition: color var(--ease);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-2);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero__container  { grid-template-columns: 1fr; text-align: center; }
  .hero__body       { max-width: 100%; }
  .store-buttons    { justify-content: center; }
  .hero__phone-wrap { display: none; }
  .features__grid   { grid-template-columns: repeat(2, 1fr); }
  .footer__inner    { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 960px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .section { padding: 68px 0; }
  .steps   { flex-direction: column; align-items: center; }
  .step    { max-width: 420px; width: 100%; }
  .step-arrow { transform: rotate(90deg); padding: 0; align-self: center; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(15, 15, 26, 0.97);
    backdrop-filter: blur(12px);
    padding: 28px 24px;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav__link { font-size: 16px; }
  .nav__cta  { display: none; }
  .nav__burger { display: flex; }

  .features__grid { grid-template-columns: 1fr; }
  .stats-bar__inner { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .stat { padding: 16px 24px; }
  .stat-divider { display: none; }
  .cta__inner { padding: 48px 24px; }
  .footer__links { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
