/*
 * ═══════════════════════════════════════════════════════════════
 *  NGAO LABS ACADEMY — Sections
 *  Section-specific layout and decoration: hero, stats,
 *  program, why-us, testimonials, partners, CTA.
 * ═══════════════════════════════════════════════════════════════
 */

/* ╔═══════════════════════════════════════════════╗
   ║  SECTION HEADER (shared)                      ║
   ╚═══════════════════════════════════════════════╝ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin: 0;
}

/* ╔═══════════════════════════════════════════════╗
   ║  HERO                                         ║
   ╚═══════════════════════════════════════════════╝ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Decorative radial glows */
.hero__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__glow--gold {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.05) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero__glow--navy {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,75,173,0.05) 0%, transparent 70%);
  bottom: -50px;
  left: 5%;
  animation: float 10s ease-in-out infinite reverse;
}

/* Grid overlay */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero content column */
.hero__content {
  max-width: 600px;
}

.hero__announcement {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.30);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-6);
}

.hero__announcement .live-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-gold 2s infinite;
}

.hero__title {
  margin-bottom: var(--space-6);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  line-height: 1.05;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__meta-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero__meta-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Hero visual column */
.hero__visual {
  position: relative;
}

/* Terminal Card */
.hero__terminal {
  background: var(--navy-800);
  border: 1px solid var(--navy-900);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl), var(--shadow-gold-sm);
  position: relative;
}

.hero__terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(201,162,39,0.06) 0%,
    transparent 60%);
  pointer-events: none;
}

.terminal__titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: var(--navy-900);
}

.terminal__dots {
  display: flex;
  gap: var(--space-2);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__dot--red    { background: #FF5F57; }
.terminal__dot--yellow { background: #FFBD2E; }
.terminal__dot--green  { background: #28C940; }

.terminal__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}

.terminal__tabs {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-6) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terminal__tab {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: -1px;
}

.terminal__tab:hover {
  color: var(--text-secondary);
}

.terminal__tab.active {
  color: var(--gold-300);
  border-bottom-color: var(--gold-400);
  background: rgba(201,162,39,0.05);
}

.terminal__body {
  padding: var(--space-6);
  min-height: 260px;
  position: relative;
}

.terminal__code-block {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--navy-200);
  overflow-x: auto;
}

.terminal__code-block.active {
  display: block;
  animation: fadeInUp 0.3s var(--ease-out-expo);
}

/* Token colors */
.t-keyword  { color: #C678DD; }
.t-module   { color: #61AFEF; }
.t-class    { color: #E5C07B; }
.t-func     { color: #61AFEF; }
.t-string   { color: #98C379; }
.t-number   { color: #D19A66; }
.t-comment  { color: #5C6370; font-style: italic; }
.t-variable { color: #E06C75; }
.t-operator { color: #ABB2BF; }
.t-punct    { color: #ABB2BF; }
.t-arg      { color: #D19A66; }

/* Floating orbit decorations */
.hero__orbit {
  position: absolute;
  pointer-events: none;
  top: -32px;
  right: -32px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 50%;
  animation: spin-slow 20s linear infinite;
}

.hero__orbit::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--gold-400);
  border-radius: 50%;
  box-shadow: var(--shadow-gold-sm);
}

.hero__badge-float {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-navy);
}

.hero__badge-float-text {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}

.hero__badge-float-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content { max-width: 100%; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-content: center; }
  .hero__visual { display: none; }
}

@media (max-width: 600px) {
  .hero { min-height: 100svh; }
  .hero__title { font-size: var(--text-4xl); }
}

/* ╔═══════════════════════════════════════════════╗
   ║  STATS BAR                                    ║
   ╚═══════════════════════════════════════════════╝ */
.stats-bar {
  padding-block: var(--space-8);
  border-block: 1px solid var(--border-subtle);
  background: rgba(6, 14, 37, 0.50);
  backdrop-filter: blur(8px);
}

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

@media (max-width: 768px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2)::after { display: none; }
}

@media (max-width: 480px) {
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
}

/* ╔═══════════════════════════════════════════════╗
   ║  PROGRAM / CURRICULUM                         ║
   ╚═══════════════════════════════════════════════╝ */
.program {
  padding-block: var(--space-24);
  position: relative;
}

.program__tabs-wrap {
  margin-bottom: var(--space-8);
}

.program__pane-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  margin-bottom: var(--space-12);
}

.program__pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.program__pane-header h3 {
  font-size: var(--text-2xl);
}

.program__pane-desc {
  max-width: 560px;
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.program__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (max-width: 900px) {
  .program__features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .program__features { grid-template-columns: 1fr; }
  .program__pane-card { padding: var(--space-6); }
}

/* ╔═══════════════════════════════════════════════╗
   ║  WHY CHOOSE US — BENTO GRID                   ║
   ╚═══════════════════════════════════════════════╝ */
.why {
  padding-block: var(--space-24);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(6,14,37,0.60) 50%,
    transparent 100%);
}

.why__bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-5);
}

.why__bento .feature-card--hero {
  grid-row: span 1;
}

@media (max-width: 900px) {
  .why__bento { grid-template-columns: 1fr; }
  .feature-card--hero { grid-column: span 1; }
}

/* ╔═══════════════════════════════════════════════╗
   ║  TESTIMONIALS                                 ║
   ╚═══════════════════════════════════════════════╝ */
.testimonials {
  padding-block: var(--space-24);
  overflow: hidden;
}

.testimonials .marquee {
  margin-top: var(--space-4);
}

/* ╔═══════════════════════════════════════════════╗
   ║  PARTNERS                                     ║
   ╚═══════════════════════════════════════════════╝ */
.partners {
  padding-block: var(--space-20);
  border-block: 1px solid var(--border-subtle);
  background: rgba(6,14,37,0.50);
}

.partners__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-10);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: var(--transition-base);
  height: 40px;
}

.partner-logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.partner-logo:hover {
  opacity: 0.70;
  filter: brightness(0) invert(1) sepia(1) saturate(1.5) hue-rotate(5deg);
}

.partner-wordmark {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
}

.partners__tagline {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin: 0;
}

/* ╔═══════════════════════════════════════════════╗
   ║  CTA SECTION                                  ║
   ╚═══════════════════════════════════════════════╝ */
.cta-section {
  padding-block: var(--space-24);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    rgba(201,162,39,0.08) 0%,
    transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.cta-section__pretitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-6);
}

.cta-section h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-5);
}

.cta-section p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-10);
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Gold ring decoration */
.cta-section__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section__ring-inner,
.cta-section__ring-outer {
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.08);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta-section__ring-inner {
  width: 400px;
  height: 400px;
  animation: spin-slow 30s linear infinite;
}

.cta-section__ring-outer {
  width: 650px;
  height: 650px;
  animation: spin-slow 50s linear infinite reverse;
}

/* ╔═══════════════════════════════════════════════╗
   ║  ACADEMY INFO (Cohort details strip)          ║
   ╚═══════════════════════════════════════════════╝ */
.cohort-strip {
  padding-block: var(--space-10);
  background: rgba(201,162,39,0.05);
  border-block: 1px solid var(--border-accent);
}

.cohort-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.cohort-strip__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-1);
}

.cohort-strip__value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.cohort-strip__divider {
  width: 1px;
  height: 40px;
  background: var(--border-mid);
}

@media (max-width: 768px) {
  .cohort-strip__inner { justify-content: center; }
  .cohort-strip__divider { display: none; }
}
