@import url("https://fonts.googleapis.com/css2?family=Anek+Latin:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --black: #0d0d0d;
  --black-2: #151515;
  --black-3: #1e1e1e;
  --steel: #2b2b2b;
  --white: #ffffff;
  --text: #eaeaea;
  --muted: #bfbfbf;
  --red: #ff1a1a;
  --flame: #ff5a1f;
  --orange: #ff7a00;
  --sun: #ffa500;
  --gold: #ffd400;
  --cyan: #32e6ff;
  --green: #38ff9c;
  --panel: rgba(21, 21, 21, 0.72);
  --panel-strong: rgba(30, 30, 30, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --line-hot: rgba(255, 90, 31, 0.45);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.56);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --max: 1180px;
  --nav-max: 1440px;
  --display: "Rajdhani", "Anek Latin", sans-serif;
  --body: "Anek Latin", "Segoe UI", sans-serif;
  --primary: var(--flame);
  --primary-2: var(--orange);
  --secondary: var(--cyan);
  --accent: var(--gold);
  --success: var(--green);
  --danger: var(--red);
  --warning: var(--sun);
  --bg: var(--black);
  --bg-soft: var(--black-2);
  --surface: var(--panel);
  --surface-strong: var(--panel-strong);
  --focus: 0 0 0 4px rgba(255, 212, 0, 0.18);
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.22);
  --shadow-lift: 0 28px 90px rgba(0, 0, 0, 0.38);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  max-width: 100%;
  background: var(--black);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 26, 26, 0.24), transparent 29rem),
    radial-gradient(circle at 88% 8%, rgba(255, 212, 0, 0.14), transparent 24rem),
    radial-gradient(circle at 72% 80%, rgba(50, 230, 255, 0.08), transparent 25rem),
    linear-gradient(135deg, #090909 0%, #101010 42%, #050505 100%);
  letter-spacing: 0;
  accent-color: var(--primary);
}

body[data-theme="light"] {
  --black: #f7f9fc;
  --black-2: #eef3f8;
  --black-3: #ffffff;
  --steel: #d8e0ea;
  --white: #101928;
  --text: #243044;
  --muted: #62708a;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(23, 36, 56, 0.13);
  --line-hot: rgba(255, 90, 31, 0.34);
  --shadow: 0 24px 90px rgba(48, 58, 80, 0.16);
  --shadow-soft: 0 18px 55px rgba(49, 64, 92, 0.12);
  --shadow-lift: 0 28px 90px rgba(41, 56, 80, 0.18);
  --bg: #f7f9fc;
  --bg-soft: #eef3f8;
  --surface: var(--panel);
  --surface-strong: var(--panel-strong);
  color-scheme: light;
  background:
    linear-gradient(120deg, rgba(255, 122, 0, 0.1), transparent 28rem),
    linear-gradient(245deg, rgba(50, 230, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 48%, #eef4f9 100%);
}

body[data-accent="cyan"] {
  --primary: #32e6ff;
  --primary-2: #2bd0c9;
  --accent: #9ff6ff;
  --orange: #32e6ff;
  --gold: #9ff6ff;
}

body[data-accent="green"] {
  --primary: #38ff9c;
  --primary-2: #b8ff6a;
  --accent: #d8ff7a;
  --orange: #38ff9c;
  --gold: #d8ff7a;
}

body[data-accent="rose"] {
  --primary: #ff4f88;
  --primary-2: #ff7a00;
  --accent: #ffd166;
  --orange: #ff4f88;
  --gold: #ffd166;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  animation: gridDrift 26s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
}

body[data-theme="light"]::before {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(21, 32, 52, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 52, 0.055) 1px, transparent 1px);
}

body[data-theme="light"]::after {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #130600;
  background: var(--gold);
}

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--gold));
  box-shadow: 0 0 24px rgba(255, 122, 0, 0.8);
}

#mouseGlow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 360px;
  height: 360px;
  pointer-events: none;
  opacity: 0.62;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.2), rgba(255, 212, 0, 0.08) 33%, transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  filter: blur(4px);
}

#particleField {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  padding: 10px 14px;
  color: #160700;
  background: var(--gold);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  background: rgba(9, 9, 9, 0.82);
  border-bottom-color: rgba(255, 212, 0, 0.14);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

body[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(23, 36, 56, 0.12);
}

body[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 58px rgba(44, 59, 84, 0.13);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--nav-max));
  min-height: 76px;
  margin: 0 auto;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 18px rgba(255, 90, 31, 0.55));
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-command,
.theme-toggle,
.accent-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-command:hover,
.nav-command:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.accent-toggle:hover,
.accent-toggle:focus-visible {
  color: #160700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: rgba(255, 212, 0, 0.72);
  transform: translateY(-2px);
}

.nav-links a::after {
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.global-search {
  position: relative;
  width: min(18vw, 220px);
}

.global-search input {
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.global-search input::placeholder {
  color: color-mix(in srgb, var(--muted), transparent 8%);
}

.global-search input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 122, 0, 0.68);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(90vw, 380px);
  max-height: 440px;
  padding: 8px;
  overflow-y: auto;
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 212, 0, 0.45) transparent;
}

.search-results.is-open {
  display: grid;
  gap: 6px;
}

.search-result {
  display: grid;
  gap: 3px;
  padding: 10px;
  color: var(--text);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(255, 122, 0, 0.14);
  transform: translateY(-1px);
}

