/* ================================================================
   FreeTracker — Premium Dark Sports UI
   Typography: Barlow Condensed (display) + Barlow (body)
   Palette: Deep navy + amber/gold accent + cool blue secondary
   ================================================================ */

:root {
  --bg: #0a1018;
  --panel: rgba(12, 20, 32, 0.9);
  --panel-solid: #111d2d;
  --panel-soft: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(140, 180, 230, 0.1);
  --border-strong: rgba(140, 180, 230, 0.2);
  --text: #f0f2f5;
  --text-secondary: #b8c7d6;
  --muted: #7b8fa5;
  --accent: #e8a832;
  --accent-strong: #d4691a;
  --accent-cool: #4da8f0;
  --positive: #5cd4a4;
  --negative: #e85d5d;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", "Noto Sans TC", "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(77, 168, 240, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 0%, rgba(232, 168, 50, 0.04) 0%, transparent 35%);
  background-attachment: fixed;
}

/* ── Typography Reset ── */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* ── Type Scale ── */
.text-display { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.text-title   { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.text-heading  { font-size: 1.3rem; }
.text-subhead  { font-size: 1.1rem; }
.text-body     { font-size: 0.9rem; }
.text-caption  { font-size: 0.8rem; }
.text-micro    { font-size: 0.7rem; }

/* subtle grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}

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

button {
  font: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Layout Shell ── */
.site-shell {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 20px 0 0;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #1c1200;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy small {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* ── Top Nav ── */
.topnav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.topnav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 150ms ease, background 150ms ease;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topnav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.lang-btn {
  padding: 6px 11px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
  position: relative;
}

/* vertical dividers between buttons */
.lang-btn + .lang-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--border);
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.is-active {
  color: #1c1200;
  background: var(--accent);
  font-weight: 800;
}

/* hide divider next to active */
.lang-btn.is-active::before,
.lang-btn.is-active + .lang-btn::before {
  background: transparent;
}

/* ── Shared Label Styles ── */
.eyebrow,
.field-label,
.panel-label,
.team-fit,
.market-tag,
.story-kicker,
.metric-label,
.signal-kicker,
.roadmap-step,
.page-kicker {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ── Section Panels ── */
.hero,
.tracker-section,
.market-section,
.team-section,
.roadmap-section,
.news-section {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 40px;
}

.hero h1 {
  margin: 10px 0 0;
  max-width: 18ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 1.1rem;
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hero-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 48ch;
  margin-top: 16px;
}

.lead-story p,
.market-card p,
.mini-card p,
.team-description,
.detail-card p,
.launch-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.88rem;
}

.roadmap-card p,
.faq-item p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.9rem;
}

.metric-card p,
.surface-step p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.82rem;
}

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

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

.button-primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #1c1200;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(232, 168, 50, 0.2);
}

.button-primary:hover {
  box-shadow: 0 5px 20px rgba(232, 168, 50, 0.3);
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.market-tab,
.team-button {
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.market-tab:hover,
.team-button:hover {
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Cards (shared base) ── */
.hero-rail,
.hero-surface,
.metric-card,
.lead-story,
.tracker-board,
.launch-card,
.market-card,
.mini-card,
.market-preview,
.team-menu,
.team-card,
.detail-card,
.roadmap-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 24, 38, 0.65);
}

/* ── Hero Metrics ── */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metric-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.35;
}

.metric-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.8rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

/* ── Hero Rail (right sidebar) ── */
.hero-rail {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-surface {
  padding: 22px;
}

.hero-surface-main {
  position: relative;
  overflow: hidden;
}

.hero-surface-main::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 184, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.surface-head,
.tracker-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-chip,
.team-role {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.1);
  color: var(--positive);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.surface-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.surface-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  transition: background 150ms ease;
}

.surface-step:hover {
  background: var(--panel-hover);
}

.surface-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(94, 184, 255, 0.1);
  color: var(--accent-cool);
  font-size: 0.82rem;
  font-weight: 700;
}

.surface-step strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.surface-step p {
  font-size: 0.84rem;
}

.signal-list,
.launch-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.signal-list li,
.launch-list li,
.mini-card li,
.detail-card li {
  line-height: 1.7;
}

/* ── Breaking News Band ── */
.signal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.signal-item {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 168, 50, 0.12);
  background: rgba(232, 168, 50, 0.03);
  transition: background 150ms ease, border-color 150ms ease;
}

