@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #07050a;
  --bg-space: #0c0a12;
  --bg-card: rgba(20, 16, 33, 0.6);
  --bg-card-hover: rgba(28, 23, 46, 0.8);
  --brand-primary: #53389e;
  --brand-light: #7f56d9;
  --brand-glow: #9e77ed;
  --brand-bg-glow: rgba(83, 56, 158, 0.15);
  
  --text-main: #f9f9fb;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  
  --border-color: rgba(127, 86, 217, 0.25);
  --border-hover: rgba(158, 119, 237, 0.6);
  --accent-gold: #fec84b;
  
  --font-headers: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Background Grid Overlay */
.space-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(127, 86, 217, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(127, 86, 217, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(83, 56, 158, 0.25) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
  transform: translate3d(0,0,0);
}

.ambient-glow-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(127, 86, 217, 0.15) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* Typography & General Utilities */
h1, h2, h3, h4, h5 {
  font-family: var(--font-headers);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #9e77ed 0%, #f4ebff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.glass:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px -10px rgba(83, 56, 158, 0.25);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-headers);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-light) 100%);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(83, 56, 158, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 86, 217, 0.6);
  border-color: var(--brand-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-accent {
  background: transparent;
  color: var(--brand-glow);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-accent:hover {
  background: var(--brand-bg-glow);
  border-color: var(--brand-glow);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(12, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-glow) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 15px rgba(127, 86, 217, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-glow);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--brand-glow);
}

/* Hidden Navigation Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: rgba(12, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  z-index: 200;
  border-left: 1px solid var(--border-color);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer.open {
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 40px;
  transition: var(--transition-smooth);
}

.drawer-close:hover {
  color: var(--text-main);
}

.drawer-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-glow);
  margin-bottom: 20px;
  font-weight: 600;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.drawer-links a:hover {
  color: var(--brand-glow);
  padding-left: 5px;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sections General */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-bg-glow);
  color: var(--brand-glow);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-glow);
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tagline::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-glow);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-badge-container {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  border: 1px dashed rgba(127, 86, 217, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 40s infinite linear;
}

@keyframes spin-slow {
  100% { transform: rotate(360deg); }
}

.hero-center-node {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-light) 100%);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-headers);
  box-shadow: 0 0 40px rgba(127, 86, 217, 0.6);
  z-index: 2;
  transform: rotate(0deg);
  animation: float-node 6s infinite ease-in-out;
}

