/* ============================================================
   GLOAM — landing page
   ============================================================ */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--ink-100);
  text-shadow: 0 0 22px rgba(255, 138, 61, 0.35);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  /* tuned so the launch clock peeks above the fold on a laptop —
     it is the one thing on this page with a deadline */
  padding-block: calc(var(--nav-h) + var(--s-5)) var(--s-7);
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
  /* very slow drift — the flame is moving, not the camera */
  animation: heroDrift 42s var(--ease-in-out) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(-1%, 0, 0); }
  to   { transform: scale(1.12) translate3d(1.5%, -1.5%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art img { animation: none; transform: scale(1.04); }
}

/* The copy column has to stay readable where it crosses the lit stone,
   so the left side of the scrim is close to opaque and only clears
   past the text measure. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(11, 9, 7, 0.97) 0%,
      rgba(11, 9, 7, 0.93) 34%,
      rgba(11, 9, 7, 0.6) 56%,
      rgba(11, 9, 7, 0.2) 78%,
      rgba(11, 9, 7, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 9, 7, 0.85) 0%, transparent 26%, rgba(11, 9, 7, 0.96) 96%);
}

/* god rays sweeping the hero */
.hero__rays {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  background:
    linear-gradient(96deg, transparent 38%, rgba(255, 190, 130, 0.09) 42%, transparent 47%),
    linear-gradient(88deg, transparent 55%, rgba(255, 190, 130, 0.07) 60%, transparent 66%);
  filter: blur(3px);
  animation: rays var(--t-flicker) ease-in-out infinite alternate;
  animation-duration: 16s;
  pointer-events: none;
}

@keyframes rays {
  from { opacity: 0.55; transform: translateX(-2%); }
  to   { opacity: 1;    transform: translateX(2%); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero__title {
  margin: var(--s-4) 0 var(--s-5);
  font-size: var(--fs-3xl);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__title span {
  display: inline-block;
}

.hero__title span:nth-child(2) { color: var(--ember); }
.hero__title span:nth-child(3) { color: var(--moss); }

.hero__lede {
  max-width: 38rem;
  color: var(--ink-200);
  font-size: var(--fs-md);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* ---- contract row ---------------------------------------- */
.hero__ca {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  max-width: 34rem;
}

.hero__ca .label { flex-shrink: 0; }

.hero__ca-val {
  flex: 1;
  min-width: 8rem;
  padding: 0.3em 0.6em;
  border-radius: var(--r-sm);
  background: var(--soot-800);
  box-shadow: inset 0 0 0 1px var(--line-hair);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--ember);
  word-break: break-all;
}

@media (max-width: 560px) {
  .hero__ca { gap: var(--s-2); }
  .hero__ca-val { font-size: var(--fs-xs); }
}

/* ---- countdown ------------------------------------------- */
.countdown {
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  max-width: 30rem;
}

.countdown__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.countdown__when {
  font-size: var(--fs-xs);
  color: var(--ink-400);
  letter-spacing: 0.08em;
}

.countdown__clock {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.unit__v {
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ember);
  text-shadow: 0 0 26px var(--ember-glow);
  font-variant-numeric: tabular-nums;
}

.unit__l {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-400);
}

.unit__sep {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-500);
  transform: translateY(2px);
}

.countdown__live {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-hair);
  color: var(--ember);
  font-weight: 600;
}

/* ---- depth rail ------------------------------------------- */
.hero__depth {
  position: absolute;
  right: max(var(--s-5), calc((100vw - var(--w-page)) / 2 + var(--s-5)));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--ink-500);
}

.hero__depth-line {
  width: 1px;
  height: 22vh;
  background: linear-gradient(180deg, var(--line-soft), var(--ember));
  position: relative;
}

.hero__depth-line::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 14px var(--ember);
  animation: sink 7s var(--ease-in-out) infinite;
}

@keyframes sink {
  0%, 100% { top: 0; opacity: 0; }
  12%      { opacity: 1; }
  88%      { opacity: 1; }
  99%      { top: calc(100% - 7px); opacity: 0; }
}

@media (max-width: 1080px) {
  .hero__depth { display: none; }
}

/* ============================================================
   THE STAIR — depth cross-section
   ============================================================ */

.world {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  overflow: hidden;
}

.world__rail {
  list-style: none;
  position: relative;
  padding: var(--s-4);
  background: rgba(11, 9, 7, 0.45);
  border-right: 1px solid var(--line-hair);
}

/* the depth line the buttons hang off */
.world__rail::before {
  content: "";
  position: absolute;
  left: calc(var(--s-4) + 13px);
  top: var(--s-5);
  bottom: var(--s-5);
  width: 1px;
  background: linear-gradient(180deg, var(--ember-dim), var(--violet));
  opacity: 0.5;
}

.zone {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-6);
  border-radius: var(--r-md);
  text-align: left;
  transition: background-color var(--t-med) var(--ease-out);
}

.zone::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--soot-700);
  box-shadow: inset 0 0 0 1.5px var(--ink-400);
  transition: background-color var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
}

.zone:hover {
  background: rgba(255, 138, 61, 0.05);
}

.zone.is-on {
  background: rgba(255, 138, 61, 0.09);
}

.zone.is-on::before {
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.22), 0 0 16px var(--ember);
}

.zone--danger.is-on::before {
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(134, 192, 81, 0.22), 0 0 16px var(--moss);
}

.zone--danger.is-on {
  background: rgba(134, 192, 81, 0.09);
}

.zone__depth {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  letter-spacing: 0.08em;
}

