:root {
  --navy: #192041;
  --navy-light: #272f54;
  --navy-dark: #121830;
  --gold: #f3b600;
  --gold-light: #fff8e0;
  --gold-text: #1a1a1a;
  --sky: #5ba3d9;
  --sky-light: #dceefb;
  --ink: #2c3345;
  --muted: #6b7a90;
  --bg: #ffffff;
  --bg-alt: #f0f4f9;
  --card: #ffffff;
  --line: #c8d8ea;
  --accent: #a22531;
  --accent-light: #f0d3d6;
  --green: #27a97b;
  --green-light: #d1f0e4;
  --red: #d65454;
  --red-light: #f8d6d6;
  --max: 1280px;
  --radius: 28px;
  --radius-sm: 16px;
  --radius-xs: 10px;
  --shadow: 0 22px 60px rgba(25, 32, 65, 0.08);
  --shadow-lg: 0 30px 80px rgba(25, 32, 65, 0.12);
  --shadow-xl: 0 40px 100px rgba(25, 32, 65, 0.18);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

[data-theme="dark"] {
  --navy: #5ba3d9;
  --navy-light: #7bb8e0;
  --navy-dark: #121830;
  --gold: #f3b600;
  --gold-light: #3a2d00;
  --gold-text: #1a1a1a;
  --sky: #5ba3d9;
  --sky-light: #141f30;
  --ink: #e2e8f5;
  --muted: #8894a8;
  --bg: #0a0e1a;
  --bg-alt: #111829;
  --card: #111829;
  --line: #1e2d4a;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.55);
  --accent: #c73a48;
  --accent-light: #2e1215;
  --green: #3ccb98;
  --green-light: #0f2a20;
  --red: #e07070;
  --red-light: #2a1515;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
}

/* ─── Text gradient (used in <span> inside h2) ─── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Decorative Blob ─── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ─── Header ─── */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.top.compact {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(25, 32, 65, 0.08);
  border-bottom-color: transparent;
}

[data-theme="dark"] .top {
  background: rgba(10, 14, 26, 0.88);
}

[data-theme="dark"] .top.compact {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top.compact .header-inner {
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background 0.3s ease;
  min-width: 0;
}

.brand:hover {
  background: rgba(25, 32, 65, 0.04);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(25, 32, 65, 0.08);
  flex-shrink: 0;
}

.top.compact .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(25, 32, 65, 0.15);
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  min-width: 0;
}

.top.compact .brand-name {
  font-size: 0.85rem;
}

.header-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 4px;
  border-radius: 14px;
  background: rgba(25, 32, 65, 0.03);
}

.header-nav a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
}

.header-nav a:not(.btn-apply)::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-nav a:not(.btn-apply):hover::after,
.header-nav a:not(.btn-apply).active::after {
  width: 20px;
}

.header-nav a.active {
  color: var(--navy);
  background: rgba(25, 32, 65, 0.07);
  font-weight: 700;
}

.header-nav a:hover {
  color: var(--navy);
  background: rgba(25, 32, 65, 0.05);
}

[data-theme="dark"] .header-nav {
  background: rgba(146, 198, 230, 0.06);
}

[data-theme="dark"] .header-nav a:hover {
  background: rgba(146, 198, 230, 0.1);
  color: var(--sky);
}

[data-theme="dark"] .header-nav a.active {
  background: rgba(146, 198, 230, 0.1);
  color: var(--sky);
}

[data-theme="dark"] .header-nav a:not(.btn-apply)::after {
  background: var(--sky);
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  background: var(--gold);
  color: #000000 !important;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 4px;
  box-shadow: 0 2px 8px rgba(243, 182, 0, 0.2);
}

.btn-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(243, 182, 0, 0.35);
  filter: brightness(1.05);
}

.btn-apply:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(243, 182, 0, 0.2);
}

[data-theme="dark"] .btn-apply {
  background: var(--gold);
  color: #1a1a1a;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.header-nav .theme-btn {
  margin-left: 10px;
}

.theme-btn:hover {
  background: var(--sky-light);
  color: var(--navy);
  transform: rotate(15deg);
}

.mobile-only {
  display: none;
}

.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.menu-btn:hover {
  background: rgba(25, 32, 65, 0.06);
  border-color: var(--navy);
}

.menu-btn svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-btn[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.mobile-nav {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 32px;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  max-height: 400px;
  opacity: 1;
  padding: 8px 32px 18px;
}

.mobile-nav a {
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: all 0.25s ease;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-12px);
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.3s; }

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--navy);
  background: rgba(25, 32, 65, 0.05);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a.btn-apply {
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--gold);
  color: #000000 !important;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  border-bottom: none;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(243, 182, 0, 0.25);
}

.mobile-nav a.btn-apply:hover {
  background: var(--gold);
  filter: brightness(1.05);
  box-shadow: 0 6px 24px rgba(243, 182, 0, 0.35);
}

/* ─── Hero ─── */
.hero {
  padding: 40px 0 60px;
  overflow: hidden;
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg .blob-1 {
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(25, 32, 65, 0.08), transparent 70%);
  animation: blobPulse 8s ease-in-out infinite alternate;
}