.search-result span {
  font-size: 0.78rem;
  color: var(--gold);
}

.query-suggestions {
  display: grid;
  gap: 10px;
  padding: 10px;
  color: var(--text);
}

.query-suggestions strong {
  color: var(--white);
  font-family: var(--display);
}

.query-suggestions div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  min-height: 44px;
  padding: 7px 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.suggestion-chip:hover,
.suggestion-chip:focus-visible {
  color: #160700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-2px) rotate(90deg);
}

.cta-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  color: #160700;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--red));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(255, 90, 31, 0.28);
  transition: transform 180ms ease, filter 180ms ease;
}

.cta-mini:hover,
.cta-mini:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.container {
  width: min(100% - 32px, var(--max));
  max-width: var(--max);
  margin: 0 auto;
}

.main {
  min-height: 60vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

body.is-leaving .main {
  opacity: 0.01;
  transform: translateY(8px) scale(0.995);
  filter: blur(4px);
}

.container > *,
.content-layout > *,
.content-main > *,
.grid > *,
.resource-list > *,
.faq-list > * {
  min-width: 0;
  max-width: 100%;
}

.section {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0;
}

.section.tight {
  padding: clamp(36px, 6vw, 72px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(24px, 5vw, 44px);
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold));
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 10vw, 8.6rem);
  text-transform: uppercase;
}

h2 {
  max-width: 820px;
  font-size: clamp(2.25rem, 5vw, 5.4rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
li,
td,
th,
a,
small,
strong {
  overflow-wrap: anywhere;
}

.lead {
  max-width: 720px;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.muted {
  color: var(--muted);
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--white), var(--gold), var(--flame));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(700px, calc(100svh - 76px));
  padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 5vw, 56px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: auto -8vw 10% auto;
  width: 56vw;
  height: 56vw;
  min-width: 430px;
  min-height: 430px;
  content: "";
  background:
    conic-gradient(from 220deg, rgba(255, 26, 26, 0.42), rgba(255, 212, 0, 0.1), transparent 36%, rgba(50, 230, 255, 0.12), rgba(255, 90, 31, 0.34)),
    radial-gradient(circle, transparent 52%, rgba(255, 255, 255, 0.08) 53%, transparent 54%);
  border-radius: 50%;
  filter: blur(2px);
  animation: slowSpin 24s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-title {
  font-size: clamp(3.2rem, 7.4vw, 6.35rem);
  text-wrap: balance;
}

.hero-title .flare {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px rgba(255, 90, 31, 0.42);
}

.hero-title .flare::after {
  position: absolute;
  right: 0;
  bottom: 0.08em;
  left: 0;
  height: 0.12em;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: skewX(-18deg);
  z-index: -1;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.ghost-button,
.text-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
  white-space: normal;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button,
.ghost-button,
.cta-mini,
.assist-button,
.nav-command,
.theme-toggle,
.accent-toggle,
.chip-button,
.suggestion-chip,
.float-btn,
.student-dock-toggle {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 520ms ease-out forwards;
}

.button {
  overflow: hidden;
  color: #150600;
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--red));
  border: 0;
  box-shadow: 0 14px 36px rgba(255, 90, 31, 0.32);
}

.button::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-130%);
  transition: transform 620ms ease;
}

.button > *,
.button {
  isolation: isolate;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255, 90, 31, 0.42);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(130%);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 212, 0, 0.55);
  transform: translateY(-3px);
}

.text-button {
  min-height: 40px;
  padding: 8px 0;
  color: var(--gold);
  border-radius: 0;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--white);
  transform: translateX(4px);
}

.ghost-button.compact {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 0.84rem;
}

.compact-button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 0.84rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.page-meta span,
.page-meta button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page-meta button:hover,
.page-meta button:focus-visible {
  color: #160700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: rgba(255, 212, 0, 0.72);
}

.stat {
  position: relative;
  padding: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
}

.stat::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.65;
  background: linear-gradient(120deg, rgba(255, 26, 26, 0.16), transparent 55%, rgba(255, 212, 0, 0.08));
}

.stat strong,
.stat span {
  position: relative;
  z-index: 1;
  display: block;
}