@keyframes float-node {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.hero-orbit-node {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 3;
}

.node-1 { top: -30px; left: 50%; transform: translateX(-50%); background: rgba(12, 10, 18, 0.9); border: 2px solid #a3e635; color: #a3e635; box-shadow: 0 0 15px rgba(163, 230, 53, 0.3); }
.node-2 { bottom: -30px; left: 50%; transform: translateX(-50%); background: rgba(12, 10, 18, 0.9); border: 2px solid #38bdf8; color: #38bdf8; box-shadow: 0 0 15px rgba(56, 189, 248, 0.3); }
.node-3 { left: -30px; top: 50%; transform: translateY(-50%); background: rgba(12, 10, 18, 0.9); border: 2px solid var(--accent-gold); color: var(--accent-gold); box-shadow: 0 0 15px rgba(254, 200, 75, 0.3); }
.node-4 { right: -30px; top: 50%; transform: translateY(-50%); background: rgba(12, 10, 18, 0.9); border: 2px solid #f472b6; color: #f472b6; box-shadow: 0 0 15px rgba(244, 114, 182, 0.3); }

/* How It Works & Calculator Widget */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-glow);
  font-family: var(--font-headers);
  background: var(--brand-bg-glow);
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Simulator Widget styling */
.simulator-widget {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-status {
  font-size: 0.75rem;
  background: #12b76a;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sim-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  100% { opacity: 0.3; }
}

.sim-section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.activity-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(127, 86, 217, 0.4);
}

.activity-btn.active {
  background: rgba(83, 56, 158, 0.25);
  border-color: var(--brand-glow);
  color: var(--text-main);
}

.activity-val {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.activity-btn.active .activity-val {
  background: var(--brand-primary);
  color: white;
}

.demand-sliders {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.slider-info span:first-child {
  color: var(--text-secondary);
}

.slider-info span:last-child {
  color: var(--brand-glow);
  font-weight: 600;
}

.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  transition: var(--transition-smooth);
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-glow);
  cursor: pointer;
  box-shadow: 0 0 10px var(--brand-glow);
  transition: var(--transition-smooth);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sim-output {
  background: rgba(12, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.output-stat {
  display: flex;
  flex-direction: column;
}

.output-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.output-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-headers);
  color: var(--text-main);
  line-height: 1;
}

.output-value span {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-badge {
  background: var(--brand-bg-glow);
  border: 1px solid var(--border-color);
  color: var(--brand-glow);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Partnerships Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.partner-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.partner-card.featured {
  border-color: var(--brand-glow);
  background: rgba(83, 56, 158, 0.15);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-glow);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.partner-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--brand-glow);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.partner-name {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.partner-price {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 24px;
  font-family: var(--font-headers);
}

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

.partner-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.partner-features li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-features li::before {
  content: '✓';
  color: var(--brand-glow);
  font-weight: bold;
}

.partner-card .btn {
  width: 100%;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* Comparison Matrix widget */
.matrix-widget {
  padding: 32px;
}

.matrix-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.matrix-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  align-items: center;
}

.matrix-row.header {
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.matrix-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.matrix-col {
  text-align: center;
  font-weight: 500;
  color: var(--text-muted);
}

.matrix-col.eduspine {
  color: var(--brand-glow);
  font-weight: 700;
}

.matrix-check {
  color: #12b76a;
  font-size: 1.1rem;
}

.matrix-cross {
  color: #f04438;
  font-size: 1.1rem;
}

/* Blog & Resources Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.blog-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, rgba(20, 16, 33, 0.8) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-img::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: rotate(15deg);
}

.blog-img-overlay {
  font-family: var(--font-headers);
  font-size: 2rem;
  font-weight: 800;
  opacity: 0.15;
  color: white;
  text-transform: uppercase;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--brand-glow);
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-title {
  color: var(--brand-glow);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.blog-link span {
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-link span {
  transform: translateX(4px);
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 5, 10, 0.6);
  backdrop-filter: blur(16px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-header {
  margin-bottom: 28px;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  width: 100%;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-glow);
  background: rgba(83, 56, 158, 0.1);
  box-shadow: 0 0 15px rgba(158, 119, 237, 0.25);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 10px;
}

.form-success-message {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 3rem;
  color: #12b76a;
  margin-bottom: 16px;
}

/* Footer */
footer {
  background: #060408;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-links-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--brand-glow);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-legal a:hover {
  color: var(--text-main);
}

/* Animations Scroll Trigger States */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .how-grid, .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 24px;
  }
  .partners-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .nav-links {
    display: none;
  }
  .partners-grid, .blog-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .activities-grid {
    grid-template-columns: 1fr;
  }
  .matrix-row {
    grid-template-columns: 1fr repeat(3, 0.8fr);
  }
}

/* ==========================================================================
   Appended Styles for Reworked Home & How It Works Sections
   ========================================================================== */

/* Logo Styling Updates */
.logo-image {
  height: 36px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

header.scrolled .logo-image {
  height: 36px;
}

.logo:hover .logo-image {
  filter: drop-shadow(0 0 8px var(--brand-glow));
}

.footer-logo-image {
  height: 42px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.footer-logo:hover .footer-logo-image {
  filter: drop-shadow(0 0 8px var(--brand-glow));
}

/* Reworked Hero Student Profile Card Mockup */
.profile-card {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(20, 16, 33, 0.65);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: float-card 8s infinite ease-in-out;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
  animation: scanline-horizontal 3s infinite linear;
}

@keyframes scanline-horizontal {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-bg-glow);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 0 15px rgba(127, 86, 217, 0.3);
}

.profile-avatar img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.profile-info {
  flex-grow: 1;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-headers);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.profile-verified-badge {
  font-size: 0.85rem;
  color: #12b76a;
  display: inline-flex;
}

.profile-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-score-display {
  text-align: right;
}

.profile-score-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-headers);
  line-height: 1.1;
}

.profile-score-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--brand-glow);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.profile-signals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.signal-row:hover {
  background: rgba(83, 56, 158, 0.1);
  border-color: rgba(127, 86, 217, 0.3);
  transform: translateX(4px);
}

.signal-label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-green { background: #12b76a; box-shadow: 0 0 8px #12b76a; }
.status-purple { background: var(--brand-glow); box-shadow: 0 0 8px var(--brand-glow); }
.status-blue { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }

.signal-value {
  font-weight: 600;
  color: var(--text-main);
}

/* Ingested Live Ticker in Hero Card */
.profile-ticker-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: monospace;
  font-size: 0.75rem;
  color: #12b76a;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.profile-ticker-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Reworked How It Works Timeline Stepper */
.how-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-step {
  display: flex;
  align-items: start;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  opacity: 0.45;
  cursor: pointer;
}

.timeline-step.active {
  opacity: 1;
  background: rgba(83, 56, 158, 0.1);
  border-color: var(--border-color);
  box-shadow: 0 0 20px rgba(83, 56, 158, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

.timeline-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-glow);
  font-family: var(--font-headers);
  line-height: 1.1;
}

.timeline-content {
  flex-grow: 1;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  transition: var(--transition-smooth);
}

.timeline-step.active h3 {
  color: var(--brand-glow);
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Reworked Simulator Widget Layout */
.simulator-widget {
  background: rgba(20, 16, 33, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.sim-controls {
  display: flex;
  flex-direction: column;
}

.sim-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sim-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-header-title svg {
  color: var(--brand-glow);
  fill: currentColor;
}

.sim-live-badge {
  font-size: 0.7rem;
  background: rgba(18, 183, 106, 0.15);
  color: #12b76a;
  border: 1px solid rgba(18, 183, 106, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-live-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #12b76a;
  border-radius: 50%;
  box-shadow: 0 0 8px #12b76a;
}

.sim-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.activity-row-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-row-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(127, 86, 217, 0.3);
}

.activity-row-btn.active {
  background: rgba(83, 56, 158, 0.15);
  border-color: var(--brand-glow);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.activity-row-btn.active .checkbox-box {
  background: var(--brand-primary);
  border-color: var(--brand-glow);
  color: white;
}

.checkbox-box::after {
  content: '✓';
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0;
  transition: var(--transition-smooth);
}

.activity-row-btn.active .checkbox-box::after {
  opacity: 1;
}

/* Slider Custom Styling */
.demand-slider-container {
  margin-top: 10px;
}

.slider-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-header-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.slider-header-value {
  font-size: 0.85rem;
  color: var(--brand-glow);
  font-weight: 700;
}

.slider-bar-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  margin-bottom: 6px;
}

.slider-bar-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-glow);
  cursor: pointer;
  box-shadow: 0 0 10px var(--brand-glow);
  transition: var(--transition-smooth);
}

.slider-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Simulator Profile Preview Card (Right Half) */
.sim-profile {
  background: rgba(12, 10, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(83, 56, 158, 0.4);
}

.profile-user-info {
  display: flex;
  flex-direction: column;
}

.profile-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-headers);
}

.profile-user-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-score-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-panel-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.score-panel-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-glow);
  font-family: var(--font-headers);
}

.profile-bars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-bar-group {
  display: flex;
  flex-direction: column;
}

.progress-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-glow));
  border-radius: 3px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tagline-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.tagline-bordered-card {
  border: 1px solid rgba(18, 183, 106, 0.3);
  background: rgba(18, 183, 106, 0.04);
  color: #12b76a;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 500;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Light Mode Theme Styles
   ========================================================================== */

:root.light-mode {
  --bg-dark: #f8f6fb;
  --bg-space: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --brand-primary: #53389e;
  --brand-light: #7f56d9;
  --brand-glow: #7f56d9; /* slightly darker for better contrast */
  --brand-bg-glow: rgba(83, 56, 158, 0.06);
  
  --text-main: #0c0a12;
  --text-secondary: #342852;
  --text-muted: #665b80;
  
  --border-color: rgba(83, 56, 158, 0.15);
  --border-hover: rgba(83, 56, 158, 0.35);
  --accent-gold: #b27b00;
}

/* Light mode text gradient overrides for readability */
html.light-mode .text-gradient {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light-mode .text-gradient-purple {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button overrides for light mode */
html.light-mode .btn-primary {
  color: #ffffff !important;
  border: 1px solid rgba(83, 56, 158, 0.2);
}
html.light-mode .btn-secondary {
  background: rgba(83, 56, 158, 0.04);
  color: var(--brand-primary);
  border: 1px solid var(--border-color);
}
html.light-mode .btn-secondary:hover {
  background: rgba(83, 56, 158, 0.08);
}
html.light-mode .btn-accent {
  color: var(--brand-primary);
}

/* Form inputs for light mode */
html.light-mode .form-input, 
html.light-mode .form-select, 
html.light-mode .form-textarea {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
html.light-mode .form-input:focus, 
html.light-mode .form-select:focus, 
html.light-mode .form-textarea:focus {
  background: #ffffff;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.1);
}

/* Header background in light mode */
html.light-mode header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

/* Drawer background in light mode */
html.light-mode .drawer {
  background: rgba(248, 246, 251, 0.95);
  box-shadow: -10px 0 30px rgba(83, 56, 158, 0.08);
}
html.light-mode .drawer-title {
  color: var(--text-main);
}

/* Theme Toggle Button Style */
.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-right: 8px;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--brand-glow);
  transform: scale(1.05);
}
.theme-toggle .sun-icon {
  display: block;
}
.theme-toggle .moon-icon {
  display: none;
}

html.light-mode .theme-toggle .sun-icon {
  display: none;
}
html.light-mode .theme-toggle .moon-icon {
  display: block;
}
html.light-mode .theme-toggle {
  background: rgba(83, 56, 158, 0.05);
  border-color: rgba(83, 56, 158, 0.15);
  color: var(--brand-primary);
}
html.light-mode .theme-toggle:hover {
  background: rgba(83, 56, 158, 0.1);
  border-color: var(--brand-light);
  color: var(--brand-light);
}

/* Logo inversion in light mode to keep readable brand color */
html.light-mode .logo-image,
html.light-mode .footer-logo-image,
html.light-mode .profile-avatar img {
  filter: invert(22%) sepia(88%) saturate(1534%) hue-rotate(246deg) brightness(78%) contrast(92%);
}

/* Adaptive widgets in light mode */
html.light-mode .profile-card,
html.light-mode .simulator-widget {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px rgba(83, 56, 158, 0.08);
}
html.light-mode .sim-header-row {
  border-bottom: 1px solid rgba(83, 56, 158, 0.1);
}
html.light-mode .sim-profile {
  background: rgba(83, 56, 158, 0.03);
  border: 1px solid rgba(83, 56, 158, 0.08);
}
html.light-mode .profile-score-panel {
  background: rgba(83, 56, 158, 0.05);
  border-color: rgba(83, 56, 158, 0.1);
}
html.light-mode .progress-bar-track {
  background: rgba(83, 56, 158, 0.1);
}
html.light-mode .signal-row {
  background: rgba(83, 56, 158, 0.02);
  border: 1px solid rgba(83, 56, 158, 0.08);
}
html.light-mode .activity-row-btn {
  background: rgba(83, 56, 158, 0.02);
  border: 1px solid rgba(83, 56, 158, 0.08);
}
html.light-mode .activity-row-btn:hover {
  background: rgba(83, 56, 158, 0.05);
}
html.light-mode .activity-row-btn.active {
  background: rgba(83, 56, 158, 0.1);
}
html.light-mode .slider-bar-input {
  background: rgba(83, 56, 158, 0.1);
}
html.light-mode .checkbox-box {
  background: rgba(255, 255, 255, 0.9);
}

/* Keep the simulator code terminal obsidian for high-contrast coder theme, but adjust container */
html.light-mode .terminal-logs-container {
  background: #07050a;
  border-color: rgba(83, 56, 158, 0.2);
}

/* Partnerships hover shadows */
html.light-mode .partner-card:hover {
  box-shadow: 0 20px 40px rgba(83, 56, 158, 0.1);
}


