
:root {
  --bg-obsidian: #0b0e0a;
  --bg-surface: #121612;
  --bg-surface-elevated: #181d18;
  --bg-surface-hover: #1f251f;
  
  --border-stone: #242c23;
  --border-stone-hover: #384536;
  
  --text-cream: #f6f4ee;
  --text-cream-dim: #ede8dc;
  --text-muted: #8d9489;
  --text-faint: #565d53;
  
  --accent-green: #89e289;
  --accent-gold: #e2ba6a;
  
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-script: 'Dancing Script', cursive;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-width: none !important;   -ms-overflow-style: none !important; }

body {
  background-color: var(--bg-obsidian);
  color: var(--text-cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.custom-scrollbar-track {
  position: fixed;
  top: 10px;
  right: 5px;
  bottom: 10px;
  width: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  z-index: 99999;
  cursor: pointer;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, opacity 0.3s ease;
  opacity: 0.35;
  user-select: none;
}

.custom-scrollbar-track:hover,
.custom-scrollbar-track.is-dragging,
.custom-scrollbar-track.is-scrolling {
  width: 10px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.custom-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(246, 244, 238, 0.3);
  border-radius: 10px;
  cursor: grab;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.custom-scrollbar-thumb:hover,
.custom-scrollbar-track.is-dragging .custom-scrollbar-thumb {
  background: var(--accent-green);
  box-shadow: 0 0 14px rgba(137, 226, 137, 0.7);
  cursor: grabbing;
}

.kivi-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(11, 14, 10, 0) 0%, rgba(11, 14, 10, 0.95) 85%);
}

.stage-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.16;
}

.aurora-green {
  width: 650px;
  height: 500px;
  background: radial-gradient(circle, #387638, transparent 70%);
  top: -120px;
  left: 20%;
}

.aurora-gold {
  width: 550px;
  height: 450px;
  background: radial-gradient(circle, #b8860b, transparent 70%);
  top: 15%;
  right: 10%;
}

.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 990;
  background: rgba(11, 14, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-stone);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-script);
  font-size: 2.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 20%, #e4e4e7 50%, #a1a1aa 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-stone);
}

.dlm-badge img {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

.dlm-badge:hover img {
  opacity: 1;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-cream);
  background: var(--bg-surface);
}

.nav-link.active {
  color: #fff;
  background: var(--bg-surface-elevated);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav-official-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(137, 226, 137, 0.08);
  border: 1px solid rgba(137, 226, 137, 0.28);
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-official-pill:hover {
  background: rgba(137, 226, 137, 0.18);
  border-color: var(--accent-green);
  color: #ffffff;
  transform: translateY(-1px);
}

.official-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.apps-launcher-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.apps-launcher-btn:hover {
  color: #fff;
  border-color: var(--accent-green);
}

.apps-popover {
  position: absolute;
  top: 48px;
  right: 0;
  width: 280px;
  background: #141814;
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.apps-popover.active {
  display: flex;
}

.popover-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
}

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

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.app-item:hover {
  border-color: var(--border-stone);
  transform: translateY(-2px);
}

.app-item img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.app-item span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.app-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 12px;
}

.app-icon-badge.purple {
  color: #c084fc;
}

.nav-progress-bar {
  width: 100%;
  height: 2px;
  background: transparent;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
  transition: width 0.1s ease-out;
}

.home-hero {
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 680px;
  margin: 0 auto;
}

.hero-title-box {
  display: inline-block;
  padding: 8px 22px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-title-box .hero-title {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: #f4f4f5;
}

.hero-subtitle {
  margin: 0 auto 22px;
  max-width: 620px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-subtitle a {
  color: var(--accent-green);
  text-decoration: underline;
  cursor: pointer;
}

.hero-subtitle-tag {
  font-size: 11.5px;
  color: var(--text-faint);
  display: inline-block;
  margin-top: 4px;
}

.hero-search-box {
  position: relative;
  max-width: 540px;
  margin: 0 auto 24px;
}

.hero-search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  font-size: 15px;
  pointer-events: none;
}

.hero-search-box input {
  width: 100%;
  height: 50px;
  padding: 0 45px 0 48px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-stone);
  border-radius: 30px;
  color: #ffffff;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.hero-search-box input:focus {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(137, 226, 137, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #d4d4d8;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #111511;
  border: 1.5px solid var(--border-stone);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow: hidden;
  display: none;
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
}

.search-suggestions.show {
  display: block;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-stone);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-cream);
  transition: background 0.15s ease;
}

