:root {
  --bg: #050816;
  --bg-soft: #090e23;
  --surface: #101833;
  --surface-light: #151f3f;
  --line: rgba(126, 153, 210, 0.16);
  --text: #f7f9ff;
  --muted: #aab4d0;
  --cyan: #16d9ff;
  --green: #18f0ad;
  --purple: #8674ff;
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gradient-text {
  color: var(--cyan);
  background: linear-gradient(110deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(5, 8, 22, 0.84);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand > span:last-child > span {
  color: var(--green);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(22, 217, 255, 0.55);
  border-radius: 11px;
  color: #04101a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 25px rgba(22, 217, 255, 0.18);
  transform: skew(-8deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

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

.language-switch {
  min-width: 58px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(22, 217, 255, 0.35);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(22, 217, 255, 0.06);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: var(--cyan);
  background: rgba(22, 217, 255, 0.12);
}

.main-nav a {
  position: relative;
  color: #e7ebf8;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-button > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: white;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.2), var(--bg)),
    radial-gradient(circle at 50% 10%, #16214a 0, transparent 47%),
    #070b1d;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.4;
  background:
    linear-gradient(125deg, transparent 35%, rgba(22, 217, 255, 0.08) 35.5%, transparent 36%),
    linear-gradient(55deg, transparent 45%, rgba(134, 116, 255, 0.08) 45.5%, transparent 46%);
  background-size: 190px 190px, 260px 260px;
}

.hero-grid {
  position: absolute;
  inset: 36% -20% -25%;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(30, 220, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 220, 255, 0.24) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, black);
  transform: perspective(400px) rotateX(62deg);
  transform-origin: center bottom;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
}

.hero-orb-one {
  top: 24%;
  left: -150px;
  width: 320px;
  height: 320px;
  background: rgba(134, 116, 255, 0.12);
}

.hero-orb-two {
  right: -120px;
  bottom: 8%;
  width: 290px;
  height: 290px;
  background: rgba(24, 240, 173, 0.08);
}

.hero-content {
  padding-top: 100px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #cbd4eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 28px;
  height: 2px;
  flex: 0 0 28px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.hero h1 {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(47px, 7vw, 82px);
  font-weight: 900;
}

.hero-copy {
  max-width: 780px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #031218;
  background: linear-gradient(110deg, var(--cyan), var(--green));
  box-shadow: 0 12px 35px rgba(20, 228, 214, 0.2);
}

.button-primary:hover {
  box-shadow: 0 16px 44px rgba(20, 228, 214, 0.3);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

.hero-note strong {
  color: white;
}

.avatar-stack {
  display: flex;
}

.avatar-stack i {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 50%;
  color: #06101b;
  background: linear-gradient(135deg, #d8e3ff, var(--cyan));
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.avatar-stack i:first-child {
  margin-left: 0;
}

.stats {
  padding: 34px 0 74px;
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(145deg, rgba(21, 31, 63, 0.9), rgba(11, 17, 39, 0.9));
  overflow: hidden;
}

.stat-card::before {
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.stat-card strong {
  display: block;
  color: var(--cyan);
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: #d3daed;
  font-size: 14px;
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 56px;
  text-align: center;
}

.section h2 {
  font-size: clamp(36px, 5vw, 55px);
}

.section-heading > p:last-child,
.advantages-copy > p:not(.eyebrow),
.cta-card > div > p:last-child {
  color: var(--muted);
}

.section-heading > p:last-child {
  margin: 20px 0 0;
}

.courses {
  background:
    radial-gradient(circle at 50% 5%, rgba(33, 77, 137, 0.18), transparent 30%),
    #060918;
}

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

.course-card,
.benefit-card,
.story-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(20, 29, 59, 0.94), rgba(10, 15, 36, 0.96));
}

.course-card {
  position: relative;
  min-height: 330px;
  padding: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  border-color: rgba(22, 217, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(-7px);
}

.course-card.featured {
  border-color: rgba(24, 240, 173, 0.42);
}

.course-badge {
  position: absolute;
  top: 18px;
  right: -34px;
  width: 145px;
  padding: 6px 0;
  color: #021610;
  background: var(--green);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  transform: rotate(38deg);
}

.course-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(22, 217, 255, 0.28);
  border-radius: 15px;
  color: var(--cyan);
  background: rgba(22, 217, 255, 0.08);
  font-size: 25px;
}

.course-meta {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  color: #7f8bad;
  font-size: 12px;
}

.course-meta span:first-child {
  color: var(--green);
}

.course-card h3,
.benefit-card h3 {
  margin: 12px 0 10px;
  font-size: 21px;
}

.course-card p,
.benefit-card p,
.story-card p {
  color: var(--muted);
  font-size: 14px;
}

.course-card a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}

.advantages {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.advantages::after {
  position: absolute;
  top: 10%;
  right: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  content: "";
  background: rgba(134, 116, 255, 0.1);
  filter: blur(20px);
}

.advantages-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 80px;
}

.advantages-copy {
  position: relative;
  z-index: 1;
}

.advantages-copy > p:not(.eyebrow) {
  margin: 24px 0 12px;
}

.benefit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.benefit-card {
  min-height: 230px;
  padding: 28px;
  border-radius: 18px;
}

.benefit-card:nth-child(even) {
  transform: translateY(28px);
}

.benefit-card > span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stories {
  background: #060918;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story-card {
  margin: 0;
  padding: 30px;
  border-radius: var(--radius);
}

.stars {
  color: #ffd76a;
  letter-spacing: 4px;
}

.story-card > p {
  min-height: 118px;
  margin: 20px 0 28px;
  font-size: 15px;
}

.story-card footer {
  display: flex;
  align-items: center;
  gap: 13px;
}

.story-card footer > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #07101d;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 12px;
  font-weight: 900;
}

.story-card strong,
.story-card small {
  display: block;
}

.story-card small {
  margin-top: 2px;
  color: #7f8bad;
}

.cta {
  padding-top: 30px;
  background: #060918;
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  padding: 66px;
  border: 1px solid rgba(22, 217, 255, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(125deg, rgba(18, 30, 66, 0.98), rgba(9, 16, 40, 0.98)),
    var(--surface);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(24, 240, 173, 0.12);
  filter: blur(5px);
}

.cta-card > *:not(.cta-glow) {
  position: relative;
  z-index: 1;
}

.contact-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(4, 8, 24, 0.55);
}

.contact-form input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  outline: none;
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.contact-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(22, 217, 255, 0.1);
}

.contact-form .button {
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-message {
  min-height: 24px;
  margin: 10px 3px 0;
  color: var(--green);
  font-size: 13px;
}

.form-message.is-error {
  color: #ff8f9d;
}

.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  background: #040611;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.footer-grid > div > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid nav {
  display: flex;
  gap: 25px;
  color: #ccd4e7;
  font-size: 13px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 20px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #6f7998;
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav-actions {
    position: fixed;
    inset: 78px 20px auto;
    display: grid;
    gap: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 13, 32, 0.98);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-actions.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav {
    display: grid;
    gap: 0;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .language-switch {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border-radius: 12px;
  }

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

  .course-grid,
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-layout,
  .cta-card {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .benefit-card:nth-child(even) {
    transform: none;
  }

  .cta-card {
    padding: 45px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-note {
    align-items: flex-start;
    text-align: left;
  }

  .stats {
    padding-top: 15px;
  }

  .stats-grid,
  .course-grid,
  .benefit-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 38px;
    text-align: left;
  }

  .course-card {
    min-height: 0;
  }

  .advantages-layout {
    gap: 40px;
  }

  .cta-card {
    padding: 34px 23px;
    border-radius: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
