/* ============================================================
   Home Page — landing page styles
   ============================================================ */

/* ── HOME PAGE ────────────────────────────────────────────── */
.home-page {
  background: var(--clr-bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  height: 64px;
  background: rgba(16, 23, 34, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(37, 123, 244, 0.2);
  z-index: 100;
  box-shadow: 0 1px 0 rgba(37, 123, 244, 0.06);
}

.home-nav__actions {
  display: flex;
  gap: var(--space-sm);
}

.home-nav__actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  min-width: 80px;
}

/* ── Section container ─────────────────────────────────────── */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Hero */
.hero {
  min-height: calc(100dvh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl) var(--space-md);
  padding-top: calc(64px + var(--space-md));
}

.hero__bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 123, 244, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 123, 244, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.hero__logo {
  height: 52px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity var(--transition);
}

.hero__logo:hover {
  opacity: 1;
}

/* ── Per-logo size overrides for .hero__logos — adjust freely ── */
.hero__logos .hero__logo--dict {
  height: 48px;
  max-width: 100px;
}

.hero__logos .hero__logo--lalago {
  height: 52px;
  max-width: 110px;
}

.hero__logos .hero__logo--msu {
  height: 52px;
  max-width: 110px;
}

.hero__logos .hero__logo--ccs {
  height: 52px;
  max-width: 110px;
}

.hero__logos .hero__logo--whitehat {
  height: 54px;
  max-width: 110px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(37, 123, 244, 0.15);
  border: 1px solid rgba(37, 123, 244, 0.3);
  border-radius: var(--radius-full);
  color: var(--clr-primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.hero__cta .btn {
  flex: 1;
  min-width: 160px;
  text-align: center;
  justify-content: center;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero__stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--clr-border);
}

/* Hero preview card */
.hero__preview {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.preview-card {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--clr-surface-3);
  border-bottom: 1px solid var(--clr-border);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dot--red {
  background: #ef4444;
}

.preview-dot--yellow {
  background: #f59e0b;
}

.preview-dot--green {
  background: #10b981;
}

.preview-card__title {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-left: 8px;
}

.preview-card__body {
  padding: var(--space-lg);
}

.parsons-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.parsons-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--clr-surface-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 640px) {
  .parsons-line {
    padding: 12px 14px;
    min-height: 48px;
  }

  .drag-handle {
    font-size: 1.2rem;
  }
}

.parsons-line--dragging {
  border-color: var(--clr-primary);
  background: var(--clr-primary-glow);
}

.parsons-line--highlight {
  border-color: var(--clr-green);
  background: rgba(16, 185, 129, 0.1);
}

.drag-handle {
  color: var(--clr-text-dim);
  user-select: none;
}

.parsons-line code {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--clr-text);
}

.kw {
  color: #c792ea;
}

.fn {
  color: #82aaff;
}

.num {
  color: #f78c6c;
}

.preview-badge {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.preview-badge--correct {
  background: rgba(16, 185, 129, 0.15);
  color: var(--clr-green);
}

.preview-badge--incorrect {
  background: rgba(239, 68, 68, 0.12);
  color: var(--clr-red);
}

.parsons-line--drag-over {
  border-color: var(--clr-primary);
  background: var(--clr-primary-glow);
  transform: translateY(-2px);
}

/* ── Features section ─────────────────────────────────────── */
.features,
.modes {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--clr-primary-light);
  background: rgba(37, 123, 244, 0.08);
  border: 1px solid rgba(37, 123, 244, 0.25);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--clr-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

/* ── Feature Card — Arena Panel Design ──────────────────────── */
.feature-card {
  position: relative;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--transition-slow),
    box-shadow var(--transition-slow),
    transform var(--transition-slow);
}

/* Top accent bar */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 123, 244, 0.65), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

/* Inner corner sheen */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 123, 244, 0.05) 0%, transparent 55%);
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(37, 123, 244, 0.45);
  box-shadow:
    0 0 0 1px rgba(37, 123, 244, 0.08),
    0 8px 32px rgba(37, 123, 244, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

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

/* ── Featured variant ──────────────────────────────────────── */
.feature-card--featured {
  grid-column: span 1;
  border-color: rgba(37, 123, 244, 0.35);
  background: linear-gradient(135deg, rgba(37, 123, 244, 0.07) 0%, var(--clr-surface-2) 60%);
}

.feature-card--featured::before {
  opacity: 0.7;
}

/* ── Icon wrap ─────────────────────────────────────────────── */
.feature-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(37, 123, 244, 0.1);
  border: 1px solid rgba(37, 123, 244, 0.25);
  color: var(--clr-primary-light);
  margin-bottom: var(--space-md);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition-slow),
    transform var(--transition);
}

.feature-card:hover .feature-card__icon-wrap {
  background: rgba(37, 123, 244, 0.18);
  border-color: rgba(37, 123, 244, 0.5);
  box-shadow: 0 0 16px rgba(37, 123, 244, 0.25);
  transform: scale(1.08);
}

