/* ---------- Fonts ---------- */

@font-face {
  font-family: "Lithos Pro";
  src: url("assets/LithosPro-Black.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  color: #f4eadd;
  background: #111;
  line-height: 1.4;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Hide visually but keep accessible to screen readers and search crawlers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 10px 12px;
  background: transparent;
  pointer-events: none; /* let clicks pass through the transparent area */
}

.nav__inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 22px;
  padding: 10px 22px;
  background: #2a1a0c;
  border: 2px solid #000;
  border-radius: 999px;
  box-shadow: 0 3px 0 #000, 0 6px 14px rgba(0, 0, 0, 0.4);
}

.nav__link {
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__link:hover { color: #ffde59; }

@media (min-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav__inner { gap: 0 32px; padding: 12px 32px; }
  .nav__link {
    font-size: 15px;
    letter-spacing: 0.08em;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .section__inner {
    padding: 56px 24px;
  }
}

.sprite {
  width: 100%;
  height: auto;
}

.sprite--hero       { max-width: 1100px; }
.sprite--tokenomics { max-width: 1200px; }

.undies-green { color: #e8721a; }

/* ---------- Hero ---------- */

.section--hero {
  background-image: url("assets/hero-background.png");
  background-size: cover;
  background-position: center;
  background-color: #0c1530;
}

.section--hero .section__inner {
  padding: 20px 8px;
}

@media (min-width: 768px) {
  .section--hero .section__inner {
    padding: 40px 24px 56px;
  }
}

/* Mobile: zoom the hero sprite so the gnomes reach the screen margins.
   Sprite is 1536x1024; gnomes span roughly the middle 55% of width.
   Rendering it at ~180vw puts the gnomes right against the edges.
   The section's overflow:hidden crops the warning + "just phase 1" signs. */
@media (max-width: 767px) {
  .section--hero .section__inner {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }
  .sprite--hero {
    width: 150vw;
    max-width: none;
    flex-shrink: 0;
  }
}

/* ---------- How to Buy ---------- */

.section--howto {
  background-image: url("assets/how-to-background.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: #164d2b;
}

@media (min-width: 768px) {
  .section--howto {
    background-size: cover;
  }
}

/* Push content clear of the torn-paper top/bottom edges on mobile */
.section--howto .section__inner {
  padding-top: 96px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .section--howto .section__inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

.howto__title {
  margin: 0 0 28px;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.04em;
  color: #f4eadd;
  text-align: center;
  line-height: 1.1;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.howto__row {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}

.howto__step {
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #f4eadd;
}

.howto__heading {
  display: block;
  margin-bottom: 14px;
  min-height: 2.4em;
  line-height: 1.2;
  text-align: center;
}

.howto__num {
  display: block;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 900;
  font-size: 32px;
  color: #e8721a;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.howto__label {
  display: block;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #f4eadd;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

/* Mobile: collapse to a single inline row at the same size */
@media (max-width: 767px) {
  .howto__heading {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    min-height: 0;
  }
  .howto__num,
  .howto__label {
    display: inline;
    font-size: 18px;
    margin: 0;
  }
  .howto__num { color: #e8721a; }
}

@media (min-width: 768px) {
  .howto__label { font-size: 18px; }
  .howto__num { font-size: 36px; }
}

/* ---- Icons (individual assets) ---- */

.howto__icon {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 14px;
}

.howto__icon--flipcash { max-width: 150px; }
.howto__icon--phone    { max-width: 190px; }

.howto__arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 52px;
  height: auto;
}

/* Hide arrows on narrow screens where steps stack */
@media (max-width: 767px) {
  .howto__arrow { display: none; }
  .howto__step { max-width: 320px; }
  .howto__row { gap: 28px; }
}

/* ---- Description copy ---- */

.howto__desc {
  margin: 0 0 14px;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #f4eadd;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .howto__desc { font-size: 18px; }
}

/* ---- Install group (icon + stores) ---- */

.howto__install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .howto__install {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
  }
  .howto__install .howto__icon--flipcash { margin-bottom: 0; }
}

/* ---- App store badges ---- */

.howto__stores {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.howto__store {
  display: block;
  width: 140px;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.howto__store img {
  display: block;
  width: 100%;
  height: auto;
}

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

/* ---------- Tokenomics ---------- */

.section--tokenomics {
  background-image: url("assets/tokenomics-background.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: #0e1b46;
}

@media (min-width: 768px) {
  .section--tokenomics { background-size: cover; }
}

.section--tokenomics .section__inner {
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .section--tokenomics .section__inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* Desktop shows the single combined sprite; mobile shows header + process separately. */
.tokenomics__desktop { display: block; }
.tokenomics__header,
.tokenomics__process { display: none; }

@media (max-width: 767px) {
  .tokenomics__desktop { display: none; }

  .tokenomics__header {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto 18px;
  }

  .tokenomics__process {
    display: block;
    width: calc(100% + 32px);   /* undo the 16px L/R padding on .section__inner */
    max-width: none;
    height: auto;
    margin-left: -16px;
    margin-right: -16px;
  }
}

.promise {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 16px auto 0;
  padding: 14px 28px;
  text-align: center;
  background: #b2292c;
  color: #fbe8b8;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  border: 2px solid #3d0b0b;
  border-radius: 6px;
  box-shadow: 0 4px 0 #3d0b0b, 0 6px 12px rgba(0,0,0,0.35);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .promise {
    max-width: 620px;
    margin-top: -60px;
    padding: 16px 36px;
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .promise {
    font-size: 20px;
    padding: 18px 40px;
  }
}

/* ---------- Gnome NFTs ---------- */

.section--nft {
  background-image: url("assets/nft-background.png");
  background-size: cover;
  background-position: center;
  background-color: #3a1463;
}

.section--nft .section__inner {
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .section--nft .section__inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* ---- NFT layout ----
   SOON banner on top (centered),
   HODL | EQUATION | GNOME-GAINS in a flex row,
   WHY (Unique / Pointless / Pricey) at the bottom.                    */

.nft {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.nft img { display: block; height: auto; }

.nft__soon { width: 100%; max-width: 360px; }
.nft__why  { width: 100%; max-width: 340px; }

.nft__middle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nft__char {
  flex: 0 1 auto;
  position: relative;
  z-index: 2;
}

.nft__char--left  { width: 40%;  max-width: 220px; margin-right: -4%; }
.nft__char--right { width: 36%;  max-width: 200px; margin-left: -4%; }

.nft__equation {
  flex: 0 1 auto;
  width: 40%;
  max-width: 240px;
  z-index: 1;
}

@media (min-width: 768px) {
  .nft { gap: 20px; }

  .nft__middle { gap: 10px; }

  .nft__char--left  { width: auto; max-width: 240px; margin-right: 0; }
  .nft__char--right { width: auto; max-width: 220px; margin-left: 0; }
  .nft__equation    { width: auto; max-width: 440px; }
}

/* ---------- Disclaimer ---------- */

.section--disclaimer {
  background: #0e0e0e;
  color: #e8ddc7;
  border-top: 4px solid #000;
}

.section--disclaimer .section__inner {
  padding: 28px 16px 16px;
}

.disclaimer {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

@media (min-width: 768px) {
  .disclaimer {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 28px;
  }
}

.disclaimer__sign {
  flex: 0 0 auto;
  width: 72px;
  aspect-ratio: 135 / 125;
  background-image: url("assets/footer-sprite.png");
  background-size: 200% 100%;
  background-repeat: no-repeat;
}

.disclaimer__sign--left  { background-position: 0 0; }
.disclaimer__sign--right { background-position: 100% 0; }

@media (min-width: 768px) {
  .disclaimer__sign { width: 90px; }
}

/* Mobile: signs side-by-side above the body */
@media (max-width: 767px) {
  .disclaimer__sign--left  { order: 1; }
  .disclaimer__sign--right { order: 2; }
  .disclaimer__body        { order: 3; flex: 1 1 100%; }
}

.disclaimer__body {
  flex: 1 1 auto;
  max-width: 640px;
  text-align: center;
  padding: 0 8px;
}

.disclaimer__title {
  margin: 0 0 10px;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #f4eadd;
}

.disclaimer__body p {
  margin: 0;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: #c9bfa9;
}

@media (min-width: 768px) {
  .disclaimer__title { font-size: 26px; }
  .disclaimer__body p { font-size: 13px; }
}

/* ---------- Social ---------- */

.social {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 18px 16px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 16px;
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4eadd;
  text-decoration: none;
  font-family: "Lithos Pro", "Trajan Pro", Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.social__link:hover {
  color: #ffde59;
  background: rgba(255,255,255,0.04);
}

.social__icon {
  width: 22px;
  height: 22px;
}
