:root {
  --ink: #141315;
  --paper: #f7f8ef;
  --surface: #ffffff;
  --muted: #63645d;
  --line: #dedfd1;
  --lime: #b7ff5e;
  --coral: #ff6b5a;
  --blue: #4b8cff;
  --pink: #e561d8;
  --shadow: 0 24px 70px rgba(20, 19, 21, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 19, 21, .05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 19, 21, .05) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 239, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.brand__name {
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(20, 19, 21, .06);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  padding: clamp(36px, 6vw, 88px) clamp(16px, 4vw, 48px) clamp(28px, 5vw, 72px);
}

.hero__copy {
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

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

h1 {
  font-size: clamp(72px, 13vw, 184px);
  line-height: .86;
  font-weight: 900;
}

h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: .94;
  font-weight: 850;
}

h3 {
  font-size: 22px;
  line-height: 1;
}

.hero__lead {
  max-width: 680px;
  margin-top: 24px;
  color: #33342f;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
}

.hero__actions,
.button-row,
.generator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 750;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--paper);
  background: var(--ink);
}

.button--primary:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.button--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .54);
}

.button--secondary:hover {
  background: var(--lime);
}

.hero-board {
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-board__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-board__grid img,
.mint-panel__preview img,
.collection-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.hero-board__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.ticker > div {
  min-height: 112px;
  padding: 18px clamp(16px, 3vw, 32px);
  border-right: 1px solid rgba(247, 248, 239, .18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticker > div:last-child {
  border-right: 0;
}

.ticker__value {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
  font-weight: 850;
}

.ticker__label {
  margin-top: 8px;
  color: rgba(247, 248, 239, .72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

section:not(.hero, .ticker) {
  padding: clamp(52px, 8vw, 110px) clamp(16px, 4vw, 48px);
}

.mint-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 620px);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.section-head {
  max-width: 800px;
}

.section-head p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.section-head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.mint-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(230px, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mint-panel__preview {
  min-width: 0;
}

.mint-panel__controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fafbf5;
}

.field input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.mint-feed {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.mint-feed li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.mint-feed strong {
  color: var(--ink);
  font-weight: 800;
}

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

.collection-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.collection-card:hover,
.collection-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--surface);
}

.collection-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  font-size: 13px;
}

.collection-card__meta span:last-child {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hook-section {
  background: var(--ink);
  color: var(--paper);
}

.hook-section .eyebrow,
.hook-section .section-head p,
.hook-section article p {
  color: rgba(247, 248, 239, .7);
}

.hook-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hook-steps article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(247, 248, 239, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.hook-steps span {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hook-steps h3 {
  margin-top: 34px;
}

.hook-steps p {
  margin-top: 12px;
  line-height: 1.55;
}

.code-panel {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 20px;
  border: 1px solid rgba(247, 248, 239, .18);
  border-radius: 8px;
  color: var(--lime);
  background: #08080a;
  font-size: 14px;
  line-height: 1.6;
}

.generator-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .hero,
  .mint-layout,
  .generator-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

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

  .mint-panel {
    grid-template-columns: 1fr;
  }

  .section-head--row,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hook-steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 460px) {
  .hero-board__grid {
    gap: 6px;
  }

  .hero-board__footer,
  .mint-feed li {
    flex-direction: column;
    gap: 4px;
  }

  .button {
    width: 100%;
  }
}
