:root {
  --bg: #070b14;
  --bg-deep: #050910;
  --bg-soft: #0a101d;
  --card: #0f172a;
  --card-2: #111c33;
  --card-3: #0b1424;
  --line: rgba(148, 163, 184, 0.13);
  --line-strong: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --green: #34d399;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 620px at 8% -8%, rgba(6, 182, 212, 0.12), transparent 62%),
    radial-gradient(760px 520px at 100% 0%, rgba(245, 158, 11, 0.075), transparent 62%),
    linear-gradient(rgba(148, 163, 184, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(6, 182, 212, 0.34);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

button {
  color: inherit;
}

img,
svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cyan-bright);
  color: #041016;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero-copy,
.hero-visual,
.section-heading > *,
.matcher-grid > *,
.matrix-intro > *,
.matrix-bottom > *,
.guides-grid > *,
.footer-inner > *,
.open-banner > * {
  min-width: 0;
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 112px);
  scroll-margin-top: 92px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, #67e8f9, var(--cyan) 48%, #0891b2);
  color: #041016;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #1a1002;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.76);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.32), rgba(245, 158, 11, 0.18), transparent);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.16), rgba(245, 158, 11, 0.06));
  color: var(--cyan-bright);
  box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.08);
}

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

.brand-name {
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-name > span {
  color: var(--cyan-bright);
}

.brand-name small {
  margin-left: 1px;
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.06);
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 9px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-cta .icon {
  width: 14px;
  height: 14px;
}

.nav-cta:hover {
  border-color: rgba(6, 182, 212, 0.65);
  background: rgba(6, 182, 212, 0.16);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-soft);
  transition: transform 0.2s ease;
}

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

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(58px, 8vw, 100px);
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.hero-orbit-a {
  top: -270px;
  right: -90px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.13), transparent 66%);
}

.hero-orbit-b {
  bottom: -90px;
  left: -180px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.065), transparent 66%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: center;
  gap: clamp(36px, 5vw, 60px);
  padding-bottom: clamp(56px, 8vw, 90px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12), 0 0 16px rgba(52, 211, 153, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

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

h1 {
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.4vw, 4.55rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h1 .accent {
  display: inline-block;
  padding-bottom: 0.06em;
  color: var(--cyan);
}

h1 .warm {
  color: var(--amber-bright);
}

.hero-lede {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-proof .icon {
  width: 14px;
  height: 14px;
  color: var(--cyan-bright);
}

.hero-visual {
  position: relative;
}

.engine-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(17, 28, 51, 0.95), rgba(8, 13, 24, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.engine-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.15), transparent 55%);
  pointer-events: none;
}

.engine-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.015) 3px 4px);
  opacity: 0.55;
  pointer-events: none;
}

.engine-card > * {
  position: relative;
  z-index: 1;
}

.engine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.engine-head .dim {
  color: var(--muted-2);
}

.engine-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
}

.engine-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: pulse 2s ease-in-out infinite;
}

.radar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 0 22px;
}

.radar {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.11), rgba(7, 11, 20, 0.18) 52%, rgba(7, 11, 20, 0.55) 70%, transparent 71%);
  box-shadow: inset 0 0 60px rgba(6, 182, 212, 0.08), 0 0 50px rgba(6, 182, 212, 0.06);
}

.radar-grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(rgba(6, 182, 212, 0.12) 1px, transparent 1px) center / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(6, 182, 212, 0.12) 1px, transparent 1px) center / 1px 100% no-repeat;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 50%;
}

.ring-a {
  inset: 14%;
}

.ring-b {
  inset: 29%;
}

.ring-c {
  inset: 43%;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 270deg, rgba(6, 182, 212, 0.02) 310deg, rgba(6, 182, 212, 0.26) 358deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 15%, #000 16%);
  mask: radial-gradient(circle, transparent 0 15%, #000 16%);
  animation: sweep 7s linear infinite;
}

.radar-blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12), 0 0 16px rgba(6, 182, 212, 0.9);
  animation: blip 3.2s ease-in-out infinite;
}

.blip-a {
  top: 29%;
  left: 60%;
}

