:root {
  --bg0: #0c0a09;
  --bg1: #161210;
  --ink: #f3ebe1;
  --muted: #b7a89a;
  --line: rgba(243, 235, 225, 0.14);
  --ember: #c45a2c;
  --ember-soft: #e8a06a;
  --ok: #8fbf7a;
  --warn: #d4a017;
  --bad: #d35d5d;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(196, 90, 44, 0.22), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(80, 56, 36, 0.35), transparent 50%),
    linear-gradient(180deg, #140f0c 0%, var(--bg0) 45%, #090807 100%);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top,
.stage,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.chain-pill {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.28rem 0.65rem;
}

.stage {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  display: grid;
  gap: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: end;
  min-height: min(72vh, 720px);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--ember-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1rem 0 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--ember);
  color: #fff7f0;
}

.btn.primary:not(:disabled):hover {
  transform: translateY(-1px);
  background: #d26736;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.ghost:hover {
  border-color: var(--ember-soft);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(22, 18, 16, 0.7);
}

.qty-btn {
  width: 2.4rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

#qtyInput {
  width: 2.6rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font: inherit;
}

.status {
  margin: 1rem 0 0;
  color: var(--muted);
  min-height: 1.4em;
}

.status.ok {
  color: var(--ok);
}

.status.bad {
  color: var(--bad);
}

.tx a {
  color: var(--ember-soft);
}

.hero-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 1 / 1;
  animation: rise 900ms ease both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}

.hero-visual figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.9rem;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(22, 18, 16, 0.55);
  padding: 1.25rem 1.35rem 1.4rem;
  animation: rise 900ms ease both;
  animation-delay: 120ms;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.countdown {
  margin: 0;
  color: var(--ember-soft);
  font-variant-numeric: tabular-nums;
}

.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.phases li {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
}

.phases li.active {
  border-color: rgba(196, 90, 44, 0.7);
  background: rgba(196, 90, 44, 0.1);
}

.phases li.done {
  opacity: 0.55;
}

.phases .name {
  font-weight: 600;
}

.phases .when {
  color: var(--muted);
  font-size: 0.9rem;
}

.phases .price {
  font-variant-numeric: tabular-nums;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.meta {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.meta > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.meta dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.meta dd {
  margin: 0;
  word-break: break-all;
}

.mono,
.meta a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: var(--ink);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 3rem) 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.foot a {
  color: var(--ember-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hero,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phases li {
    grid-template-columns: 1fr;
  }
}