.search-suggestion-item:hover {
  background: var(--bg-surface-elevated);
}

.search-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 13px;
}

.search-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.search-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.search-item-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--accent-green);
}

.hero-quick-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.quick-pill:hover, .quick-pill.active {
  color: #fff;
  border-color: var(--accent-green);
}

.kivi-collage-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  padding: 30px 24px;
  margin-top: 0;
  border-top: none;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-scenery-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-scenery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 1;
  filter: contrast(1.1) brightness(1.05);
  user-select: none;
  pointer-events: none;
  transform: none !important;
  z-index: 1;
}

#pixelReveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-scenery-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 14, 10, 0.4) 0%, transparent 15%, transparent 85%, #0b0e0a 100%);
  pointer-events: none;
  z-index: 3;
}

.collage-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1160px;
  min-height: 620px;
  height: 640px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-center {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  pointer-events: auto;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  color: var(--text-cream-dim);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.collage-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-cream);
  margin-bottom: 14px;
}

.serif-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-gold);
}

.collage-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.enter-btn-wrapper {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 44px;
  background: #fbf9f4;
  color: #0b0e0a;
  font-size: 15.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(137, 226, 137, 0.15);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  letter-spacing: 0.3px;
  user-select: none;
  cursor: pointer;
}

.btn-enter:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 35px rgba(137, 226, 137, 0.35);
}

.btn-enter:active {
  transform: translateY(0) scale(0.98);
}

.repel-char {
  display: inline-block;
  will-change: transform;
  pointer-events: none;
  transform-origin: center center;
  transition: color 0.2s ease;
}

.scroll-hint-wrapper {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.collage-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.2s ease;
  letter-spacing: -0.1px;
}

.collage-scroll-hint i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.collage-scroll-hint:hover {
  opacity: 1;
  color: var(--accent-gold);
  transform: translateY(2px);
}

.collage-scroll-hint:hover i {
  transform: translateY(2px);
}

.collage-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.mini-card {
  position: absolute;
  border-radius: 12px;
  padding: 13px 15px;
  width: 235px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--base-rot, 0deg));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
  cursor: default;
}

.mini-card.card-light {
  background: #fdfdfc;
  color: #161915;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.mini-card.card-light .mini-app-badge {
  font-weight: 700;
  color: #3f473e;
  font-size: 11px;
}

.mini-card.card-light .mini-sub-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  background: #edf2eb;
  padding: 2px 5px;
  border-radius: 4px;
  color: #273125;
}

.mini-card.card-light .module-card-headline {
  font-size: 12.5px;
  font-weight: 700;
  color: #141713;
  margin-bottom: 3px;
  line-height: 1.35;
}

.mini-card.card-light .module-card-topics {
  font-size: 11px;
  color: #586356;
  line-height: 1.35;
  margin-bottom: 8px;
}

.mini-card.card-light .module-card-meta {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-card.card-light .module-pill {
  color: #15803d;
  background: #e8f5e9;
}

.mini-card.card-light .module-action {
  color: #78716c;
}

.mini-card.card-light:hover {
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 6px)) rotate(var(--base-rot, 0deg)) scale(1.03) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 255, 255, 0.2);
  z-index: 25;
}

.mini-card.card-dark {
  background: #141713;
  color: #f6f4ee;
  border: 1px solid #283327;
}

.mini-card.card-dark .mini-app-badge {
  font-weight: 700;
  color: var(--accent-green);
  font-size: 11px;
}

.mini-card.card-dark .mini-sub-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  background: #1e281d;
  padding: 2px 5px;
  border-radius: 4px;
  color: #89e289;
  border: 1px solid rgba(137, 226, 137, 0.2);
}

.mini-card.card-dark .module-card-headline {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.35;
}

.mini-card.card-dark .module-card-topics {
  font-size: 11px;
  color: #9da69a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.mini-card.card-dark .module-card-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-card.card-dark .module-pill {
  color: #89e289;
  background: rgba(137, 226, 137, 0.1);
}

.mini-card.card-dark .module-action {
  color: var(--accent-gold);
}

.mini-card.card-dark:hover {
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 6px)) rotate(var(--base-rot, 0deg)) scale(1.03) !important;
  border-color: var(--accent-green);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(137, 226, 137, 0.18);
  z-index: 25;
}

.mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11.5px;
}

.mini-app-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-card-body {
  font-size: 12px;
  line-height: 1.4;
}