.stat strong {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.rocket-stage {
  position: relative;
  min-height: 500px;
  perspective: 1000px;
}

.rocket-card {
  position: absolute;
  inset: 30px 0 auto auto;
  width: min(100%, 430px);
  min-height: 455px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(18, 18, 18, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: rotateX(8deg) rotateY(-10deg);
}

.rocket-card::before {
  position: absolute;
  inset: -40% -30% auto auto;
  width: 360px;
  height: 360px;
  content: "";
  background: radial-gradient(circle, rgba(255, 90, 31, 0.34), transparent 65%);
  animation: pulseGlow 3.4s ease-in-out infinite;
}

.mission-lines {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.rocket {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 104px;
  height: 252px;
  transform: translate(-50%, -50%) rotate(-10deg);
  animation: rocketFloat 4.8s ease-in-out infinite;
}

.rocket-body {
  position: absolute;
  inset: 20px 22px 40px;
  background: linear-gradient(90deg, #f6f6f6, #a9a9a9 47%, #ffffff 54%, #656565);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 48% 48% 28% 28%;
  box-shadow: inset -12px 0 16px rgba(0, 0, 0, 0.32), 0 0 45px rgba(255, 255, 255, 0.14);
}

.rocket-body::before {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 32px;
  height: 32px;
  content: "";
  background: radial-gradient(circle at 38% 34%, #fff, var(--cyan) 42%, #0b5c7c 68%);
  border: 3px solid #1b1b1b;
  border-radius: 999px;
  transform: translateX(-50%);
}

.rocket-body::after {
  position: absolute;
  right: 14px;
  bottom: 34px;
  left: 14px;
  height: 15px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--orange), var(--gold));
  border-radius: 999px;
}

.rocket-nose {
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  height: 70px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  clip-path: polygon(50% 0%, 94% 100%, 6% 100%);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 20px rgba(255, 90, 31, 0.45));
}

.rocket-fin {
  position: absolute;
  bottom: 48px;
  width: 34px;
  height: 62px;
  background: linear-gradient(135deg, var(--red), #6f0909);
  clip-path: polygon(50% 0, 100% 100%, 0 75%);
}

.rocket-fin.left {
  left: 6px;
  transform: rotate(-18deg);
}

.rocket-fin.right {
  right: 6px;
  transform: scaleX(-1) rotate(-18deg);
}

.rocket-fire {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 58px;
  height: 92px;
  background: radial-gradient(circle at 50% 20%, #fff 0 12%, var(--gold) 19%, var(--orange) 43%, var(--red) 72%, transparent 74%);
  border-radius: 50% 50% 64% 64%;
  transform: translateX(-50%);
  filter: blur(0.4px) drop-shadow(0 28px 34px rgba(255, 90, 31, 0.76));
  transform-origin: 50% 10%;
  animation: flame 0.24s ease-in-out infinite alternate;
}

.orbit-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  animation: chipFloat 6s ease-in-out infinite;
}

.orbit-chip:nth-of-type(1) {
  top: 22px;
  left: 12px;
}

.orbit-chip:nth-of-type(2) {
  top: 130px;
  right: 2px;
  animation-delay: -1.2s;
}

.orbit-chip:nth-of-type(3) {
  right: 40px;
  bottom: 118px;
  animation-delay: -2s;
}

.orbit-chip:nth-of-type(4) {
  left: 0;
  bottom: 86px;
  animation-delay: -3.1s;
}

.countdown-strip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: var(--radius-md);
}

.countdown-strip strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.25rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timebox {
  display: grid;
  min-width: 72px;
  padding: 9px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.timebox b {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
}

.timebox span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(255, 26, 26, 0.16), rgba(255, 122, 0, 0.06), rgba(255, 212, 0, 0.1));
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  padding: 13px 24px;
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, box-shadow 190ms ease;
}

.card::before {
  position: absolute;
  top: 0;
  left: 16px;
  width: 84px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: skewX(-20deg);
}

[data-spotlight]::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--spotlight-x, 50%) var(--spotlight-y, 0%), rgba(255, 212, 0, 0.18), rgba(50, 230, 255, 0.07) 36%, transparent 70%);
  transition: opacity 180ms ease;
}

[data-spotlight] {
  position: relative;
  overflow: hidden;
}

[data-spotlight] > * {
  position: relative;
  z-index: 1;
}

[data-spotlight]:hover::after,
[data-spotlight]:focus-within::after {
  opacity: 1;
}

.card:hover,
.card:focus-within {
  border-color: rgba(255, 122, 0, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 90, 31, 0.11), rgba(255, 255, 255, 0.035)),
    var(--panel-strong);
  box-shadow: 0 24px 80px rgba(255, 90, 31, 0.08);
  transform: translateY(-5px);
}

.question-card {
  align-content: start;
  min-height: 100%;
}

.question-card h3 {
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  line-height: 1.14;
}

.question-card p {
  line-height: 1.58;
}

.question-card .button-row {
  margin-top: auto;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.path-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 122, 0, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 212, 0, 0.18);
  border-radius: var(--radius-md);
}

.path-card::before {
  position: absolute;
  top: 16px;
  right: -18px;
  width: 34px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--orange), transparent);
}

.path-card:last-child::before {
  display: none;
}

.path-card h3,
.compact-card h3 {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.12;
}

.compact-card {
  gap: 10px;
  padding: 18px;
}

.next-step-card strong {
  color: var(--white);
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.difficulty,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow-wrap: anywhere;
}

.card,
.row-card,
.answer-box,
.summary-box,
.tool-panel {
  overflow-wrap: anywhere;
}

.difficulty.beginner {
  color: var(--green);
}

.difficulty.intermediate {
  color: var(--gold);
}

.difficulty.advanced {
  color: #ff8a8a;
}

.summary-box,
.answer-box {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 26, 26, 0.18), rgba(255, 122, 0, 0.06) 48%, rgba(255, 212, 0, 0.13)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: var(--radius-md);
}

.summary-box::after,
.answer-box::after,
.tool-panel::after,
.calc-panel::after,
.result-card::after,
.cta-band::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 48%, transparent 56%),
    linear-gradient(90deg, rgba(255, 212, 0, 0.08), transparent 24%, rgba(50, 230, 255, 0.06));
  opacity: 0.34;
  transform: translateX(-16%);
}

