:root {
  color-scheme: dark;
  --bg-0: #0d1b2a;
  --bg-1: #1b263b;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.18);
  --ink: #f4f7fb;
  --muted: #e4ebf3;
  --accent: #00fff5;
  --accent-ink: #06211f;
  --danger: #ff8a8a;
  --radius: 20px;
  --rhythm: 64px;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(4, 10, 18, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  background:
    radial-gradient(80rem 40rem at 12% -10%, rgba(0, 255, 245, 0.12), transparent 46%),
    radial-gradient(70rem 36rem at 92% 8%, rgba(80, 90, 160, 0.28), transparent 42%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 58%, #121a28 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42rem 28rem at 18% 22%, rgba(0, 255, 245, 0.08), transparent 55%),
    radial-gradient(36rem 24rem at 78% 68%, rgba(90, 70, 160, 0.16), transparent 60%);
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: aurora 22s ease-in-out infinite alternate;
  }
}

@keyframes aurora {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 2%, 0) scale(1.06);
  }
}

a {
  color: inherit;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

.page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 80px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  max-height: 80px;
  padding: 10px 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 720;
  letter-spacing: 0;
}

.brand a {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-ink);
  background: var(--accent);
}

.nav-note {
  color: var(--muted);
  font-size: 14px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 14px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.auth-user-bar {
  display: none;
  align-items: center;
  gap: 12px;
}

.auth-user-bar.is-visible {
  display: flex;
}

.auth-logout,
.auth-login {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.auth-logout:hover,
.auth-login:hover,
.auth-guest-link:hover {
  background: var(--glass-strong);
}

.auth-guest-link {
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.auth-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 20, 0.55);
  backdrop-filter: blur(10px);
}

.auth-gate.is-open {
  display: flex;
}

.auth-card {
  width: min(100%, 420px);
  padding: 28px;
  background: rgba(18, 28, 42, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.auth-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
}

.auth-card input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.auth-error {
  display: none;
  margin: 0 0 12px;
  color: var(--danger);
}

.auth-error.is-visible {
  display: block;
}

.hero-stage {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100dvh - 112px);
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-stage__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.62) 0%, rgba(13, 27, 42, 0.18) 52%, transparent 100%),
    linear-gradient(180deg, rgba(13, 27, 42, 0.12) 0%, transparent 36%, rgba(13, 27, 42, 0.28) 100%);
}

.hero-stage__copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding: 48px;
}

.hero-stage h1,
.hero-copy h1,
h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.lead {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transform: translateX(-50%);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}

.hero--simple {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy,
.panel,
.card,
.info-card,
.related-card,
.hub-card,
.phrase,
.check,
.changelog-release {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.hero-copy {
  padding: clamp(28px, 5vw, 48px);
}

.hero--simple .hero-copy {
  min-height: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 740;
  text-decoration: none;
  white-space: nowrap;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  color: var(--accent-ink);
  background: var(--accent);
}

.button-secondary,
.button-ghost {
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line);
}

.count-picker {
  display: grid;
  gap: 10px;
  margin: 22px 0 8px;
}

.count-picker__label,
.candidate-picker__label,
.coach-assist__label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.count-picker__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.count-option {
  min-width: 56px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink);
  font: inherit;
  font-weight: 740;
  cursor: pointer;
}

.count-option.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.candidate-picker {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.candidate-picker__hint {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.candidate-picker__hint.is-error {
  color: var(--danger);
}

.candidate-picker__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  max-height: 520px;
  overflow: auto;
}

.candidate-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: #152334;
  color: #f4f7fb;
}

.candidate-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 245, 0.45);
}

.candidate-card__select {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f7fb;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.candidate-card__select strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 750;
}

.candidate-card__summary {
  color: #f4f7fb;
  font-size: 16px;
  line-height: 1.45;
}

.candidate-card__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 255, 245, 0.16);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.candidate-card__listen {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #00fff5;
  color: #06211f;
  font: 700 16px/1 var(--font-body);
  cursor: pointer;
}

.candidate-card__listen:disabled {
  opacity: 0.7;
  cursor: wait;
}

.candidate-card__listen:disabled[data-empty="true"] {
  cursor: not-allowed;
  background: #2a3a4d;
  color: #e4ebf3;
}

.coach-assist {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.coach-assist__hint {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.coach-assist__grid {
  display: grid;
  gap: 10px;
}

.coach-assist__option {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: #152334;
  color: #f4f7fb;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.coach-assist__option.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 245, 0.45);
}

.coach-assist__option strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 750;
}

.coach-assist__option span {
  color: #f4f7fb;
  font-size: 16px;
  line-height: 1.45;
}

.section,
.content-section,
.hub-group {
  margin-top: var(--rhythm);
}

.section-title h2,
.content-section h2,
.hub-group__title,
.site-footer h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.hub-group__hint,
.lead-small,
.footer-note {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.hub-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 245, 0.45);
  background: var(--glass-strong);
}

.hub-card--wide {
  grid-column: span 4;
}

.hub-card--tall {
  grid-column: span 2;
}

.hub-card--mid {
  grid-column: span 3;
}

.hub-card--third {
  grid-column: span 2;
}

.hub-card__media {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
}

.hub-card--wide .hub-card__media {
  height: 220px;
}

.hub-card .difficulty,
.related-card .difficulty {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 245, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 740;
}

.hub-card h3,
.related-card h3,
.info-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.hub-card h3 {
  font-size: 26px;
}

.hub-card p,
.related-card p,
.info-card p,
.info-card li {
  margin: 0;
  color: var(--muted);
}

.hub-card .go {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 740;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.skill-tag--accent,
a.skill-tag:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.info-card--warning {
  border-color: rgba(255, 138, 138, 0.28);
}

.info-card--warning h3 {
  color: var(--danger);
}

.progress-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.progress-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.progress-step.is-current {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.progress-step__num {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 760;
}

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

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

.related-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
}

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

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  color: var(--muted);
}

.check b {
  color: var(--ink);
}

.check-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 13px;
}

.phrase-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.phrase {
  padding: 14px 18px;
}

.phrase::before {
  content: "«";
  color: var(--muted);
  margin-right: 2px;
}

.phrase::after {
  content: "»";
  color: var(--muted);
  margin-left: 2px;
}

.break-band {
  position: relative;
  margin: var(--rhythm) 0 0;
  padding: 48px 0 8px;
}

.break-band::before {
  content: "";
  position: absolute;
  inset: 0 -12vw auto;
  height: 88px;
  background: linear-gradient(112deg, transparent 0%, rgba(0, 255, 245, 0.08) 46%, transparent 100%);
  transform: skewY(-3deg);
  pointer-events: none;
}

.site-footer {
  margin-top: var(--rhythm);
  padding: 28px;
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero-stats,
.stat,
.panel,
.call-card,
.voice-grid,
.wave {
  display: none;
}

@media (prefers-reduced-transparency: reduce) {
  .nav,
  .hero-copy,
  .hub-card,
  .info-card,
  .related-card,
  .phrase,
  .check,
  .site-footer,
  .glass,
  .auth-card {
    backdrop-filter: none;
    background: #162233;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .hub-card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .bento,
  .hub-grid,
  .info-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hub-card--wide,
  .hub-card--tall,
  .hub-card--mid,
  .hub-card--third {
    grid-column: span 1;
  }

  .hero,
  .hero-stage__copy {
    padding-left: 22px;
    padding-right: 22px;
  }

  .page {
    width: min(100% - 20px, 1240px);
  }

  .nav {
    flex-wrap: wrap;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .progress-path {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-arrow {
    transform: rotate(90deg);
  }
}
