/* AcademyX — site grid, header, hero */
.site-grid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.site-shell {
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 11, 24, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 210, 255, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(2, 11, 24, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  max-width: 80rem;
  margin-inline: auto;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  min-height: 88px;
}
.header-logo {
  justify-self: start;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: clamp(48px, 7vw, 72px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(0, 210, 255, 0.22));
}
.header-nav {
  justify-self: center;
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.header-nav a {
  color: #E8F4FC;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: #00E5FF;
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.header-btn-outline {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 255, 0.45);
  color: #00E5FF;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.header-btn-outline:hover {
  background: rgba(0, 174, 239, 0.1);
}
.header-btn-gold {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #00D2FF 0%, #0072FF 100%);
  color: #021018;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.header-btn-gold:hover {
  background: linear-gradient(90deg, #44E5FF 0%, #1A8CFF 100%);
}
.header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  color: #E8F4FC;
  font-size: 1.25rem;
  cursor: pointer;
}
.header-mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 11, 24, 0.96);
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.25rem;
  text-align: center;
}
.header-mobile-menu.open {
  display: block;
}
.header-mobile-menu a {
  display: block;
  padding: 0.65rem 0;
  color: #E8F4FC;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}
.header-mobile-menu a:hover {
  color: #00E5FF;
}
@media (min-width: 768px) {
  .header-nav { display: flex; }
  .header-btn-outline { display: inline-flex; }
  .header-menu-btn { display: none; }
}

/* ── HERO PREMIUM (centered, screenshot match) ── */
.hero-premium {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6.5rem, 11vh, 8.5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vh, 4.5rem);
  position: relative;
  z-index: 10;
}
.hero-premium__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 50% 42%, rgba(0, 174, 239, 0.07) 0%, transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 35%, rgba(2, 11, 24, 0.55) 100%);
}
.hero-premium__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}
.hero-premium .hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 255, 0.32);
  background: rgba(0, 174, 239, 0.06);
  color: #44CAFF;
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-premium h1 {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.08;
}
.hero-line-1 {
  display: block;
  font-family: 'Noto Serif Armenian', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #F8FAFC;
  font-size: clamp(2.35rem, 5.8vw, 4.35rem);
  margin-bottom: 0.35em;
}
.hero-line-2 {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2.55rem, 6.2vw, 4.85rem);
  background: linear-gradient(90deg, #00D2FF 0%, #44E5FF 45%, #00AEEF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 28px rgba(0, 210, 255, 0.35));
}
.hero-premium__sub {
  max-width: 38rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.75;
  color: #94A3B8;
  font-weight: 400;
}
.hero-premium .hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}
.hero-premium .chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.hero-premium .chip:hover {
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(0, 174, 239, 0.08);
}
.hero-premium .hero-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.hero-premium .ax-btn {
  padding: 0.95rem 1.85rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  min-height: 52px;
  border-radius: 999px;
}
.hero-premium .hero-note {
  font-size: clamp(0.72rem, 1.3vw, 0.82rem);
  color: #64748B;
  max-width: 34rem;
  margin-inline: auto;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .hero-premium .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-premium .hero-cta .ax-btn {
    width: 100%;
    max-width: 20rem;
  }
}

/* ── HERO (legacy layout) ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.hero-content {
  position: relative;
  max-width: 640px;
  text-align: center;
  margin-inline: auto;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  color: #44CAFF;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}
#hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  color: #F8FAFC;
  margin-bottom: 1.25rem;
}
.hero-title-glow {
  display: block;
  margin-top: 0.15em;
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  font-weight: 600;
  color: #00E5FF;
  text-shadow:
    0 0 18px rgba(0, 210, 255, 0.55),
    0 0 42px rgba(0, 174, 239, 0.35);
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #94A3B8;
  font-weight: 300;
  margin: 0 auto 1.75rem;
  max-width: 520px;
  line-height: 1.75;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  color: #94A3B8;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 0.82rem;
  color: #64748B;
  max-width: 520px;
  margin-inline: auto;
}
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 48px;
}
.ax-btn-gold {
  background: linear-gradient(90deg, #00D2FF 0%, #0072FF 100%);
  color: #021018;
  box-shadow: 0 8px 28px rgba(0, 174, 239, 0.28);
}
.ax-btn-gold:hover {
  background: linear-gradient(90deg, #44E5FF 0%, #1A8CFF 100%);
  transform: translateY(-1px);
}
.ax-btn-outline {
  background: transparent;
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.ax-btn-outline:hover {
  border-color: rgba(0, 210, 255, 0.65);
  background: rgba(0, 174, 239, 0.08);
}
.hero-portrait-wrap {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
}
.hero-portrait-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 210, 255, 0.22);
  box-shadow:
    0 0 0 12px rgba(0, 174, 239, 0.04),
    0 0 60px rgba(0, 174, 239, 0.12),
    inset 0 0 40px rgba(0, 174, 239, 0.06);
}
.hero-portrait-ring::before,
.hero-portrait-ring::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 210, 255, 0.18);
  animation: ringSpin 24s linear infinite;
}
.hero-portrait-ring::after {
  inset: -34px;
  border-style: solid;
  border-color: rgba(0, 210, 255, 0.08);
  animation-direction: reverse;
  animation-duration: 36s;
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-portrait {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 210, 255, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, #0a1522 0%, #050c16 100%);
}
.hero-portrait-figure {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 72%;
  height: 88%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 22%, #1a2a3d 0%, #060d16 68%);
  clip-path: ellipse(42% 48% at 50% 34%);
}
.hero-portrait-waves {
  position: absolute;
  right: 18%;
  top: 34%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero-portrait-waves span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #00D2FF, transparent);
  animation: wavePulse 2.4s ease-in-out infinite;
}
.hero-portrait-waves span:nth-child(1) { width: 34px; }
.hero-portrait-waves span:nth-child(2) { width: 48px; animation-delay: 0.2s; }
.hero-portrait-waves span:nth-child(3) { width: 28px; animation-delay: 0.4s; }
@keyframes wavePulse {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}
.hero-portrait-badge {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #00D2FF 0%, #0072FF 100%);
  color: #021018;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.35);
}
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .hero-visual { order: -1; }
}
@media (max-width: 768px) {
  #hero { padding: 6.5rem 0 3rem; min-height: auto; }
  .hero-portrait-wrap { width: min(78vw, 300px); }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .ax-btn { width: 100%; }
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }
  .header-nav { display: none !important; }
}
@media (max-width: 480px) {
  .hero-portrait-wrap { width: min(84vw, 280px); }
  .hero-portrait-badge { font-size: 0.62rem; padding: 0.45rem 0.85rem; }
  .header-logo img { height: 40px; }
}

/* ── MODALS (mobile-safe scroll) ── */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
}
.modal-root.hidden { display: none; }
.modal-root:not(.hidden) { display: block; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100dvh - 2rem);
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0 2rem;
}
@media (min-width: 640px) {
  .modal-shell {
    align-items: center;
    min-height: calc(100dvh - 3rem);
  }
}
.modal-panel {
  width: 100%;
  max-width: 28rem;
  margin: auto 0;
}
