/* Palette mirrors src/branding.ts. Keep the two in step. */
:root {
  --abyss: #0b1a2b;
  --abyss-deep: #061120;
  --abyss-raised: #10263c;
  --beam: #ffc64b;
  --ember: #ff8a3d;
  --feather: #f4f7fb;
  --feather-shade: #c3d2e3;
  --tide: #2b7fbf;

  --max: 1120px;
  --radius: 18px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The `hidden` attribute is only a `display: none` default, so any element with
   an explicit display rule ignores it. The contract-address box sets
   `inline-flex`, which made it visible before launch with an empty address. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--abyss-deep);
  color: var(--feather);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: 'Cascadia Code', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--beam);
  color: var(--abyss);
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: rgba(244, 247, 251, 0.06);
  --btn-fg: var(--feather);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(244, 247, 251, 0.18);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: rgba(244, 247, 251, 0.12);
  border-color: rgba(244, 247, 251, 0.32);
}
.btn:focus-visible {
  outline: 3px solid var(--beam);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--beam), var(--ember));
  border-color: transparent;
  color: #2a1400;
  box-shadow: 0 10px 30px -12px rgba(255, 138, 61, 0.7);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #ffd571, var(--ember));
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 17, 32, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 247, 251, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--feather);
  text-decoration: none;
  margin-right: auto;
}

.nav nav {
  display: flex;
  gap: 1.75rem;
}
.nav nav a {
  color: var(--feather-shade);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  transition: color 0.16s var(--ease);
}
.nav nav a:hover {
  color: var(--beam);
}

@media (max-width: 860px) {
  .nav nav {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(84vh, 760px);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  isolation: isolate;
  text-align: center;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}
/* The art is busy on the right, where the copy sits. This keeps text legible
   without washing the illustration out. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to bottom,
      rgba(6, 17, 32, 0.55) 0%,
      rgba(6, 17, 32, 0.7) 45%,
      rgba(6, 17, 32, 0.95) 100%
    ),
    radial-gradient(ellipse at 70% 50%, rgba(6, 17, 32, 0.5), transparent 70%);
}

.hero__body {
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beam);
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--feather-shade);
  text-wrap: pretty;
}
.lede strong {
  color: var(--feather);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.ca {
  margin: 2rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.7rem 0.7rem 1.1rem;
  border: 1px solid rgba(244, 247, 251, 0.16);
  border-radius: 999px;
  background: rgba(6, 17, 32, 0.6);
  font-size: 0.9rem;
  max-width: 100%;
}
.ca__label {
  color: var(--feather-shade);
  font-weight: 650;
  white-space: nowrap;
}
.ca code {
  overflow-wrap: anywhere;
}
.ca button {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  background: var(--beam);
  color: #2a1400;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.ca--pending {
  color: var(--feather-shade);
  border-style: dashed;
}
.ca .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.18);
  flex: none;
}

/* ---------- Stat strip ---------- */
.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 1.6rem clamp(1rem, 4vw, 2.5rem);
  background: var(--abyss);
  border-block: 1px solid rgba(244, 247, 251, 0.08);
}
.strip div {
  text-align: center;
}
.strip dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--feather-shade);
  margin-bottom: 0.2rem;
}
.strip dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--beam);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1rem, 4vw, 2.5rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section__lede {
  margin: 0 0 2.75rem;
  max-width: 48rem;
  font-size: 1.1rem;
  color: var(--feather-shade);
  text-wrap: pretty;
}

.footnote {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--feather-shade);
  opacity: 0.85;
  max-width: 46rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  border: 1px solid rgba(244, 247, 251, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--abyss-raised), rgba(11, 26, 43, 0.6));
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 198, 75, 0.4);
}
.card__num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--beam);
}
.card h3 {
  margin: 0.5rem 0 0.7rem;
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.3;
}
.card p {
  margin: 0;
  color: var(--feather-shade);
  font-size: 0.97rem;
}
.card code {
  color: var(--beam);
}

/* ---------- Lore ---------- */
.section--lore {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  max-width: var(--max);
}
.lore__text p {
  color: var(--feather-shade);
  max-width: 38rem;
}
.lore__sign {
  margin-top: 1.5rem;
  font-weight: 750;
  font-size: 1.1rem;
  color: var(--beam) !important;
}
.lore__mark {
  filter: drop-shadow(0 24px 60px rgba(255, 138, 61, 0.28));
}
@media (max-width: 860px) {
  .section--lore {
    grid-template-columns: 1fr;
  }
  .lore__mark {
    width: 200px;
    height: 200px;
    justify-self: center;
  }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps li {
  counter-increment: step;
  padding: 1.5rem;
  border: 1px solid rgba(244, 247, 251, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 38, 60, 0.5);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--beam), var(--ember));
  color: #2a1400;
  font-weight: 850;
}
.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--feather-shade);
}

/* ---------- Verify ---------- */
.section--verify {
  border-top: 1px solid rgba(244, 247, 251, 0.08);
}
.checks {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-width: 46rem;
}
.checks li {
  position: relative;
  padding-left: 2rem;
  color: var(--feather-shade);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2.5px solid var(--beam);
  border-bottom: 2.5px solid var(--beam);
  transform: rotate(-45deg);
}
.checks strong {
  color: var(--feather);
}

/* ---------- Join ---------- */
.section--join {
  text-align: center;
}
.socials {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(244, 247, 251, 0.08);
  background: var(--abyss);
  text-align: center;
}
.footer img {
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}
.risk {
  max-width: 52rem;
  margin: 0 auto 1.5rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--feather-shade);
}
.risk strong {
  color: var(--beam);
}
.copyright {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(195, 210, 227, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
