:root {
  --deep-navy: #0B1020;
  --electric-purple: #9B6DFF;
  --neon-cyan: #4DEBFF;
  --soft-lavender: #C9B6FF;
  --pure-white: #F8FAFF;
  --graphite: #1F2433;
  --muted: rgba(248, 250, 255, 0.72);
  --line: rgba(248, 250, 255, 0.12);
  --gradient: linear-gradient(135deg, var(--electric-purple), var(--neon-cyan));
  --shadow: 0 24px 90px rgba(77, 235, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--pure-white);
  background:
    radial-gradient(circle at 18% 12%, rgba(155, 109, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 20%, rgba(77, 235, 255, 0.13), transparent 24rem),
    var(--deep-navy);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(248, 250, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
  z-index: -1;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 16, 32, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.brand-text span,
.footer-brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--neon-cyan);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(248, 250, 255, 0.14);
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--pure-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 16, 32, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--neon-cyan);
  background: rgba(77, 235, 255, 0.08);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.header-cta,
.btn-primary {
  color: var(--pure-white);
  background: var(--gradient);
  box-shadow: 0 16px 42px rgba(155, 109, 255, 0.28);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  filter: none;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-top: 156px;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.24;
  pointer-events: none;
}

.hero-glow-purple {
  top: 18%;
  left: -10%;
  background: var(--electric-purple);
}

.hero-glow-cyan {
  right: -8%;
  bottom: 18%;
  background: var(--neon-cyan);
}

.eyebrow {
  margin: 0 0 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

h1 span,
.section-heading h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn-secondary {
  border: 1px solid rgba(77, 235, 255, 0.42);
  color: var(--neon-cyan);
  background: rgba(77, 235, 255, 0.06);
}

.hero-stats {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-stats div,
.course-card,
.feature,
.mentor-card,
.enroll-card {
  border: 1px solid var(--line);
  background: rgba(31, 36, 51, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 16px;
  border-radius: 20px;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  color: var(--pure-white);
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.mascot-card {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  min-height: auto;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.mascot {
  position: relative;
  z-index: 1;
  width: min(92%, 460px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.35));
}

.code-chip {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(77, 235, 255, 0.28);
  border-radius: 16px;
  background: rgba(11, 16, 32, 0.82);
  color: var(--neon-cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2,
.enroll-content h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-heading p:not(.eyebrow),
.enroll-content p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cards-grid,
.feature-grid,
.mentor-grid {
  display: grid;
  gap: 18px;
}

.cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.course-card,
.feature,
.mentor-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.course-card::before,
.feature::before,
.mentor-card::before,
.enroll-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(155, 109, 255, 0.7), rgba(77, 235, 255, 0.2), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.course-card:hover,
.mentor-card:hover,
.feature:hover {
  transform: translateY(-6px);
}

.course-card,
.mentor-card,
.feature {
  transition: transform 0.22s ease;
}

.icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: rgba(77, 235, 255, 0.1);
  font-size: 30px;
}

.course-card h3,
.mentor-card h3,
.feature b {
  display: block;
  margin-bottom: 12px;
  font-size: 23px;
}

.course-card p,
.mentor-card p,
.feature p {
  color: var(--muted);
  line-height: 1.65;
}

.course-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(77, 235, 255, 0.32);
  border-radius: 999px;
  color: var(--neon-cyan);
  background: rgba(77, 235, 255, 0.06);
  cursor: pointer;
  font-weight: 800;
}

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.course-modal.open {
  display: flex;
}

.course-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 16, 0.76);
  backdrop-filter: blur(12px);
}

.course-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(248, 250, 255, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 0%, rgba(155, 109, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 100% 20%, rgba(77, 235, 255, 0.14), transparent 18rem),
    rgba(31, 36, 51, 0.96);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
}

.course-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 250, 255, 0.14);
  border-radius: 50%;
  color: var(--pure-white);
  background: rgba(11, 16, 32, 0.84);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.course-modal h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.course-modal__content {
  display: grid;
  gap: 14px;
}

.course-modal__content h3 {
  margin: 14px 0 0;
  color: var(--soft-lavender);
  font-size: 21px;
}

.course-modal__content p,
.course-modal__content li {
  color: var(--muted);
  line-height: 1.7;
}

.course-modal__content ul {
  margin: 0;
  padding-left: 20px;
}

.course-modal__content strong {
  color: var(--pure-white);
}

.course-card span {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--soft-lavender);
  background: rgba(201, 182, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.why {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: rgba(31, 36, 51, 0.28);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mentor-grid {
  grid-template-columns: repeat(4, 1fr);
}

.mentor-card {
  text-align: center;
}

.mentor-card div {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--deep-navy);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 0 42px rgba(77, 235, 255, 0.22);
}

.enroll-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 36px;
  overflow: hidden;
}

.enroll-card::after {
  content: "</>";
  position: absolute;
  right: 38px;
  top: 26px;
  color: rgba(77, 235, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 140px;
  font-weight: 900;
}

.lead-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-lavender);
  font-weight: 700;
  font-size: 14px;
}

.lead-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(248, 250, 255, 0.14);
  border-radius: 18px;
  outline: none;
  color: var(--pure-white);
  background: rgba(11, 16, 32, 0.72);
}