.blip-b {
  top: 60%;
  left: 34%;
  background: var(--amber-bright);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), 0 0 16px rgba(245, 158, 11, 0.8);
  animation-delay: 0.8s;
}

.blip-c {
  top: 47%;
  left: 73%;
  animation-delay: 1.6s;
}

.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), rgba(7, 11, 20, 0.96));
  color: var(--cyan-bright);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.18), inset 0 0 20px rgba(6, 182, 212, 0.1);
  transform: translate(-50%, -50%);
}

.radar-core .icon {
  width: 30px;
  height: 30px;
}

.radar-core span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
}

.float-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(9, 16, 29, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.float-chip span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
}

.float-chip strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.float-chip .amber,
.amber {
  color: var(--amber-bright);
}

.chip-a {
  top: 10%;
  left: -2%;
}

.chip-b {
  top: 48%;
  right: -3%;
}

.chip-c {
  bottom: 7%;
  left: 8%;
}

.engine-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.engine-readout div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 12px;
}

.engine-readout div + div {
  border-left: 1px solid var(--line);
}

.engine-readout span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.13em;
}

.engine-readout strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.engine-ticker {
  margin-top: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.ticker-track span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.ticker-track i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.5);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 24px;
}

.hero-stat + .hero-stat {
  border-left: 1px solid var(--line);
}

.hero-stat strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-stat span {
  max-width: 100px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

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

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blip {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

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

/* Section headings */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kicker span {
  color: var(--amber-bright);
}

.section-heading h2 {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-lead {
  justify-self: end;
  max-width: 480px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Game matcher */
.matcher-section {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.22) 20%, transparent 80%);
}

.matcher-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 18px;
}

.control-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.9), rgba(9, 16, 29, 0.95));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.control-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.55), transparent);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.13em;
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.52rem;
}

.panel-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(52, 211, 153, 0.9);
}

.control-group {
  padding-top: 22px;
}

.control-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.control-index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.55rem;
}

.control-label h3 {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

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

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

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 20, 36, 0.72);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.choice:hover {
  border-color: rgba(6, 182, 212, 0.32);
  background: rgba(6, 182, 212, 0.045);
  color: var(--text-soft);
  transform: translateY(-1px);
}

.choice[aria-pressed="true"] {
  border-color: rgba(6, 182, 212, 0.66);
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.13), rgba(6, 182, 212, 0.035));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.08), 0 8px 24px rgba(0, 0, 0, 0.16);
}

.choice::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.choice[aria-pressed="true"]::after {
  opacity: 1;
  transform: scale(1);
}

.choice-icon-wrap {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.07);
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.choice[aria-pressed="true"] .choice-icon-wrap {
  background: rgba(6, 182, 212, 0.14);
  color: var(--cyan-bright);
}

.choice-icon-wrap .icon {
  width: 16px;
  height: 16px;
}

.choice-label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.choice-sub {
  color: var(--muted-2);
  font-size: 0.62rem;
  line-height: 1.3;
}

.choice[aria-pressed="true"] .choice-sub {
  color: var(--muted);
}

.console-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.68rem;
}

.console-note .icon {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.result-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(17, 28, 51, 0.96), rgba(9, 16, 29, 0.98));
  box-shadow: var(--shadow);
}

.result-panel::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14), transparent 66%);
  pointer-events: none;
}

.result-panel::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06), transparent 66%);
  pointer-events: none;
}

.result-panel > * {
  position: relative;
  z-index: 1;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.result-kicker {
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.match-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}

.match-score strong {
  color: var(--amber-bright);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.result-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
}

.result-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(6, 182, 212, 0.2), transparent 55%), linear-gradient(150deg, rgba(17, 28, 51, 0.95), rgba(7, 11, 20, 0.9));
  box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.08);
}

.result-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
}

.result-art > * {
  position: relative;
  z-index: 1;
}

.art-code {
  position: absolute;
  top: 10px;
  left: 11px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.12em;
}

.art-icon {
  width: 42px;
  height: 42px;
  color: var(--cyan-bright);
  filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.35));
}

.art-platform {
  position: absolute;
  right: 11px;
  bottom: 10px;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.result-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.07);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-tags span:nth-child(2) {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.07);
  color: var(--amber-bright);
}