.summary-box:hover::after,
.answer-box:hover::after,
.tool-panel:hover::after,
.calc-panel:hover::after,
.result-card:hover::after,
.cta-band:hover::before {
  animation: surfaceShimmer 1400ms ease;
}

.summary-box h2,
.answer-box h2,
.tool-panel h2,
.trust-panel h2,
.cta-band h2 {
  max-width: 100%;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.02;
  overflow-wrap: break-word;
}

.summary-box > *,
.answer-box > *,
.tool-panel > *,
.trust-panel > *,
.cta-band > * {
  min-width: 0;
}

.summary-box ul,
.answer-box ul,
.content-list,
.footer-list,
.check-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.summary-box li,
.answer-box li,
.content-list li,
.check-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.55;
}

.summary-box li::before,
.answer-box li::before,
.content-list li::before,
.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(255, 212, 0, 0.56);
}

.page-hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(34px, 6vw, 66px);
  overflow: hidden;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 90, 31, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(255, 26, 26, 0.12), transparent 46%);
  pointer-events: none;
}

.page-hero::after {
  position: absolute;
  right: -8vw;
  bottom: -40%;
  width: min(68vw, 860px);
  height: min(68vw, 860px);
  content: "";
  pointer-events: none;
  background:
    conic-gradient(from 180deg, rgba(255, 90, 31, 0.22), rgba(255, 212, 0, 0.08), rgba(50, 230, 255, 0.16), transparent 62%, rgba(255, 90, 31, 0.18)),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 20px);
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.46;
  animation: slowSpin 34s linear infinite reverse;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}

.quick-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-nav-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.quick-nav-chips a:hover,
.quick-nav-chips a:focus-visible {
  color: var(--white);
  background: rgba(255, 122, 0, 0.14);
  border-color: rgba(255, 212, 0, 0.42);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 38px;
  color: var(--gold);
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(18px, 4vw, 36px);
  align-items: start;
}

.content-main {
  display: grid;
  gap: clamp(22px, 4vw, 38px);
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

.toc {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.toc a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: var(--radius-sm);
}

.toc a:hover,
.toc a:focus-visible,
.toc a.is-active {
  color: var(--white);
  background: rgba(255, 122, 0, 0.12);
}

.toc a.is-active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.96rem;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.24);
}

td {
  color: var(--text);
  line-height: 1.5;
}

tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 18px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

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

.faq-item summary::after {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  content: "+";
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 18px 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font-size: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(255, 122, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

input[type="range"] {
  accent-color: var(--orange);
}

.select {
  width: auto;
  min-width: 170px;
}

.faq-page-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.pyq-list,
.resource-list,
.blog-list {
  display: grid;
  gap: 12px;
}

.row-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.row-card:hover {
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.08);
}

.row-card p {
  margin: 6px 0 0;
}

.meta-row,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.row-card .ghost-button {
  white-space: nowrap;
}

.source-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.trust-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(135deg, rgba(50, 230, 255, 0.08), rgba(255, 122, 0, 0.08)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(50, 230, 255, 0.18);
  border-radius: var(--radius-lg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-grid article {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.trust-grid strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.12rem;
}

.recent-card[hidden] {
  display: none;
}

.research-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.research-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255, 122, 0, 0.09);
  border: 1px solid rgba(255, 212, 0, 0.18);
  border-radius: var(--radius-sm);
}

.trend-cluster-grid {
  margin-top: 18px;
}

.search-hub-controls {
  align-items: stretch;
}

.search-hub-controls .input {
  flex: 1 1 320px;
}

.search-hub-results {
  min-height: 180px;
}

.search-card h3 {
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.16;
}

.search-card .meta-row {
  max-height: 74px;
  overflow: hidden;
}

.quick-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--text);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chip-button:hover,
.chip-button:focus-visible {
  color: var(--white);
  background: rgba(255, 122, 0, 0.14);
  border-color: rgba(255, 212, 0, 0.42);
  transform: translateY(-2px);
}

.decision-tree {
  margin-top: 16px;
}

.sheet-board {
  display: grid;
  gap: 16px;
}

.sheet-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.progress-shell {
  width: 100%;
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  border-radius: inherit;
  transition: width 260ms ease;
}

.topic-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.topic-card input {
  width: 32px;
  height: 32px;
  accent-color: var(--orange);
}

.topic-card.is-complete {
  border-color: rgba(56, 255, 156, 0.36);
  background: rgba(56, 255, 156, 0.07);
}

.a2z-bank-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.a2z-bank-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--white);
  font-weight: 900;
  white-space: nowrap;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: 999px;
}

.a2z-question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.a2z-blog-card {
  align-content: start;
  min-height: 100%;
}

.a2z-blog-card h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.18;
}

.a2z-blog-card p {
  line-height: 1.58;
}

.a2z-blog-card .button-row {
  margin-top: auto;
}