/* ── Text ──────────────────────────────────────────────────── */
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  color: var(--clr-text);
  transition: color var(--transition-slow);
}

.feature-card:hover h3 {
  color: var(--clr-primary-light);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* ── Badge ─────────────────────────────────────────────────── */
.feature-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-code);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 123, 244, 0.18);
  color: var(--clr-primary-light);
  border: 1px solid rgba(37, 123, 244, 0.4);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  z-index: 3;
}

/* ── Terminal bar (featured card) ───────────────────────────── */
.feature-card__terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
  padding: 9px var(--space-md);
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(37, 123, 244, 0.14);
}

.feature-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.72;
}

.feature-card__dot--r {
  background: #f87171;
}

.feature-card__dot--y {
  background: #fbbf24;
}

.feature-card__dot--g {
  background: #34d399;
}

.feature-card__terminal-tab {
  margin-left: auto;
  font-family: var(--font-code);
  font-size: 0.67rem;
  color: var(--clr-text-muted);
  opacity: 0.5;
  letter-spacing: 0.03em;
}

/* ── Code decoration block ──────────────────────────────────── */
.feature-card__code-deco {
  margin-top: var(--space-md);
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(37, 123, 244, 0.3);
  font-family: var(--font-code);
  font-size: 0.685rem;
  color: #abb2bf;
  opacity: 1;
  overflow: hidden;
  transition: border-left-color var(--transition-slow);
  pointer-events: none;
}

.code-line {
  display: block;
  position: relative;
  padding-left: 42px;
  padding-right: var(--space-sm);
  line-height: 1.9;
}

.code-line::before {
  content: attr(data-line);
  position: absolute;
  left: 0;
  width: 34px;
  text-align: right;
  color: #3b4455;
  font-size: 0.65rem;
  line-height: inherit;
  user-select: none;
}

/* 2-space indent helper */
.tok-indent::before {
  content: '\00a0\00a0';
}

/* ── Syntax token colors — One Dark Pro ─────────────────────── */
.tok-kw {
  color: #c678dd;
}

.tok-fn {
  color: #61afef;
}

.tok-str {
  color: #98c379;
}

.tok-num {
  color: #d19a66;
}

.tok-cmt {
  color: #5c6370;
  font-style: italic;
}

.tok-op {
  color: #abb2bf;
}

.tok-var {
  color: #e06c75;
}

/* ── Card colour variants ────────────────────────────────────── */
.feature-card--recall .feature-card__icon-wrap {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.25);
  color: #22d3ee;
}

.feature-card--recall:hover .feature-card__icon-wrap {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}

.feature-card--recall:hover {
  border-color: rgba(34, 211, 238, 0.4);
}

.feature-card--recall .feature-card__code-deco {
  border-left-color: rgba(34, 211, 238, 0.3);
}

.feature-card--recall:hover h3 {
  color: #22d3ee;
}

.feature-card--progress .feature-card__icon-wrap {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.feature-card--progress:hover .feature-card__icon-wrap {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

.feature-card--progress:hover {
  border-color: rgba(251, 191, 36, 0.4);
}

.feature-card--progress .feature-card__code-deco {
  border-left-color: rgba(251, 191, 36, 0.3);
}

.feature-card--progress:hover h3 {
  color: #fbbf24;
}

.feature-card--quick .feature-card__icon-wrap {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.25);
  color: #fb923c;
}

.feature-card--quick:hover .feature-card__icon-wrap {
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(251, 146, 60, 0.5);
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.25);
}

.feature-card--quick:hover {
  border-color: rgba(251, 146, 60, 0.4);
}

.feature-card--quick .feature-card__code-deco {
  border-left-color: rgba(251, 146, 60, 0.3);
}

.feature-card--quick:hover h3 {
  color: #fb923c;
}

.feature-card--debug .feature-card__icon-wrap {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.feature-card--debug:hover .feature-card__icon-wrap {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.25);
}

.feature-card--debug:hover {
  border-color: rgba(248, 113, 113, 0.4);
}

.feature-card--debug .feature-card__code-deco {
  border-left-color: rgba(248, 113, 113, 0.3);
}

.feature-card--debug:hover h3 {
  color: #f87171;
}

.feature-card--social .feature-card__icon-wrap {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
  color: #34d399;
}

.feature-card--social:hover .feature-card__icon-wrap {
  background: rgba(52, 211, 153, 0.18);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.25);
}

.feature-card--social:hover {
  border-color: rgba(52, 211, 153, 0.4);
}

.feature-card--social .feature-card__code-deco {
  border-left-color: rgba(52, 211, 153, 0.3);
}

.feature-card--social:hover h3 {
  color: #34d399;
}

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

/* ── Modes section — Arena Mode Select Design ────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.mode-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--clr-text);
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Left accent stripe */
.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--mode-clr, var(--clr-primary));
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