.result-tags span:nth-child(3) {
  border-color: var(--line-strong);
  background: rgba(148, 163, 184, 0.06);
  color: var(--muted);
}

.result-info h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.result-info > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.68rem;
}

.result-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.result-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.result-notes {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-subhead {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
}

.result-notes ul {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.result-notes li {
  position: relative;
  padding-left: 17px;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.result-notes li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.45);
}

.result-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 14px;
}

.result-alts p {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
}

.result-alts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 8px;
}

.result-alts li {
  color: var(--muted);
  font-size: 0.67rem;
}

.result-alts li::before {
  content: "·";
  margin-right: 5px;
  color: var(--amber);
}

.result-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
}

.result-footnote .icon {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.result-panel.is-swapping {
  animation: panelSwap 0.26s ease;
}

@keyframes panelSwap {
  from {
    opacity: 0.6;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mode matrix */
.matrix-shell {
  --matrix-accent: var(--cyan);
  --matrix-accent-rgb: 6, 182, 212;
  --matrix-accent-soft: var(--cyan-bright);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.9), rgba(8, 14, 26, 0.96));
  box-shadow: var(--shadow);
}

.matrix-shell[data-mode="casual"] {
  --matrix-accent: var(--amber);
  --matrix-accent-rgb: 245, 158, 11;
  --matrix-accent-soft: var(--amber-bright);
}

.matrix-shell::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 30%;
  width: 420px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--matrix-accent-rgb), 0.1), transparent 68%);
  pointer-events: none;
  transition: background 0.3s ease;
}

.matrix-tabs-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.matrix-kicker {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
}

.matrix-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.7);
}

.matrix-tab {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.matrix-tab[aria-selected="true"] {
  background: var(--matrix-accent);
  color: #041016;
  box-shadow: 0 6px 20px rgba(var(--matrix-accent-rgb), 0.2);
}

.matrix-panel {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 40px);
}

.matrix-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.matrix-eyebrow {
  color: var(--matrix-accent-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matrix-intro h3 {
  margin-top: 9px;
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.matrix-intro p:last-child {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.matrix-tag {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(var(--matrix-accent-rgb), 0.35);
  border-radius: 999px;
  background: rgba(var(--matrix-accent-rgb), 0.08);
  color: var(--matrix-accent-soft);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.matrix-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.matrix-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
}

.matrix-stat-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-stat-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.matrix-stat-head span .icon {
  width: 13px;
  height: 13px;
  color: var(--matrix-accent-soft);
}

.matrix-stat-head strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.meter {
  height: 5px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--matrix-accent-rgb), 0.45), var(--matrix-accent-soft));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.matrix-stat p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.matrix-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  align-items: start;
  gap: 24px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.matrix-checklist ul {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.matrix-checklist li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.matrix-checklist li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--matrix-accent-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.matrix-note {
  padding: 16px;
  border-left: 2px solid var(--matrix-accent);
  border-radius: 0 10px 10px 0;
  background: rgba(var(--matrix-accent-rgb), 0.055);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Quick guides */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.guide-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(9, 16, 29, 0.95));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-card:hover {
  border-color: rgba(6, 182, 212, 0.28);
  transform: translateY(-2px);
}

.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.5), transparent);
  opacity: 0.5;
}

.guide-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-bright);
}

.guide-icon .icon {
  width: 18px;
  height: 18px;
}

.guide-tag {
  margin-left: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
}

.guide-time {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.guide-card:nth-child(2) .guide-icon {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.07);
  color: var(--amber-bright);
}

.guide-card:nth-child(2)::before {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.5), transparent);
}

.guide-card h3 {
  margin-top: 20px;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.guide-summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.guide-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.guide-toggle:hover {
  color: var(--cyan-bright);
}

.toggle-close {
  display: none;
}

.guide-card.is-open .toggle-open {
  display: none;
}

.guide-card.is-open .toggle-close {
  display: inline;
}

.toggle-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.2s ease;
}

.guide-card.is-open .toggle-icon {
  transform: rotate(45deg);
  color: var(--amber-bright);
}

.guide-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  animation: guideReveal 0.28s ease;
}

.guide-body[hidden] {
  display: none;
}

