:root {
  --ink: #050425;
  --purple: #3a1470;
  --violet: #5a2fd6;
  --blue: #2a3fe0;
  --cyan: #3fc3ff;
  --paper: #f4f2ff;
  --mute: #b3a9e0;
  --line: rgba(160, 130, 255, 0.22);
  --card: rgba(255, 255, 255, 0.045);
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

/* ---------- Navigation ---------- */

.nav-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 3vw, 36px);
  font-size: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--cyan);
}
.nav-links.open {
    display: flex;
  }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-plain {
  opacity: 0.85;
}

.link-plain:hover {
  opacity: 1;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  color: var(--bs-navbar-color);
  background-color: transparent;
  border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
  border-radius: var(--bs-navbar-toggler-border-radius);
  transition: var(--bs-navbar-toggler-transition);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    padding: 16px 24px;
    gap: 12px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    align-items: baseline;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    color: var(--purple);
    opacity: 1;
  }
  .nav-links a:hover,
  .nav-links a.nav-active {
    color: var(--violet);
  }
  .nav-bar {
    position: relative;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-bottom: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(ellipse 75% 65% at 50% 30%, var(--violet) 0%, var(--purple) 32%, #180c48 62%, #05041e 100%);
}

.hero-tag {
  position: relative;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mute);
  margin: 6px 0 18px;
  padding: 0 20px;
}

.hero-headline {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 400;
  color: #ffffff;
  line-height: 0.88;
  font-size: clamp(56px, 13vw, 100px);
  margin: 0 auto;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  max-width: 1150px;
}

.headline-line {
  display: block;
}

.headline-amp {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 0.55em;
  line-height: 1;
  color: #8d87ab;
  margin: 0 auto -0.22em;
}

.hero-lead {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 28px auto 26px;
  padding: 0 20px;
  font-size: 17px;
  color: var(--paper);
}

.hero-cta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 500;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid transparent;
}

.btn-fill {
  background: var(--paper);
  color: var(--purple);
}

.btn-fill:hover {
  background: var(--cyan);
  color: var(--ink);
}

.btn-outline {
  border-color: var(--paper);
  color: var(--paper);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 9vw, 96px) 0;
}

.section-tight {
  padding-top: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 0.94;
  margin: 0 0 14px;
  color: #ffffff;
}

.section-sub {
  color: var(--mute);
  max-width: 560px;
  margin: 0 0 36px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.link-accent {
  color: var(--cyan);
  font-size: 15px;
}

/* ---------- Stats band ---------- */

.stats-band {
  background: linear-gradient(180deg, var(--purple), #150a3c);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1;
  color: #ffffff;
}

.stat-label {
  color: var(--mute);
  font-size: 14px;
}

/* ---------- Courses ---------- */

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

.course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-thumb {
  height: 150px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 64px;
  color: #ffffff;
}

.course-thumb-a {
  background: radial-gradient(circle at 50% 120%, var(--cyan) 0%, var(--blue) 45%, var(--purple) 100%);
}

.course-thumb-b {
  background: radial-gradient(circle at 50% 120%, #a98bff 0%, var(--violet) 45%, var(--purple) 100%);
}

.course-thumb-c {
  background: radial-gradient(circle at 50% 120%, #6fe0ff 0%, #3355e0 45%, var(--purple) 100%);
}

.course-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.course-kind {
  font-size: 13px;
  color: var(--mute);
}

.course-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
}

.course-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
}

.course-price {
  font-weight: 500;
  font-size: 18px;
}

/* ---------- Student stories ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin: 0;
}

.quote-text {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
}

.quote-who {
  color: var(--mute);
  font-size: 14px;
}

/* ---------- Join section ---------- */

.join-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 90% at 50% 110%, var(--violet) 0%, var(--purple) 45%, var(--ink) 100%);
  border-top: 1px solid var(--line);
}

.join-inner .section-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.join-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--mute);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--paper);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {

  .course-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