/* Inner corner sheen */
.mode-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--mode-rgb, 37, 123, 244), 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.mode-card:hover {
  border-color: rgba(var(--mode-rgb, 37, 123, 244), 0.4);
  box-shadow:
    0 0 0 1px rgba(var(--mode-rgb, 37, 123, 244), 0.07),
    0 8px 32px rgba(var(--mode-rgb, 37, 123, 244), 0.12),
    0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

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

/* ── Per-variant color tokens ──────────────────────────────── */
.mode-card--ranked {
  --mode-clr: #fbbf24;
  --mode-rgb: 251, 191, 36;
}

.mode-card--competitive {
  --mode-clr: #f87171;
  --mode-rgb: 248, 113, 113;
}

.mode-card--learning {
  --mode-clr: #34d399;
  --mode-rgb: 52, 211, 153;
}

.mode-card--solo {
  --mode-clr: #4f93f6;
  --mode-rgb: 79, 147, 246;
}

.mode-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.mode-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(var(--mode-rgb, 37, 123, 244), 0.1);
  border: 1px solid rgba(var(--mode-rgb, 37, 123, 244), 0.25);
  color: var(--mode-clr, var(--clr-primary-light));
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.mode-card:hover .mode-card__icon-wrap {
  background: rgba(var(--mode-rgb, 37, 123, 244), 0.18);
  border-color: rgba(var(--mode-rgb, 37, 123, 244), 0.5);
  box-shadow: 0 0 14px rgba(var(--mode-rgb, 37, 123, 244), 0.22);
  transform: scale(1.08);
}

.mode-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  color: var(--clr-text);
  transition: color 0.2s;
}

.mode-card:hover h3 {
  color: var(--mode-clr, var(--clr-primary-light));
}

.mode-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  font-family: var(--font-body);
  flex-grow: 1;
}

.mode-card__code-deco {
  margin-top: var(--space-md);
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(var(--mode-rgb, 37, 123, 244), 0.4);
  font-family: var(--font-code);
  font-size: 0.685rem;
  color: #abb2bf;
  overflow: hidden;
  transition: border-left-color 0.25s ease;
}

.mode-card:hover .mode-card__code-deco {
  border-left-color: rgba(var(--mode-rgb, 37, 123, 244), 0.8);
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-code);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(var(--mode-rgb, 37, 123, 244), 0.12);
  border: 1px solid rgba(var(--mode-rgb, 37, 123, 244), 0.3);
  color: var(--mode-clr, var(--clr-primary-light));
}

.mode-tag--ranked,
.mode-tag--competitive,
.mode-tag--learning,
.mode-tag--solo {
  background: rgba(var(--mode-rgb, 37, 123, 244), 0.12);
  border-color: rgba(var(--mode-rgb, 37, 123, 244), 0.3);
  color: var(--mode-clr, var(--clr-primary-light));
}

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

/* ── Podium section ───────────────────────────────────────── */
.podium-section {
  padding: var(--space-2xl) 0 0;
  position: relative;
  overflow: hidden;
}


/* ── Per-rank tokens ──────────────────────────────────────── */
.podium-slot--1st {
  --pc: #fbbf24;
  --pr: 251, 191, 36;
}

.podium-slot--2nd {
  --pc: #94a3b8;
  --pr: 148, 163, 184;
}

.podium-slot--3rd {
  --pc: #c47c2e;
  --pr: 196, 124, 46;
}

/* ── Arena wrapper (holds floor line) ────────────────────── */
.podium-arena {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.podium-arena::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(148, 163, 184, 0.25) 20%,
      rgba(251, 191, 36, 0.45) 50%,
      rgba(148, 163, 184, 0.25) 80%,
      transparent);
}

/* ── Podium flex container ────────────────────────────────── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 300px;
  padding: 0 8px;
}

.podium-slot--1st {
  order: 2;
}

.podium-slot--2nd {
  order: 1;
}

.podium-slot--3rd {
  order: 3;
}

/* ── Card ─────────────────────────────────────────────────── */
.podium-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(12, 18, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--pr), 0.22);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 22px 18px 20px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Top accent line */
.podium-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--pr), 0.95), transparent);
}

/* Inner corner sheen */
.podium-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--pr), 0.05) 0%, transparent 45%);
  pointer-events: none;
}

.podium-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 56px rgba(var(--pr), 0.14),
    0 0 0 1px rgba(var(--pr), 0.28);
}

/* Champion card slightly taller */
.podium-slot--1st .podium-card {
  padding-top: 28px;
}

/* ── Corner rank badge ────────────────────────────────────── */
.podium-card__rank {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--pr), 0.1);
  border: 1px solid rgba(var(--pr), 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  color: rgba(var(--pr), 0.9);
  z-index: 1;
}

/* ── Crown (1st only) ────────────────────────────────────── */
.podium-card__crown {
  color: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.65));
  line-height: 1;
  margin-bottom: -4px;
}

