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

:root {
  --bg: #0b0e17;
  --surface: #12162280;
  --surface-solid: #161b2e;
  --border: rgba(255,255,255,0.06);
  --text: #e8eaf6;
  --text-dim: #8892b0;
  --blue: #4f8cff;
  --green: #3ddc84;
  --orange: #ff9142;
  --purple: #a07cff;
  --pink: #ff6eb4;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(11,14,23,0.82);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  text-decoration: none;
}
.nav__brand canvas { border-radius: 6px; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__btn {
  background: var(--blue) !important; color: #fff !important;
  padding: 0.45rem 1.1rem !important; border-radius: 8px;
  font-weight: 600 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav__btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(79,140,255,0.4); }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; transition: 0.3s;
}

.accent { color: var(--green); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 1.25rem 80px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(79,140,255,0.12) 0%, rgba(61,220,132,0.06) 40%, transparent 70%);
  pointer-events: none;
}
.hero__particles { position: absolute; inset: 0; pointer-events: none; }
.hero__content {
  position: relative; text-align: center; max-width: 700px; z-index: 2;
}
.hero__logo-wrap {
  display: inline-block; margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
}
.hero__logo-wrap canvas { border-radius: 20px; }
.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--green), var(--orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.15rem; color: var(--text-dim); max-width: 520px;
  margin: 0 auto 2rem; line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.7rem 1.6rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.25s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue), #6c5ce7);
  color: #fff; box-shadow: 0 4px 24px rgba(79,140,255,0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(79,140,255,0.5); }
.btn--ghost {
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* STATS */
.hero__stats {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  font-size: 2rem; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

/* SECTIONS */
.section { padding: 6rem 0; }
.section__header { text-align: center; margin-bottom: 3rem; }
.section__tag {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 20px;
  background: rgba(79,140,255,0.1); color: var(--blue);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 0.8rem;
}
.section__header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; margin-bottom: 0.6rem;
}
.section__header p { color: var(--text-dim); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* CARDS */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.6s ease calc(var(--delay) * 0.1s) both;
}
.card:hover {
  transform: translateY(-4px); border-color: rgba(79,140,255,0.25);
  box-shadow: 0 8px 40px rgba(79,140,255,0.08);
}
.card__icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

/* BENEFITS */
.benefits { background: rgba(255,255,255,0.015); }
.benefits__grid { display: grid; gap: 1rem; max-width: 700px; margin: 0 auto; }
.benefit-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.2rem 1.5rem;
}
.benefit-card__bar {
  height: 6px; border-radius: 3px; margin-bottom: 0.8rem;
  background: var(--surface-solid); position: relative; overflow: hidden;
}
.benefit-card__bar::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  width: var(--w); border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  animation: barGrow 1.5s ease both;
}
.benefit-card__bar--green::after { background: linear-gradient(90deg, var(--green), #a8e06c); }
.benefit-card__bar--orange::after { background: linear-gradient(90deg, var(--orange), #ffc107); }
.benefit-card__bar--purple::after { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.benefit-card__info { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.2rem; }
.benefit-card__pct { font-size: 1.4rem; font-weight: 800; color: var(--green); font-family: 'JetBrains Mono', monospace; }
.benefit-card__info span:last-child { color: var(--text-dim); font-size: 0.9rem; }
.benefit-card p { font-size: 0.85rem; color: var(--text-dim); }

/* COURSES */
.courses__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.course-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(79,140,255,0.08); }
.course-card--featured { border-color: rgba(61,220,132,0.3); position: relative; }
.course-card__badge {
  position: absolute; top: -10px; right: 16px;
  background: linear-gradient(135deg, var(--green), #a8e06c);
  color: #0b0e17; font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: 12px;
}
.course-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.course-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; flex: 1; }
.course-card__meta { display: flex; gap: 1rem; margin: 1rem 0; }
.course-card__meta span {
  font-size: 0.8rem; color: var(--text-dim); padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.04); border-radius: 6px;
}
.course-card__price {
  font-size: 1.3rem; font-weight: 800; color: var(--green); margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}
.course-card .btn { align-self: flex-start; }

/* COMMUNITY */
.community__features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.comm-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; transition: transform 0.3s;
}
.comm-item:hover { transform: translateY(-3px); }
.comm-item__icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.comm-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.comm-item p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

/* CTA */
.cta__box {
  text-align: center; padding: 3.5rem 2rem;
  background: linear-gradient(135deg, rgba(79,140,255,0.08), rgba(61,220,132,0.05));
  border: 1px solid var(--border); border-radius: 24px;
  position: relative; overflow: hidden;
}
.cta__box::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(79,140,255,0.06), transparent 60%);
  pointer-events: none;
}
.cta__box h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.6rem; position: relative; }
.cta__box > p { color: var(--text-dim); margin-bottom: 1.5rem; position: relative; }
.cta__form {
  display: flex; gap: 0.6rem; justify-content: center;
  flex-wrap: wrap; position: relative;
}
.cta__input {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.7rem 1.2rem;
  color: var(--text); font-size: 0.95rem; width: 280px; outline: none;
  transition: border-color 0.2s;
}
.cta__input:focus { border-color: var(--blue); }
.cta__input::placeholder { color: var(--text-dim); }
.cta__hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.8rem; position: relative; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.footer__brand canvas { border-radius: 5px; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; }
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: 0.8rem; color: var(--text-dim); }

/* ANIMATIONS */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes barGrow {
  from { width: 0; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav__links { display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(11,14,23,0.96); flex-direction: column; padding: 1.5rem;
    gap: 1rem; border-bottom: 1px solid var(--border); }
  .nav__links.active { display: flex; }
  .nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__burger.active span:nth-child(2) { opacity: 0; }
  .nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero__stats { gap: 1.5rem; }
  .cta__input { width: 100%; max-width: 300px; }
}
