/* ============================================
   F7R.GG — COMPANY WIKI v3
   Sidebar layout. Modern. Alive.
   ============================================ */

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

:root {
  /* Colors */
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-overlay: #1a1a26;
  --bg-elevated: rgba(26, 26, 38, 0.6);
  --border: #2a2a3a;
  --border-subtle: #3a3a4a;

  --accent: #00e5ff;
  --accent-dim: #00b8cc;
  --accent-dark: #002a33;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --cta: #ffcc00;
  --cta-dim: #ccaa00;
  --cta-hover: #ffe044;

  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #606078;

  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;

  /* Fonts */
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-brand: 'Audiowide', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-data: 'Chakra Petch', sans-serif;
  --font-gg: 'Rajdhani', sans-serif;

  /* Layout */
  --sidebar-w: 240px;
  --sidebar-collapsed: 60px;
  --header-h: 52px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cta-hover); }

/* F7R brand text */
.f7r-text {
  font-family: var(--font-brand);
  letter-spacing: -2px;
  color: var(--accent);
}

.gg-text {
  font-family: var(--font-gg);
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-primary) !important;
}

/* ============================================
   HERO LANDING (full viewport, before sidebar)
   ============================================ */
.hero-landing {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.75);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  z-index: 2;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  animation: heroFadeIn 0.8s ease-out;
}

.hero-terminal {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  opacity: 0.7;
}

.hero-prompt { color: var(--cta); }
.hero-cursor { animation: blink 1s step-end infinite; color: var(--accent); }
.hero-cmd { color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 12px;
}

.hero-title {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  line-height: 1;
}

.hero-logo {
  height: clamp(3rem, 10vw, 7rem);
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.3)) drop-shadow(0 0 80px rgba(0, 229, 255, 0.1));
  display: block;
}

.hero-title .gg-text {
  line-height: 1;
  font-size: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  top: 8px;
}

.inline-logo {
  height: 0.85em;
  vertical-align: baseline;
  margin: 0 2px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--cta);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  animation: heroFadeIn 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
  animation: heroFadeIn 0.8s ease-out 0.3s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 20px;
  margin-bottom: 32px;
  animation: heroFadeIn 0.8s ease-out 0.4s both;
}

.hero-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  animation: heroFadeIn 0.8s ease-out 0.5s both;
}

.hero-stat { text-align: center; }

.hero-stat-val {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.2s;
  animation: heroFadeIn 0.8s ease-out 0.7s both;
}

.hero-scroll:hover { color: var(--accent); }

.hero-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

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

@media (max-width: 768px) {
  .hero-landing {
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 15vh;
  }
  .hero-content {
    padding: 20px 16px;
  }
  .hero-stats { gap: 8px; flex-wrap: nowrap; justify-content: center; width: 100%; }
  .hero-stat { flex: 1; min-width: 0; }
  .hero-stat-val { font-size: 1.1rem; }
  .hero-stat-lbl { font-size: 7px; letter-spacing: 0.5px; }
  .hero-title { letter-spacing: 3px; }
  .hero-tagline { font-size: 0.65rem; letter-spacing: 2px; }
  .hero-subtitle { font-size: 0.82rem; padding: 0 8px; }
  .hero-landing {
    padding-bottom: 0;
  }
  .hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    transform: none;
    display: flex;
    justify-content: center;
  }
  /* Mobile: sidebar slides in/out, toggle button closes it */
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-toggle { display: flex !important; }
  .main-content { margin-left: 0 !important; }
  .hero-terminal { font-size: 0.75rem; margin-bottom: 12px; }
  .hero-badge { font-size: 10px; margin-bottom: 20px; }
}

/* ============================================
   LAYOUT: Sidebar + Header + Content
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease;
  overflow: hidden;
}

.sidebar-collapsed { width: var(--sidebar-collapsed); }
.sidebar-collapsed .sidebar-brand .gg { display: none; }
.sidebar-collapsed .sidebar-brand { cursor: pointer; }
.sidebar-collapsed .sidebar-brand .brand-logo { height: 16px; }
.sidebar-collapsed .sidebar-header { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-toggle { display: none; }
.sidebar-collapsed .sidebar-group-label { opacity: 0; height: 8px; padding: 4px 0; }
.sidebar-collapsed .sidebar-item span { opacity: 0; width: 0; overflow: hidden; }
.sidebar-collapsed .sidebar-item { justify-content: center; padding: 8px; margin: 1px 8px; }
.sidebar-collapsed .sidebar-status span:not(.dot) { display: none; }
.sidebar-collapsed .sidebar-status { justify-content: center; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-brand {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  letter-spacing: -1px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand { display: inline-flex; align-items: flex-end; gap: 0; line-height: 1; overflow: visible; }
.sidebar-brand .brand-logo { height: 22px; display: block; }
.sidebar-header { overflow: visible; }
.sidebar-brand .gg { color: var(--text-primary); font-family: var(--font-gg); font-weight: 500; letter-spacing: 1px; font-size: 0.85rem; line-height: 1; position: relative; top: 4px; }

.sidebar-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-toggle:hover { color: var(--text-primary); border-color: var(--border-subtle); }

/* Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-group { margin-bottom: 4px; }

.sidebar-group-label {
  padding: 12px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  text-decoration: none;
}

.sidebar-item:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

.sidebar-item.active {
  color: var(--accent);
  background: var(--accent-dark);
  border-right: 2px solid var(--accent);
}

.sidebar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sidebar status indicator */
.sidebar-status {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sidebar-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--green); }
  50% { opacity: 0.3; box-shadow: none; }
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  transition: margin-left 0.25s ease;
  min-height: 100vh;
}