.signal-item:hover {
  background: rgba(232, 168, 50, 0.06);
  border-color: rgba(232, 168, 50, 0.25);
}

.signal-item .signal-kicker {
  color: var(--accent-strong);
  font-size: 0.64rem;
}

.signal-item strong {
  display: block;
  margin-top: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.25;
}

.signal-item strong a {
  text-decoration: none;
  transition: color 150ms ease;
}

.signal-item strong a:hover {
  color: var(--accent);
}

/* ── Story Grid / News Section ── */
.story-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 16px;
}

.story-card,
.team-link-card {
  display: block;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(14, 24, 38, 0.65);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.story-card:hover,
.team-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 168, 50, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.story-card-feature {
  background:
    linear-gradient(135deg, rgba(94, 184, 255, 0.06) 0%, transparent 50%),
    rgba(14, 24, 38, 0.65);
  border-color: var(--border-strong);
}

.story-card h3,
.team-link-card h3 {
  margin: 6px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.12;
}

.story-card-feature h3 {
  font-size: 1.55rem;
}

.story-card p,
.team-link-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.86rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  transition: gap 150ms ease;
}

.section-link:hover {
  gap: 8px;
}

.section-link::after {
  content: "\2192";
  font-size: 1em;
}

/* ── Section Headings ── */
.section-heading {
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
}

/* ── Tracker Grid ── */
.tracker-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.55fr;
  gap: 16px;
}

.lead-story,
.tracker-board,
.launch-card,
.market-card,
.mini-card,
.market-preview,
.team-card,
.roadmap-card {
  padding: 22px;
}

.lead-story h3 {
  margin: 8px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.08;
}

.market-card h3,
.team-card h3 {
  margin: 8px 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}

.roadmap-card h3 {
  margin: 8px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.15;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.lead-meta span,
.preview-card span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.board-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.board-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  transition: background 150ms ease;
}

.board-item:hover {
  background: var(--panel-hover);
}

.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.board-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.board-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.board-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.82rem;
}

.launch-column {
  display: grid;
  gap: 16px;
}

.launch-card-accent {
  position: relative;
  overflow: hidden;
}

.launch-card-accent::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 176, 58, 0.15), transparent);
  pointer-events: none;
}

/* ── Market Tabs ── */
.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.market-tab,
.team-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.market-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.market-tab.is-active,
.team-button.is-active {
  background: rgba(240, 176, 58, 0.12);
  border-color: rgba(240, 176, 58, 0.4);
  color: var(--text);
}

.market-stage {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.72fr;
  gap: 16px;
}

.market-points,
.market-sidecards,
.team-stats,
.team-columns,
.roadmap-grid {
  display: grid;
  gap: 16px;
}

.market-points {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}

.mini-card ul,
.detail-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.88rem;
}

.preview-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.preview-card strong {
  display: block;
  margin: 8px 0 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.84rem;
}

/* ── Team Pages ── */
.team-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

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

.team-menu {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.team-button {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
}

.team-button strong {
  display: block;
  font-size: 0.9rem;
}

.team-button span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.team-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.team-stats {
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
}

.team-stats article,
.detail-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.team-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.team-columns {
  grid-template-columns: 1fr 1fr;
}

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

/* ── Page Hero (sub-pages) ── */
.page-hero {
  margin-top: 24px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(10, 22, 38, 0.95) 0%, rgba(10, 22, 38, 0.9) 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 168, 50, 0.05), transparent 60%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 150ms ease;
}

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

.breadcrumb span {
  color: rgba(138, 157, 179, 0.4);
}

.page-kicker {
  margin: 12px 0 0;
}

.page-title {
  margin: 6px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-subtitle {
  max-width: 70ch;
  margin-top: 14px;
  color: var(--text-secondary);
  line-height: 1.72;
  font-size: 0.92rem;
  text-wrap: pretty;
}

/* ── Stats Strip ── */
.stats-strip,
.related-links {
  display: grid;
  gap: 12px;
}

.stats-strip {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
}

.stat-chip,
.related-link,
.faq-item,
.article-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(14, 24, 38, 0.65);
}

.stat-chip {
  padding: 16px 18px;
}

.stat-chip span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 600;
}

