:root {
  --navy: #071a2e;
  --navy-deep: #04111f;
  --ink: #102a43;
  --classic: #2b74c7;
  --classic-mid: #4a8fd6;
  --sky: #5ec8f0;
  --sky-premium: #89d8f6;
  --ice: #eef6fb;
  --cloud: #f7fbfe;
  --paper: #f4f9fd;
  --gold: #c4a35a;
  --gold-soft: #e8d49a;
  --text: #102a43;
  --muted: #5d7a94;
  --line: rgba(43, 116, 199, 0.14);
  --ok: #1b8f64;
  --bad: #c94444;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(7, 26, 46, 0.1);
  --shadow-lg: 0 40px 90px rgba(7, 26, 46, 0.16);
  --radius: 28px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at -8% -10%, rgba(94, 200, 240, 0.38), transparent 58%),
    radial-gradient(900px 520px at 108% 0%, rgba(43, 116, 199, 0.22), transparent 52%),
    radial-gradient(700px 400px at 50% 120%, rgba(196, 163, 90, 0.1), transparent 55%),
    linear-gradient(180deg, #f5fbff 0%, #eaf4fb 48%, #e3f1fa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

img { max-width: 100%; }

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

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.app-shell,
.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar,
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px) saturate(1.25);
  background: rgba(247, 251, 254, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

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

.nav-item {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active,
.nav-drop.is-active > .nav-parent {
  color: var(--navy);
  background: rgba(255,255,255,.7);
}

.nav-parent {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
}

.nav-parent::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
}

.nav-drop { position: relative; }

.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 70;
}

.nav-sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.nav-sub a:hover,
.nav-sub a:focus-visible {
  background: var(--ice);
  color: var(--classic);
}

@media (min-width: 861px) {
  .nav-drop:hover .nav-sub,
  .nav-drop:focus-within .nav-sub {
    display: grid;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--sky) 0%, var(--classic) 72%);
  box-shadow: 0 12px 28px rgba(43, 116, 199, 0.35);
}

.brand-mark svg { width: 24px; height: 24px; }

.brand-mark.has-logo {
  background: #fff;
  padding: 5px;
  box-shadow: 0 8px 20px rgba(7, 26, 46, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 12px;
}

.logo-preview .brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.brand h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  border: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.2s ease;
}

.site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-ghost {
  background: rgba(255,255,255,.55);
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82d6 0%, #1e5aa8 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(43, 116, 199, 0.28), inset 0 1px 0 rgba(255,255,255,.25);
}

.btn-sky {
  background: linear-gradient(135deg, var(--sky), var(--classic-mid));
  color: var(--navy-deep);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy-deep);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-block { width: 100%; margin-top: 8px; }

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  color: var(--classic);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 42px;
}

.hero h2,
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.06;
  margin: 16px 0 14px;
  letter-spacing: -0.038em;
  font-weight: 650;
}

.hero h2 span,
.grad {
  background: linear-gradient(120deg, #1d5eae 10%, #3aa0dc 55%, #7dd3f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.75;
}

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

.hero-panel,
.glass {
  background: linear-gradient(165deg, rgba(255,255,255,.82), rgba(210, 236, 250, .38));
  border: 1px solid rgba(255,255,255,.78);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(94, 200, 240, .5), transparent 68%);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.stat {
  background: rgba(255,255,255,.7);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.8);
}

.stat b {
  display: block;
  font-size: 1.4rem;
  color: var(--navy);
  font-family: var(--display);
}

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

.section-head {
  margin-bottom: 28px;
  max-width: 40rem;
}

.section-head h3 {
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section { padding: 64px 0 8px; }

.card-static { cursor: default; min-height: 220px; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 8px 0 20px;
}

.section-title h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.section-title p { margin: 4px 0 0; color: var(--muted); }

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

.card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--classic), var(--sky), var(--gold-soft));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-num {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--classic);
  opacity: 0.7;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--classic));
}

.card h4 { margin: 0 0 8px; font-size: 1.14rem; }

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.card-go {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--classic);
}

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

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--classic);
}

.detail-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  margin-bottom: 24px;
}

.detail-head h2 {
  font-family: var(--display);
  margin: 8px 0 10px;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

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

.section-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
}

