/* Blackbat Terminal: career quiz, results & roadmap (shared) */
:root {
  --bg: #050505;
  --surface: #0b0d0b;
  --surface-2: #131313;
  --green: #00e846;
  --green-dim: rgba(0, 232, 70, 0.08);
  --cyan: #6ec8e8;
  --amber: #ffb000;
  --text: #f4f4f2;
  --muted: #a3a5a3;
  --dim: #646864;
  --edge: rgba(255, 255, 255, 0.12);
  --edge-bright: rgba(255, 255, 255, 0.2);
  --accent: var(--green);
  --page-max: 1180px;
  --radius: 12px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 232, 70, 0.06), transparent 55%);
}

.bb-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bb-wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
}

/* Header */
.bb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--edge);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(8px);
}

.bb-header__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.bb-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bb-logo__text {
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 1.25;
  color: var(--text);
}

.bb-logo__text span {
  display: block;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.bb-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.bb-nav a {
  position: relative;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.bb-nav a:hover,
.bb-nav a[aria-current="page"] {
  color: var(--text);
}

.bb-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.bb-nav a:hover::after,
.bb-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.bb-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb-header__badge {
  display: inline-flex;
  transition: transform 180ms var(--ease-out), filter 180ms ease;
}

.bb-header__badge:hover,
.bb-header__badge:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.bb-header__badge img {
  height: 34px;
  width: auto;
}

.bb-header__badge--play img {
  height: 50px;
}

.bb-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.bb-menu-btn svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .bb-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px clamp(16px, 3vw, 28px) 20px;
    background: rgba(5, 5, 5, 0.96);
    border-bottom: 1px solid var(--edge);
  }

  .bb-nav.is-open {
    display: flex;
  }

  .bb-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .bb-nav a::after {
    bottom: 12px;
  }

  .bb-header__actions {
    display: none;
  }

  .bb-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bb-header__inner {
    position: relative;
  }
}

@media (max-width: 480px) {
  .bb-logo__text {
    display: none;
  }
}

/* Main layout */
.bb-main {
  flex: 1;
  padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 8vw, 96px);
}

.bb-enter {
  animation: bb-rise 420ms ease-out both;
}

.bb-enter--delay-1 {
  animation-delay: 60ms;
}

.bb-enter--delay-2 {
  animation-delay: 120ms;
}

@keyframes bb-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bb-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 16px;
}

.bb-title {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 720px;
}

.bb-title em {
  font-style: normal;
  color: var(--green);
}

.bb-lede {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.bb-corner-note {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--dim);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  display: none;
}

@media (min-width: 1100px) {
  .bb-corner-note {
    display: block;
  }
}

/* Buttons */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--edge-bright);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.bb-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.bb-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
  transition-duration: 80ms;
}

.bb-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bb-btn--primary {
  border-color: rgba(0, 232, 70, 0.55);
  background: rgba(0, 232, 70, 0.08);
  box-shadow: 0 0 20px rgba(0, 232, 70, 0.06);
}

.bb-btn--primary:hover:not(:disabled) {
  border-color: rgba(0, 232, 70, 0.75);
  background: rgba(0, 232, 70, 0.12);
}

.bb-btn--ghost {
  background: transparent;
}

.bb-btn .bb-arrow {
  display: inline-block;
  transition: transform 180ms var(--ease-out);
}

.bb-btn:hover:not(:disabled) .bb-arrow {
  transform: translateX(3px);
}

.bb-btn:focus-visible,
.bb-nav a:focus-visible,
.bb-quiz-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Cards */
.bb-card {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  transition:
    transform 200ms var(--ease-out),
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.bb-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Quiz */
.bb-quiz-shell {
  position: relative;
  min-height: 320px;
}

.bb-quiz-panel {
  transition:
    opacity 240ms ease,
    transform 240ms var(--ease-out);
}

.bb-quiz-panel.is-exiting {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.bb-quiz-panel.is-entering {
  opacity: 0;
  transform: translateX(8px);
}

.bb-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .bb-quiz-grid {
    grid-template-columns: 1fr;
  }
}

.bb-quiz-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 22px 20px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-out),
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.bb-quiz-option:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}

.bb-quiz-option:active {
  transform: translateY(0) scale(0.99);
}

.bb-quiz-option.is-selected {
  border-color: var(--green);
  background: rgba(0, 255, 120, 0.025);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.bb-quiz-option__icon {
  color: var(--cyan);
  transition: transform 200ms var(--ease-out), color 200ms ease;
}

.bb-quiz-option:hover .bb-quiz-option__icon {
  transform: translateY(-1px);
}

.bb-quiz-option.is-selected .bb-quiz-option__icon {
  color: var(--green);
}

.bb-quiz-option__title {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
}

.bb-quiz-option__desc {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.bb-quiz-option__check svg {
  width: 12px;
  height: 12px;
}

.bb-quiz-option__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: rgba(0, 232, 70, 0.15);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
}

.bb-quiz-option.is-selected .bb-quiz-option__check {
  animation: bb-check-in 180ms var(--ease-out) forwards;
}

@keyframes bb-check-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bb-quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-progress {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 280px;
}

.bb-progress__seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 200ms ease;
}

.bb-progress__seg.is-done,
.bb-progress__seg.is-current {
  background: var(--green);
}