.zone__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--ink-100);
}

.zone.is-on .zone__name { color: var(--ember); }
.zone--danger.is-on .zone__name { color: var(--moss); }

.zone__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.world__stage {
  position: relative;
  min-height: 34rem;
}

/* The image fills the stage and the copy sits on top of it as its own
   absolutely-placed layer. No grid-row negotiation, no negative margins
   — the copy cannot end up measured out of existence. */
.world__pane {
  position: absolute;
  inset: 0;
  animation: paneIn var(--t-slow) var(--ease-out);
}

@keyframes paneIn {
  from { opacity: 0; }
}

.world__pane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: paneZoom 1.4s var(--ease-out);
}

@keyframes paneZoom {
  from { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .world__pane,
  .world__pane img { animation: none; }
}

.world__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s-8) var(--s-6) var(--s-6);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(11, 9, 7, 0.62) 18%,
    rgba(11, 9, 7, 0.93) 44%,
    rgba(11, 9, 7, 0.97) 100%
  );
}

.world__copy p,
.world__copy .ticks {
  max-width: 34rem;
}

.world__copy h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-3);
}

.world__copy p {
  color: var(--ink-300);
  max-width: 42rem;
}

.ticks {
  list-style: none;
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.ticks li {
  position: relative;
  padding-left: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--ink-300);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1px;
  background: var(--ember);
}

@media (max-width: 900px) {
  .world {
    grid-template-columns: 1fr;
  }

  .world__rail {
    display: flex;
    gap: var(--s-2);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-hair);
    scroll-snap-type: x mandatory;
  }

  .world__rail::before { display: none; }

  .world__rail li { scroll-snap-align: start; }

  /* Cards are equal height and the tag always sits on the bottom row, so a
     two-line name does not shunt its neighbour's tag out of line. */
  .world__rail li { scroll-snap-align: start; display: flex; }

  .zone {
    width: auto;
    min-width: 10.75rem;
    padding: var(--s-3);
    grid-template-rows: auto 1fr auto;
  }

  .zone__name { font-size: var(--fs-base); }

  .zone::before { display: none; }

  .world__stage { min-height: 30rem; }

  .world__copy { margin-top: -18%; padding: var(--s-5); }
}

/* ============================================================
   ACTIVITIES
   ============================================================ */

.acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--s-4);
}

.act {
  padding: var(--s-6) var(--s-5) var(--s-5);
  transition: transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
}

.act:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--line-ember), var(--shadow-lift);
}

.act__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  color: var(--ember);
  background: rgba(255, 138, 61, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.22);
}

.act__icon svg { width: 24px; height: 24px; }

.act h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--s-2);
}

.act p {
  color: var(--ink-400);
  font-size: var(--fs-sm);
}

.acts__foot {
  margin-top: var(--s-7);
  text-align: center;
}

/* ============================================================
   SPLITS
   ============================================================ */

.splits {
  display: grid;
  gap: var(--s-8);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: var(--s-7);
}

.split--flip .split__text { order: 2; }

.split__text h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
}

.split__text p {
  color: var(--ink-300);
  margin-bottom: var(--s-3);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .split--flip .split__text { order: 0; }
}

/* ============================================================
   TOKEN
   ============================================================ */

.tok {
  display: grid;
  gap: var(--s-5);
}

.tok__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--s-4);
}

.stat {
  padding: var(--s-5);
}

.stat__value {
  margin: var(--s-3) 0 var(--s-2);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ember);
  letter-spacing: -0.01em;
}

.stat__note {
  font-size: var(--fs-xs);
  color: var(--ink-400);
}

.tok__ca {
  padding: var(--s-5);
}

.tok__ca-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-4) 0 var(--s-3);
  flex-wrap: wrap;
}

.tok__ca-val {
  flex: 1;
  min-width: 12rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  word-break: break-all;
  color: var(--ink-200);
}

.tok__ca-val .js-ca,
.tok__ca-val code {
  padding: 0.35em 0.6em;
  border-radius: var(--r-sm);
  background: var(--soot-800);
  box-shadow: inset 0 0 0 1px var(--line-hair);
}

.tok__ca-warn {
  font-size: var(--fs-sm);
  color: var(--gold);
  opacity: 0.85;
}

/* ============================================================
   ROADMAP
   ============================================================ */

.road {
  list-style: none;
  position: relative;
  display: grid;
  gap: var(--s-5);
  padding-left: var(--s-6);
}

.road::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--ember), var(--violet), transparent);
  opacity: 0.5;
}

.road__item { position: relative; }

.road__marker {
  position: absolute;
  left: calc(var(--s-6) * -1 + 1px);
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--soot-700);
  box-shadow: inset 0 0 0 1.5px var(--ink-400);
}

.road__item.is-now .road__marker {
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.16), 0 0 18px var(--ember);
}

.road__body {
  padding: var(--s-5);
}

.road__body h3 {
  font-size: var(--fs-md);
  margin: var(--s-2) 0 var(--s-3);
}

.road__state {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-500);
}

.road__item.is-now .road__state { color: var(--ember); }

/* ============================================================
   COMMUNITY
   ============================================================ */

.community {
  padding: var(--s-8) var(--s-6);
  text-align: center;
}

.community h2 {
  font-size: var(--fs-xl);
  margin: var(--s-3) 0 var(--s-4);
}

.community > p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--ink-300);
}

.community .label { justify-content: center; }

.community__socials {
  display: flex;
  justify-content: center;
  margin-top: var(--s-6);
}

.community__note {
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}
