/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #ff6b35;
  --green-dark:   #e85a28;
  --navy:         #1a0033;
  --navy-mid:     #2d0052;
  --slate:        #5a2e7a;
  --bg-alt:       #faf6f3;
  --text:         #1a1a2e;
  --text-muted:   #6b5b7f;
  --white:        #ffffff;
  --business-clr: #ff9500;
  --technical-clr:#ff4081;
  --ethical-clr:  #6b2c91;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.09);
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fdf8f5 0%, #faf3f0 50%, #f5ede8 100%);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 0.5em; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4em; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35em; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--green); }

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 0;
}
.body-text { max-width: 760px; color: var(--text-muted); margin-top: 1.5rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-alt { background: var(--bg-alt); }

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 3rem; }

.section-pill {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  background: rgba(255,107,53,0.12);
  color: var(--green);
  border: 1px solid rgba(255,107,53,0.3);
}
.business-pill  { background: rgba(255,149,0,0.1);  color: var(--business-clr);  border-color: rgba(255,149,0,0.25); }
.technical-pill { background: rgba(255,64,129,0.1);   color: var(--technical-clr);         border-color: rgba(255,64,129,0.3); }
.ethical-pill   { background: rgba(107,44,145,0.1);  color: var(--ethical-clr);   border-color: rgba(107,44,145,0.25); }

/* ===== SUB-SECTIONS ===== */
.sub-section { margin-bottom: 3.5rem; }
.sub-section:last-child { margin-bottom: 0; }

.sub-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8edf3;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); }

.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #2d0052 0%, #1a0033 50%, #0a001a 100%);
  color: var(--white);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 7rem 3rem 4rem;
  gap: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(255, 107, 53, 0.08);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.hero-content { max-width: 580px; }

.hero-tag {
  display: inline-block;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.35);
  color: var(--green);
  padding: 0.3em 0.9em;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  padding: 0.8em 1.75em;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  padding: 0.8em 1.75em;
  border-radius: 50px;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ===== HERO SCORE DEMO ===== */
.hero-score-demo { display: flex; align-items: center; justify-content: center; padding-right: 2rem; }

.score-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 220px;
}
.score-ring { position: relative; width: 120px; height: 120px; margin: 0 auto 1rem; }
.score-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round; }
.score-num {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem; font-weight: 800; color: var(--white);
}
.score-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem; }
.score-badge {
  display: inline-block; padding: 0.3em 1em; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.score-badge.good { background: rgba(0,200,150,0.2); color: var(--green); border: 1px solid rgba(0,200,150,0.4); }

/* ===== STATS ===== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0; }
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
  border: 1px solid rgba(255,107,53,0.15);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255,107,53,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(10px);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,107,53,0.12), 0 4px 12px rgba(0,0,0,0.06);
}
.stat-num { display: block; font-size: 3rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 0.5rem; }
.stat-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ===== TWO COL ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.two-col p { color: var(--text-muted); }

/* ===== ARCH DIAGRAM ===== */
.arch-diagram { display: flex; flex-direction: column; align-items: center; gap: 0; }
.arch-layer {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.8) 100%);
  border: 2px solid #e1e8f0;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.arch-layer:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  border-color: currentColor;
}
.arch-layer.presentation { border-color: var(--green); }
.arch-layer.application  { border-color: var(--business-clr); }
.arch-layer.data         { border-color: var(--ethical-clr); }
.layer-icon { font-size: 1.8rem; }
.arch-layer strong { display: block; font-size: 0.95rem; }
.arch-layer small  { font-size: 0.78rem; color: var(--text-muted); }
.arch-arrow { font-size: 1.5rem; color: var(--text-muted); padding: 0.2rem 0; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.8) 100%);
  border: 1px solid rgba(255,107,53,0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,107,53,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255,107,53,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  border-color: rgba(255, 107, 53, 0.3);
}
.feature-icon { font-size: 1.9rem; margin-bottom: 0.75rem; display: block; }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

.badge-planned {
  background: rgba(59,130,246,0.1); color: var(--business-clr);
  font-size: 0.65rem; padding: 0.15em 0.6em; border-radius: 50px;
  font-weight: 600; vertical-align: middle; margin-left: 0.3rem;
  border: 1px solid rgba(59,130,246,0.2);
}

/* ===== METRICS ROW ===== */
.metrics-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }
.metric-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.85) 100%);
  border: 1px solid rgba(255,107,53,0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  flex: 1; min-width: 150px; max-width: 195px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,107,53,0.12);
}
.result-card {
  border-color: var(--green);
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8df 100%);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15), 0 2px 8px rgba(0,0,0,0.04) !important;
}
.metric-icon { font-size: 1.9rem; margin-bottom: 0.5rem; display: block; }
.metric-card h3 { font-size: 0.95rem; }
.metric-card p  { font-size: 0.8rem; color: var(--text-muted); }
.metric-plus, .metric-equals { font-size: 1.75rem; font-weight: 700; color: var(--green); flex-shrink: 0; }