/* ── Avatar ───────────────────────────────────────────────── */
.podium-card__avatar {
  border-radius: 50%;
  overflow: hidden;
  background: rgba(var(--pr), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border: 3px solid rgba(var(--pr), 0.4);
}

.podium-slot--1st .podium-card__avatar {
  width: 108px;
  height: 108px;
}

.podium-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ── Body ─────────────────────────────────────────────────── */
.podium-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.podium-card__label {
  font-family: var(--font-code);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--pr), 0.9);
  background: rgba(var(--pr), 0.08);
  border: 1px solid rgba(var(--pr), 0.22);
  border-radius: 100px;
  padding: 2px 10px;
}

.podium-card__name {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pc);
  margin: 0;
}

.podium-slot--1st .podium-card__name {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

/* Stats pill */
.podium-card__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(var(--pr), 0.05);
  border: 1px solid rgba(var(--pr), 0.12);
  border-radius: 8px;
  padding: 8px 14px;
}

.podium-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.podium-card__stat-num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.podium-slot--1st .podium-card__stat-num {
  font-size: 1.1rem;
}

.podium-card__stat-lbl {
  font-size: 0.6rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.podium-card__stat-div {
  width: 1px;
  height: 22px;
  background: rgba(var(--pr), 0.2);
}

.podium-card__cta {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(var(--pr), 0.85);
  border: 1px solid rgba(var(--pr), 0.3);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.podium-card__cta:hover {
  background: rgba(var(--pr), 0.1);
  border-color: rgba(var(--pr), 0.55);
  color: rgba(var(--pr), 1);
}

/* ── Step platform ────────────────────────────────────────── */
.podium-step {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  color: rgba(var(--pr), 0.45);
  background: linear-gradient(180deg, rgba(var(--pr), 0.1) 0%, rgba(var(--pr), 0.04) 100%);
  border: 1px solid rgba(var(--pr), 0.18);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.podium-slot--1st .podium-step {
  height: 68px;
  font-size: 1.7rem;
}

.podium-slot--2nd .podium-step {
  height: 46px;
  font-size: 1.35rem;
}

.podium-slot--3rd .podium-step {
  height: 26px;
  font-size: 1rem;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .podium {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .podium-slot--1st {
    order: 1;
  }

  .podium-slot--2nd {
    order: 2;
  }

  .podium-slot--3rd {
    order: 3;
  }

  .podium-slot {
    max-width: 100%;
    padding: 0;
  }

  .podium-card {
    border-radius: var(--radius-xl);
    border-bottom: 1px solid rgba(var(--pr), 0.22);
  }

  .podium-step {
    display: none;
  }
}

/* ── Section grid background ─────────────────────────────── */
.podium-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 123, 244, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 123, 244, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* Floating code particles */
.podium-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.podium-particle {
  position: absolute;
  left: var(--px);
  top: var(--py);
  font-family: var(--font-code);
  font-size: 0.62rem;
  color: rgba(37, 123, 244, 0.16);
  animation: cta-float 11s ease-in-out var(--pd, 0s) infinite;
  letter-spacing: 0.06em;
  user-select: none;
}

/* Inner container clears absolute layers */
.podium-section>.home-container {
  position: relative;
  z-index: 1;
}

/* ── Terminal command in section header ──────────────────── */
.podium-section__cmd {
  font-family: var(--font-code);
  font-size: 0.68rem;
  color: var(--clr-text-muted);
  margin: -2px 0 12px;
  letter-spacing: 0.04em;
}

.podium-section__cmd-caret {
  color: #22c55e;
  margin-right: 5px;
}

.podium-section__cmd-flag {
  color: #a78bfa;
}

.podium-section__cmd-cursor {
  display: inline-block;
  width: 6px;
  height: 1.1em;
  background: #257bf4;
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: cta-blink 1.2s step-end infinite;
}

/* ── Code decorator line in podium card ──────────────────── */
.podium-card__code-line {
  font-family: var(--font-code);
  font-size: 0.57rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  margin-bottom: -2px;
  line-height: 1;
}

.podium-card__code-line .tok-kw {
  color: #a78bfa;
}

.podium-card__code-line .tok-fn {
  color: rgba(var(--pr), 0.65);
}

.podium-card__code-line .tok-op {
  color: rgba(255, 255, 255, 0.3);
}

.podium-card__code-line .tok-brace {
  color: rgba(255, 255, 255, 0.25);
}

/* ── Champion ambient glow behind the centre slot ────────── */
.podium-slot--1st {
  position: relative;
}

.podium-slot--1st::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 75%;
  background: radial-gradient(ellipse at 50% 100%, rgba(251, 191, 36, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: champion-ambient 4s ease-in-out infinite;
}

.podium-slot--1st>* {
  position: relative;
  z-index: 1;
}

@keyframes champion-ambient {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

/* ── HoF terminal bar ────────────────────────────────────── */
.hof-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hof-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hof-dot--r {
  background: #ef4444;
  opacity: 0.75;
}

.hof-dot--y {
  background: #fbbf24;
  opacity: 0.75;
}

.hof-dot--g {
  background: #22c55e;
  opacity: 0.75;
}

.hof-terminal-file {
  font-family: var(--font-code);
  font-size: 0.6rem;
  color: var(--clr-text-muted);
  margin-left: 8px;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .podium-particle {
    display: none;
  }

  .podium-section__cmd {
    display: none;
  }
}

/* ── Hall of Fame finalists list (ranks 4–10) ─────────────── */
.hof-list {
  margin-top: var(--space-xl);
  border: 1px solid rgba(37, 123, 244, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Terminal bar meta label */
.hof-terminal-meta {
  margin-left: auto;
  font-family: var(--font-code);
  font-size: 0.58rem;
  color: var(--clr-text-muted);
  opacity: 0.45;
  letter-spacing: 0.04em;
}

.hof-list__header {
  display: grid;
  grid-template-columns: 62px 1fr 130px 82px 86px;
  align-items: center;
  padding: 7px 20px;
  background: rgba(37, 123, 244, 0.04);
  border-bottom: 1px solid rgba(37, 123, 244, 0.1);
  font-family: var(--font-code);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(37, 123, 244, 0.5);
}

/* Row */
.hof-row {
  display: grid;
  grid-template-columns: 62px 1fr 130px 82px 86px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: background 0.18s;
}

.hof-row:last-child {
  border-bottom: none;
}

/* Left accent line on hover */
.hof-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 123, 244, 0.8), rgba(37, 123, 244, 0.2));
  opacity: 0;
  transition: opacity 0.18s;
}

.hof-row:hover {
  background: rgba(37, 123, 244, 0.055);
}

.hof-row:hover::before {
  opacity: 1;
}

/* Rank as editor line number */
.hof-row__rank {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hof-row__rank-num {
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  min-width: 18px;
  text-align: right;
}

.hof-row__rank-sep {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  user-select: none;
}

/* Player cell */
.hof-row__player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hof-row__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(37, 123, 244, 0.1);
  border: 1px solid rgba(37, 123, 244, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hof-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hof-row__player-info {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hof-row__name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.hof-row__tier {
  font-family: var(--font-code);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(37, 123, 244, 0.75);
  background: rgba(37, 123, 244, 0.08);
  border: 1px solid rgba(37, 123, 244, 0.2);
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}

/* RP with bar */
.hof-row__rp-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hof-row__rp {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.01em;
  line-height: 1;
}

.hof-row__rp small {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-left: 2px;
}

.hof-row__rp-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  width: 90%;
}

.hof-row__rp-bar span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, rgba(37, 123, 244, 0.5), rgba(37, 123, 244, 0.95));
  border-radius: 2px;
}

/* Level */
.hof-row__level {
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  color: #34d399;
  opacity: 0.75;
}

/* Link as terminal-style button */
.hof-row__link {
  font-family: var(--font-code);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--clr-primary-light);
  text-decoration: none;
  background: rgba(37, 123, 244, 0.06);
  border: 1px solid rgba(37, 123, 244, 0.18);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-block;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hof-row__link:hover {
  background: rgba(37, 123, 244, 0.14);
  border-color: rgba(37, 123, 244, 0.45);
  color: #fff;
}

@media (max-width: 640px) {
  .hof-list__header {
    display: none;
  }

  .hof-row {
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    gap: 3px 10px;
    padding: 10px 14px;
  }

  .hof-row__rank {
    grid-row: 1 / 3;
    align-items: flex-start;
    padding-top: 2px;
  }

  .hof-row__rank-sep {
    display: none;
  }

  .hof-row__player {
    grid-column: 2;
  }

  .hof-row__rp-wrap {
    grid-column: 3;
    grid-row: 1;
    align-items: flex-end;
  }

  .hof-row__rp-bar {
    display: none;
  }

  .hof-row__level {
    grid-column: 3;
    grid-row: 2;
    font-size: 0.62rem;
    text-align: right;
  }

  .hof-row__link {
    display: none;
  }

  .hof-row__tier {
    display: none;
  }
}

/* ── CTA section ──────────────────────────────────────────── */
.cta-section {
  padding: var(--space-2xl) 0;
}

.cta-panel {
  position: relative;
  text-align: center;
  background: rgba(12, 19, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 123, 244, 0.28);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  overflow: hidden;
}

/* Falling code rain canvas */
.cta-code-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Top accent bar */
.cta-panel::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--clr-primary) 25%,
      var(--clr-primary-light) 50%,
      var(--clr-primary) 75%,
      transparent 100%);
  z-index: 1;
}

/* HUD corners */
.cta-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 3;
}

.cta-corner--tl {
  top: 12px;
  left: 12px;
  border-top: 2px solid var(--clr-primary);
  border-left: 2px solid var(--clr-primary);
  border-radius: 3px 0 0 0;
}

.cta-corner--tr {
  top: 12px;
  right: 12px;
  border-top: 2px solid var(--clr-primary);
  border-right: 2px solid var(--clr-primary);
  border-radius: 0 3px 0 0;
}

.cta-corner--bl {
  bottom: 12px;
  left: 12px;
  border-bottom: 2px solid var(--clr-primary);
  border-left: 2px solid var(--clr-primary);
  border-radius: 0 0 0 3px;
}

.cta-corner--br {
  bottom: 12px;
  right: 12px;
  border-bottom: 2px solid var(--clr-primary);
  border-right: 2px solid var(--clr-primary);
  border-radius: 0 0 3px 0;
}


/* Floating code particles */
.cta-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cta-particle {
  position: absolute;
  left: var(--px);
  top: var(--py);
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  color: rgba(37, 123, 244, 0.16);
  animation: cta-float 9s ease-in-out var(--pd, 0s) infinite;
  letter-spacing: 0.06em;
  user-select: none;
}

@keyframes cta-float {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.16;
  }

  50% {
    transform: translateY(-14px);
    opacity: 0.3;
  }
}

