/* NecoEDU – Homepage design system */

:root {
  --neo-primary: #1e40af;
  --neo-primary-dark: #1e3a8a;
  --neo-primary-light: #3b82f6;
  --neo-primary-bg: #eff6ff;
  --neo-accent: #f59e0b;
  --neo-accent-bg: #fffbeb;
  --neo-green: #16a34a;
  --neo-green-bg: #f0fdf4;
  --neo-text: #0f172a;
  --neo-muted: #64748b;
  --neo-line: #e2e8f0;
  --neo-surface: #ffffff;
  --neo-bg: #f8fafc;
  --neo-shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --neo-shadow: 0 4px 24px rgba(15,23,42,.08);
  --neo-shadow-lg: 0 20px 60px rgba(15,23,42,.12);
  --neo-radius: 16px;
  --neo-radius-sm: 10px;
  --neo-radius-lg: 24px;
}

/* ── Navbar ──────────────────────────────────────── */
.neo-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neo-line);
}
.neo-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.neo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--neo-text);
  flex-shrink: 0;
}
.neo-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neo-primary) 0%, var(--neo-primary-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(30,64,175,.30);
}
.neo-logo__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--neo-text);
}
.neo-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.neo-nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--neo-muted);
  transition: color .15s, background .15s;
}
.neo-nav__links a:hover { color: var(--neo-primary); background: var(--neo-primary-bg); }
.neo-nav__cta {
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────── */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--neo-radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
}
.neo-btn:hover { transform: translateY(-1px); }
.neo-btn--primary {
  background: var(--neo-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,64,175,.35);
}
.neo-btn--primary:hover { box-shadow: 0 6px 20px rgba(30,64,175,.40); }
.neo-btn--outline {
  background: transparent;
  color: var(--neo-primary);
  border: 2px solid var(--neo-primary);
}
.neo-btn--outline:hover { background: var(--neo-primary-bg); }
.neo-btn--ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.neo-btn--ghost:hover { background: rgba(255,255,255,.25); }
.neo-btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.neo-btn--lg { height: 54px; padding: 0 28px; font-size: 15px; border-radius: 12px; }

/* ── Container ───────────────────────────────────── */
.neo-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Badge ───────────────────────────────────────── */
.neo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.neo-badge--blue { background: var(--neo-primary-bg); color: var(--neo-primary); }
.neo-badge--amber { background: var(--neo-accent-bg); color: #b45309; }
.neo-badge--green { background: var(--neo-green-bg); color: var(--neo-green); }
.neo-badge--free { background: var(--neo-green-bg); color: var(--neo-green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; }
.neo-badge--hot { background: #fef2f2; color: #dc2626; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; }
.neo-badge--preview { background: var(--neo-primary-bg); color: var(--neo-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; }

/* ── Hero section ────────────────────────────────── */
.neo-hero {
  padding: 90px 0 80px;
  background: linear-gradient(160deg, #f0f7ff 0%, #f8fafc 60%, #fff 100%);
  overflow: hidden;
  position: relative;
}
.neo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% -10%, rgba(59,130,246,.10) 0%, transparent 70%);
  pointer-events: none;
}
.neo-hero__inner {
  position: relative;
  max-width: 760px;
}
.neo-hero__headline {
  margin: 20px 0 0;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--neo-text);
}
.neo-hero__headline em {
  font-style: normal;
  color: var(--neo-primary);
}
.neo-hero__sub {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--neo-muted);
  max-width: 600px;
}
.neo-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.neo-hero__perks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.neo-hero__perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--neo-muted);
}
.neo-hero__perk-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neo-green-bg);
  color: var(--neo-green);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.neo-hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--neo-line);
}
.neo-hero__stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--neo-text);
}
.neo-hero__stat span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--neo-muted);
  font-weight: 500;
}