.a2z-bank-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.a2z-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.subject-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 90, 31, 0.18), transparent 24rem),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--size, 118px);
  min-width: var(--size, 118px);
  height: var(--size, 118px);
  padding: 12px;
  color: var(--white);
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(22, 22, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34), inset 0 0 30px rgba(255, 122, 0, 0.09);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.map-node:hover,
.map-node:focus-visible {
  border-color: rgba(255, 212, 0, 0.65);
  box-shadow: 0 24px 70px rgba(255, 90, 31, 0.18), inset 0 0 38px rgba(255, 212, 0, 0.12);
  transform: translate(-50%, -50%) scale(1.08);
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  width: min(280px, 80vw);
  padding: 12px;
  color: var(--text);
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid var(--line-hot);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.tool-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.advanced-tool {
  background:
    radial-gradient(circle at 0% 0%, rgba(50, 230, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 100% 20%, rgba(255, 212, 0, 0.12), transparent 22rem),
    rgba(255, 255, 255, 0.055);
}

.tool-output {
  display: grid;
  gap: 12px;
  min-height: 96px;
}

.calculator-page .page-hero {
  background:
    linear-gradient(135deg, rgba(255, 90, 31, 0.12), rgba(50, 230, 255, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.calc-panel,
.result-card,
.toc-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(50, 230, 255, 0.1), transparent 24rem),
    rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.calc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.calc-form,
.suite-fields {
  display: grid;
  gap: 16px;
}

.calc-form label,
.calc-fieldset label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.calc-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calc-fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.calc-fieldset legend {
  padding: 0 6px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-tabs button {
  min-height: 44px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mode-tabs button.is-active {
  color: #140700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: rgba(255, 212, 0, 0.8);
}

.result-card {
  position: sticky;
  top: 94px;
  min-height: 320px;
}

.calc-result-top {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
}

.calc-result-top.safe {
  border-left-color: var(--green);
}

.calc-result-top.target {
  border-left-color: var(--gold);
}

.calc-result-top.stretch {
  border-left-color: var(--red);
}

.calc-result-top h2 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.75rem);
  line-height: 1;
}

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

.metric-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.metric-card span,
.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-card strong {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.05;
}

.college-results {
  display: grid;
  gap: 10px;
}

.college-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
}

.card,
.row-card,
.topic-card,
.search-card,
.next-step-card,
.tool-panel,
.calc-panel,
.result-card,
.toc-card,
.metric-card,
.college-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.college-card.safe {
  border-left-color: var(--green);
}

.college-card.target {
  border-left-color: var(--gold);
}

.college-card.reach,
.college-card.stretch {
  border-left-color: var(--red);
}

.college-card h3 {
  margin: 6px 0;
}

.college-card p {
  margin: 0;
}

.trend-bars {
  display: grid;
  gap: 12px;
}

.trend-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.8fr) minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.trend-row div {
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.trend-row i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--gold), var(--green));
}

.calc-error {
  min-height: 22px;
  color: #ffb6a8;
  font-weight: 700;
}

.calculator-category {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.calculator-list-card .meta-row {
  margin-top: auto;
}

.mini-list {
  gap: 10px;
}

.mini-list .card {
  padding: 14px;
}

.mission-router {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 212, 0, 0.15), transparent 34%),
    radial-gradient(circle at 100% 30%, rgba(255, 26, 26, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.055);
}

.mission-router label {
  display: grid;
}

.mission-output {
  display: grid;
  gap: 16px;
}

.intent-router {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(50, 230, 255, 0.09), rgba(255, 212, 0, 0.08)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 212, 0, 0.2);
  border-radius: var(--radius-md);
}

.intent-router h2 {
  max-width: 100%;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  line-height: 1.04;
}

.intent-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.intent-controls label,
.intent-output {
  min-width: 0;
}

.intent-output {
  display: grid;
  gap: 12px;
}

.article-body {
  counter-reset: article-step;
}

.article-body .table-wrap a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--gold);
  font-weight: 800;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.clock-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 26, 26, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.countdown-personalizer {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 212, 0, 0.14), transparent 34%),
    radial-gradient(circle at 100% 30%, rgba(255, 26, 26, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.055);
}

.countdown-name-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.countdown-name-grid label {
  display: grid;
}

.countdown-feature {
  border-color: rgba(255, 212, 0, 0.28);
}

.mini-countdown .timebox {
  min-width: 56px;
  padding: 7px 6px;
}

.mini-countdown .timebox b {
  font-size: 1.08rem;
}

.card.is-current {
  border-color: rgba(255, 212, 0, 0.52);
  box-shadow: 0 20px 70px rgba(255, 122, 0, 0.12);
}