.guide-body ol {
  display: grid;
  gap: 11px;
  counter-reset: guide-step;
}

.guide-body li {
  position: relative;
  padding-left: 27px;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.55;
  counter-increment: guide-step;
}

.guide-body li::before {
  content: counter(guide-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.52rem;
}

.guide-card:nth-child(2) .guide-body li::before {
  color: var(--amber-bright);
}

.guide-pro {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  background: rgba(6, 182, 212, 0.06);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.guide-pro strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card:nth-child(2) .guide-pro {
  border-left-color: var(--amber);
  background: rgba(245, 158, 11, 0.055);
}

.guide-card:nth-child(2) .guide-pro strong {
  color: var(--amber-bright);
}

@keyframes guideReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Open access banner */
.open-banner-section {
  padding-top: 0;
}

.open-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.12), transparent 40%), linear-gradient(140deg, rgba(17, 28, 51, 0.95), rgba(9, 16, 29, 0.96));
  box-shadow: var(--shadow);
}

.open-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.03), transparent 40%, rgba(245, 158, 11, 0.04));
  pointer-events: none;
}

.open-banner > * {
  position: relative;
  z-index: 1;
}

.open-banner .kicker {
  color: var(--amber-bright);
}

.open-banner h2 {
  max-width: 720px;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.open-banner p:last-child {
  max-width: 650px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.open-banner .btn {
  flex: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 16, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  align-items: start;
  gap: 32px;
  padding-block: 38px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.6;
}

.footer-copy p:first-child {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.footer-note {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.72rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan-bright);
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 42px;
  }

  .matcher-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(100%, 480px);
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section-lead {
    justify-self: start;
    max-width: 620px;
  }

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

  .matrix-intro {
    gap: 20px;
  }

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

  .guide-card:last-child {
    grid-column: 1 / -1;
  }

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

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: linear-gradient(180deg, #0d1728, #080e19);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .primary-nav.is-open {
    display: flex;
    animation: navIn 0.2s ease;
  }

  .nav-link {
    padding: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    background: rgba(6, 182, 212, 0.08);
    color: var(--cyan-bright);
  }

  .nav-cta {
    justify-content: center;
    margin: 4px 0 0;
  }

  @keyframes navIn {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 820px) {
  .matrix-tabs-row {
    flex-direction: column;
    align-items: stretch;
  }

  .matrix-tabs {
    width: 100%;
  }

  .matrix-tab {
    flex: 1;
  }

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

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

  .open-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat {
    padding: 16px;
  }

  .hero-stat:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .guide-card:last-child {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-links {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 3.6rem);
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .choice-sub {
    display: none;
  }

  .choice {
    min-height: 64px;
    padding: 10px;
  }

  .choice-label {
    font-size: 0.74rem;
  }

  .control-panel,
  .result-panel {
    padding: 18px;
  }

  .result-main {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .art-icon {
    width: 34px;
    height: 34px;
  }

  .result-info > p {
    font-size: 0.78rem;
  }

  .result-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .open-banner .btn {
    width: 100%;
  }

  .matrix-panel {
    padding: 20px;
  }

  .matrix-intro {
    flex-direction: column;
  }

  .matrix-tag {
    align-self: flex-start;
  }
}

@media (max-width: 520px) {
  .float-chip {
    display: none;
  }

  .engine-card {
    padding: 16px;
  }

  .radar-wrap {
    padding: 20px 0 18px;
  }

  .result-main {
    grid-template-columns: 1fr;
  }

  .result-art {
    width: 128px;
    aspect-ratio: 1;
  }

  .result-top {
    align-items: flex-start;
  }

  .match-score {
    white-space: nowrap;
  }

  .footer-links {
    gap: 10px 16px;
  }
}

@media (max-width: 380px) {
  .hero-actions .btn {
    width: 100%;
  }

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

  .choice {
    min-height: 56px;
    flex-direction: row;
    align-items: center;
  }

  .choice::after {
    top: 50%;
    right: 12px;
    transform: translateY(-50%) scale(0.5);
  }

  .choice[aria-pressed="true"]::after {
    transform: translateY(-50%) scale(1);
  }

  .hero-stat {
    flex-direction: column;
    gap: 2px;
  }
}

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

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