.main-content.expanded { margin-left: var(--sidebar-collapsed); }

/* Top Header */
.top-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-header-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.top-header-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
}

.top-header-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}

/* Page content */
.page-content {
  padding: 32px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Main content takes full remaining width */
.main-content {
  display: flex;
  flex-direction: column;
}

/* ============================================
   CONTENT COMPONENTS
   ============================================ */

/* Page header */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 640px;
  line-height: 1.7;
}

.page-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.page-label::before { content: '> '; opacity: 0.5; }

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: all 0.2s;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

.card-stat {
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.card-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  flex: 1;
  text-align: center;
}

.stat-box .val {
  font-family: var(--font-data);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-box .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

/* Agent card */
.agent-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.agent-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-overlay);
}

.agent-card.contractor { opacity: 0.65; }
.agent-card.contractor:hover { opacity: 1; }

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dark);
  border: 1px solid var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.agent-info h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.agent-info span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.agent-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

/* Roster grid */
.roster-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 20px 0 8px;
}

.roster-label:first-child { margin-top: 0; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Property card (project) */
.prop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  text-decoration: none;
}

.prop-card:hover {
  border-color: rgba(0, 229, 255, 0.15);
  background: var(--bg-overlay);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(0, 229, 255, 0.04);
}

.prop-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.prop-head img { width: 40px; height: 40px; object-fit: contain; }
.prop-head .prop-icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.prop-head h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.prop-head .tag {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prop-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
  flex: 1;
}

.prop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.prop-status {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.prop-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s infinite;
}

.prop-status.wip { color: var(--orange); }

.prop-link {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prop-card:hover .prop-link { color: var(--accent); }

/* Activity log */
.activity-log {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.activity-log-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-log-header span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.6rem;
}

.activity-log-live {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 600;
}

.activity-log-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s infinite;
}

.activity-log-body {
  padding: 4px 0;
  max-height: 280px;
  overflow: hidden;
}

.log-line {
  padding: 5px 16px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  transition: background 0.15s;
}

.log-line:hover { background: var(--bg-overlay); }
.log-time { color: var(--text-muted); min-width: 50px; flex-shrink: 0; }
.log-agent { color: var(--accent); min-width: 64px; flex-shrink: 0; }
.log-text { color: var(--text-secondary); }

/* Changelog */
.changelog-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.changelog-item:last-child { border-bottom: none; }

.changelog-time {
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 56px;
  flex-shrink: 0;
}

.changelog-agent {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  background: var(--accent-dark);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  flex-shrink: 0;
}

.changelog-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-cta {
  background: var(--cta);
  color: var(--bg);
  border-color: var(--cta);
  font-weight: 700;
}

.btn-cta:hover {
  background: transparent;
  color: var(--cta);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Sponsor banner */
.sponsor-banner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}

.sponsor-banner h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sponsor-banner p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.sponsor-banner .btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Highlight quote */
.highlight-quote {
  color: var(--accent);
  font-family: var(--font-data);
  font-size: 1.1rem;
  font-weight: 600;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  margin: 24px 0;
  line-height: 1.5;
}

/* Ticker */
.status-ticker {
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
  height: 36px;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  height: 100%;
  animation: ticker-scroll 35s linear infinite;
  white-space: nowrap;
  will-change: transform;
  position: absolute;
  left: 0;
  top: 0;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero welcome (for homepage) */
.hero-welcome {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.hero-welcome h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cta);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-desc strong { color: var(--text-primary); }

/* Glitch animation on hero F7R */
.f7r-hero {
  position: relative;
  display: inline-block;
}

.f7r-hero::before,
.f7r-hero::after {
  content: 'F7R';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-brand);
  letter-spacing: -2px;
}

.f7r-hero::before {
  color: var(--accent);
  clip-path: inset(0 0 65% 0);
  animation: glitch-top 4s steps(1) infinite;
}

.f7r-hero::after {
  color: var(--accent);
  clip-path: inset(65% 0 0 0);
  animation: glitch-bottom 4s steps(1) infinite;
}

@keyframes glitch-top {
  0%, 92% { transform: translate(0); }
  93% { transform: translate(-3px, -1px); }
  94% { transform: translate(2px, 1px); }
  95% { transform: translate(-1px, -2px); }
  96%, 100% { transform: translate(0); }
}

@keyframes glitch-bottom {
  0%, 90% { transform: translate(0); }
  91% { transform: translate(3px, 1px); }
  92% { transform: translate(-2px, -1px); }
  93% { transform: translate(1px, 2px); }
  94%, 100% { transform: translate(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .roster-grid { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
  .stat-box { min-width: 120px; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: 20px; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .stats-row { gap: 12px; }
  .hero-welcome h1 { font-size: 1.8rem; }
}

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 4px 0;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
}
