/* ================================================================
   EduCorp — Main Stylesheet
   ================================================================ */

/* 0. Fonts — Inter self-hosted, no external dependency */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Variables */
:root {
  --bg-primary:    #0A0F1E;
  --bg-secondary:  #0D1526;
  --bg-card:       #111D35;
  --bg-elevated:   #152040;
  --accent:        #00D4FF;
  --accent-dim:    rgba(0, 212, 255, 0.10);
  --accent-border: rgba(0, 212, 255, 0.22);
  --accent-glow:   0 0 40px rgba(0, 212, 255, 0.10);
  --text-primary:  #E8EDF5;
  --text-secondary:#8A99B8;
  --text-muted:    #4A5A78;
  --border:        rgba(255, 255, 255, 0.07);
  --nav-height:    72px;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow:        0 4px 32px rgba(0, 0, 0, 0.5);
  --max-w:         1200px;
  --ease:          0.2s ease;
}

/* 2. Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 3. Typography */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
p  { color: var(--text-secondary); }

/* 4. Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-alt { background: var(--bg-secondary); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; max-width: 520px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* 5. Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(10, 15, 30, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.nav.scrolled { box-shadow: 0 2px 28px rgba(0, 0, 0, 0.6); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: var(--radius);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--accent); background: var(--accent-dim); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--ease);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 24px;
  z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: var(--accent); }

/* 6. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0A0F1E; }
.btn-primary:hover { background: #33DDFF; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0, 212, 255, 0.28); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid rgba(255, 255, 255, 0.12); }
.btn-outline:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { gap: 12px; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

/* 7. Homepage Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 212, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 212, 255, 0.07) 0%, transparent 65%);
}
.hero-content { position: relative; z-index: 1; max-width: 740px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-content > p {
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 8. Stats bar */
.stats { padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

/* 9. Service cards (homepage) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--ease);
}
.service-card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: var(--accent-glow), var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; margin-bottom: 24px; flex: 1; }

/* 10. Features grid (2-col) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.feature-text h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-text p { font-size: 0.875rem; }

/* 11. CTA Banner */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 55%; height: 100%;
  background: radial-gradient(ellipse 90% 100% at 0% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner-content h2 { margin-bottom: 10px; }
.cta-banner-content p { max-width: 440px; }
.cta-banner-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-shrink: 0; }

/* 12. Footer */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--border); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; display: block; letter-spacing: -0.01em; }
.footer-brand .footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 0.875rem; max-width: 260px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 10px; transition: color var(--ease); }
.footer-col a:hover { color: var(--text-primary); }
.footer-disclaimer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.footer-disclaimer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-disclaimer strong { color: var(--text-secondary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted);
}

/* 13. Page Hero (product pages) */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 20% 60%, rgba(0, 212, 255, 0.05) 0%, transparent 65%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 680px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }
.page-hero-content h1 { margin-bottom: 16px; }
.page-hero-content > p { font-size: 1.05rem; max-width: 520px; }

/* 14. Programs grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}
.program-card:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: var(--accent-glow); }
.program-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.program-badge.orange { color: #FFB07A; background: rgba(255,140,66,0.10); border-color: rgba(255,140,66,0.22); }
.program-badge.green  { color: #00E5B0; background: rgba(0,200,150,0.10); border-color: rgba(0,200,150,0.22); }
.program-card h3 { margin-bottom: 8px; }
.program-card p { font-size: 0.875rem; margin-bottom: 18px; flex: 1; }
.program-meta {
  display: flex; gap: 16px;
  font-size: 0.78rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px; margin-top: auto;
}
.program-meta span { display: flex; align-items: center; gap: 5px; }

/* 15. Steps (How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-item {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-number {
  display: block; font-size: 2.8rem; font-weight: 800;
  color: var(--accent-border); line-height: 1;
  margin-bottom: 16px; letter-spacing: -0.04em;
}
.step-item h3 { margin-bottom: 8px; }
.step-item p { font-size: 0.875rem; }

/* 16. Three-column grid (delivery options, etc.) */
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 17. Course category cards */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}
.category-card:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: var(--accent-glow); }
.category-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.category-card h3 { margin-bottom: 0; }
.course-count {
  font-size: 0.75rem; font-weight: 600;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 3px 10px; border-radius: 100px; white-space: nowrap; flex-shrink: 0;
}
.category-card > p { font-size: 0.875rem; margin-bottom: 18px; }
.course-list { margin-bottom: 20px; flex: 1; }
.course-list li {
  font-size: 0.82rem; color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.course-list li:last-child { border-bottom: none; }
.course-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%; flex-shrink: 0;
}

/* 18. Responsive */
@media (max-width: 1024px) {
  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .programs-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-top          { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section              { padding: 64px 0; }
  .nav-links,
  .nav-actions .btn-outline { display: none; }
  .nav-hamburger       { display: flex; }
  .services-grid       { grid-template-columns: 1fr; }
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .features-grid       { grid-template-columns: 1fr; }
  .steps-grid          { grid-template-columns: repeat(2, 1fr); }
  .three-grid          { grid-template-columns: 1fr; }
  .cta-banner          { flex-direction: column; padding: 36px 28px; }
  .cta-banner-actions  { flex-direction: column; width: 100%; }
  .footer-top          { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom       { flex-direction: column; gap: 8px; text-align: center; }
  .programs-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions        { flex-direction: column; }
  .hero-actions .btn   { width: 100%; justify-content: center; }
  .stats-grid          { grid-template-columns: 1fr 1fr; }
  .steps-grid          { grid-template-columns: 1fr; }
}

/* 19. Disclaimer modal */
#disclaimer-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
}
#disclaimer-modal.open { display: flex; }

.disclaimer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.disclaimer-box {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--accent-glow);
  padding: 40px 36px 32px;
  max-width: 480px;
  width: calc(100% - 48px);
  display: flex; flex-direction: column; gap: 24px;
  animation: disclaimer-in 0.18s ease;
}

@keyframes disclaimer-in {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.disclaimer-gif {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.disclaimer-msg {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.65;
}

.disclaimer-close { align-self: flex-end; }
