/* ================= ROBOT GAMES — Beijing 2026 ================= */

:root {
  --bg: #05060b;
  --bg-soft: #0a0c14;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef1f8;
  --text-dim: #9aa3b5;
  --accent: #ff3b3b;        /* arena red */
  --accent-2: #ffd166;      /* gold */
  --cyan: #37e6ff;          /* circuit cyan */
  --green: #35e08a;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(55, 230, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 230, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}

.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(140px); opacity: 0.22; pointer-events: none;
}
.bg-glow-1 { width: 640px; height: 640px; top: -220px; left: 50%; transform: translateX(-50%); background: var(--accent); }
.bg-glow-2 { width: 520px; height: 520px; bottom: -260px; right: -160px; background: var(--cyan); opacity: 0.12; }

/* ---------- ticker ---------- */
.ticker {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(90deg, #14060a, #1a0d05, #14060a);
  border-bottom: 1px solid rgba(255, 59, 59, 0.35);
  overflow: hidden; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px;
  padding: 7px 0;
}
.ticker-track { display: inline-block; animation: ticker 30s linear infinite; }
.ticker-track span { margin: 0 28px; color: var(--accent-2); letter-spacing: 0.04em; }
.ticker-track span b { color: var(--text); font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 27px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 11, 0.72);
  border-bottom: 1px solid var(--panel-border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo-mark { color: var(--accent); font-size: 20px; }
.nav-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.08em; }
.nav-logo-text span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-small { padding: 9px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6b3b);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 59, 59, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255, 59, 59, 0.5); }
.btn-ghost {
  background: var(--panel); color: var(--text); border-color: var(--panel-border);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }
.btn-copy {
  background: rgba(55, 230, 255, 0.08); color: var(--cyan);
  border-color: rgba(55, 230, 255, 0.25); padding: 10px 16px; font-size: 13px;
}
.btn-copy:hover { background: rgba(55, 230, 255, 0.16); }

/* ---------- hero ---------- */
.hero {
  max-width: 1000px; margin: 0 auto; padding: 90px 24px 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--accent-2);
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.06);
  padding: 8px 18px; border-radius: 999px; margin-bottom: 34px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 224, 138, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(53, 224, 138, 0); }
}

.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 7vw, 76px); line-height: 1.04; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-title-line { display: block; }
.hero-title-accent {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 59, 59, 0.35));
}
.hero-sub { color: var(--text-dim); font-size: 17px; margin-bottom: 44px; }
.hero-sub strong { color: var(--text); }

/* ---------- main CA card ---------- */
.ca-card {
  max-width: 720px; margin: 0 auto 56px;
  background: linear-gradient(160deg, rgba(255, 59, 59, 0.09), rgba(255, 255, 255, 0.02) 45%);
  border: 1px solid rgba(255, 59, 59, 0.35);
  border-radius: 20px; padding: 26px 28px;
  box-shadow: 0 0 60px rgba(255, 59, 59, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
}
.ca-card-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ca-chip {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em;
  color: #fff; background: var(--accent); padding: 5px 13px; border-radius: 7px;
}
.ca-network { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-dim); }
.ca-card-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.45); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 13px 16px; margin-bottom: 18px;
}
.ca-address {
  flex: 1; min-width: 200px;
  font-family: var(--font-mono); font-size: 14px; color: var(--accent-2);
  word-break: break-all;
}
.ca-card-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- stats ---------- */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 720px; margin: 0 auto;
}
.stat {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 20px 10px;
}
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 3.4vw, 34px); color: var(--text);
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-dim);
}

