@import url('../../shared/css/variables.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .navbar {
  background: rgba(10, 25, 47, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 100%;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo em {
  font-style: normal;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--duration) var(--ease);
}

.nav-links .btn-primary {
  color: var(--text-inverse);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
}

.nav-links a:hover { color: var(--gold); }

.nav-links .btn-primary:hover { color: var(--gold); }

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  line-height: 1;
  transition: color var(--duration) var(--ease);
}

.theme-toggle:hover { color: var(--gold); }

body.dark-mode .navbar {
  background: rgba(15, 36, 64, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-btn {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--duration) var(--ease);
}

/* ─── Buttons ─── */
.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--card-border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.7rem 2rem;
  font-size: 1rem;
}

/* ─── Hero ─── */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 700px 500px at 50% 30%, var(--accent-glow), transparent),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(255, 215, 0, 0.08), transparent);
  pointer-events: none;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 20, 40, 0.55);
}

body.dark-mode .hero-overlay {
  background: rgba(0, 0, 0, 0.65);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--accent-glow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ─── Hero Stats ─── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ─── Trusted By ─── */
.trusted {
  padding: 1.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

.trusted-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trusted-logo {
  height: 28px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity var(--duration) var(--ease);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.trusted-logo:hover { opacity: 0.6; }

/* ─── Courses Section ─── */
.courses-section {
  padding: 2.5rem 1.5rem 6rem;
  background: var(--bg-secondary);
}

.courses-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

/* ─── ICAO Section ─── */
.icao-section {
  padding: 2.5rem 1.5rem 0;
  background: var(--bg-secondary);
}

/* ─── ICAO Blockquote ─── */
.icao-blockquote {
  margin: 1.5rem auto;
  max-width: 860px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: relative;
}

.icao-blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--gold));
  border-radius: 4px 0 0 4px;
}

.icao-blockquote-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.icao-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  opacity: 0.7;
}

.icao-icon svg { width: 100%; height: 100%; }

.icao-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 400;
  font-style: italic;
  margin: 0;
  padding: 0;
  border: none;
}

.icao-attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.icao-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.icao-attribution div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.icao-attribution strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.icao-attribution span {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* ─── Objectives Section ─── */
.objectives-section {
  padding: 4rem 1.5rem 5rem;
  background: var(--bg);
}

/* ─── Core Objectives ─── */
.objectives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.5rem auto;
  max-width: 900px;
}

.objective-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.objective-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.objective-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--obj-color) 10%, transparent);
  color: var(--obj-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.objective-icon svg { width: 18px; height: 18px; }

.objective-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.objective-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ─── Course Catalog Grid ─── */
.course-catalog-grid {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* ─── Minimal Course Card ─── */
.minimal-course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  min-width: 220px;
  max-width: 280px;
  flex: 1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.minimal-course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.minimal-course-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.learn-more-hook {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease);
}

.minimal-course-card:hover .learn-more-hook {
  opacity: 1;
}

/* ─── Section Shared ─── */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
}

/* ─── Features ─── */
.features {
  padding: 6rem 1.5rem;
  background: var(--bg-secondary);
}

.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 6rem 1.5rem;
  background: var(--bg);
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Pricing ─── */
.pricing {
  padding: 6rem 1.5rem;
  background: var(--bg-secondary);
}

.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: box-shadow var(--duration) var(--ease);
}

.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--card-border);
}

.pricing-card li:last-child { border-bottom: none; }

/* ─── CTA ─── */
.cta-section {
  padding: 6rem 1.5rem;
  text-align: center;
  background: var(--bg);
}

.cta-content {
  max-width: 560px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-footnote {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 1.5rem 1.5rem;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 220px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.footer-tac {
  margin-top: 0.3rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
}
.footer-tac a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-tac a:hover {
  color: var(--primary);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-brand .footer-login-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-brand .footer-login-link:hover {
  color: var(--primary);
}

body.dark-mode .footer {
  background: var(--bg-secondary);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .navbar { height: 72px; }

  .hero-video-wrapper { display: none; }

  .hero {
    background: linear-gradient(135deg, #0A1F3F 0%, #1a3a5c 50%, #0F2E4E 100%);
    min-height: 70vh;
    padding: 5.5rem 1.5rem 2rem;
  }

  body.dark-mode .hero { background: linear-gradient(135deg, #050F1F 0%, #0F2440 50%, #0A1A2F 100%); }

  .hero h1, .hero h1 .highlight { color: #fff; }

  .hero-sub { color: rgba(255,255,255,0.8); }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-links.open { display: flex; }

  .hamburger { display: flex; }

  .hero h1 { font-size: 2.4rem; }

  .hero-sub { font-size: 1.05rem; }

  .hero-stats { gap: 1.5rem; }

  .stat-number { font-size: 1.4rem; }

  .trusted-logos { gap: 1.5rem; }

  .pricing-card.featured { border-width: 2px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrapper { display: none; }
}

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