/* Content z-index stacking */
.cta-panel .section-eyebrow,
.cta-panel__prompt,
.cta-panel__title,
.cta-panel__sub,
.cta-section__actions,
.cta-panel__stats {
  position: relative;
  z-index: 4;
}


.cta-panel .section-eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto var(--space-sm);
}

/* Terminal prompt line */
.cta-panel__prompt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(37, 123, 244, 0.6);
  background: rgba(37, 123, 244, 0.07);
  border: 1px solid rgba(37, 123, 244, 0.16);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}

.cta-panel__prompt-caret {
  color: var(--clr-primary);
  font-size: 0.58rem;
  animation: cta-blink 1.2s step-end infinite;
}

@keyframes cta-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.cta-panel__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--clr-text);
  margin-bottom: var(--space-md);
}

.cta-panel__title em {
  font-style: normal;
  color: var(--clr-primary);
}

.cta-panel__sub {
  font-size: 1rem;
  color: var(--clr-text-muted);
  max-width: 440px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.cta-section__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.cta-section__actions .btn {
  flex: 1;
  max-width: 220px;
  justify-content: center;
}

.cta-panel__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(37, 123, 244, 0.12);
}

.cta-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cta-stat__num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.cta-stat__label {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.04em;
}

.cta-stat__divider {
  width: 1px;
  height: 32px;
  background: rgba(37, 123, 244, 0.15);
}