/* ── Steps section ───────────────────────────────── */
.neo-steps {
  padding: 80px 0;
  background: var(--neo-surface);
  border-top: 1px solid var(--neo-line);
  border-bottom: 1px solid var(--neo-line);
}
.neo-steps__header {
  text-align: center;
  margin-bottom: 56px;
}
.neo-steps__title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--neo-text);
}
.neo-steps__sub {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--neo-muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.neo-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.neo-steps__grid::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--neo-primary) 0%, var(--neo-primary-light) 100%);
  pointer-events: none;
}
.neo-step {
  background: var(--neo-bg);
  border: 1px solid var(--neo-line);
  border-radius: var(--neo-radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.neo-step--highlight {
  background: var(--neo-primary);
  border-color: var(--neo-primary);
  color: #fff;
}
.neo-step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--neo-primary-bg);
  color: var(--neo-primary);
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.neo-step--highlight .neo-step__num {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.neo-step__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--neo-text);
  margin: 0 0 10px;
}
.neo-step--highlight .neo-step__title { color: #fff; }
.neo-step__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--neo-muted);
  margin: 0;
}
.neo-step--highlight .neo-step__desc { color: rgba(255,255,255,.8); }

/* ── Section heading ─────────────────────────────── */
.neo-section-header {
  margin-bottom: 40px;
}
.neo-section-header h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--neo-text);
}
.neo-section-header p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--neo-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Courses section ─────────────────────────────── */
.neo-courses {
  padding: 80px 0;
  background: var(--neo-bg);
}
.neo-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.neo-course-card {
  background: var(--neo-surface);
  border: 1px solid var(--neo-line);
  border-radius: var(--neo-radius-lg);
  overflow: hidden;
  box-shadow: var(--neo-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.neo-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neo-shadow-lg);
}
.neo-course-card__thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.9);
  position: relative;
  overflow: hidden;
}
.neo-course-card__thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.neo-course-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.neo-course-card__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--neo-text);
  margin: 0;
  line-height: 1.3;
}
.neo-course-card__desc {
  font-size: 13px;
  color: var(--neo-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.neo-course-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.neo-course-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--neo-text);
}
.neo-course-card__rating-star { color: #f59e0b; }
.neo-course-card__lessons {
  font-size: 12px;
  color: var(--neo-muted);
}
.neo-course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--neo-line);
  margin-top: auto;
}
.neo-course-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--neo-primary);
  letter-spacing: -0.03em;
}
.neo-course-card__price--free {
  color: var(--neo-green);
}
.neo-courses__empty {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  border: 2px dashed var(--neo-line);
  border-radius: var(--neo-radius-lg);
  color: var(--neo-muted);
}
.neo-courses__footer {
  margin-top: 40px;
  text-align: center;
}

/* ── CTA Banner ──────────────────────────────────── */
.neo-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--neo-primary) 0%, var(--neo-primary-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.neo-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(255,255,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.neo-cta__inner { position: relative; max-width: 640px; margin: 0 auto; }
.neo-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.neo-cta p {
  margin: 0 0 32px;
  font-size: 17px;
  opacity: .85;
  line-height: 1.65;
}
.neo-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────── */
.neo-footer {
  background: var(--neo-text);
  color: rgba(255,255,255,.7);
  padding: 60px 0 40px;
}
.neo-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.neo-footer__brand .neo-logo__name { color: #fff; }
.neo-footer__tagline {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  max-width: 240px;
}
.neo-footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}
.neo-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.neo-footer__col ul a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.neo-footer__col ul a:hover { color: #fff; }
.neo-footer__bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ── Gradients for course thumbnails ─────────────── */
.neo-grad-1 { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); }
.neo-grad-2 { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }
.neo-grad-3 { background: linear-gradient(135deg, #0f766e 0%, #34d399 100%); }
.neo-grad-4 { background: linear-gradient(135deg, #b91c1c 0%, #f87171 100%); }
.neo-grad-5 { background: linear-gradient(135deg, #b45309 0%, #fbbf24 100%); }
.neo-grad-6 { background: linear-gradient(135deg, #0e7490 0%, #38bdf8 100%); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .neo-courses__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neo-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .neo-nav__links { display: none; }
  .neo-hero { padding: 60px 0 56px; }
  .neo-hero__headline { font-size: clamp(32px, 8vw, 48px); }
  .neo-steps__grid { grid-template-columns: 1fr; }
  .neo-steps__grid::before { display: none; }
  .neo-courses__grid { grid-template-columns: 1fr; }
  .neo-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .neo-hero__stats { gap: 20px; }
  .neo-footer__grid { grid-template-columns: 1fr; }
  .neo-cta__actions { flex-direction: column; align-items: stretch; }
  .neo-hero__actions { flex-direction: column; }
  .neo-btn--lg { width: 100%; }
}