/* ---------- sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 90px 24px 20px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.24em; color: var(--accent);
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 4vw, 42px); margin-top: 12px;
}
.section-sub { color: var(--text-dim); margin-top: 12px; font-size: 15px; }
.live-text { color: var(--green); font-weight: 600; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.about-card:hover { transform: translateY(-4px); border-color: rgba(255, 59, 59, 0.4); }
.about-icon { font-size: 30px; margin-bottom: 16px; }
.about-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.03em; }
.about-card p { color: var(--text-dim); font-size: 13.5px; }

/* ---------- roster ---------- */
.roster-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.robot-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.robot-card:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 230, 255, 0.45);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 30px rgba(55, 230, 255, 0.08);
}
.robot-card.is-live { border-color: rgba(53, 224, 138, 0.45); }
.robot-card.is-live:hover { border-color: rgba(53, 224, 138, 0.8); box-shadow: 0 16px 44px rgba(0,0,0,0.5), 0 0 30px rgba(53, 224, 138, 0.14); }

.robot-photo {
  aspect-ratio: 1 / 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(55, 230, 255, 0.14), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(255, 59, 59, 0.12), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--panel-border);
  position: relative; overflow: hidden;
}
.robot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.robot-photo-placeholder {
  font-family: var(--font-display); font-weight: 900; font-size: 44px;
  color: rgba(255, 255, 255, 0.14); letter-spacing: 0.05em;
  user-select: none;
}
.robot-photo-scan {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 46%, rgba(55, 230, 255, 0.10) 50%, transparent 54%);
  background-size: 100% 240%;
  animation: scan 4.5s linear infinite;
  pointer-events: none;
}
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 120%; } }

.robot-status {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(6px);
}
.robot-status.soon { background: rgba(255, 209, 102, 0.12); color: var(--accent-2); border: 1px solid rgba(255, 209, 102, 0.35); }
.robot-status.live { background: rgba(53, 224, 138, 0.14); color: var(--green); border: 1px solid rgba(53, 224, 138, 0.4); }

.robot-body { padding: 18px 18px 20px; }
.robot-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.03em; }
.robot-company { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; }
.robot-discipline { font-size: 12.5px; color: var(--accent-2); margin-top: 7px; font-weight: 500; }

.robot-ca {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 9px 12px;
  font-family: var(--font-mono); font-size: 12px;
}
.robot-ca .ca-text { flex: 1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.robot-ca.live .ca-text { color: var(--green); }
.robot-ca button {
  background: none; border: none; cursor: pointer; color: var(--cyan);
  display: flex; align-items: center; padding: 2px;
}
.robot-ca button:hover { color: #fff; }
.robot-buy {
  margin-top: 12px; display: block; text-align: center;
  font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 10px 0; border-radius: 10px; transition: all 0.2s;
}
.robot-buy.live {
  background: linear-gradient(135deg, rgba(53, 224, 138, 0.18), rgba(53, 224, 138, 0.08));
  color: var(--green); border: 1px solid rgba(53, 224, 138, 0.4);
}
.robot-buy.live:hover { background: rgba(53, 224, 138, 0.25); }
.robot-buy.soon {
  background: var(--panel); color: var(--text-dim);
  border: 1px solid var(--panel-border); cursor: default; pointer-events: none;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden;
}
.step-num {
  font-family: var(--font-display); font-weight: 900; font-size: 52px;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 59, 59, 0.45);
  display: block; margin-bottom: 10px;
}
.step h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--panel-border); margin-top: 100px; }
.footer-inner { max-width: 800px; margin: 0 auto; padding: 48px 24px 56px; text-align: center; }
.footer-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.08em; font-size: 16px; margin-bottom: 14px; }
.footer-brand .accent { color: var(--accent); }
.footer-note { color: var(--text-dim); font-size: 12.5px; margin-bottom: 18px; }
.footer-ca { font-family: var(--font-mono); font-size: 11px; color: rgba(255, 209, 102, 0.6); word-break: break-all; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: #101522; color: var(--green); border: 1px solid rgba(53, 224, 138, 0.4);
  padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all 0.3s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .roster-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .roster-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .ca-card { padding: 20px 18px; }
  .ca-address { font-size: 12px; }
}
@media (max-width: 440px) {
  .roster-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