.module-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.module-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.module-action {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-top-left       { top: 15px; left: 20px; width: 235px; --base-rot: -3.5deg; }
.card-top-mid-left   { top: 8px; left: 295px; width: 230px; --base-rot: 1.5deg; }
.card-top-mid-right  { top: 8px; right: 295px; width: 230px; --base-rot: -1.5deg; }
.card-top-right      { top: 15px; right: 20px; width: 235px; --base-rot: 3.5deg; }

.card-mid-left       { top: 230px; left: 0px; width: 240px; --base-rot: -2deg; }
.card-mid-right      { top: 230px; right: 0px; width: 240px; --base-rot: 2deg; }

.card-bot-left       { bottom: 15px; left: 70px; width: 245px; --base-rot: 2.5deg; }
.card-bot-right      { bottom: 15px; right: 70px; width: 245px; --base-rot: -2.5deg; }

@media (max-width: 1160px) {
  .kivi-collage-hero {
    min-height: auto;
    padding: 60px 20px 80px;
  }
  .collage-stage {
    min-height: auto;
    height: auto;
    flex-direction: column;
  }
  .collage-cloud {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 36px;
    width: 100%;
    max-width: 900px;
  }
  .mini-card {
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }
}

.story-scroll-section {
  padding: 80px 24px 110px;
  border-top: 1px solid var(--border-stone);
  max-width: 1240px;
  margin: 0 auto;
  scroll-margin-top: 70px;
}

.tour-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 52px;
}

.tour-header-center .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-green);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  padding: 4px 14px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.serif-section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-cream);
  margin-bottom: 12px;
}

.section-lead-muted {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.asymmetric-slideshow-container {
  display: flex;
  align-items: stretch;
  gap: 32px;
  position: relative;
  margin-top: 20px;
}

.asymmetric-selector-col {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.asymmetric-box-card {
  position: relative;
  background: #141814;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 18px 20px 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  overflow: hidden;
}

.asymmetric-box-card:hover {
  border-color: rgba(139, 230, 81, 0.5);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.8);
}

.asymmetric-box-card.active {
  background: #ffffff;
  border: 3px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  transform: translate(-3px, -3px);
}

.asymmetric-box-card.active:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0px #000000;
}

.box-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.box-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-green);
  transition: width 0.05s linear;
}

.asymmetric-box-card.active .box-progress-track {
  background: #e2e8df;
}

.asymmetric-box-card.active .box-progress-fill {
  background: #16a34a;
}

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

.box-step-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #8c988a;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.asymmetric-box-card.active .box-step-badge {
  background: #8be651;
  color: #000000;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
}

.box-tag-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #a0ada0;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
}

.asymmetric-box-card.active .box-tag-pill {
  color: #000000;
  background: #f4f4f0;
  border: 1px solid #000000;
}

.box-card-title {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  color: #e5ede2;
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}

.asymmetric-box-card.active .box-card-title {
  color: #000000;
  font-weight: 800;
}

.box-card-desc {
  font-size: 12.5px;
  color: #8f9b8d;
  line-height: 1.45;
  margin: 0;
}

.asymmetric-box-card.active .box-card-desc {
  color: #2e382d;
  font-weight: 500;
}

.asymmetric-stage-col {
  flex: 1;
  min-width: 0;
  display: flex;
}

.story-mac-window {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #000000;
  border-radius: 12px;
  border: 3px solid #000000;
  box-shadow: 8px 8px 0px #000000;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-mac-window:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0px #000000;
}

.mac-win-header {
  background: #fffdf5;
  border-bottom: 3px solid #000000;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mac-win-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #000000;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mac-win-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mac-win-title i {
  color: #000000;
}

.slideshow-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hud-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  background: #000000;
  color: #8be651;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.hud-btn {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  color: #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.hud-btn:hover {
  background: #facc15;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.hud-nav-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-nav-btn {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  color: #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.hud-nav-btn:hover {
  background: #8be651;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.hud-nav-btn:active, .hud-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.mac-win-canvas {
  padding: 28px 30px;
  min-height: 310px;
  background: #ffffff;
  color: #000000;
  flex: 1;
}

.canvas-panel {
  display: none;
  animation: panelSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.canvas-panel.active {
  display: block;
}

@keyframes panelSlide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.mac-subject-header {
  margin-bottom: 18px;
}

.badge-accent {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #000000;
  background: #facc15;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.mac-subject-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.5px;
}

.formula-block {
  background: #fffbe6;
  border: 2.5px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #000000;
  margin-bottom: 16px;
  font-weight: 700;
}

.clean-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #111111;
  font-weight: 600;
  margin-bottom: 20px;
}

.mac-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid #000000;
  padding-top: 14px;
  font-size: 12.5px;
}