.quiz-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.side-panel { position: sticky; top: 96px; align-self: start; }

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--display);
}

.progress-bar {
  height: 8px;
  background: var(--ice);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 16px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--classic), var(--sky));
}

.q-nav { display: flex; flex-wrap: wrap; gap: 6px; }

.q-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.q-dot.current { background: var(--classic); color: white; border-color: var(--classic); }
.q-dot.answered { background: #cfeeff; }

.passage {
  background: var(--ice);
  border-left: 4px solid var(--classic);
  padding: 16px 18px;
  border-radius: 0 16px 16px 0;
  line-height: 1.75;
  margin-bottom: 18px;
}

.choices { display: grid; gap: 10px; }

.choice {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  transition: 0.15s ease;
}

.choice:hover { border-color: var(--classic-mid); transform: translateX(3px); }
.choice.selected { border-color: var(--classic); background: #e7f3ff; box-shadow: inset 0 0 0 1px var(--classic); }
.choice.correct { border-color: var(--ok); background: #e8f8f0; }
.choice.wrong { border-color: var(--bad); background: #fdecec; }

.audio-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #04111f 0%, #0a3050 48%, #2b74c7 100%);
  color: white;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(7, 26, 46, 0.28);
}

.play-btn,
.audio-box button.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, #fff, #d7effc);
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
  flex-shrink: 0;
}

.voice-meta { opacity: 0.88; font-size: 0.86rem; margin-top: 2px; }

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  width: 22px;
  flex-shrink: 0;
}

.eq i {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--sky-premium);
  opacity: 0.45;
}

.audio-box.is-playing .eq i { animation: eq 0.9s ease-in-out infinite; opacity: 1; }
.audio-box.is-playing .eq i:nth-child(2) { animation-delay: .12s; }
.audio-box.is-playing .eq i:nth-child(3) { animation-delay: .24s; }
.audio-box.is-playing .eq i:nth-child(4) { animation-delay: .08s; }
.audio-box.is-playing .eq i:nth-child(5) { animation-delay: .2s; }

@keyframes eq {
  0%, 100% { height: 5px; }
  50% { height: 20px; }
}

.scene {
  height: 180px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ccebff, #8ec8ea);
  position: relative;
  overflow: hidden;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.explain {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #fff8e6;
  color: #6a5200;
}

.results-hero { text-align: center; padding: 40px 20px; }

.score-ring {
  width: 168px;
  height: 168px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--classic) calc(var(--p) * 1%), #d7ebf7 0);
}

.score-ring b {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-family: var(--display);
}

.review-item { padding: 14px 0; border-bottom: 1px solid var(--line); }

textarea.writer {
  width: 100%;
  min-height: 220px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 16px;
  font-size: 1rem;
  line-height: 1.65;
  resize: vertical;
  background: rgba(255,255,255,.9);
}

.footer {
  padding: 22px 16px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  background: #071a2e;
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
  margin-top: 48px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
  gap: 32px 24px;
  padding-bottom: 32px;
}

.foot-brand .brand { color: white; margin-bottom: 14px; }
.foot-brand p { margin: 0; line-height: 1.65; max-width: 36ch; }

.site-footer h4 {
  margin: 0 0 12px;
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255,255,255,.68);
}

.site-footer a:hover { color: var(--sky-premium); }

.foot-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  font-size: 0.8rem;
}

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

.tips li { margin-bottom: 8px; }

.record-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.playback { width: 100%; margin-bottom: 14px; }

.sample-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e7f6ff, #fff);
  border: 1px solid var(--line);
  line-height: 1.65;
}

.btn.recording { animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse {
  50% { box-shadow: 0 0 0 6px rgba(196, 163, 90, 0.25); }
}

.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 0 8px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(145deg, var(--classic), var(--navy));
}

.user-box strong { display: block; font-size: 0.86rem; line-height: 1.15; }
.user-box span { font-size: 0.7rem; color: var(--muted); }

/* Public landing */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
  position: relative;
  z-index: 5;
}

.stats-row article {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.stats-row b {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--navy);
}