.hero-bg .blob-2 {
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(162, 37, 49, 0.06), transparent 70%);
  animation: blobPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-30px, 20px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin: 16px 0;
  color: var(--navy);
  transition: color var(--transition);
}

.hero h1 .highlight {
  display: inline-block;
  position: relative;
  color: var(--gold);
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--gold);
  opacity: 0.2;
  border-radius: 4px;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--navy);
  max-width: 600px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.5;
  transition: color var(--transition);
}

.hero .lead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--muted);
  max-width: 680px;
  line-height: 1.8;
  margin: 0;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 28px;
  background: var(--card);
  border: 2px solid var(--navy);
  font-weight: 800;
  color: var(--navy);
  transition: all var(--transition);
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font);
  box-shadow: 0 4px 12px rgba(25, 32, 65, 0.06);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(25, 32, 65, 0.13);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.btn.primary:hover {
  background: var(--navy-light);
}

.btn.gold {
  background: var(--gold);
  color: var(--gold-text);
  border-color: var(--gold);
}

.btn.gold:hover {
  filter: brightness(1.15);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--gold) 35%, transparent);
}

.btn .icon-arrow {
  transition: transform var(--transition);
  display: inline-block;
}

.btn:hover .icon-arrow {
  transform: translateX(5px);
}

.hero-visual {
  position: relative;
  background: linear-gradient(150deg, var(--sky-light), var(--card) 60%);
  border: 2px solid var(--navy);
  border-radius: 38px;
  padding: 32px;
  box-shadow: 18px 18px 0 rgba(25, 32, 65, 0.10), 0 0 60px rgba(146, 198, 230, 0.08);
  transition: all var(--transition);
}

.hero-visual:hover {
  box-shadow: 18px 18px 0 rgba(25, 32, 65, 0.15), 0 0 80px rgba(146, 198, 230, 0.15);
  transform: translateY(-4px);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 16px;
  opacity: 0.15;
  z-index: -1;
}

.hero-visual::after {
  content: '</>';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--navy);
  opacity: 0.08;
}

.hero-visual .floating-tag {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--navy);
  box-shadow: var(--shadow);
  white-space: nowrap;
  position: relative;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── Sections ─── */