.verified-tag {
  color: #000000;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 3px 8px;
  border-radius: 4px;
}

.read-time {
  color: #000000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
}

.syl-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  transition: transform 0.15s ease;
}

.syl-row-item:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.syl-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #000000;
  background: #facc15;
  border: 1.5px solid #000000;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
}

.syl-name {
  font-weight: 700;
  color: #000000;
}

.syl-credits {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #000000;
  background: #f4f4f0;
  border: 1px solid #000000;
  padding: 2px 6px;
  border-radius: 4px;
}

.exam-chat-bubble {
  background: #ffffff;
  border: 2.5px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  color: #000000;
}

.exam-q-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #000000;
  background: #fed7aa;
  border: 1.5px solid #000000;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.exam-chat-bubble p {
  color: #000000;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.45;
}

.exam-answer-box {
  background: #f0fdf4;
  border: 2.5px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #000000;
}

.answer-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #000000;
  background: #8be651;
  border: 1.5px solid #000000;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.exam-answer-box p {
  color: #111111;
  font-weight: 600;
}

.exam-answer-box b {
  color: #15803d !important;
  font-weight: 800;
}

.mock-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2.5px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #000000;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.mock-search-input i {
  color: #000000;
}

.mock-search-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: transform 0.15s ease;
}

.mock-search-hit:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.mock-search-hit i {
  color: #000000;
  background: #facc15;
  border: 1.5px solid #000000;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
}

.mock-search-hit div div:first-child {
  font-weight: 800 !important;
  color: #000000 !important;
  font-size: 13.5px;
}

.mock-search-hit div div:last-child {
  font-size: 11.5px !important;
  color: #444444 !important;
  font-family: var(--font-mono);
  font-weight: 600;
}

.mac-win-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  background: #fffdf5;
  border-top: 3px solid #000000;
}

.slideshow-status-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #556253;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slide-dots-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #ffffff;
  border: 2px solid #000000;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-dot:hover {
  background: #facc15;
}

.step-dot.active {
  width: 32px;
  background: #8be651;
  box-shadow: 2px 2px 0px #000000;
}

@media (max-width: 960px) {
  .asymmetric-slideshow-container {
    flex-direction: column-reverse;
  }
  .asymmetric-selector-col {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
  }
}

.catalog-section {
  padding: 70px 24px 90px;
  border-top: 1px solid var(--border-stone);
  max-width: 1200px;
  margin: 0 auto;
}

.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.kivi-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  padding: 4px;
  border-radius: 24px;
  gap: 4px;
}

.kivi-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.kivi-tab:hover {
  color: var(--text-cream);
}

.kivi-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-green);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.year-group {
  display: none;
}

.year-group.active {
  display: block;
}

.kivi-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.kivi-subject-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kivi-subject-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
  background: var(--bg-surface-hover);
}

.kivi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kivi-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 16px;
}

.kivi-code-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-stone);
}

.kivi-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 8px;
}

.kivi-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.kivi-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-stone);
  padding-top: 14px;
}

.kivi-module-count {
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kivi-arrow {
  font-size: 13px;
  color: var(--accent-green);
  transition: transform 0.2s;
}

.kivi-subject-card:hover .kivi-arrow {
  transform: translateX(4px);
}

.kivi-empty-panel {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-md);
}

.empty-icon {
  font-size: 32px;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: inline-block;
}

.kivi-empty-panel h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-cream);
  margin-bottom: 8px;
}

.kivi-empty-panel p {
  color: var(--text-muted);
  font-size: 14px;
}

.syllabus-section {
  padding: 70px 24px 90px;
  border-top: 1px solid var(--border-stone);
  max-width: 1200px;
  margin: 0 auto;
}

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

.syllabus-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.syllabus-card:hover {
  border-color: var(--border-stone-hover);
  transform: translateY(-2px);
}

.syl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.syl-year-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-green);
}

.syl-code {
  font-size: 12px;
  color: var(--text-faint);
  background: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: 4px;
}

.syl-card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-cream);
}

.syl-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.syl-topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.topic-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-stone);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-cream-dim);
}

.papers-section {
  padding: 70px 24px 90px;
  border-top: 1px solid var(--border-stone);
  max-width: 1200px;
  margin: 0 auto;
}

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

.paper-blueprint-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.blueprint-card {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 12px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0px #000000;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.blueprint-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000000;
}

.blueprint-card:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px #000000;
}

.blueprint-card.highlight {
  background: #fffdf5;
  border-color: #000000;
  box-shadow: 6px 6px 0px #000000;
}

