:root {
  --bg-dark: #fafafa;
  --bg-card: #ffffff;
  --accent-primary: #a855f7;
  --accent-secondary: #6366f1;
  --accent-tertiary: #8b5cf6;
  --text-primary: #09090b;
  --text-secondary: #71717a;
  --glass-border: rgba(0, 0, 0, 0.08);
  --font-main: 'Geist', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.25);
}

[data-theme="dark"] {
  --bg-dark: #09090b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent-primary: #a855f7;
  --accent-secondary: #6366f1;
  --accent-tertiary: #8b5cf6;
  --text-primary: #ededed;
  --text-secondary: #a1a1aa;
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.25);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism utility */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Vibrant Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(128, 128, 128, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(128, 128, 128, 0.2);
}

/* Main Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

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

.path-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.path-card .btn-auto {
  margin-top: auto;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- MOBILE RESPONSIVE OPTIMIZATION --- */

@media (max-width: 991px) {
  .container { padding: 0 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 4rem) !important; }
}

@media (max-width: 768px) {
  /* MOBILE HEADER / HAMBURGER MENU */
  .nav { padding: 1.5rem 2rem; overflow: visible; position: relative; }
  .nav-links {
    display: none; /* Initially hide links */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 80vh; 
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    gap: 1.5rem;
  }
  
  .nav.mobile-active .nav-links { display: flex; }
  .nav-actions { gap: 1rem; }
  
  /* Mobile Menu Toggle Icon */
  .mobile-menu-btn { 
    display: block !important; 
    cursor: pointer; 
    font-size: 1.4rem; 
    color: var(--text-primary);
    order: 4;
  }

  .nav-actions .btn { display: none; } /* Hide 'Apply Now' from nav to save space, it's in the hero anyway */

  .hero { padding: 8rem 0 4rem; }
  .path-selection { grid-template-columns: 1fr; }
  
  /* Section Stacking */
  .stats .glass, .about .glass { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem !important; }
  .hero .motto { font-size: 0.85rem; }
  .section { padding: 4rem 0 !important; }
}

/* Site footer */
.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.04) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: start;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer-logo i {
  color: var(--accent-primary);
  margin-right: 0.35rem;
}

.footer-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--accent-tertiary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-blurb {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 28ch;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.65rem;
}

.footer-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent-primary);
}

.footer-contact a {
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0.75rem;
}

.footer-meta .footer-note strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.85;
  margin-top: 1.25rem;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 3rem 0 2.5rem;
  }
}
