:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #111822;
  --panel-strong: #151f2b;
  --text: #eef5ff;
  --muted: #8ea0b8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #23d3a4;
  --accent-2: #5aa7ff;
  --danger: #ff7676;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(35, 211, 164, 0.18), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(90, 167, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #090b10 0%, #0c1119 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 34px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(35, 211, 164, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(35, 211, 164, 0.22), rgba(90, 167, 255, 0.16));
  color: var(--accent);
  font-weight: 800;
}

.eyebrow,
.card-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 7vw, 74px);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 18px;
  font-size: 18px;
}

.connect-btn,
.ghost-btn {
  min-height: 42px;
  border: 1px solid rgba(35, 211, 164, 0.36);
  border-radius: var(--radius);
  background: var(--accent);
  color: #03100c;
  cursor: pointer;
  font-weight: 800;
}

.connect-btn {
  padding: 0 18px;
  white-space: nowrap;
}

.ghost-btn {
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.connect-btn:hover,
.ghost-btn:hover {
  filter: brightness(1.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-copy,
.contract-card,
.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 34, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: clamp(24px, 5vw, 46px);
}

.hero-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.contract-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 6px rgba(142, 160, 184, 0.08);
}

.status-dot.ok {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(35, 211, 164, 0.12);
}

.status-dot.bad {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(255, 118, 118, 0.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.stat-card {
  min-height: 172px;
  padding: 22px;
}

.stat-card strong {
  display: block;
  margin: 18px 0 12px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}

.stat-card span,
.data-list dt {
  color: var(--muted);
  font-size: 13px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin-bottom: 0;
}

.data-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.data-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.data-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  text-align: right;
}

.foundation-section {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.ghost-link {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.transfer-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.action-row .connect-btn {
  min-width: 160px;
}

.creator-action {
  display: none;
}

.input-label {
  color: var(--muted);
  font-size: 13px;
}

.transfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.amount-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 9, 14, 0.72);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 0 14px;
}

.amount-input:focus {
  border-color: rgba(35, 211, 164, 0.7);
  box-shadow: 0 0 0 3px rgba(35, 211, 164, 0.12);
}

.launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.launch-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.launch-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.slider-field b {
  float: right;
  color: var(--accent);
}

input[type="range"] {
  width: 100%;
  height: 4px;
  accent-color: var(--accent);
}

.tax-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 9, 14, 0.34);
  padding: 16px;
}

.compact {
  margin-bottom: 14px;
}

.compact h3 {
  font-size: 16px;
}

.fee-pill {
  border: 1px solid rgba(35, 211, 164, 0.34);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.submit-wide {
  width: 100%;
}

.list-section {
  align-items: start;
}

.foundation-chart-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.pie-chart {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  justify-self: center;
}

.table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.stats-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stats-table td {
  color: var(--text);
  font-size: 14px;
}

.stats-table th:last-child,
.stats-table td:last-child {
  text-align: right;
}

.table-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 820px) {
  .topbar,
  .hero,
  .stats-grid,
  .details-grid,
  .launch-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .connect-btn {
    width: 100%;
  }

  .data-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .data-list dd {
    text-align: left;
  }

  .transfer-row,
  .foundation-chart-grid {
    grid-template-columns: 1fr;
  }

  .stats-table {
    min-width: 460px;
  }
}