.blueprint-card.highlight:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000000;
}

.blueprint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.blueprint-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #052e16;
  background: #86efac;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.6px;
}

.blueprint-tag.gold {
  color: #451a03;
  background: #fde047;
  border-color: #000000;
  box-shadow: 2px 2px 0px #000000;
}

.blueprint-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 3px 8px;
  border-radius: 6px;
}

.blueprint-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.blueprint-desc {
  font-size: 13.5px;
  color: #27272a;
  line-height: 1.5;
  margin-bottom: 18px;
  font-weight: 500;
}

.blueprint-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blueprint-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 2px solid #000000;
  border-radius: 8px;
  box-shadow: 3px 3px 0px #000000;
  transition: transform 0.15s ease;
}

.blueprint-list li:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.q-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #000000;
  border: 1.5px solid #000000;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.q-text {
  font-size: 13px;
  color: #18181b;
  line-height: 1.45;
  font-weight: 500;
}

.q-text strong {
  color: #000000;
  font-weight: 700;
}

.blueprint-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef08a;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  border-radius: 8px;
  font-size: 12.5px;
  color: #422006;
  line-height: 1.45;
  font-weight: 600;
}

.blueprint-callout i {
  font-size: 14px;
  color: #000000;
  margin-top: 2px;
}

.paper-subjects-note {
  padding: 18px 22px;
  background: #ffffff;
  border: 2.5px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.6;
}

.note-label {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #000000;
  background: #86efac;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.note-subjects {
  color: #18181b;
  font-weight: 600;
}

@media (max-width: 820px) {
  .paper-blueprint-container {
    grid-template-columns: 1fr;
  }
}

.faq-section {
  padding: 70px 24px 90px;
  border-top: 1px solid var(--border-stone);
  max-width: 1200px;
  margin: 0 auto;
}

.kivi-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-stone-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-cream);
}

.faq-chevron {
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-green);
}

.faq-answer {
  display: none;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-stone);
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

.kivi-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 8, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.kivi-modal-backdrop.active {
  display: flex;
  animation: modalFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.kivi-modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.kivi-modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-stone);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-badge-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-block;
}

.modal-title-serif {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-cream);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

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

.kivi-modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  flex: 1;
}

.modal-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-unit-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kivi-unit-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kivi-unit-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-cream);
}

.kivi-unit-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-green);
  background: #1a241a;
  padding: 2px 6px;
  border-radius: 4px;
}

.kivi-modal-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--border-stone);
  display: flex;
  justify-content: flex-end;
}

.btn-modal-close {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-stone);
  color: var(--text-cream);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-modal-close:hover {
  border-color: var(--text-cream);
}

.kivi-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(139, 230, 81, 0.22);
  background: #090d0a;
  padding: 68px 24px 64px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

.footer-scenery-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.footer-scenery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.65;
  filter: contrast(1.1) brightness(0.92);
  user-select: none;
  pointer-events: none;
  transform: none !important;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.kivi-footer:hover .footer-scenery-img {
  opacity: 0.9;
  filter: contrast(1.15) brightness(1.05);
}

.footer-scenery-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #0b0e0a 0%,
    rgba(11, 14, 10, 0.25) 25%,
    rgba(11, 14, 10, 0.4) 70%,
    rgba(11, 14, 10, 0.75) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.kivi-footer:hover {
  border-top-color: rgba(137, 226, 137, 0.55);
  box-shadow: 0 -20px 60px rgba(137, 226, 137, 0.12), 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.kivi-footer-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #f7f5ed;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.kivi-footer:hover .footer-wordmark {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(137, 226, 137, 0.35);
}

.footer-tagline {
  font-size: 13.5px;
  color: #9ea898;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.kivi-footer:hover .footer-tagline {
  color: #ccd7c6;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: #cbd4c5;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 4px 0;
}

.footer-nav a:hover {
  color: var(--accent-green);
  transform: translateY(-1px);
}

.kivi-footer:hover .footer-nav a {
  color: #e5ede0;
}

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

.footer-right p {
  font-size: 13px;
  color: #9ea898;
  margin: 0;
  transition: color 0.3s ease;
}

.kivi-footer:hover .footer-right p {
  color: #ccd7c6;
}

.accent-author {
  color: var(--accent-gold);
  font-weight: 600;
}

@media (max-width: 860px) {
  .navbar-links {
    display: none;
  }
  .syllabus-grid {
    grid-template-columns: 1fr;
  }
  .section-head-split {
    flex-direction: column;
    align-items: flex-start;
  }
}