@media (max-width: 768px) {
  .cta-panel {
    padding: var(--space-xl) var(--space-md);
  }

  .cta-section__actions .btn {
    flex: 1 1 100%;
    max-width: unset;
  }

  .cta-panel__stats {
    gap: var(--space-lg);
  }

  .cta-particle,
  .cta-code-rain {
    display: none;
  }
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials {
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.testimonials__eyebrow {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(37, 123, 244, 0.08);
  border: 1px solid rgba(37, 123, 244, 0.25);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: var(--space-sm);
}

.testimonials .section-header {
  margin-bottom: var(--space-xl);
}

/* Track wrapper — clips overflow and applies edge fade */
.tms-track-wrap {
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.tms-track-wrap--fade {
  -webkit-mask-image: linear-gradient(90deg,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%);
  mask-image: linear-gradient(90deg,
      transparent 0%,
      #000 12%,
      #000 88%,
      transparent 100%);
}

/* Scrolling track */
.tms-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  animation: tms-scroll-left 40s linear infinite;
}

.tms-track--reverse {
  animation-name: tms-scroll-right;
  animation-duration: 48s;
}

/* Pause on hover */
.tms-track-wrap:hover .tms-track {
  animation-play-state: paused;
}

@keyframes tms-scroll-left {
  from {
    transform: translateX(0);
  }

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

@keyframes tms-scroll-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* Card */
.tms-card {
  flex-shrink: 0;
  width: 300px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--clr-border);
  border-left: 2px solid rgba(37, 123, 244, 0.3);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-code);
  font-size: 0.685rem;
  color: #abb2bf;
  transition: border-left-color var(--transition), box-shadow var(--transition);
}

.tms-card:hover {
  border-left-color: var(--clr-primary);
  box-shadow: 0 4px 24px rgba(37, 123, 244, 0.08);
}

.tms-card__name {
  color: #61afef;
  font-weight: 600;
}

.tms-card__rank {
  font-style: italic;
  font-size: 0.685rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.home-footer {
  padding: 32px 0 24px;
  border-top: 1px solid rgba(37, 123, 244, 0.2);
  background: rgba(16, 23, 34, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 -1px 0 rgba(37, 123, 244, 0.06);
}

.home-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--clr-border-subtle);
}

.home-footer__brand .topbar__logo {
  margin-bottom: var(--space-md);
  display: inline-flex;
}

.home-footer__brand .topbar__logo-img {
  width: 88px;
  height: 88px;
}

.home-footer__brand .logo-text {
  font-size: 3rem;
}

.home-footer__tagline {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  max-width: 380px;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.home-footer__langs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-footer__langs-label {
  font-family: var(--font-code);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.home-footer__lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-footer__lang-chips .lang-chip {
  flex: 1;
  justify-content: center;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-left: 2px solid var(--lang-color, var(--clr-primary));
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: color var(--transition), background var(--transition), border-left-color var(--transition);
}

.lang-chip svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.lang-chip:hover {
  color: var(--lang-color, var(--clr-primary));
  background: var(--clr-surface-3);
  border-left-color: var(--lang-color, var(--clr-primary));
}

/* ── Team Terminal ──────────────────────────────────────────── */
.team-terminal {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(37, 123, 244, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.5);
}

.team-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(37, 123, 244, 0.1);
}

.team-terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-terminal__dot--r {
  background: #f87171;
}

.team-terminal__dot--y {
  background: #fbbf24;
}

.team-terminal__dot--g {
  background: #34d399;
}

.team-terminal__title {
  margin-left: 6px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.02em;
}

.team-terminal__cwd {
  margin-left: auto;
  font-family: var(--font-code);
  font-size: 0.68rem;
  color: #3b4455;
  letter-spacing: 0.02em;
}

.team-terminal__body {
  padding: var(--space-md) 0;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: #abb2bf;
  line-height: 1.85;
  counter-reset: ttml-ln;
  overflow-x: auto;
}

.ttml {
  display: block;
  position: relative;
  padding-left: 52px;
  padding-right: var(--space-lg);
  counter-increment: ttml-ln;
  opacity: 0;
  white-space: nowrap;
}

.ttml::before {
  content: counter(ttml-ln);
  position: absolute;
  left: 0;
  width: 40px;
  text-align: right;
  color: #3b4455;
  font-size: 0.68rem;
  line-height: inherit;
  user-select: none;
}

@media (max-width: 768px) {
  .team-terminal__body {
    font-size: 0.72rem;
  }

  .ttml {
    padding-left: 44px;
  }

  .ttml::before {
    width: 32px;
  }

  .team-terminal__cwd {
    display: none;
  }
}

@media (max-width: 480px) {
  .team-terminal__bar {
    padding: 8px var(--space-sm);
  }

  .team-terminal__body {
    font-size: 0.62rem;
    padding: var(--space-sm) 0;
  }

  .ttml {
    padding-left: 34px;
    padding-right: var(--space-sm);
  }

  .ttml::before {
    width: 24px;
    font-size: 0.55rem;
  }

  .team-terminal__dot {
    width: 9px;
    height: 9px;
  }
}

.ttml--blank {
  min-height: 1.85em;
}

@keyframes ttml-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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

.team-terminal__body--animate .ttml {
  animation: ttml-in 0.22s calc(var(--i, 1) * 65ms) ease forwards;
}

.ttml__cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  background: var(--clr-primary-light);
  margin-left: 3px;
  vertical-align: text-bottom;
  opacity: 0;
}

.team-terminal__body--animate .ttml--last .ttml__cursor {
  animation:
    ttml-in 0.22s calc(36 * 65ms) ease forwards,
    cursor-blink 1s calc(36 * 65ms + 0.22s) step-end infinite;
}

@keyframes cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Team section ─────────────────────────────────────────── */
.team-section {
  padding: var(--space-2xl) 0;
}

.team-section h2 em {
  color: #257bf4;
  font-style: normal;
}

.team-section .section-eyebrow {
  color: #257bf4;
  background: rgba(37, 123, 244, 0.08);
  border-color: rgba(37, 123, 244, 0.25);
}

.team-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.team-grid__lead {
  display: flex;
  justify-content: center;
}

.team-grid__members {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  width: 100%;
  max-width: 960px;
}

.team-grid__footer {
  margin-top: var(--space-sm);
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-lg);
  background: rgba(20, 30, 45, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #257bf4, transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 123, 244, 0.3);
}

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

/* Lead card */
.team-card--lead {
  width: 260px;
  border-color: rgba(37, 123, 244, 0.28);
  background: rgba(16, 23, 40, 0.75);
}

.team-card--lead::before {
  opacity: 0.6;
}

.team-card--lead .team-card__avatar {
  width: 88px;
  height: 88px;
  font-size: 1.6rem;
}

.team-card--lead .team-card__name {
  font-size: 1.15rem;
}

.team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 123, 244, 0.08);
  border: 2px solid rgba(37, 123, 244, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: #e2e8f4;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #e2e8f4;
  margin: 0;
  letter-spacing: -0.01em;
}