.timer-face {
  display: grid;
  place-items: center;
  min-height: 190px;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  background:
    radial-gradient(circle, rgba(255, 212, 0, 0.14), transparent 62%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 212, 0, 0.2);
  border-radius: var(--radius-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.testimonial-card {
  min-height: 220px;
  transform: rotate(var(--tilt, 0deg));
}

.testimonial-card:nth-child(2n) {
  --tilt: 1.4deg;
}

.testimonial-card:nth-child(3n) {
  --tilt: -1.2deg;
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline-year {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
}

.cta-band {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 26, 26, 0.2), rgba(255, 90, 31, 0.08) 38%, rgba(255, 212, 0, 0.14)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 122, 0, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.cta-band::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  content: "";
  background: radial-gradient(circle, rgba(255, 212, 0, 0.24), transparent 64%);
  pointer-events: none;
}

.cta-band-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.site-footer {
  position: relative;
  padding: 64px 0 30px;
  background: #070707;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top-color: rgba(23, 36, 56, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(auto-fit, minmax(132px, 1fr));
  gap: 24px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-col h3 {
  font-size: 1.3rem;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 38px;
  color: var(--muted);
  line-height: 1.35;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  margin-top: 38px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 850;
  display: grid;
  gap: 10px;
}

.float-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #160700;
  font-family: var(--display);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(255, 90, 31, 0.3);
}

.float-btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.student-dock {
  position: fixed;
  left: 16px;
  bottom: 84px;
  z-index: 860;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.student-dock-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  min-height: 44px;
  margin-bottom: 10px;
  color: #160700;
  font-family: var(--display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(255, 90, 31, 0.3);
  pointer-events: auto;
}

.student-dock-panel {
  display: none;
  gap: 14px;
  padding: 16px;
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  pointer-events: auto;
}

.student-dock.is-open .student-dock-panel {
  display: grid;
}

.dock-head,
.dock-stats,
.dock-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dock-head h2 {
  margin: 2px 0 0;
  font-size: 1.6rem;
}

.dock-stats span {
  flex: 1;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dock-stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.35rem;
}

.dock-empty-state strong {
  color: var(--text);
  font-family: var(--body);
  font-size: 0.94rem;
  line-height: 1.25;
}

.dock-links,
.dock-saved {
  display: grid;
  gap: 8px;
}

.phase4-page .content-main {
  min-width: 0;
}

.phase4-hero .lead {
  max-width: 860px;
}

.phase4-tool-shell,
.phase4-dashboard,
.print-sheet {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(12, 12, 12, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.phase4-tool-head,
.phase4-dashboard-top,
.print-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.phase4-tool-form,
.phase4-dashboard-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.phase4-tool-form label,
.phase4-dashboard-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.phase4-tool-form .button,
.phase4-dashboard-form .button {
  align-self: end;
}

.phase4-tool-output,
.phase4-dashboard-list {
  display: grid;
  gap: 12px;
  min-height: 120px;
}

.phase4-result {
  display: grid;
  gap: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 212, 0, 0.11), transparent 18rem),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 212, 0, 0.22);
  border-radius: var(--radius-md);
}

.phase4-result h3 {
  margin: 4px 0 8px;
  color: var(--gold);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.phase4-dashboard-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phase4-dashboard-list .is-complete {
  opacity: 0.72;
  border-color: rgba(56, 255, 156, 0.32);
}

.print-sheet {
  color: #111;
  background: #fff;
}

.print-sheet h2,
.print-sheet p,
.print-sheet th,
.print-sheet td {
  color: #111;
}

.print-sheet .table-wrap {
  background: #fff;
  border-color: #bbb;
}

.print-sheet table {
  min-width: 720px;
}

.print-sheet th,
.print-sheet td {
  height: 48px;
  border-color: #bbb;
}

.dock-links a,
.dock-saved a,
.dock-saved span {
  display: block;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dock-saved strong {
  color: var(--white);
}

.site-assist-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 855;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: min(760px, calc(100vw - 32px));
  padding: 8px;
  margin: 0 auto;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(255, 212, 0, 0.22);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.assist-button {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.assist-button.icon {
  min-width: 44px;
  padding: 8px;
}

.assist-button:hover,
.assist-button:focus-visible,
.assist-button[aria-pressed="true"] {
  color: #160700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: rgba(255, 212, 0, 0.72);
}

.glossary-float {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 870;
  display: grid;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  color: var(--text);
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.glossary-float[hidden] {
  display: none;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: start center;
  padding: clamp(72px, 12vh, 110px) 16px 24px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
}

.command-palette[hidden] {
  display: none;
}

.command-shell,
.quick-brief {
  width: min(720px, 100%);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(12, 12, 12, 0.94);
  border: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .command-shell,
body[data-theme="light"] .quick-brief,
body[data-theme="light"] .glossary-float,
body[data-theme="light"] .student-dock-panel,
body[data-theme="light"] .site-assist-bar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.92);
}

.command-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.command-input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
}

.command-input:focus {
  border-color: rgba(255, 212, 0, 0.58);
  box-shadow: var(--focus);
}

.command-close {
  min-width: 46px;
  min-height: 46px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.command-results {
  display: grid;
  gap: 8px;
  max-height: min(62vh, 560px);
  padding: 12px;
  overflow: auto;
}

.command-group {
  padding: 8px 10px 2px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.command-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 11px 12px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.command-item:hover,
.command-item:focus-visible,
.command-item.is-active {
  color: var(--white);
  background: rgba(255, 122, 0, 0.14);
  border-color: rgba(255, 212, 0, 0.28);
}

.command-item strong,
.command-item small {
  display: block;
}

.command-item small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.command-item span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-brief {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 875;
  display: grid;
  gap: 12px;
  width: min(460px, calc(100vw - 32px));
  padding: 16px;
}

.quick-brief[hidden] {
  display: none;
}

.quick-brief-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.quick-brief h2 {
  font-size: 1.6rem;
  line-height: 1;
}

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

.quick-brief li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  line-height: 1.5;
}

.quick-brief li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--gold);
  border-radius: 999px;
}

.toast-stack {
  position: fixed;
  right: 16px;
  top: 92px;
  z-index: 1400;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  color: var(--text);
  font-weight: 800;
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid rgba(255, 212, 0, 0.24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transform: translateY(-8px);
  animation: toastIn 180ms ease forwards;
}

body[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.94);
}

.article-body > section,
.content-main > section {
  scroll-margin-top: 104px;
}

.article-body h2,
.article-body h3 {
  text-wrap: balance;
}

.article-body p {
  max-width: 78ch;
}

.glossary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.glossary-head h2 {
  margin: 2px 0 0;
  font-size: 1.45rem;
}

.glossary-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glossary-terms button {
  min-height: 36px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.glossary-terms button:hover,
.glossary-terms button:focus-visible {
  color: #160700;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

body.low-data-mode #particleField,
body.low-data-mode #mouseGlow {
  display: none !important;
}

body.low-data-mode *,
body.low-data-mode *::before,
body.low-data-mode *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

body.low-data-mode .reveal,
body.low-data-mode .stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--delay, 0ms);
}

.motion-ready .reveal {
  opacity: 1;
  transform: translateY(26px);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 620ms ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blueprint-layout {
  align-items: start;
}

.blueprint-side {
  gap: 16px;
}

.blueprint-side .answer-box h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.1;
}

.blueprint-tool-grid,
.official-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-tool-form {
  display: grid;
  gap: 12px;
}

.mini-output {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 212, 0, 0.2);
  border-radius: var(--radius-md);
}

.mini-output strong {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
}

.mini-output span {
  color: var(--muted);
  line-height: 1.5;
}

.mini-output.safe {
  border-color: rgba(56, 255, 156, 0.34);
  box-shadow: inset 3px 0 0 rgba(56, 255, 156, 0.8);
}

.mini-output.target {
  border-color: rgba(255, 212, 0, 0.36);
  box-shadow: inset 3px 0 0 rgba(255, 212, 0, 0.8);
}

.mini-output.stretch {
  border-color: rgba(255, 90, 31, 0.42);
  box-shadow: inset 3px 0 0 rgba(255, 90, 31, 0.9);
}

.blueprint-faq-clusters .faq-item p,
.blueprint-faq-clusters .faq-item ol {
  padding: 0;
  margin: 0;
}

.cluster-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.cluster-body p {
  color: var(--text);
}

.cluster-body ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding-left: 20px;
}