section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.section-tag {
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h2.section-title {
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: var(--ink);
  margin: 0.35rem 0;
  transition: color var(--transition);
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* ─── Intro Section (shared header for Why + Curriculum) ─── */
.intro-section .section-head {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}

/* ─── Why Section ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.feature-card[data-category="languages"]::before { background: var(--navy); }
.feature-card[data-category="ai"]::before { background: var(--accent); }
.feature-card[data-category="hardware"]::before { background: var(--navy-light); }
.feature-card[data-category="apps"]::before { background: var(--gold); }
.feature-card[data-category="systems"]::before { background: var(--sky); }

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(25, 32, 65, 0.1);
}

.feature-card:hover::before {
  height: 4px;
}

.feature-card-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.5;
  line-height: 1;
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.feature-card[data-category="languages"] .feature-card-icon { background: rgba(25, 32, 65, 0.08); color: var(--navy); }
.feature-card[data-category="ai"] .feature-card-icon { background: rgba(162, 37, 49, 0.08); color: var(--accent); }
.feature-card[data-category="hardware"] .feature-card-icon { background: rgba(39, 47, 84, 0.08); color: var(--navy-light); }
.feature-card[data-category="apps"] .feature-card-icon { background: rgba(243, 182, 0, 0.1); color: var(--gold); }
.feature-card[data-category="systems"] .feature-card-icon { background: rgba(91, 163, 217, 0.1); color: var(--sky); }

.feature-card:hover .feature-card-icon {
  transform: translateY(-2px);
}

.feature-card[data-category="languages"]:hover .feature-card-icon { background: var(--navy); color: #fff; }
.feature-card[data-category="ai"]:hover .feature-card-icon { background: var(--accent); color: #fff; }
.feature-card[data-category="hardware"]:hover .feature-card-icon { background: var(--navy-light); color: #fff; }
.feature-card[data-category="apps"]:hover .feature-card-icon { background: var(--gold); color: var(--navy); }
.feature-card[data-category="systems"]:hover .feature-card-icon { background: var(--sky); color: #fff; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.feature-card h3::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.feature-card[data-category="languages"] h3::after { background: var(--navy); }
.feature-card[data-category="ai"] h3::after { background: var(--accent); }
.feature-card[data-category="hardware"] h3::after { background: var(--navy-light); }
.feature-card[data-category="apps"] h3::after { background: var(--gold); }
.feature-card[data-category="systems"] h3::after { background: var(--sky); }

.feature-card:hover h3::after {
  width: 42px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  text-align: left;
  flex-grow: 1;
}

/* ─── Curriculum ─── */
.curriculum {
  background: var(--bg-alt), radial-gradient(circle at 20% 50%, rgba(91,163,217,0.04) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(243,182,0,0.03) 0%, transparent 50%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.curriculum .section-head {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.curr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 22px;
}

.curr-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.curr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.curr-card[data-category="languages"]::before { background: var(--navy); }
.curr-card[data-category="ai"]::before { background: var(--accent); }
.curr-card[data-category="hardware"]::before { background: var(--navy-light); }
.curr-card[data-category="apps"]::before { background: var(--gold); }
.curr-card[data-category="systems"]::before { background: var(--sky); }

.curr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(25, 32, 65, 0.1);
}

.curr-card:hover::before {
  height: 4px;
}

.curr-card-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.5;
  line-height: 1;
}

.curr-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.curr-card[data-category="languages"] .curr-card-icon { background: rgba(25, 32, 65, 0.08); color: var(--navy); }
.curr-card[data-category="ai"] .curr-card-icon { background: rgba(162, 37, 49, 0.08); color: var(--accent); }
.curr-card[data-category="hardware"] .curr-card-icon { background: rgba(39, 47, 84, 0.08); color: var(--navy-light); }
.curr-card[data-category="apps"] .curr-card-icon { background: rgba(243, 182, 0, 0.1); color: var(--gold); }
.curr-card[data-category="systems"] .curr-card-icon { background: rgba(91, 163, 217, 0.1); color: var(--sky); }

.curr-card:hover .curr-card-icon {
  transform: scale(1.05);
}

.curr-card[data-category="languages"]:hover .curr-card-icon { background: var(--navy); color: #fff; }
.curr-card[data-category="ai"]:hover .curr-card-icon { background: var(--accent); color: #fff; }
.curr-card[data-category="hardware"]:hover .curr-card-icon { background: var(--navy-light); color: #fff; }
.curr-card[data-category="apps"]:hover .curr-card-icon { background: var(--gold); color: var(--navy); }
.curr-card[data-category="systems"]:hover .curr-card-icon { background: var(--sky); color: #fff; }

.curr-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.curr-card-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.curr-card[data-category="languages"] .curr-card-title::after { background: var(--navy); }
.curr-card[data-category="ai"] .curr-card-title::after { background: var(--accent); }
.curr-card[data-category="hardware"] .curr-card-title::after { background: var(--navy-light); }
.curr-card[data-category="apps"] .curr-card-title::after { background: var(--gold); }
.curr-card[data-category="systems"] .curr-card-title::after { background: var(--sky); }

.curr-card:hover .curr-card-title::after {
  width: 42px;
}

.curr-card-desc {
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
  flex-grow: 1;
}

.curr-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.curr-skill {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.74rem;
  padding: 6px 13px;
  border-radius: 8px;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.curr-card[data-category="languages"] .curr-skill { background: rgba(25, 32, 65, 0.06); color: var(--navy); }
.curr-card[data-category="ai"] .curr-skill { background: rgba(162, 37, 49, 0.06); color: var(--accent); }
.curr-card[data-category="hardware"] .curr-skill { background: rgba(39, 47, 84, 0.06); color: var(--navy-light); }
.curr-card[data-category="apps"] .curr-skill { background: rgba(243, 182, 0, 0.08); color: #8a6d00; }
.curr-card[data-category="systems"] .curr-skill { background: rgba(91, 163, 217, 0.08); color: #2a6e9e; }

.curr-skill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25, 32, 65, 0.08);
}

[data-theme="dark"] .curr-skill {
  background: rgba(146, 198, 230, 0.08);
}

[data-theme="dark"] .curr-card[data-category="languages"] .curr-skill { color: var(--sky); }
[data-theme="dark"] .curr-card[data-category="ai"] .curr-skill { color: var(--accent); }
[data-theme="dark"] .curr-card[data-category="hardware"] .curr-skill { color: var(--sky); }
[data-theme="dark"] .curr-card[data-category="apps"] .curr-skill { color: var(--gold); }
[data-theme="dark"] .curr-card[data-category="systems"] .curr-skill { color: var(--sky); }

/* ─── Scholarships ─── */
.scholarships {
  background: linear-gradient(150deg, var(--navy), var(--navy-dark));
  color: white;
  overflow: hidden;
}

.scholarships::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .scholarships {
  background: linear-gradient(150deg, #121830, #121830);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scholarships .section-tag {
  color: rgba(255, 255, 255, 0.65);
}

.scholarships h2.section-title {
  color: white;
}

.scholarships .section-sub {
  color: rgba(255, 255, 255, 0.72);
}

.scholarships .section-head {
  align-items: start;
}

.scholarship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scholar-card {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 26px;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.scholar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.scholar-card:nth-child(1)::before { background: linear-gradient(90deg, var(--gold), #f0c800); }
.scholar-card:nth-child(2)::before { background: linear-gradient(90deg, var(--sky), var(--navy-light)); }
.scholar-card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent), var(--gold)); }

.scholar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79,143,247,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scholar-card:nth-child(1):hover { background: rgba(243, 182, 0, 0.12); border-color: rgba(243, 182, 0, 0.35); }
.scholar-card:nth-child(2):hover { background: rgba(91, 163, 217, 0.12); border-color: rgba(91, 163, 217, 0.35); }
.scholar-card:nth-child(3):hover { background: rgba(162, 37, 49, 0.12); border-color: rgba(162, 37, 49, 0.35); }

.scholar-card:hover {
  transform: translateY(-5px);
}

.scholar-card:hover::before {
  height: 5px;
}

.scholar-card:hover::after {
  opacity: 1;
}

.scholar-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff, #5ba3d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.scholar-card p,
.scholar-card li {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.75;
}

.scholar-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.scholar-card ul li {
  padding-left: 24px;
  position: relative;
}

.scholar-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.badges-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.alliance-badge {
  margin-top: 0;
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.alliance-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--sky));
  transition: height 0.3s ease;
}

.alliance-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79,143,247,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.alliance-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
  border-color: rgba(146, 198, 230, 0.3);
}

.alliance-badge:hover::before {
  height: 5px;
}

.alliance-badge:hover::after {
  opacity: 1;
}

.alliance-badge strong {
  font-size: 1.05rem;
  white-space: nowrap;
  background: linear-gradient(135deg, #fff, #5ba3d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.alliance-badge span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Journey ─── */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
  position: relative;
}

.journey::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sky), var(--sky));
  border-radius: 2px;
  z-index: 0;
}

.step {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.step:nth-child(1)::before { background: linear-gradient(90deg, var(--navy), var(--sky)); }
.step:nth-child(2)::before { background: linear-gradient(90deg, var(--accent), var(--gold)); }
.step:nth-child(3)::before { background: linear-gradient(90deg, var(--gold), var(--navy)); }
.step:nth-child(4)::before { background: linear-gradient(90deg, var(--sky), var(--accent)); }

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(25, 32, 65, 0.12);
}

.step:hover::before {
  height: 5px;
}

.step:hover .step-num {
  border-radius: 50%;
  transform: scale(1.1);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step:nth-child(1) .step-num { background: linear-gradient(135deg, var(--navy), var(--sky)); }
.step:nth-child(2) .step-num { background: linear-gradient(135deg, var(--accent), var(--gold)); }
.step:nth-child(3) .step-num { background: linear-gradient(135deg, var(--gold), var(--navy)); }
.step:nth-child(4) .step-num { background: linear-gradient(135deg, var(--sky), var(--accent)); }

.step:hover .step-num {
  border-radius: 50%;
  transform: scale(1.1);
}

.step-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.step:nth-child(1) h3 { color: var(--navy); }
.step:nth-child(2) h3 { color: var(--accent); }
.step:nth-child(3) h3 { color: var(--gold); }
.step:nth-child(4) h3 { color: var(--sky); }

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.journey-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.journey-stat {
  text-align: center;
}

.journey-stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.journey-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}

/* ─── Careers ─── */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.career-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.career-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.career-card[data-category="software"]::before { background: var(--accent); }
.career-card[data-category="infra"]::before { background: var(--navy); }
.career-card[data-category="embedded"]::before { background: var(--sky); }

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(25, 32, 65, 0.1);
}

.career-card:hover::before {
  height: 4px;
}

.career-card-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.5;
  line-height: 1;
}

.career-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.career-card[data-category="software"] .career-card-icon { background: rgba(162, 37, 49, 0.08); color: var(--accent); }
.career-card[data-category="infra"] .career-card-icon { background: rgba(25, 32, 65, 0.08); color: var(--navy); }
.career-card[data-category="embedded"] .career-card-icon { background: rgba(91, 163, 217, 0.1); color: var(--sky); }

.career-card:hover .career-card-icon {
  transform: translateY(-2px);
}

.career-card[data-category="software"]:hover .career-card-icon { background: var(--accent); color: #fff; }
.career-card[data-category="infra"]:hover .career-card-icon { background: var(--navy); color: #fff; }
.career-card[data-category="embedded"]:hover .career-card-icon { background: var(--sky); color: #fff; }

.career-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.career-card-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.career-card[data-category="software"] .career-card-title::after { background: var(--accent); }
.career-card[data-category="infra"] .career-card-title::after { background: var(--navy); }
.career-card[data-category="embedded"] .career-card-title::after { background: var(--sky); }

.career-card:hover .career-card-title::after {
  width: 42px;
}

.career-card-desc {
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
  text-align: left;
  flex-grow: 1;
}

.career-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.career-skill {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.74rem;
  padding: 6px 13px;
  border-radius: 8px;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.career-card[data-category="software"] .career-skill { background: rgba(162, 37, 49, 0.06); color: var(--accent); }
.career-card[data-category="infra"] .career-skill { background: rgba(25, 32, 65, 0.06); color: var(--navy); }
.career-card[data-category="embedded"] .career-skill { background: rgba(91, 163, 217, 0.08); color: #2a6e9e; }

.career-skill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25, 32, 65, 0.08);
}

[data-theme="dark"] .career-skill {
  background: rgba(146, 198, 230, 0.08);
}

[data-theme="dark"] .career-card[data-category="software"] .career-skill { color: var(--accent); }
[data-theme="dark"] .career-card[data-category="infra"] .career-skill { color: var(--sky); }
[data-theme="dark"] .career-card[data-category="embedded"] .career-skill { color: var(--sky); }

.career-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding: 28px 0;
  border-top: 2px solid var(--line);
}

.career-stat {
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  transition: background 0.3s ease;
}

.career-stat:hover {
  background: rgba(25, 32, 65, 0.03);
}

.career-stat b {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.career-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.employers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.employer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(145deg, var(--card) 0%, rgba(25,32,65,0.03) 100%);
  border: 2px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy);
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.employer-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--sky));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.employer-logo:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(25, 32, 65, 0.12);
}

