/*
Theme Name: BuildrLabs
Theme URI: https://buildrlabs.ai
Description: BuildrLabs AI Bootcamp — Official Website Theme
Version: 1.0
Author: BuildrLabs
Text Domain: buildrlabs
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --background: hsl(240, 10%, 4%);
  --foreground: hsl(0, 0%, 100%);
  --card: hsl(240, 15%, 11%);
  --card-foreground: hsl(0, 0%, 100%);
  --primary: hsl(22, 100%, 54%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-light: hsl(22, 100%, 65%);
  --primary-deep: hsl(22, 82%, 44%);
  --secondary: hsl(240, 15%, 11%);
  --muted: hsl(240, 10%, 15%);
  --muted-foreground: hsl(220, 9%, 60%);
  --border: hsl(240, 10%, 18%);
  --radius: 0.75rem;
  --stone: hsl(220, 9%, 64%);
  --warm-white: hsl(60, 20%, 95%);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  background-color: var(--background); /* dark base on html, not body */
}
body {
  background-color: transparent; /* transparent so canvas shows through */
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Space Mono', monospace; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: hsl(240, 10%, 4%); }
::-webkit-scrollbar-thumb { background: hsl(240, 10%, 18%); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: hsla(22, 100%, 54%, 0.5); }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-wrapper { min-height: 100vh; background-color: transparent; position: relative; z-index: 2; }

.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.font-display { font-family: 'Space Mono', monospace; }
.font-body { font-family: 'DM Sans', sans-serif; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-hero { line-height: 1.1; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* Font sizes */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

/* ============================================================
   COLOR UTILITIES
   ============================================================ */
.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-fg { color: var(--primary-foreground); }
.text-stone { color: var(--stone); }
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-card-50 { background-color: hsla(240, 15%, 11%, 0.5); }
.bg-primary { background-color: var(--primary); }
.bg-muted { background-color: var(--muted); }
.border-color { border-color: var(--border); }

/* ============================================================
   CUSTOM UTILITIES
   ============================================================ */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glow-orange {
  box-shadow: 0 0 40px hsla(22, 100%, 54%, 0.15), 0 0 80px hsla(22, 100%, 54%, 0.05);
}

.border-glow { border-color: hsla(22, 100%, 54%, 0.3); }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
@keyframes slide-in-left {
  0%   { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes count-up {
  0%   { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes accordion-down {
  from { height: 0; opacity: 0; }
  to   { height: var(--accordion-height); opacity: 1; }
}
@keyframes accordion-up {
  from { height: var(--accordion-height); opacity: 1; }
  to   { height: 0; opacity: 0; }
}

.animate-fade-up      { animation: fade-up 0.6s ease-out forwards; }
.animate-fade-in      { animation: fade-in 0.4s ease-out forwards; }
.animate-pulse-glow   { animation: pulse-glow 2s ease-in-out infinite; }
.animate-slide-in     { animation: slide-in-left 0.5s ease-out forwards; }
.animate-count-up     { animation: count-up 0.5s ease-out forwards; }

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* above html bg, below all content */
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: hsla(240, 10%, 4%, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo img { height: 32px; display: block; }
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  padding: 0.625rem 1.25rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background-color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background-color: var(--primary-light); }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted-foreground);
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile .nav-cta { text-align: center; display: block; }

@media (min-width: 768px) {
  .nav-inner { height: 80px; }
  .nav-logo img { height: 40px; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: hsla(22, 100%, 54%, 0.05);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsla(22, 100%, 54%, 0.1);
  border: 1px solid hsla(22, 100%, 54%, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--primary);
  font-weight: 500;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 1.5rem;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  font-family: 'DM Sans', sans-serif;
  max-width: 42rem;
  line-height: 1.625;
  margin-top: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-quick-facts {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.quick-fact-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.quick-fact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.quick-fact-item:last-child { margin-bottom: 0; }
.quick-fact-icon {
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  background: hsla(22, 100%, 54%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.quick-fact-icon svg { width: 16px; height: 16px; }
.quick-fact-label {
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .hero { padding-top: 9rem; padding-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 2fr 1fr; gap: 4rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 0 40px hsla(22, 100%, 54%, 0.15), 0 0 80px hsla(22, 100%, 54%, 0.05);
}
.btn-primary:hover { background-color: var(--primary-light); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s;
}
.btn-outline:hover {
  border-color: hsla(22, 100%, 54%, 0.5);
  background-color: hsla(22, 100%, 54%, 0.05);
}
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section { padding-top: 5rem; padding-bottom: 5rem; background-color: transparent; }
.section-alt { padding-top: 5rem; padding-bottom: 5rem; background-color: hsla(240, 15%, 8%, 0.55); }
.section-border { padding-top: 4rem; padding-bottom: 4rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background-color: transparent; }
.section-title {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}
.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 3rem;
  margin-top: -2rem;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-title { margin-bottom: 1rem; }
.section-label {
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  display: block;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section, .section-alt { padding-top: 7rem; padding-bottom: 7rem; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-text {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.about-title {
  font-size: clamp(1.875rem, 3vw, 3rem);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.about-body {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  margin-bottom: 1rem;
}
.about-quote {
  font-size: 1rem;
  color: var(--stone);
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-family: 'DM Sans', sans-serif;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s;
}
.card:hover { border-color: hsla(22, 100%, 54%, 0.3); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  background: hsla(22, 100%, 54%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background-color 0.3s;
  color: var(--primary);
}
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { background: hsla(22, 100%, 54%, 0.2); }
.card-title {
  font-size: 1.25rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card-body {
  color: var(--muted-foreground);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.625;
}

/* ============================================================
   AUDIENCE SECTION
   ============================================================ */
.audience-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   TRACKS SECTION
   ============================================================ */
.tracks-grid {
  display: grid;
  gap: 1.5rem;
}
.track-card {
  position: relative;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  overflow: hidden;
  transition: border-color 0.3s;
}
.track-card:hover { border-color: hsla(22, 100%, 54%, 0.3); }
.track-number {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 3.75rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: hsla(240, 10%, 18%, 0.5);
  line-height: 1;
  user-select: none;
}
.track-label {
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}
.track-title {
  font-size: 1.25rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.track-desc {
  color: var(--muted-foreground);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.track-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.track-outcomes { list-style: none; margin-bottom: 1rem; }
.track-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.track-outcomes li svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

@media (min-width: 768px) {
  .tracks-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   TAGS / PILLS
   ============================================================ */
.tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--muted);
  border-radius: 9999px;
  color: var(--muted-foreground);
}
.tag-outline {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--muted-foreground);
  transition: border-color 0.2s, color 0.2s;
}
.tag-outline:hover { border-color: hsla(22, 100%, 54%, 0.3); color: var(--primary); }
.tag-primary {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--primary);
  background: hsla(22, 100%, 54%, 0.1);
  border-radius: 0.375rem;
  flex-shrink: 0;
}

/* ============================================================
   CAPSTONES SECTION
   ============================================================ */
.capstones-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
.capstone-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.capstone-card:hover { border-color: hsla(22, 100%, 54%, 0.3); }
.capstone-top-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.capstone-card:hover .capstone-top-bar { opacity: 1; }
.capstone-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.capstone-icon {
  width: 40px; height: 40px;
  border-radius: 0.5rem;
  background: hsla(22, 100%, 54%, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.capstone-icon svg { width: 20px; height: 20px; }
.capstone-phase { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.125rem; }
.capstone-timing { font-size: 0.75rem; color: var(--muted-foreground); }
.capstone-title { font-size: 1.25rem; font-family: 'Space Mono', monospace; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.capstone-features { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.capstone-deliverable {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
@media (min-width: 768px) { .capstones-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   ACCORDION (FAQ & CURRICULUM)
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.accordion-item.open { border-color: hsla(22, 100%, 54%, 0.3); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--foreground);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
}
.accordion-trigger-inner { display: flex; align-items: center; gap: 1rem; text-align: left; }
.accordion-chevron {
  width: 18px; height: 18px;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}
.accordion-item.open .accordion-content { max-height: 400px; }
.accordion-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--muted-foreground);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.625;
  font-size: 0.875rem;
}
.accordion-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-left: 3rem; }

/* Curriculum accordion trigger */
.accordion-trigger.curriculum { font-size: 0.875rem; }
@media (min-width: 768px) { .accordion-trigger.curriculum { font-size: 1rem; } }

/* ============================================================
   WHY DIFFERENT SECTION
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.why-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.why-card:hover { border-color: var(--border); background-color: hsla(240, 15%, 11%, 0.5); }
.why-icon {
  width: 56px; height: 56px;
  border-radius: 1rem;
  background: hsla(22, 100%, 54%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  transition: background-color 0.3s;
  color: var(--primary);
}
.why-icon svg { width: 24px; height: 24px; }
.why-card:hover .why-icon { background: hsla(22, 100%, 54%, 0.2); }
.why-title { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.why-body { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.625; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--background);
  border: 1px solid hsla(22, 100%, 54%, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px hsla(22, 100%, 54%, 0.15), 0 0 80px hsla(22, 100%, 54%, 0.05);
}
.pricing-top-bar {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
}
.pricing-label {
  font-size: 0.75rem; font-family: 'Space Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--primary); text-align: center; margin-bottom: 0.5rem;
}
.pricing-amount {
  font-size: 3rem; font-family: 'Space Mono', monospace; font-weight: 700;
  text-align: center; line-height: 1;
}
.pricing-note {
  font-size: 0.875rem; color: var(--muted-foreground); text-align: center; margin-top: 0.5rem;
}
.pricing-features { list-style: none; margin: 2rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.pricing-feature { display: flex; align-items: flex-start; gap: 0.75rem; }
.pricing-feature svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.pricing-feature span { font-size: 0.875rem; font-family: 'DM Sans', sans-serif; }
.pricing-payment {
  border-top: 1px solid var(--border); padding-top: 1.5rem; margin-bottom: 1.5rem;
  font-size: 0.75rem; color: var(--muted-foreground); text-align: center;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsla(22, 100%, 54%, 0.05), transparent);
  pointer-events: none;
}
.cta-inner {
  max-width: 42rem; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.cta-title {
  font-size: clamp(1.875rem, 3vw, 3rem);
  font-family: 'Space Mono', monospace; font-weight: 700;
}
.cta-subtitle { font-size: 1.125rem; color: var(--muted-foreground); }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; justify-content: center; padding-top: 1rem; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }

/* ============================================================
   INSTRUCTORS
   ============================================================ */
.instructors-grid {
  display: grid; gap: 2rem; max-width: 56rem; margin: 0 auto;
}
.instructor-card {
  background: var(--background); border: 1px solid var(--border); border-radius: 1rem;
  padding: 2rem; text-align: center; transition: border-color 0.3s;
}
.instructor-card:hover { border-color: hsla(22, 100%, 54%, 0.3); }
.instructor-photo {
  width: 128px; height: 128px; border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 2px solid hsla(22, 100%, 54%, 0.2);
}
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.instructor-name { font-size: 1.25rem; font-family: 'Space Mono', monospace; font-weight: 700; margin-bottom: 0.25rem; }
.instructor-role-label {
  font-size: 0.75rem; font-family: 'Space Mono', monospace; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.75rem;
}
.instructor-roles { list-style: none; }
.instructor-roles li { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.25rem; }
@media (min-width: 768px) { .instructors-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   QUICK FACTS GRID (Programme page)
   ============================================================ */
.quick-facts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 48rem; margin: 3rem auto 0;
}
.quick-fact-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem;
}
@media (min-width: 768px) {
  .quick-facts-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   APPLY FORM
   ============================================================ */
.apply-section { padding-top: 7rem; padding-bottom: 5rem; position: relative; z-index: 10; background-color: transparent; }
.apply-header { text-align: center; margin-bottom: 3rem; }
.apply-eyebrow {
  display: inline-block; font-size: 0.75rem; font-family: 'Space Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 1rem;
}
.apply-title { font-size: clamp(1.875rem, 3vw, 3rem); font-family: 'Space Mono', monospace; font-weight: 700; margin-bottom: 1rem; }
.apply-subtitle { color: var(--muted-foreground); font-size: 1.125rem; }

.apply-form { max-width: 42rem; margin: 0 auto; }
.form-field { margin-bottom: 1.5rem; }
.form-label {
  display: block; font-size: 0.875rem; font-family: 'DM Sans', sans-serif; font-weight: 500;
  color: var(--foreground); margin-bottom: 0.5rem;
}
.form-required { color: var(--primary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.875rem 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem;
  color: var(--foreground); font-family: 'DM Sans', sans-serif; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none; -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted-foreground); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: hsla(22, 100%, 54%, 0.5);
  box-shadow: 0 0 0 3px hsla(22, 100%, 54%, 0.1);
}
.form-textarea { resize: none; }
.input-error { border-color: hsl(0, 72%, 51%) !important; box-shadow: 0 0 0 3px hsla(0, 72%, 51%, 0.15) !important; }
.field-error-msg { margin-top: 0.375rem; font-size: 0.8125rem; color: hsl(0, 72%, 51%); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-select option { background: var(--card); color: var(--foreground); }
.form-submit {
  width: 100%; padding: 1rem;
  background: var(--primary); color: var(--primary-foreground);
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1rem;
  border-radius: 0.75rem; border: none; cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 0 40px hsla(22, 100%, 54%, 0.15);
}
.form-submit:hover { background: var(--primary-light); }
.form-legal { font-size: 0.75rem; color: var(--muted-foreground); text-align: center; margin-top: 1rem; }

/* Success state */
.apply-success {
  background: var(--card); border: 1px solid hsla(22, 100%, 54%, 0.3); border-radius: 1rem;
  padding: 3rem 2.5rem; text-align: center;
  max-width: 54rem; margin: 0 auto;
}
.apply-success-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: hsla(142, 71%, 45%, 0.15);
  border: 1px solid hsla(142, 71%, 45%, 0.3);
  color: hsl(142, 71%, 45%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.apply-success-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-family: 'Space Mono', monospace; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.apply-success-text { color: var(--muted-foreground); margin-bottom: 2rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.apply-success-email-block { margin-bottom: 2rem; }
.apply-success-email-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--primary); font-weight: 600; font-size: 1rem;
  border: 1px solid hsla(22, 100%, 54%, 0.3);
  border-radius: 0.5rem; padding: 0.5rem 1rem;
  transition: background 0.2s;
}
.apply-success-email-link:hover { background: hsla(22, 100%, 54%, 0.08); }
.apply-success-divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-section { padding-top: 7rem; padding-bottom: 5rem; position: relative; z-index: 10; }
.blog-coming-soon {
  text-align: center; padding: 5rem 0;
  max-width: 32rem; margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 10;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background-color: transparent;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
}
.footer-logo img { height: 32px; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; list-style: none; }
.footer-links a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.75rem; color: var(--muted-foreground); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.not-found-code {
  font-size: 6rem; font-family: 'Space Mono', monospace; font-weight: 700; color: var(--primary);
  line-height: 1; margin-bottom: 1rem;
}
.not-found-title { font-size: 1.5rem; font-family: 'Space Mono', monospace; font-weight: 700; margin-bottom: 1rem; }
.not-found-text { color: var(--muted-foreground); margin-bottom: 2rem; }

/* ============================================================
   TECH STACK TAGS
   ============================================================ */
.tech-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.tech-label {
  font-size: 0.75rem; font-family: 'Space Mono', monospace; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted-foreground); text-align: center;
  display: block; margin-bottom: 1rem;
}

/* ============================================================
   GRADIENT OVERLAYS
   ============================================================ */
.gradient-top-center {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: hsla(22, 100%, 54%, 0.05); border-radius: 50%;
  filter: blur(120px); pointer-events: none; z-index: 0;
}

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
.relative { position: relative; }
.z-10 { z-index: 10; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   FOOTER SOCIAL ICONS
   ============================================================ */
.footer-socials {
  display: flex; align-items: center; gap: 1rem;
}
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground);
  transition: color 0.2s, transform 0.2s;
}
.footer-social-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================================
   WHATSAPP STICKY BUTTON
   ============================================================ */
.wa-sticky {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: #fff;
}