.stat-chip strong {
  display: block;
  margin-top: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* ── Content Grid ── */
.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 24px;
}

.stack-grid {
  display: grid;
  gap: 16px;
}

.article-card,
.faq-item,
.related-link {
  padding: 22px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.faq-item h3,
.related-link h3 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.15;
}

.article-card p,
.article-card li {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.88rem;
}

.article-card li + li {
  margin-top: 6px;
}

.related-link p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.84rem;
}

.article-card ul {
  margin: 0;
  padding-left: 18px;
}

/* ── Player & Trend Cards ── */
.player-grid,
.trend-grid {
  display: grid;
  gap: 12px;
}

.player-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 8px;
}

.player-card,
.trend-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel-soft);
  transition: background 150ms ease;
}

.player-card:hover,
.trend-card:hover {
  background: var(--panel-hover);
}

.player-card h3,
.trend-card h3 {
  margin: 6px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

.player-card p,
.trend-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.84rem;
}

.trend-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

/* ── Tracker Table ── */
.tracker-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.tracker-table th,
.tracker-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  vertical-align: middle;
  font-size: 0.88rem;
}

.tracker-table th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.tracker-table tbody tr {
  transition: background 120ms ease;
}

.tracker-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.tracker-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.tracker-table tbody tr:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.05);
}

.tracker-table td strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.tracker-table td {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.tracker-table td a {
  color: var(--accent-cool);
  transition: color 150ms ease;
}

.tracker-table td a:hover {
  color: var(--accent);
}

/* ── FAQ & Related ── */
.faq-list {
  display: grid;
  gap: 12px;
}

.related-links {
  margin-top: 14px;
}

.related-link {
  display: block;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.related-link:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 168, 50, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ── Roadmap / FAQ Cards ── */
.roadmap-card {
  position: relative;
  overflow: hidden;
}

.roadmap-card::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 184, 255, 0.08), transparent 60%);
  pointer-events: none;
}

/* ── Animations ── */
.fade-in {
  animation: fadeIn 280ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Filter Bar (Tracker page) ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.filter-bar select,
.filter-bar input {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.filter-bar select:hover,
.filter-bar input:hover {
  background: rgba(255, 255, 255, 0.06);
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.filter-bar select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%238a9db3'%3E%3Cpath d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-bar input {
  flex: 1;
  min-width: 180px;
}

.filter-bar input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* ── Transaction Type Badges ── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-signed {
  background: rgba(92, 212, 164, 0.1);
  color: var(--positive);
}

.badge-traded {
  background: rgba(77, 168, 240, 0.1);
  color: var(--accent-cool);
}

.badge-released {
  background: rgba(232, 93, 93, 0.1);
  color: var(--negative);
}

.badge-resigned {
  background: rgba(232, 168, 50, 0.1);
  color: var(--accent);
}

/* ── Footer ── */
.site-footer {
  margin-top: 48px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 150ms ease;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  font-size: 0.84rem;
}

/* ================================================================
   Responsive
   ================================================================ */

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

  .tracker-grid,
  .market-stage,
  .team-layout,
  .story-grid,
  .content-grid,
  .team-directory {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .team-stats,
  .team-columns,
  .player-grid,
  .trend-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-band {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topnav {
    display: none;
  }

  .topbar {
    border-radius: var(--radius-xl);
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: calc(100vw - 20px);
    padding-top: 10px;
  }

  .topbar {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand-copy {
    display: none;
  }

  .hero,
  .tracker-section,
  .market-section,
  .team-section,
  .roadmap-section,
  .news-section {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero-metrics,
  .stats-strip,
  .team-stats,
  .player-grid,
  .trend-grid {
    grid-template-columns: 1fr;
  }

  .market-points {
    grid-template-columns: 1fr;
  }

  .team-card-header {
    flex-direction: column;
  }

  .filter-bar {
    padding: 12px;
    border-radius: var(--radius-lg);
  }

  .filter-bar select,
  .filter-bar input {
    width: 100%;
  }

  .tracker-table {
    font-size: 0.82rem;
  }

  .tracker-table th,
  .tracker-table td {
    padding: 8px 6px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 20px;
  }

  .page-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
}

@media (max-width: 480px) {
  .lang-btn {
    padding: 5px 8px;
    font-size: 0.66rem;
  }
}

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

  .fade-in {
    animation: none;
  }
}