.employer-logo:hover::before {
  opacity: 1;
}

[data-theme="dark"] .employer-logo {
  background: linear-gradient(145deg, rgba(146, 198, 230, 0.06) 0%, rgba(146, 198, 230, 0.02) 100%);
  color: #5ba3d9;
}

[data-theme="dark"] .employer-logo:hover {
  border-color: #5ba3d9;
  color: #5ba3d9;
}

/* ─── Admission ─── */
.admit-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.admit-grid .panel:first-child::before { background: linear-gradient(90deg, var(--navy), var(--sky)); }
.admit-grid .panel:last-child::before { background: linear-gradient(90deg, var(--gold), var(--accent)); }

.panel:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.panel:hover::before {
  height: 5px;
}

.panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.25rem;
  transition: color var(--transition);
}

.admit-grid .panel:first-child h3 { color: var(--navy); }
.admit-grid .panel:last-child h3 { color: var(--gold); }

.panel .actions {
  gap: 8px;
}

.panel .actions .btn {
  padding: 11px 20px;
  font-size: 0.82rem;
}

label {
  display: block;
  font-weight: 700;
  margin: 16px 0 6px;
  font-size: 0.88rem;
  color: var(--ink);
}

input[inputmode="decimal"] {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  border: 2px solid var(--line);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input[inputmode="decimal"]:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(25, 32, 65, 0.1);
}

