:root {
  --ink: #14212b;
  --ink-soft: #3a4a56;
  --paper: #e7eef3;
  --copper: #c47a3a;
  --copper-deep: #8a4f22;
  --line: rgba(20, 33, 43, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(100% 80% at 70% 20%, rgba(196, 122, 58, 0.22), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(158, 182, 200, 0.5), transparent 55%),
    linear-gradient(165deg, #f3f7fa 0%, var(--paper) 45%, #d3e0ea 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(20, 33, 43, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
}

.mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 1.5rem;
}

.top nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
}

/* Full-bleed hero: coin is the visual plane */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.coin-glow {
  position: absolute;
  width: min(90vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 122, 58, 0.5), transparent 68%);
  filter: blur(40px);
  animation: pulse 5.5s ease-in-out infinite;
}

.coin {
  width: min(85vw, 720px);
  height: auto;
  margin-left: 22vw;
  filter: drop-shadow(0 36px 50px rgba(20, 33, 43, 0.3));
  animation: float 7s ease-in-out infinite;
  transform-origin: 50% 55%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 36rem);
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(
    90deg,
    rgba(231, 238, 243, 0.94) 0%,
    rgba(231, 238, 243, 0.82) 62%,
    rgba(231, 238, 243, 0) 100%
  );
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.8rem, 14vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  max-width: 34ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

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

.btn.primary:hover {
  background: #0c151c;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn.ghost:hover {
  background: rgba(20, 33, 43, 0.06);
}

.band {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    linear-gradient(180deg, rgba(20, 33, 43, 0.94), rgba(20, 33, 43, 0.9)),
    linear-gradient(120deg, var(--copper-deep), var(--ink));
  color: #edf3f7;
}

.band-inner {
  max-width: 40rem;
}

.band h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.band p {
  margin: 0;
  color: rgba(237, 243, 247, 0.78);
  font-size: 1.125rem;
  max-width: 38ch;
}

.specs {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.specs dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.specs dl > div {
  padding: 1.35rem 1.1rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.specs dl > div:nth-child(4n) {
  border-right: none;
}

.specs dl > div.in {
  opacity: 1;
  transform: none;
}

.specs dt {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.run {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 3.5rem) clamp(4rem, 9vh, 6rem);
}

.run-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.run-copy p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

.terminal {
  margin: 0;
  padding: 1.35rem 1.4rem;
  background: #14212b;
  color: #d7e4ee;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.65;
  box-shadow: 0 18px 40px rgba(20, 33, 43, 0.18);
}

.terminal code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.genesis {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(4rem, 10vh, 6.5rem);
  max-width: 52rem;
}

.genesis h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.genesis blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.genesis blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.hash {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  word-break: break-all;
  color: var(--copper-deep);
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

footer span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.fine {
  margin: 0;
}

footer p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (max-width: 900px) {
  .coin {
    margin-left: 0;
    margin-top: -8vh;
    width: min(110vw, 560px);
    opacity: 0.92;
  }

  .hero-copy {
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(231, 238, 243, 0) 0%,
      rgba(231, 238, 243, 0.88) 28%,
      rgba(231, 238, 243, 0.96) 100%
    );
  }

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

  .specs dl > div:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .specs dl > div:nth-child(2n) {
    border-right: none;
  }

  .run {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cta {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .coin,
  .coin-glow,
  .specs dl > div {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