.team-card__role {
  font-family: var(--font-code);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #257bf4;
  opacity: 0.85;
}

/* Extra members — collapsed by default */
.team-grid__extra {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

.team-grid__extra--open {
  max-height: 1200px;
  opacity: 1;
}

.team-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid rgba(37, 123, 244, 0.35);
  border-radius: var(--radius-md);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #257bf4;
  background: rgba(37, 123, 244, 0.06);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.team-view-all:hover {
  background: rgba(37, 123, 244, 0.14);
  border-color: rgba(37, 123, 244, 0.55);
}

.team-view-all__chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.team-view-all[aria-expanded="true"] .team-view-all__chevron {
  transform: rotate(180deg);
}

@media (max-width: 900px) {

  .team-grid__members,
  .team-grid__extra {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  .team-card--lead {
    width: 100%;
    max-width: 320px;
  }

  .team-grid__extra--open {
    max-height: 2400px;
  }
}

@media (max-width: 480px) {

  .team-grid__members,
  .team-grid__extra {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .team-grid__extra--open {
    max-height: 4800px;
  }
}

/* ── Footer contact ───────────────────────────────────────── */
.home-footer__contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-self: start;
}

.home-footer__logos-label {
  grid-column: 1 / span 3;
  justify-self: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted, #8899aa);
  margin-bottom: var(--space-xs);
}

.home-footer__logos {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding-top: var(--space-sm);
}

.home-footer__logos .hero__logo {
  height: 80px;
  max-width: 170px;
}

/* ── Per-logo size overrides — adjust freely ─────────────── */
.home-footer__logos .hero__logo--dict {
  height: 75px;
  max-width: 160px;
}

.home-footer__logos .hero__logo--lalago {
  height: 85px;
  max-width: 180px;
}

.home-footer__logos .hero__logo--msu {
  height: 80px;
  max-width: 170px;
}

.home-footer__logos .hero__logo--ccs {
  height: 80px;
  max-width: 170px;
}

.home-footer__logos .hero__logo--whitehat {
  height: 85px;
  max-width: 180px;
}

.home-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-footer__col-label {
  font-family: var(--font-code);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 4px;
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}

.footer-contact__item svg {
  flex-shrink: 0;
  opacity: 0.5;
}

a.footer-contact__item:hover {
  color: var(--clr-primary-light);
}

a.footer-contact__item:hover svg {
  opacity: 1;
}

.home-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.home-footer__copy {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--clr-text-muted);
}

.home-footer__built {
  font-family: var(--font-code);
  font-size: 0.68rem;
  color: var(--clr-text-dim);
  letter-spacing: 0.06em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-nav {
    padding: 0 var(--space-md);
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
    padding-top: calc(64px + var(--space-lg));
    padding-right: var(--space-md);
    padding-bottom: var(--space-2xl);
    padding-left: var(--space-md);
    overflow: visible;
    align-items: start;
  }

  .hero__preview {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .parsons-line code {
    font-size: 0.75rem;
  }

  .home-container {
    padding: 0 var(--space-md);
  }

  .hero__cta .btn {
    flex: 1 1 100%;
    min-width: unset;
  }

  .home-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .home-footer__contact {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Reset span-3 when contact grid is single-column */
  .home-footer__logos-label {
    grid-column: 1;
  }

  .home-footer__logos {
    grid-column: 1;
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  /* Scale footer logos down on mobile */
  .home-footer__logos .hero__logo {
    height: 56px;
    max-width: 120px;
  }

  .home-footer__logos .hero__logo--dict {
    height: 50px;
    max-width: 108px;
  }

  .home-footer__logos .hero__logo--lalago {
    height: 58px;
    max-width: 124px;
  }

  .home-footer__logos .hero__logo--msu {
    height: 56px;
    max-width: 120px;
  }

  .home-footer__logos .hero__logo--ccs {
    height: 56px;
    max-width: 120px;
  }

  .home-footer__logos .hero__logo--whitehat {
    height: 58px;
    max-width: 124px;
  }

  .home-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Hero logos — wrap and shrink for 5-logo row */
  .hero__logos {
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
  }

  .hero__logos .hero__logo {
    height: 38px;
    max-width: 80px;
  }

  .hero__logos .hero__logo--dict {
    height: 32px;
    max-width: 72px;
  }

  .hero__logos .hero__logo--lalago {
    height: 38px;
    max-width: 80px;
  }

  .hero__logos .hero__logo--msu {
    height: 38px;
    max-width: 80px;
  }

  .hero__logos .hero__logo--ccs {
    height: 38px;
    max-width: 80px;
  }

  .hero__logos .hero__logo--whitehat {
    height: 38px;
    max-width: 80px;
  }

}

/* ── Footer Feedback Form ──────────────────────────────────── */
.home-footer__feedback {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--clr-border-subtle);
}

.footer-feedback {
  max-width: 520px;
}

.footer-feedback__header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--space-sm);
}

.footer-feedback__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-feedback__form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 8px 11px;
  outline: none;
  transition: border-color 0.15s;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}

.footer-feedback__form textarea::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.5;
}

.footer-feedback__form textarea:focus {
  border-color: var(--clr-primary);
}

.footer-feedback__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}