[data-theme="dark"] input[inputmode="decimal"]:focus {
  box-shadow: 0 0 0 4px rgba(146, 198, 230, 0.1);
}

input[inputmode="decimal"]::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.result-box {
  margin-top: 20px;
  padding: 28px 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--card) 0%, rgba(25,32,65,0.03) 100%);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid var(--line);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--sky), var(--gold));
  transition: height 0.3s ease;
}

.result-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79,143,247,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.result-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(25, 32, 65, 0.12);
  border-color: var(--navy);
}

.result-box:hover::before {
  height: 5px;
}

.result-box:hover::after {
  opacity: 1;
}

.result-box.error::before {
  background: linear-gradient(90deg, var(--red), #e07070, #f08080);
}

.result-box.success::before {
  background: linear-gradient(90deg, var(--green), #4fbf8a, #7ad4aa);
}

.result-number {
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  transition: all var(--transition);
}

.result-box.success .result-number {
  background: linear-gradient(135deg, var(--green), #4fbf8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-box.error .result-number {
  background: linear-gradient(135deg, var(--red), #e07070);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.5;
}

.result-box.success .result-msg {
  color: var(--green);
}

.result-box.error .result-msg {
  color: var(--red);
}

.result-box.error {
  background: linear-gradient(145deg, var(--red-light) 0%, rgba(214, 84, 84, 0.04) 100%);
  border-color: var(--red);
}

[data-theme="dark"] .result-box.error {
  background: linear-gradient(145deg, rgba(224, 112, 112, 0.1) 0%, rgba(224, 112, 112, 0.03) 100%);
}

.result-box.success {
  background: linear-gradient(145deg, var(--green-light) 0%, rgba(39, 169, 123, 0.04) 100%);
  border-color: var(--green);
}

[data-theme="dark"] .result-box.success {
  background: linear-gradient(145deg, rgba(60, 203, 152, 0.1) 0%, rgba(60, 203, 152, 0.03) 100%);
}

.result-box.success:hover {
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(39, 169, 123, 0.12);
}

.result-box.error:hover {
  border-color: var(--red);
  box-shadow: 0 10px 30px rgba(214, 84, 84, 0.12);
}

[data-theme="dark"] .result-box:hover {
  border-color: #5ba3d9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .result-box.success:hover {
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(60, 203, 152, 0.15);
}

[data-theme="dark"] .result-box.error:hover {
  border-color: var(--red);
  box-shadow: 0 10px 30px rgba(224, 112, 112, 0.15);
}

.quiz-q {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--ink);
}

.quiz-opts {
  display: grid;
  gap: 10px;
}

.quiz-opts button {
  text-align: left;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 14px 18px 14px 42px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.quiz-opts button::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--line);
  background: var(--bg);
  transition: all 0.3s ease;
}

.quiz-opts button:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  transform: translateX(4px);
}

.quiz-opts button:hover::before {
  border-color: var(--gold);
}

.quiz-opts button.selected {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateX(4px);
}

.quiz-opts button.selected::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--gold-light);
}

