:root {
  --bg: #061019;
  --bg-panel: rgba(9, 18, 30, 0.88);
  --bg-panel-strong: rgba(8, 16, 27, 0.96);
  --line: rgba(95, 235, 192, 0.16);
  --line-strong: rgba(95, 235, 192, 0.3);
  --text: #eef5ff;
  --muted: rgba(238, 245, 255, 0.72);
  --muted-2: rgba(238, 245, 255, 0.54);
  --mint: #5febc0;
  --cyan: #65d9ff;
  --amber: #ffc766;
  --rose: #ff7290;
  --violet: #b596ff;
  --ink: #08111c;
  --surface-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --font-sans: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-display: Georgia, "Times New Roman", serif;
  --step--1: clamp(0.85rem, 0.82rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.06rem + 0.36vw, 1.32rem);
  --step-2: clamp(1.45rem, 1.24rem + 0.78vw, 1.88rem);
  --step-3: clamp(2rem, 1.55rem + 1.56vw, 2.8rem);
  --step-4: clamp(3rem, 2.1rem + 2.8vw, 4.6rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 680px at 10% -10%, rgba(95, 235, 192, 0.18), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(101, 217, 255, 0.16), transparent 52%),
    linear-gradient(180deg, #04070c 0%, #061019 36%, #05070c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(to right, rgba(95, 235, 192, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(95, 235, 192, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 620px at 40% 8%, #000 55%, transparent 100%);
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-5);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(95, 235, 192, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar strong {
  color: var(--mint);
  font-weight: 600;
}

.hero-row {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: var(--space-4);
}

.hero-card,
.side-card,
.section-card,
.table-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 21, 35, 0.96), rgba(8, 15, 27, 0.9));
  border-radius: var(--radius-xl);
  box-shadow: var(--surface-shadow);
}

.hero-card {
  padding: var(--space-6);
  border-top: 2px solid var(--cyan);
}

.hero-card h1 {
  margin: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-card p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.6;
}

.chips,
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip,
.nav a,
.status-pill,
.tiny-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}

.chip {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(6, 11, 20, 0.5);
}

.nav {
  margin-top: var(--space-5);
}

.nav a {
  color: var(--cyan);
}

.nav a.active {
  color: var(--mint);
}

.hero-note {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid rgba(255, 199, 102, 0.4);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 199, 102, 0.07), rgba(11, 21, 35, 0.92));
}

.hero-note .label,
.side-card .label,
.section-head .note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-note .label {
  color: var(--amber);
}

.hero-note p {
  margin: var(--space-2) 0 0;
  font-size: var(--step-0);
}

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

.side-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.side-card {
  padding: var(--space-4);
}

.side-card .label {
  color: var(--mint);
}

.side-card strong {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--step-1);
}

.side-card p {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  margin-top: var(--space-7);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: baseline;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid rgba(95, 235, 192, 0.1);
}

.section-head h2 {
  margin: 0;
  font-size: var(--step-2);
}

.section-head .note {
  color: var(--muted-2);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: linear-gradient(180deg, rgba(11, 21, 35, 0.84), rgba(8, 15, 27, 0.66));
}

.metric .value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
}

.metric .value.mint { color: var(--mint); }
.metric .value.cyan { color: var(--cyan); }
.metric .value.amber { color: var(--amber); }
.metric .value.rose { color: var(--rose); }
.metric .value.violet { color: var(--violet); }

.metric .label {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric p {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-3);
}

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

.section-card,
.table-card {
  padding: var(--space-5);
}

.section-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--step-1);
}

.section-card p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  line-height: 1.6;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(6, 11, 20, 0.45);
  margin-top: 4px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.token {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 21, 35, 0.82), rgba(8, 15, 27, 0.68));
}

.swatch {
  width: 100%;
  height: 92px;
  border-radius: 12px;
  margin-bottom: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.token code,
.meta code {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 12px;
}

.token h4 {
  margin: 0 0 6px;
}

.token p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pattern-preview {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(6, 11, 20, 0.36);
  margin-bottom: var(--space-4);
}

.sample-banner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(95, 235, 192, 0.14), rgba(101, 217, 255, 0.08));
  border: 1px solid rgba(95, 235, 192, 0.28);
}

.sample-banner strong {
  font-size: var(--step-1);
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.button.secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
}

.table tbody tr + tr td {
  border-top: 1px solid rgba(95, 235, 192, 0.08);
}

.status-pill.good {
  color: var(--mint);
}

.status-pill.watch {
  color: var(--amber);
}

.status-pill.blocked {
  color: var(--rose);
}

.footer {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px dashed rgba(95, 235, 192, 0.14);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .token-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-row,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap { padding: var(--space-4); }
  .metrics,
  .grid-4,
  .token-grid {
    grid-template-columns: 1fr;
  }
  .hero-card h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
}

