:root {
  --font-base: "Segoe UI Variable", "Segoe UI", Tahoma, sans-serif;
  --bg: #040813;
  --bg-soft: #0a1020;
  --bg-panel: rgba(255, 255, 255, 0.05);
  --bg-panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fb;
  --muted: #b5c1d3;
  --muted-soft: #7f8ca6;
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.18);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.18);
  --gold: #facc15;
  --gold-soft: rgba(250, 204, 21, 0.16);
  --gold-strong: #f5b400;
  --shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --max-width: 1280px;
  --ease: 0.3s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #040813;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(124, 58, 237, 0.28), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(37, 99, 235, 0.24), transparent 26%),
    radial-gradient(circle at 50% 110%, rgba(250, 204, 21, 0.12), transparent 32%),
    linear-gradient(180deg, #03060f 0%, #050916 30%, #070d18 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

body * {
  -webkit-user-select: none;
  user-select: none;
}

body,
section,
article,
div,
span,
p,
h1,
h2,
h3,
h4,
li,
strong,
small,
footer,
label {
  cursor: default;
}

a,
button,
input,
.academy-btn {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

input {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.75);
  outline-offset: 4px;
}

.academy-noise,
.academy-orb,
.academy-grid {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.academy-noise {
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255,255,255,.8) 0.7px, transparent 0.7px);
  background-size: 14px 14px;
}

.academy-orb {
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.5;
}

.academy-orb-a {
  width: 360px;
  height: 360px;
  top: -100px;
  right: -80px;
  background: rgba(124, 58, 237, 0.28);
}

.academy-orb-b {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -100px;
  background: rgba(37, 99, 235, 0.24);
}

.academy-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, transparent 0%, black 16%, black 84%, transparent 100%);
}

.academy-header,
.academy-main,
.academy-footer {
  position: relative;
  z-index: 1;
}

.academy-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.header-shell {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.academy-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px) saturate(170%);
  background: linear-gradient(180deg, rgba(5, 9, 22, 0.92), rgba(5, 9, 22, 0.74));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.academy-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.academy-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.academy-brand-copy {
  display: grid;
  gap: 6px;
}

.academy-brand-copy span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-brand-wordmark,
.about-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  gap: 0;
  line-height: 1.06;
  unicode-bidi: isolate;
}

.wordmark-main,
.wordmark-accent {
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.wordmark-main {
  color: #f8f4ff;
  text-shadow: 0 0 18px rgba(196, 181, 253, 0.3), 0 0 30px rgba(124, 58, 237, 0.22);
}

.wordmark-gap {
  display: inline-block;
  width: clamp(8px, 0.9vw, 14px);
}

.wordmark-accent {
  padding-inline-end: 0.05em;
  padding-block-end: 0.08em;
  background: linear-gradient(135deg, #f8d4ff 0%, #d8b4fe 32%, #a78bfa 68%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 10px 24px rgba(216, 180, 254, 0.18), 0 0 28px rgba(124, 58, 237, 0.22);
}

.academy-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.academy-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #e2e8f0;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.academy-nav a:hover,
.academy-nav a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.36);
  background: rgba(255,255,255,.07);
}

.academy-nav-cta {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(245, 158, 11, 0.18)) !important;
  border-color: rgba(250, 204, 21, 0.3) !important;
  color: #fff5c4 !important;
}

.academy-main {
  padding: 30px 0 88px;
}

.academy-hero {
  padding-top: 26px;
}

.hero-grid,
.entry-grid,
.architecture-grid,
.plans-grid,
.locked-campus-grid,
.hero-side-stats,
.entry-feature-grid,
.footer-shell,
.final-actions {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: stretch;
}

.academy-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 19, 34, 0.88), rgba(9, 15, 27, 0.92));
  box-shadow: var(--shadow);
}

.academy-panel::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.52;
  pointer-events: none;
}

.hero-copy,
.hero-side,
.login-panel,
.entry-copy,
.architecture-card,
.final-cta-panel,
.locked-campus {
  padding: 32px;
}

.hero-copy::before {
  top: -80px;
  left: -60px;
  background: rgba(124, 58, 237, 0.22);
}

.hero-side::before,
.login-panel::before {
  bottom: -90px;
  right: -60px;
  background: rgba(37, 99, 235, 0.18);
}

.hero-copy > *,
.hero-side > *,
.login-panel > *,
.entry-copy > *,
.architecture-card > *,
.final-cta-panel > *,
.locked-campus > * {
  position: relative;
  z-index: 1;
}

.hero-pill,
.section-pill,
.plan-badge,
.login-lock,
.locked-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-pill,
.section-pill,
.login-lock,
.locked-badge {
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(216, 180, 254, 0.24);
  color: #e9d5ff;
}

.section-pill-gold {
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #fff1ab;
}

.hero-copy h1,
.hero-side h2,
.section-heading h2,
.login-panel h2,
.locked-campus-overlay h3,
.final-cta-panel h2 {
  margin: 0;
  line-height: 1.34;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  max-width: 12ch;
}

