:root {
  color-scheme: light;
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-soft: #eef3ea;
  --surface-strong: #151815;
  --text: #151815;
  --muted: #647064;
  --line: #dce4d8;
  --green: #178553;
  --green-strong: #0f6840;
  --amber: #d89121;
  --shadow: 0 18px 48px rgba(20, 29, 22, 0.12);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131811;
  --surface: #1d251b;
  --surface-soft: #263321;
  --surface-strong: #f3f7ef;
  --text: #f2f7ef;
  --muted: #a8b6a4;
  --line: #3a4836;
  --green: #4bd188;
  --green-strong: #64e39d;
  --amber: #f2b849;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(23, 133, 83, 0.08), transparent 300px),
    var(--bg);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(21, 24, 21, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 24, 21, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 68%);
}

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

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px 32px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.nav-links,
.hero-actions,
.actions-row,
.quick-amounts {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 38px;
  height: 38px;
  padding: 7px;
  background: var(--surface-strong);
  border-radius: var(--radius);
}

.brand-mark span {
  width: 6px;
  background: var(--green);
  border-radius: 2px 2px 0 0;
}

.brand-mark span:nth-child(1) {
  height: 14px;
}

.brand-mark span:nth-child(2) {
  height: 22px;
  background: var(--amber);
}

.brand-mark span:nth-child(3) {
  height: 10px;
  background: #245fc7;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  min-height: 38px;
  padding: 10px 14px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.header-actions,
.hero-actions,
.actions-row,
.quick-amounts {
  gap: 10px;
  flex-wrap: wrap;
}

.icon-button,
.wallet-button,
.twitter-button,
.primary-button,
.secondary-button,
.quick-amounts button,
.pool-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.icon-button {
  width: 42px;
  color: var(--text);
  background: var(--surface);
}

.mobile-menu-button {
  display: none;
}

.wallet-button,
.twitter-button,
.secondary-button {
  padding: 0 16px;
  color: var(--text);
  background: var(--surface);
  font-weight: 800;
}

.primary-button {
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--green-strong);
  border-color: var(--green-strong);
  font-weight: 900;
}

.primary-button:hover,
.secondary-button:hover,
.wallet-button:hover,
.twitter-button:hover,
.quick-amounts button:hover,
.pool-option:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
}

.mobile-menu {
  position: fixed;
  top: 74px;
  left: 20px;
  z-index: 30;
  display: grid;
  gap: 6px;
  width: 158px;
  padding: 8px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-soft);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
}

.ticker-tape {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--bg);
}

.ticker-tape div {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 9px 0;
  animation: ticker 28s linear infinite;
}

.ticker-tape span {
  min-width: max-content;
  font-size: 13px;
  font-weight: 900;
}

@keyframes ticker {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 20px;
  align-items: stretch;
  padding-top: 48px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
}

h1 {
  max-width: 680px;
  font-size: 52px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 17px;
}

.lead {
  max-width: 600px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-visual,
.console-card,
.pool-card,
.table-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(10, 18, 12, 0.68));
}

.hero-metrics {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div {
  padding: 13px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.hero-metrics span,
.estimate-panel span,
.field span,
.card-stats span,
.table-row span,
.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-metrics strong {
  display: block;
  margin-top: 5px;
  color: #101411;
  font-size: 20px;
}

.console-card {
  padding: 22px;
}

.console-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.console-head h2 {
  margin-top: 5px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--green-strong);
  background: color-mix(in srgb, var(--green) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.amber {
  color: #90610f;
  background: rgba(216, 145, 33, 0.14);
  border-color: rgba(216, 145, 33, 0.32);
}

.pool-selector,
.console-grid,
.estimate-panel,
.pool-grid {
  display: grid;
  gap: 12px;
}

.pool-selector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.pool-option {
  justify-content: start;
  min-height: 64px;
  padding: 11px;
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
}

.pool-option.is-active {
  color: #ffffff;
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.pool-option strong,
.pool-option span {
  display: block;
}

.pool-option span {
  margin-bottom: 4px;
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
}

.console-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field select,
.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.field input:focus,
.field select:focus,
.search-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}

.quick-amounts {
  margin: 14px 0;
}

.quick-amounts button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 900;
}

.quick-amounts button.is-active {
  color: #ffffff;
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.estimate-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.estimate-panel div {
  min-height: 76px;
  padding: 13px;
  background: var(--surface);
}

.estimate-panel strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
}

.actions-row .primary-button,
.actions-row .secondary-button {
  flex: 1;
}

.section-title {
  margin-bottom: 16px;
}

.split-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.search-field {
  position: relative;
  display: block;
  width: min(100%, 340px);
}

.search-field i {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input {
  padding-left: 38px;
  background: var(--surface);
}

.pool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pool-card {
  padding: 18px;
}

.pool-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pool-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-stats div {
  min-height: 60px;
  padding: 10px;
  background: var(--surface);
}

.card-stats strong {
  display: block;
  margin-top: 5px;
}

.launchpad-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
}

.launch-form,
.token-directory {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.wide {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.chain-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 82px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chain-panel strong,
.chain-panel small {
  display: block;
}

.chain-panel strong {
  margin-top: 4px;
  font-size: 18px;
}

.chain-panel small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.token-directory {
  overflow: hidden;
}

.directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.token-list {
  display: grid;
}

.token-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 110px minmax(120px, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.token-row:last-child {
  border-bottom: 0;
}

.token-row strong,
.token-row span,
.token-row small {
  display: block;
}

.token-row strong {
  font-size: 15px;
}

.token-row span,
.token-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.token-row code {
  padding: 5px 7px;
  color: var(--green-strong);
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--green) 24%, var(--line));
  border-radius: 999px;
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.table-panel {
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) 130px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.notice {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer a {
  color: var(--green-strong);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 20px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .section {
    width: min(100% - 28px, 760px);
    padding: 22px 0;
  }

  .hero,
  .launchpad-grid {
    grid-template-columns: 1fr;
  }

  .console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estimate-panel,
  .pool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 230px;
  }

  h1 {
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    gap: 8px;
    padding: 10px;
  }

  .mobile-menu {
    top: 70px;
    left: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand small,
  .twitter-button span,
  .wallet-button span {
    display: none;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand-mark,
  .icon-button,
  .twitter-button,
  .wallet-button {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .brand-mark {
    height: 38px;
    padding: 7px;
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 15px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 190px;
  }

  .pool-selector,
  .hero-metrics,
  .console-grid,
  .estimate-panel,
  .pool-grid,
  .launch-form,
  .token-row,
  .table-row {
    grid-template-columns: 1fr;
  }

  .split-title {
    align-items: start;
    flex-direction: column;
  }

  .chain-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .console-card,
  .pool-card,
  .launch-form {
    padding: 16px;
  }

  .table-row {
    gap: 5px;
    min-height: 100px;
    padding: 14px 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 6px;
  }

  .header-actions {
    gap: 4px;
  }

  .brand {
    min-width: auto;
  }

  .brand strong {
    display: none;
  }
}