.stats-row span { color: var(--muted); font-size: 0.82rem; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.skill {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

.skill b { display: block; margin-bottom: 8px; color: var(--navy); }
.skill p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.step {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}

.step b {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--classic);
}

.step h4 { margin: 8px 0 6px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; }

.quote-card {
  text-align: center;
  padding: 28px 24px 8px;
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.cta-band {
  margin: 40px auto 24px;
  padding: 36px 40px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, #071a2e, #1d5eae 58%, #4db7e4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

.cta-band h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 6px;
}

.cta-band p { margin: 0; opacity: 0.85; }

.page-banner {
  color: white;
  padding: 52px 0 64px;
  background:
    linear-gradient(135deg, rgba(4, 17, 31, 0.92), rgba(29, 94, 174, 0.78) 58%, rgba(77, 183, 228, 0.55)),
    radial-gradient(800px 280px at 90% 10%, rgba(94, 200, 240, 0.45), transparent 60%);
}

.page-banner h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
  margin: 12px 0 10px;
  max-width: 18ch;
}

.page-banner p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
  font-size: 1.02rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.crumbs a { color: #d6f0ff; }
.crumbs a:hover { color: white; }
.crumbs strong { color: white; font-weight: 650; }

.prose { max-width: 760px; }
.prose h2,
.prose h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 28px 0 10px;
}
.prose p, .prose li { color: var(--muted); line-height: 1.75; }
.prose ul { padding-left: 1.2rem; }
.prose strong { color: var(--ink); }

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

.news-card {
  display: block;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow);
  min-height: 180px;
  transition: transform 0.2s ease;
}

.news-card:hover { transform: translateY(-6px); }
.news-card h4 { margin: 12px 0 8px; color: var(--navy); font-size: 1.08rem; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow);
}

.panel h3 { margin: 0 0 8px; font-family: var(--display); color: var(--navy); }
.panel p, .panel li { color: var(--muted); line-height: 1.65; margin: 0; }
.panel ul { margin: 10px 0 0; padding-left: 1.15rem; }

.org-tree {
  display: grid;
  gap: 14px;
}

.org-lead, .org-node {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.org-lead {
  text-align: center;
  background: linear-gradient(135deg, #071a2e, #1d5eae);
  color: white;
}

.org-lead b, .org-node b { display: block; font-size: 1.05rem; }
.org-lead span, .org-node span { display: block; margin-top: 4px; font-size: 0.86rem; opacity: 0.8; }
.org-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.staff-card, .facility-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow);
}

.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(145deg, var(--sky), var(--classic));
}

.staff-card h4, .facility-card h4 { margin: 0 0 6px; color: var(--navy); }
.staff-card p, .facility-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.staff-card .chip { margin-top: 10px; display: inline-flex; }

.sched-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.88);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sched-table th,
.sched-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.sched-table th {
  background: var(--ice);
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.flow {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: alur;
}

.flow li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.flow li::before {
  counter-increment: alur;
  content: counter(alur, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--classic);
}

.flow h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }
.flow p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
  .two-col, .org-row { grid-template-columns: 1fr; }
}

/* Auth */
.auth-body { margin: 0; }
.auth-grid {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.auth-aside {
  padding: 52px 44px;
  color: white;
  background:
    linear-gradient(165deg, rgba(7,26,46,.94), rgba(43,116,199,.72)),
    radial-gradient(600px 380px at 18% 18%, rgba(94,200,240,.4), transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-aside .brand { margin-bottom: 28px; color: white; }

.auth-aside h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.auth-aside p, .auth-points { color: rgba(255,255,255,.86); line-height: 1.7; }
.auth-points { padding-left: 18px; }
.auth-main { display: grid; place-items: center; padding: 32px 18px; }
.auth-card { width: min(560px, 100%); }
.auth-card h2 { font-family: var(--display); margin: 8px 0; letter-spacing: -0.03em; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.form-grid .field { margin-bottom: 0; }
.field-full { grid-column: 1 / -1; }

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 1rem;
  font-weight: 500;
  background: white;
  color: var(--text);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(94, 200, 240, .7);
  border-color: var(--classic);
}

.alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-size: 0.92rem; }
.alert-bad { background: #fdecec; color: #8a1f1f; }
.alert-ok { background: #e8f8f0; color: #146344; }
.auth-switch { margin: 16px 0 0; color: var(--muted); }
.auth-switch a { color: var(--classic); font-weight: 700; }

.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 8px;
}

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

.orb-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 0.75rem;
}

.cinema {
  padding: 0;
  width: 100%;
}

.cinema-frame {
  position: relative;
  height: min(86vh, 780px);
  min-height: 520px;
  border-radius: 0;
  overflow: hidden;
  background: #071a2e;
}

.cinema-track,
.cinema-slide {
  position: absolute;
  inset: 0;
}

.cinema-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.cinema-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.cinema-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 17, 31, 0.88) 0%, rgba(7, 26, 46, 0.45) 48%, rgba(43, 116, 199, 0.12) 100%),
    linear-gradient(180deg, transparent 40%, rgba(4, 17, 31, 0.55) 100%);
}