/* ===== CHALLENGES ===== */
.challenges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.challenge-card {
  background: var(--white); border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b; border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.challenge-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.challenge-card p  { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ===== TECH GRID ===== */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tech-item {
  background: var(--white); border: 1px solid #e1e8f0;
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.tech-item strong { display: block; margin: 0.4rem 0 0.3rem; font-size: 1rem; }
.tech-item p { font-size: 0.84rem; color: var(--text-muted); margin: 0; }

.tech-badge {
  display: inline-block; padding: 0.2em 0.7em; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.tech-badge.backend  { background: #e8f5e9; color: #2e7d32; }
.tech-badge.db       { background: #e3f2fd; color: #1565c0; }
.tech-badge.frontend { background: #fff3e0; color: #e65100; }
.tech-badge.api      { background: #f3e5f5; color: #6a1b9a; }
.tech-badge.cloud    { background: #fce4ec; color: #880e4f; }
.tech-badge.vcs      { background: #e8eaf6; color: #283593; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; margin-top: 1rem; }

.data-table, .compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.data-table th, .compare-table th {
  background: var(--navy); color: var(--white);
  padding: 0.9rem 1.1rem; text-align: left; font-weight: 600; font-size: 0.85rem;
}
.data-table td, .compare-table td {
  padding: 0.8rem 1.1rem; border-bottom: 1px solid #e8edf3;
}
.data-table tbody tr:last-child td,
.compare-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) td { background: #f9fbfc; }
.total-row td { background: #f0f7ff !important; font-weight: 600; }

.compare-table .highlight-col { background: rgba(0,200,150,0.08); font-weight: 600; }
.compare-table th.highlight-col { background: var(--green); color: var(--navy); }
.compare-table tbody tr:nth-child(even) td { background: #f9fbfc; }
.compare-table tbody tr:nth-child(even) td.highlight-col { background: rgba(0,200,150,0.06); }

.tick    { color: #009e78; font-weight: 700; }
.cross   { color: #d32f2f; }
.partial { color: #f57c00; }

/* ===== PORTER'S RATING BADGES ===== */
.rating-badge {
  display: inline-block; padding: 0.25em 0.8em;
  border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}
.rating-badge.high     { background: #fde8e8; color: #c53030; }
.rating-badge.moderate { background: #fef3c7; color: #b45309; }
.rating-badge.low      { background: #dcfce7; color: #166534; }

/* ===== BUSINESS SECTION ===== */
.market-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0; }
.market-card {
  background: var(--white); border: 1px solid #dbeafe;
  border-top: 3px solid var(--business-clr); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); text-align: center;
}
.market-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.market-card strong { display: block; margin-bottom: 0.4rem; font-size: 0.95rem; }
.market-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* SWOT */
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.swot-card {
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.swot-card h4 {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; margin-bottom: 0.85rem;
}
.swot-card h4 span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 800; color: white;
}
.swot-card ul { list-style: none; padding: 0; }
.swot-card ul li {
  font-size: 0.88rem; padding: 0.3rem 0 0.3rem 1.2rem; position: relative;
  color: var(--text-muted);
}
.swot-card ul li::before { content: '•'; position: absolute; left: 0; font-weight: 700; }

.strengths    { background: #f0fdf4; border: 1px solid #bbf7d0; }
.strengths h4 span { background: #16a34a; }
.strengths ul li::before { color: #16a34a; }

.weaknesses    { background: #fff7ed; border: 1px solid #fed7aa; }
.weaknesses h4 span { background: #ea580c; }
.weaknesses ul li::before { color: #ea580c; }

.opportunities    { background: #eff6ff; border: 1px solid #bfdbfe; }
.opportunities h4 span { background: #2563eb; }
.opportunities ul li::before { color: #2563eb; }

.threats    { background: #fef2f2; border: 1px solid #fecaca; }
.threats h4 span { background: #dc2626; }
.threats ul li::before { color: #dc2626; }

/* Business Model */
.bm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1rem; }
.bm-card {
  background: var(--white); border: 1px solid #dbeafe;
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.bm-icon { font-size: 1.8rem; display: block; margin-bottom: 0.6rem; }
.bm-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== ETHICAL SECTION ===== */
.ethics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.ethics-card {
  background: var(--white); border: 1px solid #e9d5ff;
  border-top: 3px solid var(--ethical-clr); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.ethics-card:hover { transform: translateY(-3px); }
.ethics-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.ethics-card h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 0.75rem; }
.ethics-card p  { font-size: 0.88rem; color: var(--text-muted); }

.ethics-quote {
  background: rgba(168,85,247,0.06);
  border-left: 3px solid var(--ethical-clr);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text);
}

/* Ethical Principles */
.ethics-principles { margin-top: 0; }
.principles-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.principle {
  text-align: center; padding: 1.5rem 1rem;
  background: var(--white); border: 1px solid #e9d5ff;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.principle-num {
  display: block; font-size: 1.5rem; font-weight: 800;
  color: var(--ethical-clr); margin-bottom: 0.5rem;
}
.principle strong { display: block; margin-bottom: 0.4rem; font-size: 0.95rem; }
.principle p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }

/* ===== STUDENT CARD ===== */
.student-section { background: var(--navy); color: var(--white); }
.student-card-wrap { display: flex; justify-content: center; }
.student-card {
  display: flex; gap: 2.5rem; align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 2.5rem 3rem;
  max-width: 780px; width: 100%;
}
.student-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green); color: var(--navy);
  font-size: 1.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.student-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.2rem; }
.student-id   { font-size: 0.9rem; color: var(--green); margin-bottom: 0.2rem; }
.student-prog { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 0.1rem; }
.student-uni  { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.student-bio  { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin: 0; }

/* ===== FOOTER ===== */
.footer {
  background: #060e17; color: rgba(255,255,255,0.4);
  text-align: center; padding: 2rem 1rem; font-size: 0.82rem;
}
.footer p { margin-bottom: 0.3rem; }
.footer .accent { color: var(--green); }

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), #00f5b8);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(0,200,150,0.6);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ===== HERO GRID OVERLAY ===== */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,150,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,150,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ===== HERO FLOATING ORBS ===== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,200,150,0.18) 0%, transparent 70%);
  top: -80px; right: -60px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(44,74,110,0.5) 0%, transparent 70%);
  bottom: 60px; left: 5%;
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.06); }
}

/* ===== HERO WAVE DIVIDER ===== */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ===== SCORE RING GLOW ===== */
.ring-fill {
  filter: drop-shadow(0 0 6px rgba(0,200,150,0.7));
  animation: ringGlow 2.5s ease-in-out infinite;
}
@keyframes ringGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(0,200,150,0.5)); }
  50%       { filter: drop-shadow(0 0 14px rgba(0,200,150,0.95)); }
}

/* ===== TYPING CURSOR ===== */
.typing-cursor {
  display: inline-block;
  color: var(--green);
  animation: blink 0.85s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ===== VIDEO PLACEHOLDER ===== */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,200,150,0.2);
  margin-top: 1.25rem;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.video-play-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0,200,150,0.15);
  border: 2px solid rgba(0,200,150,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--green);
  padding-left: 4px;
  animation: pulsePlay 2s ease-in-out infinite;
}
@keyframes pulsePlay {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,150,0.3); }
  50%       { box-shadow: 0 0 0 14px rgba(0,200,150,0); }
}
.video-ph-title {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}
.video-ph-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  margin: 0;
}
/* ===== VIDEO THUMBNAIL FALLBACK ===== */
.video-thumb-link {
  position: absolute;
  inset: 0;
  display: block;
}
.video-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.35);
  transition: background 0.25s ease;
}
.video-thumb-link:hover .video-thumb-overlay { background: rgba(0,0,0,0.55); }
.video-thumb-link:hover .video-play-icon { transform: scale(1.12); }
.video-thumb-label {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.video-ph-sub code {
  background: rgba(0,200,150,0.12);
  color: var(--green);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,200,150,0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 500;
  line-height: 1;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); }

/* ===== SCROLL ANIMATION BASE ===== */
.anim { opacity: 0; transform: translateY(22px); }
.anim.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 7rem 2rem 4rem; }
  .hero-content { max-width: 100%; }
  .hero-score-demo { padding-right: 0; }
  .hero-ctas { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .principles-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(13,27,42,0.98); padding: 1rem 2rem 1.5rem; gap: 1rem; }
  .nav-toggle { display: block; }
  .stat-row { grid-template-columns: 1fr; }
  .swot-grid { grid-template-columns: 1fr; }
  .bm-grid { grid-template-columns: 1fr; }
  .ethics-grid { grid-template-columns: 1fr; }
  .market-cards { grid-template-columns: 1fr; }
  .challenges-grid { grid-template-columns: 1fr; }
  .student-card { flex-direction: column; align-items: center; text-align: center; padding: 2rem; }
  .metrics-row { flex-direction: column; align-items: stretch; }
  .metric-card { max-width: 100%; }
  .metric-plus, .metric-equals { transform: rotate(90deg); }
  .principles-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .principles-row { grid-template-columns: 1fr; }
}