.bb-progress__seg.is-current {
  opacity: 0.55;
}

.bb-quiz-actions {
  display: flex;
  gap: 12px;
}

/* Results */
.bb-path-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 24px;
  padding: clamp(22px, 3vw, 32px);
  margin-bottom: 48px;
  border-color: rgba(0, 232, 70, 0.35);
  background: rgba(0, 232, 70, 0.03);
}

@media (max-width: 768px) {
  .bb-path-card {
    grid-template-columns: 1fr;
  }
}

.bb-path-card__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 16px;
}

.bb-path-card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 16px;
}

.bb-path-card__title {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 10px;
}

.bb-path-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 18px;
}

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

.bb-tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: var(--muted);
}

.bb-path-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cyan);
}

.bb-path-visual svg {
  width: 120px;
  height: 120px;
  opacity: 0.85;
}

.bb-section-title {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 18px;
  margin-bottom: 20px;
}

.bb-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 48px;
  position: relative;
}

@media (max-width: 768px) {
  .bb-steps {
    grid-template-columns: 1fr;
  }
}

.bb-step-card {
  padding: 22px 18px;
  text-align: center;
  position: relative;
}

.bb-step-card__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 232, 70, 0.5);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.bb-step-card__icon {
  color: var(--cyan);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.bb-step-card__icon svg {
  width: 36px;
  height: 36px;
}

.bb-step-card h3 {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 14px;
  margin-bottom: 8px;
}

.bb-step-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 769px) {
  .bb-steps .bb-step-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green);
    font-size: 14px;
    opacity: 0.7;
  }
}

.bb-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .bb-resources {
    grid-template-columns: 1fr;
  }
}

.bb-resource {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.bb-resource:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.bb-resource__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.bb-resource__body h3 {
  font-size: 13px;
  font-family: "Space Mono", ui-monospace, monospace;
  margin-bottom: 4px;
}

.bb-resource__body p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.bb-resource__ext {
  margin-left: auto;
  color: var(--dim);
  flex-shrink: 0;
}

.bb-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  border-color: rgba(0, 232, 70, 0.3);
  align-items: center;
}

@media (max-width: 768px) {
  .bb-cta-panel {
    grid-template-columns: 1fr;
  }
}

.bb-cta-panel__eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 10px;
}

.bb-cta-panel h2 {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(20px, 2.5vw, 26px);
  margin-bottom: 10px;
}

.bb-cta-panel p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Match index.html .store-badge / .playstore-badge alignment */
.bb-store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.bb-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), filter 180ms ease;
}

.bb-store-badge:hover,
.bb-store-badge:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.bb-store-badge img {
  width: auto;
  max-width: 100%;
  height: 42px;
  display: block;
  object-fit: contain;
}

.bb-store-badge--play {
  min-height: 64px;
}

.bb-store-badge--play img {
  height: 64px;
}

@media (min-width: 921px) {
  .bb-store-badge {
    min-height: 52px;
  }

  .bb-store-badge img {
    height: 52px;
  }

  .bb-store-badge--play {
    min-height: 74px;
  }

  .bb-store-badge--play img {
    height: 74px;
  }
}

/* Roadmap */
.bb-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

@media (max-width: 920px) {
  .bb-phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .bb-phases {
    grid-template-columns: 1fr;
  }
}

.bb-phase {
  padding: 18px 16px;
  text-align: center;
}

.bb-phase:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.bb-phase__icon {
  color: var(--green);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.bb-phase__icon.is-cyan {
  color: var(--cyan);
}

.bb-phase h3 {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  margin-bottom: 6px;
}

.bb-phase p {
  font-size: 11px;
  color: var(--muted);
}

.bb-timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 48px;
}

.bb-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.bb-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.bb-timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(110, 200, 232, 0.4);
  transition: width 200ms ease, height 200ms ease;
}

.bb-timeline-item.is-active::before {
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(0, 232, 70, 0.5);
}

.bb-timeline-item.is-active {
  border-color: rgba(0, 232, 70, 0.4);
  background: rgba(0, 232, 70, 0.03);
}

.bb-timeline-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.bb-timeline-item__week {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.bb-timeline-item h3 {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 15px;
  margin-bottom: 6px;
}

.bb-timeline-item__meta {
  font-size: 11px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.bb-timeline-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bb-timeline-item__icon {
  color: var(--cyan);
  opacity: 0.9;
}

.bb-timeline-item.is-active .bb-timeline-item__icon {
  color: var(--green);
}

.bb-support-panel {
  padding: clamp(22px, 3vw, 28px);
  border-color: rgba(0, 232, 70, 0.25);
}

.bb-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: center;
}

@media (max-width: 768px) {
  .bb-support-grid {
    grid-template-columns: 1fr;
  }
}

.bb-support-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bb-support-item svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.bb-support-item h3 {
  font-size: 13px;
  font-family: "Space Mono", ui-monospace, monospace;
  margin-bottom: 4px;
}

.bb-support-item p {
  font-size: 11px;
  color: var(--muted);
}

/* Footer */
.bb-footer {
  margin-top: auto;
  padding: 28px 0 32px;
  border-top: 1px solid var(--edge);
}

.bb-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 16px;
}

.bb-footer__nav a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.bb-footer__nav a:hover {
  color: var(--green);
}

.bb-footer__copy {
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.bb-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

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