.lead-form input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(77, 235, 255, 0.1);
}

.lead-form .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.consent-label input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
  padding: 0;
  accent-color: var(--electric-purple);
}

.consent-label a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-note.success {
  color: var(--neon-cyan);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin: 0 auto 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(31, 36, 51, 0.52);
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer a:hover {
  color: var(--neon-cyan);
}

.site-footer h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-brand {
  margin-bottom: 12px;
}

.policy-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.policy-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--neon-cyan);
  font-weight: 700;
}

.policy-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(31, 36, 51, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.policy-card h1 {
  margin-bottom: 28px;
  font-size: clamp(34px, 7vw, 58px);
}

.policy-card h2 {
  margin: 30px 0 10px;
  font-size: 22px;
}

.policy-card p {
  color: var(--muted);
  line-height: 1.75;
}

.policy-card a {
  color: var(--neon-cyan);
}

.policy-note {
  margin-top: 32px;
  padding: 16px;
  border: 1px solid rgba(77, 235, 255, 0.22);
  border-radius: 18px;
  background: rgba(77, 235, 255, 0.07);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-header {
    min-height: 64px;
  }

  .hero,
  .enroll-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    text-align: center;
    min-height: auto;
  }

  .hero-copy,
  .section-heading {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    margin-inline: auto;
  }

  .cards-grid,
  .feature-grid,
  .mentor-grid,
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .brand {
    gap: 8px;
    font-size: 21px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 72px 0;
  }

  .hero {
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(38px, 14vw, 58px);
    letter-spacing: -0.06em;
  }

  .section-heading h2,
  .enroll-content h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .btn {
    min-height: 52px;
  }

  .hero-stats,
  .cards-grid,
  .feature-grid,
  .mentor-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .mascot-card {
    border-radius: 28px;
  }

  .mascot {
    width: min(94%, 380px);
  }

  .code-chip {
    right: 16px;
    bottom: 16px;
  }

  .why {
    padding-inline: 12px;
  }

  .site-footer {
    margin-bottom: 16px;
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .brand-text {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    padding: 0 12px;
  }

  .hero-stats div,
  .course-card,
  .feature,
  .mentor-card,
  .enroll-card {
    border-radius: 22px;
  }

  .course-card,
  .feature,
  .mentor-card {
    padding: 22px;
  }

  .enroll-card {
    padding: 24px;
  }

  .code-chip {
    max-width: calc(100% - 32px);
    font-size: 12px;
  }
}

@media (min-width: 1280px) {
  .hero {
    gap: 76px;
  }

  .mascot-card {
    width: 560px;
  }
}
