* { box-sizing: border-box; }

:root {
  --bg-1: #090f1f;
  --bg-2: #131d36;
  --white: #ffffff;
  --muted: rgba(255,255,255,.78);
  --glass: rgba(255,255,255,.10);
  --glass-border: rgba(255,255,255,.14);
  --shadow: 0 25px 60px rgba(0,0,0,.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 55%, #1a1f46 100%);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 96px;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(79,172,254,.24), transparent 22%),
    radial-gradient(circle at 85% 20%, rgba(255,122,89,.18), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(196,113,245,.18), transparent 24%);
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .36;
  pointer-events: none;
}
.glow-a { width: 240px; height: 240px; background: #ff5e7d; top: -40px; left: -40px; }
.glow-b { width: 320px; height: 320px; background: #4f8cff; right: -80px; top: 140px; }
.glow-c { width: 260px; height: 260px; background: #18d6b0; left: 30%; bottom: -90px; }

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 18px 16px 0;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.ghost-btn, .btn, .nav-item, .lesson-card, .close-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.ghost-btn {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-radius: 14px;
  padding: 12px 16px;
}

.hero-card {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.premium-pill, .eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: .76rem;
  border-radius: 999px;
}

.premium-pill {
  background: linear-gradient(90deg, #ffd166, #ff8c42);
  color: #1f2548;
  padding: 9px 14px;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 5.3vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 16px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  padding: 15px 20px;
  border-radius: 16px;
  font-weight: 800;
  transition: .2s ease;
}

.btn:hover, .ghost-btn:hover, .lesson-card:hover, .nav-item:hover, .close-btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #4facfe, #6a5cff);
  color: #fff;
  box-shadow: 0 18px 28px rgba(79,172,254,.24);
}

.btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: .95rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(360px, 92%);
  background: #0a1023;
  border-radius: 38px;
  padding: 14px;
  box-shadow: 0 24px 55px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
}

.phone-top {
  width: 34%;
  height: 26px;
  background: #050812;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 10px;
}

.phone-screen {
  border-radius: 28px;
  min-height: 520px;
  padding: 22px 18px;
  background:
    radial-gradient(circle at top right, rgba(79,172,254,.25), transparent 26%),
    linear-gradient(180deg, #101937 0%, #171c45 100%);
  display: grid;
  align-content: start;
  gap: 14px;
}

.phone-logo {
  width: 120px;
  border-radius: 24px;
  justify-self: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.32);
}

.mini-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
}

.page {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-box {
  padding: 22px;
  border-radius: 28px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.feature-box h3,
.lesson-card h3,
.section-head h2,
.cta h2,
.modal-card h2 {
  margin: 0 0 8px;
}

.feature-box p,
.lesson-card p,
.section-head p,
.cta p,
.modal-card p,
.modal-card li {
  color: var(--muted);
  line-height: 1.65;
}

.section-head {
  padding: 34px 0 16px;
}

.eyebrow {
  color: #ffd166;
  margin-bottom: 10px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.lesson-card {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  text-align: left;
  color: var(--white);
  overflow: hidden;
  transition: .2s ease;
}

.lesson-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  filter: blur(8px);
}

.lesson-blue { background: linear-gradient(135deg, #1d4ed8, #4f8cff); }
.lesson-orange { background: linear-gradient(135deg, #ea580c, #ffb703); }
.lesson-purple { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.lesson-green { background: linear-gradient(135deg, #059669, #34d399); }
.lesson-pink { background: linear-gradient(135deg, #db2777, #fb7185); }
.lesson-red { background: linear-gradient(135deg, #dc2626, #f87171); }

.lesson-badge {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.20);
  font-weight: 800;
  margin-bottom: 20px;
}

.lesson-main {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.lesson-emoji {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

.lesson-card p { margin: 0; }

.cta {
  margin-top: 24px;
  padding: 24px;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.overlay, .modal {
  position: fixed;
  inset: 0;
}

.overlay {
  background: rgba(3, 6, 17, .62);
  z-index: 40;
}

.modal {
  z-index: 41;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  width: min(760px, 100%);
  padding: 26px;
  border-radius: 30px;
  position: relative;
}

.modal-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(11, 16, 32, .78);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  z-index: 20;
}

.nav-item {
  background: transparent;
  color: #fff;
  border-radius: 18px;
  padding: 10px 8px;
  display: grid;
  place-items: center;
  gap: 4px;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(79,172,254,.28), rgba(106,92,255,.28));
}

.nav-item span { font-size: 1.2rem; }
.nav-item small { font-size: .78rem; color: var(--muted); }

.hidden { display: none; }

@media (max-width: 980px) {
  .hero-card,
  .feature-row,
  .lesson-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-card { padding: 20px; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero-copy h1 { font-size: 2.2rem; }
  .phone-screen { min-height: 440px; }
  .lesson-main { align-items: flex-start; }
}