.hero-copy p,
.hero-side p,
.section-heading p,
.login-panel p,
.architecture-card p,
.locked-campus-overlay p,
.final-cta-panel p,
.academy-footer p,
.entry-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.hero-copy p {
  max-width: 62ch;
  margin-top: 18px;
}

.hero-chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #dbeafe;
  font-size: 0.94rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.academy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
}

.academy-btn:hover,
.academy-btn:focus-visible {
  transform: translateY(-3px);
}

.academy-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 18px 38px rgba(64, 67, 240, 0.28);
}

.academy-btn-secondary {
  color: #edf2ff;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}

.academy-btn-ticket {
  color: #151515;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.26);
}

.academy-btn-block {
  width: 100%;
}

.academy-btn-lg {
  min-height: 58px;
  padding-inline: 26px;
}

.side-kicker {
  color: #c4b5fd;
  font-weight: 800;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-side-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-side-stats article {
  padding: 18px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  text-align: center;
}

.hero-side-stats strong,
.entry-feature-grid strong,
.architecture-card strong,
.locked-card strong,
.plan-head strong,
.academy-footer strong {
  display: block;
}

.hero-side-stats strong {
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.hero-side-stats span,
.entry-feature-grid span,
.locked-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.academy-section {
  padding-top: 110px;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.section-heading-center {
  text-align: center;
  justify-items: center;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  max-width: 18ch;
}

.section-heading p {
  max-width: 70ch;
}

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

.plan-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.86), rgba(9, 15, 28, 0.92));
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.plan-card:hover,
.plan-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}

.plan-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.plan-badge {
  width: fit-content;
}

.plan-card-plus .plan-badge {
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.24);
  color: #d6f4ff;
}

.plan-card-pro .plan-badge {
  background: rgba(167, 139, 250, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.26);
  color: #ede9fe;
}

.plan-card-max .plan-badge {
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: #fff5c4;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.plan-card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.plan-card li {
  position: relative;
  padding-right: 24px;
  color: #e6ecf6;
  line-height: 1.9;
}

.plan-card li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.82rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.entry-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: start;
}

.entry-feature-grid,
.architecture-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-feature-grid article,
.architecture-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.entry-feature-grid strong,
.architecture-card strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.login-panel {
  display: grid;
  gap: 16px;
}

.login-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.login-form {
  display: grid;
  gap: 14px;
}

.field-label {
  color: #e5ebf6;
  font-weight: 700;
  font-size: 0.94rem;
}

.login-form input {
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #fff;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.login-form input::placeholder {
  color: #7c8ba7;
}

.login-form input:focus {
  border-color: rgba(250, 204, 21, 0.44);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.08);
  background: rgba(255,255,255,.07);
}

.login-status {
  min-height: 28px;
  font-size: 0.94rem;
}

.login-status.is-error {
  color: #fca5a5;
}

.login-status.is-success {
  color: #86efac;
}

.architecture-grid {
  gap: 20px;
}

.locked-campus {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.locked-campus-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(3, 7, 16, 0.72), rgba(3, 7, 16, 0.9));
}

.locked-campus-overlay h3 {
  max-width: 16ch;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}

.locked-campus-overlay p {
  max-width: 58ch;
}

.locked-campus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  filter: blur(18px);
  opacity: 0.42;
  padding: 28px;
}

.locked-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.locked-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.locked-card div {
  padding: 18px;
}

.final-cta-panel {
  text-align: center;
  padding: 40px 34px;
  background:
    radial-gradient(circle at top center, rgba(250, 204, 21, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(8, 14, 27, 0.96), rgba(15, 21, 38, 0.94));
}

.final-cta-panel h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.final-cta-panel p {
  max-width: 60ch;
  margin: 16px auto 0;
}

.final-actions {
  margin-top: 28px;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
}

.academy-footer {
  padding: 0 0 34px;
}

.footer-shell {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #d9e2ef;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff4c2;
}

@media (max-width: 1100px) {
  .hero-grid,
  .entry-grid,
  .plans-grid,
  .footer-shell,
  .final-actions,
  .locked-campus-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-stats,
  .entry-feature-grid,
  .architecture-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1,
  .section-heading h2,
  .locked-campus-overlay h3 {
    max-width: unset;
  }
}

@media (max-width: 760px) {
  .academy-shell {
    width: min(100% - 22px, var(--max-width));
  }

  .academy-header {
    position: static;
  }

  .header-shell,
  .academy-nav,
  .hero-actions,
  .final-actions,
  .footer-shell,
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .academy-nav,
  .footer-links {
    justify-content: stretch;
  }

  .academy-nav a,
  .academy-btn {
    width: 100%;
  }

  .hero-copy,
  .hero-side,
  .entry-copy,
  .login-panel,
  .architecture-card,
  .final-cta-panel {
    padding: 24px;
  }

  .hero-side-stats,
  .entry-feature-grid,
  .architecture-grid,
  .locked-campus-grid {
    grid-template-columns: 1fr;
  }

  .academy-brand {
    align-items: flex-start;
  }

  .academy-brand-logo {
    width: 56px;
    height: 56px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .locked-campus-grid {
    padding: 18px;
  }

  .locked-card img {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