.quiz-result {
  margin-top: 18px;
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--card) 0%, rgba(25,32,65,0.03) 100%);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  min-height: 60px;
  border: 2px solid var(--line);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quiz-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--sky));
  transition: height 0.3s ease;
}

.quiz-result::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79,143,247,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.quiz-result:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(25, 32, 65, 0.1);
  border-color: var(--navy);
}

.quiz-result:hover::before {
  height: 5px;
}

.quiz-result:hover::after {
  opacity: 1;
}

.quiz-result.good {
  background: linear-gradient(145deg, var(--green-light) 0%, rgba(39, 169, 123, 0.04) 100%);
  border-color: var(--green);
}

.quiz-result.good::before {
  background: linear-gradient(90deg, var(--green), #4fbf8a, #7ad4aa);
}

.quiz-result.great {
  background: linear-gradient(145deg, var(--green-light) 0%, rgba(39, 169, 123, 0.06) 100%);
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(39, 169, 123, 0.12);
}

.quiz-result.great::before {
  background: linear-gradient(90deg, var(--green), #4fbf8a, #7ad4aa);
}

.quiz-result.great:hover {
  border-color: var(--green);
  box-shadow: 0 10px 30px rgba(39, 169, 123, 0.18);
}

.quiz-score {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.quiz-result.great .quiz-score {
  background: linear-gradient(135deg, var(--green), #4fbf8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.5;
}

.quiz-result.good .quiz-msg,
.quiz-result.great .quiz-msg {
  color: var(--green);
}

/* ─── FAQ ─── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.faq-grid details {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.faq-grid details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--sky), var(--sky));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-grid details[open]::before {
  opacity: 1;
}

.faq-grid details[open] {
  box-shadow: 0 10px 30px rgba(25, 32, 65, 0.12);
  border-color: var(--navy);
}

.faq-grid details:hover {
  border-color: rgba(25, 32, 65, 0.2);
}

.faq-grid summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 16px;
  list-style: none;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(162, 37, 49, 0.06);
}

.faq-grid details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: white;
}

.faq-grid summary:hover {
  color: var(--accent);
}

.faq-grid .faq-answer {
  padding: 0 24px 20px;
}

.faq-grid .faq-answer p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ─── Banner ─── */
.cta-banner {
  background: linear-gradient(150deg, var(--navy), var(--navy-dark));
  color: white;
  border-radius: 38px;
  padding: 64px 48px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--sky), var(--gold));
  background-size: 200% 100%;
  animation: gradientShift 4s linear infinite;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(134, 182, 214, 0.08), transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .cta-banner {
  background: linear-gradient(150deg, #121830, #121830);
  border: 1px solid var(--line);
}

.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  margin: 0 0 16px;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta-banner .actions {
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.cta-banner .btn:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

.cta-banner .btn.gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--gold-text);
}

.cta-banner .btn.gold:hover {
  filter: brightness(1.15);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--gold) 35%, transparent);
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.cta-trust span {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-trust span:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.cta-contact {
  margin-top: 24px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-contact a:hover {
  color: white;
}

/* ─── Footer ─── */
.site-footer {
  background: linear-gradient(150deg, var(--navy), var(--navy-dark));
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 0;
}

.site-footer strong {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact-text {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0 0 14px;
}

.footer-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 6px 0;
  transition: color 0.3s ease;
  color: rgba(255, 255, 255, 0.65);
}

.footer-link-row svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-col a:not(.footer-link-row) {
  display: block;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.3s ease;
}

.footer-link-row:hover,
.footer-col a:not(.footer-link-row):hover {
  color: var(--sky);
}

.footer-link-row:hover svg {
  opacity: 1;
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(150deg, #121830, #121830);
  border-top: 1px solid var(--line);
}

/* ─── Decorative section divider ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
  margin: 0;
  border: none;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .curr-grid,
  .scholarship-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 930px) {
  .header-nav {
    display: none;
  }
  .header-nav .theme-btn {
    display: none;
  }
  .mobile-only {
    display: grid;
  }
  .menu-btn {
    display: flex;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid,
  .section-head,
  .admit-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    gap: 16px;
  }
  .curriculum .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }
  .journey {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .mobile-nav a {
    font-size: 0.95rem;
    padding: 14px 0;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .curr-grid,
  .scholarship-grid {
    grid-template-columns: 1fr;
  }
  .career-grid {
    grid-template-columns: 1fr;
  }
  .scholar-card h3 {
    font-size: 1rem;
  }
  .alliance-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  section {
    padding: 50px 0;
  }
  .hero {
    padding: 40px 0 30px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cta-banner {
    padding: 32px 20px;
    border-radius: 24px;
  }
  .cta-banner h2 {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .panel {
    padding: 24px;
  }
  .curr-card,
  .career-card {
    padding: 22px;
  }
  .result-number {
    font-size: 2.6rem;
  }
  .panel .actions .btn {
    padding: 10px 16px;
    font-size: 0.78rem;
  }
  .cta-trust {
    gap: 8px;
  }
  .cta-trust span {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }
  .brand-name {
    font-size: 0.8rem;
    max-width: 160px;
  }
  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .journey {
    grid-template-columns: 1fr;
  }
  .header-inner {
    height: 62px;
    padding: 0 20px;
  }
  .top.compact .header-inner {
    height: 54px;
  }
  .mobile-nav {
    padding: 0 20px;
  }
  .mobile-nav.open {
    padding: 0 20px 18px;
  }
  .actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .panel .actions {
    flex-direction: column;
  }
  .panel .actions .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom {
    font-size: 0.75rem;
  }
}

/* ─── Scroll-to-top ─── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--card);
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 99;
  box-shadow: var(--shadow);
  font-family: var(--font);
  line-height: 1;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ─── FAQ smooth animation ─── */
.faq-grid details[open] .faq-answer {
  max-height: 800px;
  opacity: 1;
  padding-top: 14px;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Code Editor Animation ─── */
.code-editor {
  background: #0d1117;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #30363d;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: all var(--transition);
  position: relative;
  z-index: 2;
}

.hero-visual.revealed .code-editor {
  opacity: 0;
  transform: scale(0.85) translateY(-20px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  animation: codeDissolve 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes codeDissolve {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px) brightness(1);
  }
  20% {
    opacity: 1;
    filter: blur(0px) brightness(1.8);
  }
  40% {
    transform: scale(1.02) skewX(2deg);
    filter: blur(2px) brightness(1.4) hue-rotate(20deg);
  }
  60% {
    transform: scale(0.98) skewX(-1deg);
    filter: blur(4px) brightness(0.8);
  }
  80% {
    opacity: 0.3;
    transform: scale(0.9) translateY(-30px);
    filter: blur(8px) brightness(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(0.85) translateY(-20px);
    filter: blur(12px) brightness(0);
  }
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-editor.flash .dot.green {
  animation: dotGlow 0.6s ease-out;
}

@keyframes dotGlow {
  0% { box-shadow: none; }
  50% { box-shadow: 0 0 12px #28c840, 0 0 24px #28c840; }
  100% { box-shadow: none; }
}

.editor-title {
  margin-left: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b949e;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

.editor-body {
  padding: 20px 20px 20px 0;
  display: flex;
  position: relative;
  min-height: 220px;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}

.line-numbers {
  padding: 20px 16px 20px 20px;
  color: #484f58;
  text-align: right;
  user-select: none;
  min-width: 48px;
  border-right: 1px solid #21262d;
  flex-shrink: 0;
}

.line-numbers span {
  display: block;
}

.code-content {
  margin: 0;
  padding: 20px 0 20px 16px;
  color: #c9d1d9;
  white-space: pre;
  flex: 1;
  overflow: hidden;
}

.cursor {
  color: #58a6ff;
  font-weight: 700;
  animation: blink 0.8s step-end infinite;
  position: absolute;
  top: 20px;
  left: 65px;
  pointer-events: none;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  transition: top 0.1s ease, left 0.05s ease;
  z-index: 3;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Syntax colors */
.kw { color: #ff7b72; }
.fn { color: #d2a8ff; }
.str { color: #a5d6ff; }
.cm { color: #8b949e; font-style: italic; }
.num { color: #79c0ff; }
.op { color: #ff7b72; }
.var { color: #ffa657; }
.cls { color: #f0c674; }
.prop { color: #79c0ff; }
.paren { color: #c9d1d9; }

/* Logo Reveal */
.logo-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.hero-visual.revealed .logo-reveal {
  opacity: 1;
}

.rocket-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(120px) scale(0.3);
  transition: none;
}

.hero-visual.revealed .rocket-wrapper {
  animation: rocketLaunch 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
             logoFloat 3s ease-in-out 1.4s infinite;
}

.hero-visual.revealed {
  animation: heroShake 0.5s ease-out 0.3s;
}

@keyframes heroShake {
  0%, 100% { transform: translate(0); }
  15% { transform: translate(-2px, 1px); }
  30% { transform: translate(3px, -1px); }
  45% { transform: translate(-1px, 2px); }
  60% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 1px); }
}

.calc-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  position: relative;
  min-height: 1.2em;
  display: flex;
  justify-content: center;
}

.calc-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px) scale(1.3);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.3s ease, filter 0.3s ease;
  filter: blur(4px);
}

.calc-title .letter.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  text-shadow: 0 0 20px currentColor;
}

.calc-title .letter.glow {
  text-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
  filter: blur(0px) brightness(1.3);
}

.calc-title .letter:nth-child(1)  { color: #192041; }
.calc-title .letter:nth-child(2)  { color: #272f54; }
.calc-title .letter:nth-child(3)  { color: #192041; }
.calc-title .letter:nth-child(4)  { color: #f3b600; }
.calc-title .letter:nth-child(5)  { color: #192041; }
.calc-title .letter:nth-child(6)  { color: #272f54; }
.calc-title .letter:nth-child(7)  { color: #a22531; }
.calc-title .letter:nth-child(8)  { color: #192041; }
.calc-title .letter:nth-child(9)  { color: #f3b600; }
.calc-title .letter:nth-child(10) { color: #192041; }
.calc-title .letter:nth-child(11) { color: #272f54; }
.calc-title .letter:nth-child(12) { color: #192041; }

.calc-title .letter:not(.visible) {
  color: transparent;
}

.calc-cursor {
  display: inline-block;
  font-weight: 900;
  color: var(--gold);
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 1px;
  transition: opacity 0.3s ease;
}

.calc-cursor.done {
  opacity: 0;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.calc-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #192041, #272f54, #f3b600, #a22531, #192041);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: lineGrow 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.5s,
             gradientShift 2s linear infinite 2s;
}

@keyframes lineGrow {
  0% { width: 0; opacity: 0.5; }
  100% { width: 100%; opacity: 1; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes rocketLaunch {
  0% {
    opacity: 0.2;
    transform: translateY(120px) scale(0.3);
    filter: blur(4px);
  }
  40% {
    opacity: 1;
    filter: blur(0px);
  }
  70% {
    transform: translateY(-8px) scale(1.08);
  }
  85% {
    transform: translateY(4px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.revealed-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(25, 32, 65, 0.3));
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .revealed-logo {
    width: 160px;
    height: 160px;
  }
  .calc-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
}

.hero-visual.revealed .revealed-logo {
  animation: logoGlow 2s ease-in-out 0.8s forwards;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 8px 32px rgba(25, 32, 65, 0.3)); }
  50% { filter: drop-shadow(0 12px 48px rgba(91, 163, 217, 0.5)) drop-shadow(0 0 60px rgba(243, 182, 0, 0.3)); }
  100% { filter: drop-shadow(0 8px 32px rgba(25, 32, 65, 0.3)); }
}

.rocket-trail {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 182, 0, 0.5), rgba(162, 37, 49, 0.3), transparent 70%);
  opacity: 0;
  filter: blur(12px);
  z-index: 1;
}

.hero-visual.revealed .rocket-trail {
  animation: trailBurst 0.8s ease-out 0.1s forwards;
}

@keyframes trailBurst {
  0% { opacity: 0.9; transform: translateX(-50%) scale(0.5); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(2.5); }
  100% { opacity: 0; transform: translateX(-50%) scale(3.5); }
}

.logo-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 163, 217, 0.3), rgba(25, 32, 65, 0.1) 60%, transparent 80%);
  z-index: 0;
  opacity: 0;
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
}

.hero-visual.revealed .particle {
  animation: particleBurst 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Code editor completion flash */
.code-editor.flash .editor-body {
  animation: editorFlash 0.6s ease-out;
}

@keyframes editorFlash {
  0% { box-shadow: none; }
  30% { box-shadow: inset 0 0 60px rgba(91, 163, 217, 0.4); }
  100% { box-shadow: none; }
}

/* Code editor scanline */
.code-editor::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.code-editor.scanning::after {
  animation: scanline 1.5s ease-in-out;
}

/* Cursor ripple */
.cursor-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 182, 0, 0.4), transparent 70%);
  pointer-events: none;
  animation: rippleFade 0.4s ease-out forwards;
}

@keyframes rippleFade {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes scanline {
  0% { top: 40px; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: calc(100% - 10px); opacity: 0; }
}

/* Enhanced rocket trail */
.rocket-trail {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 182, 0, 0.6), rgba(162, 37, 49, 0.4), transparent 70%);
  opacity: 0;
  filter: blur(12px);
  z-index: 1;
}

.hero-visual.revealed .rocket-trail {
  animation: trailBurst 0.8s ease-out 0.1s forwards;
}

.trail-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  z-index: 1;
}

.hero-visual.revealed .trail-spark {
  animation: sparkFly 0.8s ease-out forwards;
}

@keyframes sparkFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

.hero-visual.revealed .logo-glow {
  animation: glowAppear 1s ease-out 0.6s forwards,
             glowPulse 2.5s ease-in-out 1.6s infinite alternate;
}

@keyframes glowAppear {
  0% { opacity: 0; transform: scale(0.2); }
  60% { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.hero-visual.revealed {
  border-color: var(--sky);
  box-shadow: 18px 18px 0 rgba(25, 32, 65, 0.10), 0 0 80px rgba(146, 198, 230, 0.2);
}

.tag-reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.8);
}

.hero-visual.revealed .tag-reveal {
  animation: tagSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
}

@keyframes tagSlideUp {
  0% { opacity: 0; transform: translateY(20px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-visual.revealed .floating-tag {
  background: linear-gradient(135deg, var(--gold), #f0c800);
  color: #000000;
  border-color: var(--gold);
}

/* Shockwave ring */
.shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 3px solid rgba(91, 163, 217, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.hero-visual.revealed .shockwave {
  animation: shockwaveExpand 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

@keyframes shockwaveExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
    border-width: 3px;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
    border-width: 1px;
  }
}

/* ─── prefers-reduced-motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .floating-tag {
    animation: none;
  }
  .blob {
    animation: none;
  }
}

@media (max-width: 700px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

@media print {
  .top {
    position: static;
  }
  .hero-visual {
    display: none;
  }
  .btn {
    box-shadow: none !important;
  }
}
