/* ArenaPad — design system */

:root {
  --bg: #050806;
  --bg-alt: #0a120d;
  --surface: #0d1712;
  --surface-2: #121e18;
  --border: rgba(56, 214, 132, 0.16);
  --border-strong: rgba(56, 214, 132, 0.32);
  --green: #22e07d;
  --green-bright: #7CFB9E;
  --green-dark: #0a5f36;
  --text: #eef7f1;
  --muted: #93a89c;
  --muted-2: #62796d;
  --danger: #ff5c5c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 45%, var(--green-dark) 100%);
  --font-head: "Space Grotesk", "Sora", sans-serif;
  --font-body: "Sora", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(60% 40% at 15% 0%, rgba(34, 224, 125, 0.14), transparent 60%),
    radial-gradient(50% 35% at 100% 100%, rgba(34, 224, 125, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; color: var(--muted); }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 6, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.headbar {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; display: block; }
nav { display: flex; gap: 4px; flex: 1; }
nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--muted); transition: color .15s ease, background .15s ease;
}
nav a:hover, nav a.active { color: var(--text); background: var(--surface-2); }
#wallet-slot { flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--green); }
.btn-primary { background: var(--grad); color: #04150a; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-strong); color: var(--green-bright); background: rgba(34,224,125,0.08);
}
.chip.live { color: var(--green-bright); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.ca-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.ca-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-family: monospace; font-size: 13px;
}
.ca-pill-label { font-family: var(--font-body); font-weight: 700; color: var(--green-bright); }
.ca-text { color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-copy {
  border: none; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.btn-copy:hover { background: var(--green-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 72px 0 56px; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; }
.hero h1 .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 17px; max-width: 560px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(34,224,125,0.28), transparent 65%);
  filter: blur(10px); pointer-events: none;
}

/* ---------- carousel ---------- */
.carousel-section { padding: 8px 0 40px; }
.carousel-viewport { overflow-x: auto; scrollbar-width: none; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 16px; padding-bottom: 4px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.launch-card { width: 240px; flex-shrink: 0; }
.launch-card .thumb {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); margin-bottom: 12px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 28px; color: #04150a;
}
.launch-card h4 { font-size: 15px; margin-bottom: 4px; }
.launch-card .sym { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.launch-card .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); }
.launch-card .row b { color: var(--text); font-weight: 700; }

.skeleton-card .sk { background: var(--surface-2); border-radius: 6px; }
.sk-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); margin-bottom: 12px; }
.sk-line { height: 10px; margin-bottom: 8px; }
.w60 { width: 60%; } .w40 { width: 40%; } .w80 { width: 80%; } .w50 { width: 50%; }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: .9; } }
.skeleton-card .sk { animation: pulse 1.4s ease-in-out infinite; }

/* ---------- stats ---------- */
.stats-section { padding: 40px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-label { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.stat-value { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.chart-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-card-head h3 { margin: 0; font-size: 16px; }
.chart-link { font-size: 13px; color: var(--green-bright); font-weight: 600; }
.chart-embed { height: 360px; border-radius: var(--radius-sm); background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted-2); }

/* ---------- section generic ---------- */
section.block { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head .eyebrow { display: inline-block; margin-bottom: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.plan-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #04150a;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px;
}
.plan-card h3 { font-size: 16px; }
.plan-card p { font-size: 14px; margin: 0; }

.callout {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 16px 20px; margin: 24px 0; font-size: 14px; color: var(--muted);
}
.callout strong { color: var(--green-bright); }

.official-banner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 18px; font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.official-banner strong { color: var(--green-bright); }

/* ---------- explore grid ---------- */
.explore-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.explore-toolbar input, .explore-toolbar select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 999px; font-family: var(--font-body); font-size: 13px;
}
.explore-toolbar input { flex: 1; min-width: 200px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.explore-grid .launch-card { width: auto; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 560px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  padding: 11px 14px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-toggle { display: flex; gap: 8px; margin-bottom: 22px; }
.mode-toggle button {
  flex: 1; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer;
}
.mode-toggle button.active { border-color: var(--green); color: var(--green-bright); background: rgba(34,224,125,0.08); }
.form-note { font-size: 12px; color: var(--muted-2); margin-top: -6px; margin-bottom: 18px; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .icon { font-size: 40px; margin-bottom: 10px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 24px; }
.footer-links { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 12px; color: var(--muted-2); margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  nav.open a { padding: 12px 14px; }
  .nav-toggle { display: flex !important; }
}
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0; font-size: 18px; line-height: 1;
}
.headbar { position: relative; }