.cinema-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  color: white;
}

.cinema-copy h2,
.cinema-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 12px 0 10px;
  max-width: 14ch;
  color: white;
  font-style: normal;
  min-height: 2.3em;
}

.cinema-copy h2 em,
.cinema-title em {
  font-style: italic;
  background: linear-gradient(120deg, #cfefff, #7dd3f5 45%, #e8d49a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cinema-copy p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.cinema-copy .hero-actions { margin-top: 18px; }

.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 0.18em;
  background: #e8d49a;
  box-shadow: 0 0 14px rgba(232, 212, 154, 0.85);
  vertical-align: -0.06em;
  animation: caret-blink 0.65s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.cinema-copy p[data-type]:not(.is-typed) {
  min-height: 3.3em;
}

.kicker-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #d6f0ff;
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
}

.btn-on-dark:hover { background: rgba(255, 255, 255, 0.2); }

.cinema-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(7, 26, 46, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.cinema-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.cinema-nav:hover { background: rgba(255, 255, 255, 0.2); }

.cinema-dots { display: flex; gap: 6px; }

.cinema-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.cinema-dot.is-on {
  width: 22px;
  background: linear-gradient(90deg, var(--sky), var(--gold-soft));
}

.cinema-progress {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.cinema-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--classic), var(--sky), var(--gold-soft));
}

@media (max-width: 1024px) {
  .cards, .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { min-height: 240px; padding: 36px 28px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu,
  .nav-cta {
    display: none;
  }
  .site-nav.is-open .nav-menu,
  .site-nav.is-open .nav-cta {
    display: flex;
  }
  .site-nav.is-open .nav-inner {
    flex-wrap: wrap;
    padding-bottom: 16px;
  }
  .site-nav.is-open .nav-menu {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 8px 0 0;
    padding: 8px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--line);
  }
  .site-nav.is-open .nav-cta {
    order: 4;
    flex-basis: 100%;
    margin-top: 8px;
  }
  .site-nav.is-open .nav-cta .btn { flex: 1; }
  .site-nav.is-open .nav-drop { width: 100%; }
  .site-nav.is-open .nav-parent { width: 100%; justify-content: space-between; }
  .site-nav.is-open .nav-sub {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 0 8px;
    padding: 4px 0 4px 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav.is-open .nav-drop.is-open .nav-sub { display: grid; }
  .hero, .detail-head, .quiz-layout, .auth-grid, .cta-band {
    grid-template-columns: 1fr;
  }
  .side-panel { position: static; }
  .auth-aside { min-height: auto; padding: 28px 22px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .stats-row { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .cinema { padding: 0; }
  .cinema-frame { min-height: 420px; height: 72vh; border-radius: 0; }
  .cinema-copy {
    width: calc(100% - 28px);
    bottom: 72px;
  }
  .cinema-copy h2 { max-width: none; font-size: 1.85rem; }
  .cinema-bar { left: 12px; right: 12px; }
  .page-banner { padding: 36px 0 44px; }
  .org-tree, .staff-grid, .news-grid, .facility-grid { grid-template-columns: 1fr; }
  .sched-table { display: block; overflow-x: auto; }
  .hide-sm { display: none !important; }
  .topbar .nav-actions { flex-wrap: nowrap; }
}

@media (max-width: 720px) {
  .form-grid, .stats-row, .cards, .skill-grid, .foot-grid { grid-template-columns: 1fr; }
  .user-box { padding: 0; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
}