.cluster-body li {
  color: var(--muted);
  line-height: 1.45;
}

.official-source-grid .row-card {
  align-items: stretch;
}

.official-source-grid .row-card .pill {
  align-self: start;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes pulseGlow {
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}

@keyframes rocketFloat {
  50% {
    transform: translate(-50%, -55%) rotate(-7deg);
  }
}

@keyframes flame {
  from {
    transform: translateX(-50%) scaleY(0.92) scaleX(0.96);
  }
  to {
    transform: translateX(-50%) scaleY(1.08) scaleX(1.04);
  }
}

@keyframes chipFloat {
  50% {
    transform: translateY(-12px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes gridDrift {
  to {
    background-position: 42px 42px, 42px 42px;
  }
}

@keyframes surfaceShimmer {
  from {
    transform: translateX(-26%);
  }
  to {
    transform: translateX(38%);
  }
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rippleOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@media (max-width: 1500px) {
  .nav-toggle {
    display: inline-flex;
  }

  .global-search {
    display: none;
  }

  .theme-toggle,
  .accent-toggle {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100svh - 92px);
    padding: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav-links:not(.is-open) {
    display: none !important;
    width: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    justify-content: center;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-grid,
  .content-layout,
  .cta-band-content {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: relative;
    top: auto;
    grid-row: auto;
  }

  .rocket-stage {
    min-height: 520px;
  }

  .rocket-card {
    right: 50%;
    transform: translateX(50%) rotateX(4deg) rotateY(-5deg);
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    width: min(calc(100% - 24px), var(--max));
    min-height: 68px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand-subtitle,
  .cta-mini {
    display: none;
  }

  .nav-command {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 9px;
  }

  .nav-links {
    top: 68px;
    right: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 80px);
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
    max-width: calc(100% - 24px);
  }

  .section {
    padding: clamp(40px, 12vw, 72px) 0;
  }

  #particleField,
  #mouseGlow {
    display: none;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.75rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .summary-box h2,
  .answer-box h2,
  .tool-panel h2,
  .trust-panel h2,
  .cta-band h2 {
    font-size: 1.35rem;
    line-height: 1.08;
  }

  .hero {
    min-height: auto;
  }

  .hero-stats,
  .grid.two,
  .grid.three,
  .grid.four,
  .path-grid,
  .trust-grid,
  .blueprint-tool-grid,
  .official-source-grid,
  .cluster-body ol,
  .calc-shell,
  .calc-subject-grid,
  .metric-grid,
  .a2z-bank-tools,
  .a2z-question-list,
  .clock-grid,
  .countdown-name-grid,
  .intent-controls,
  .form-grid,
  .faq-page-tools,
  .sheet-toolbar {
    grid-template-columns: 1fr;
  }

  .phase4-tool-form,
  .phase4-dashboard-form,
  .phase4-dashboard-top {
    grid-template-columns: 1fr;
  }

  .phase4-tool-head,
  .print-sheet-head {
    flex-direction: column;
  }

  .rocket-stage {
    min-height: 390px;
    overflow: hidden;
  }

  .rocket-card {
    width: min(100%, 330px);
    min-height: 360px;
  }

  .rocket {
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.72);
  }

  .orbit-chip {
    min-width: 58px;
    min-height: 34px;
    font-size: 0.88rem;
  }

  .countdown-strip {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .timebox {
    min-width: 58px;
  }

  .section-head,
  .row-card,
  .topic-card,
  .timeline-item,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .subject-map {
    min-height: 520px;
  }

  .map-node {
    width: calc(var(--size, 110px) * 0.72);
    min-width: calc(var(--size, 110px) * 0.72);
    height: calc(var(--size, 110px) * 0.72);
    font-size: 0.78rem;
  }

  .select {
    width: 100%;
  }

  .input,
  .select,
  .textarea,
  .global-search input {
    min-height: 48px;
    font-size: 16px;
  }

  .filter-bar,
  .quick-chip-row,
  .button-row,
  .hero-actions {
    align-items: stretch;
    width: 100%;
  }

  .button,
  .ghost-button,
  .text-button {
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .chip-button {
    flex: 1 1 calc(50% - 9px);
    min-height: 44px;
    text-align: center;
  }

  .search-hub-results {
    min-height: 120px;
  }

  .tool-panel,
  .summary-box,
  .answer-box,
  .trust-panel,
  .calc-panel,
  .result-card,
  .toc-card {
    width: 100%;
    padding: 16px;
  }

  .result-card {
    position: static;
    min-height: auto;
  }

  .college-card,
  .trend-row {
    grid-template-columns: 1fr;
  }

  .calc-panel-head {
    flex-direction: column;
  }

  .calc-fieldset {
    grid-template-columns: 1fr;
  }

  .row-card,
  .topic-card,
  .search-card,
  .next-step-card {
    gap: 14px;
    padding: 16px;
  }

  .topic-check {
    width: 28px;
    height: 28px;
  }

  table {
    min-width: 500px;
    font-size: 0.92rem;
  }

  .table-wrap {
    max-width: 100%;
    scrollbar-width: thin;
  }

  th,
  td {
    padding: 12px;
  }

  .path-card::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    display: none;
  }

  .student-dock {
    right: 12px;
    left: auto;
    bottom: 88px;
    display: grid;
    justify-items: end;
    width: auto;
    max-width: calc(100vw - 24px);
  }

  .student-dock.is-open {
    right: 12px;
    left: 12px;
    width: auto;
    justify-items: stretch;
  }

  .student-dock-toggle {
    justify-self: end;
  }

  .student-dock-panel {
    max-height: 70svh;
    overflow: auto;
  }

  .main {
    padding-bottom: 128px;
  }

  .site-assist-bar {
    right: 8px;
    bottom: 8px;
    left: 8px;
    justify-content: space-between;
    width: auto;
    max-width: none;
    border-radius: 18px;
  }

  .assist-button {
    min-width: 0;
    min-height: 44px;
    flex: 1;
    padding: 7px 8px;
    font-size: 0.76rem;
  }

  .assist-button.icon {
    flex: 0 0 44px;
    min-width: 44px;
  }

  .glossary-float {
    right: 8px;
    bottom: 76px;
    left: 8px;
    width: auto;
    max-height: calc(100svh - 112px);
    overflow: auto;
  }

  .command-palette {
    align-items: start;
    padding-top: 72px;
  }

  .command-head {
    grid-template-columns: 1fr;
  }

  .command-close {
    justify-self: end;
  }

  .command-item {
    grid-template-columns: 1fr;
  }

  .quick-brief {
    right: 8px;
    bottom: 76px;
    left: 8px;
    width: auto;
    max-height: calc(100svh - 112px);
    overflow: auto;
  }

  .toast-stack {
    right: 8px;
    top: 76px;
    width: calc(100vw - 16px);
  }

  .dock-head,
  .dock-stats,
  .dock-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .phase4-tool-shell,
  .phase4-dashboard,
  .print-sheet {
    width: 100%;
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .nav-wrap,
  .container {
    width: min(calc(100% - 18px), var(--max));
    max-width: calc(100% - 18px);
  }

  h1 {
    font-size: clamp(2.25rem, 15vw, 3.7rem);
  }

  h2 {
    font-size: clamp(1.7rem, 10vw, 2.65rem);
  }

  .brand-title {
    font-size: 1.04rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-links {
    right: 9px;
    left: 9px;
    max-width: calc(100vw - 18px);
  }

  .hero-actions,
  .button-row,
  .quick-chip-row {
    flex-direction: column;
  }

  .chip-button {
    flex-basis: 100%;
  }

  .table-wrap {
    margin-inline: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #mouseGlow,
  #particleField {
    display: none;
  }

  body::before {
    animation: none !important;
  }
}

@media print {
  body {
    color: #111;
    background: #fff;
  }

  body::before,
  body::after,
  .site-header,
  .site-footer,
  .floating-actions,
  .hero-actions,
  .quick-nav-chips,
  #scrollProgress,
  #particleField,
  #mouseGlow,
  .student-dock,
  .button,
  .ghost-button,
  .content-side {
    display: none !important;
  }

  .main,
  .section,
  .container,
  .content-main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .page-hero {
    padding: 0 0 12px;
    color: #111;
    background: #fff;
  }

  .page-hero h1,
  .page-hero p,
  .summary-box h2,
  .summary-box p,
  .print-sheet,
  .print-sheet * {
    color: #111 !important;
  }

  .summary-box,
  .print-sheet {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
  }

  .print-sheet table {
    min-width: 0;
    width: 100%;
    border-collapse: collapse;
  }

  .print-sheet th,
  .print-sheet td {
    border: 1px solid #888;
  }
}
