:root {
  --ink: #2b2420;
  --paper: #f4efe3;
  --paper-deep: #e9e0cd;
  --indigo: #3c5a6b;
  --indigo-deep: #24404d;
  --indigo-light: #8fb0bc;
  --sage: #7c9473;
  --gold: #b9924c;
  --gold-deep: #93732f;
  --gold-soft: #e4cf9c;
  --white: #fffdf8;
  --radius: 22px;
  --border: 1px solid rgba(43, 36, 32, 0.12);
  --shadow: 0 16px 40px rgba(36, 64, 77, 0.10);
  --shadow-sm: 0 6px 18px rgba(36, 64, 77, 0.10);
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(228, 207, 156, 0.28), transparent 70%),
    linear-gradient(180deg, #f6f1e5 0%, #eef0e6 45%, #e6ebe8 100%);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
  color: var(--indigo-deep);
  margin: 0 0 0.6rem;
  letter-spacing: 0.5px;
}
.section-title-emoji {
  display: inline-block;
  height: 0.65em;
  width: auto;
  vertical-align: -0.08em;
  opacity: 0.85;
  image-rendering: pixelated;
}

/* ---------- Line icon system (replaces emoji) ---------- */
svg.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  flex-shrink: 0;
}
.btn__icon { width: 1em; height: 1em; }
.stat-card__icon { width: 1.8rem; height: 1.8rem; }
.video-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.18em;
  margin-right: 0.4em;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-subtitle {
  text-align: center;
  color: #5c6a64;
  font-weight: 500;
  margin: 0 0 2.5rem;
  font-style: italic;
}

/* ---------- Floating background blocks ---------- */
.bg-blocks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.block {
  position: absolute;
  width: 40px;
  height: 40px;
  background-size: cover;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px rgba(36, 64, 77, 0.15));
  opacity: 0.28;
  animation: drift 16s ease-in-out infinite;
}
.block--1 { top: 10%; left: 5%; animation-delay: 0s; background-image: url('../assets/images/mylapisart.png'); }
.block--2 { top: 25%; right: 8%; animation-delay: 2s; width: 30px; height: 30px; background-image: url('../assets/images/mydiamondart.png'); }
.block--3 { top: 60%; left: 12%; animation-delay: 4s; width: 50px; height: 50px; background-image: url('../assets/images/mylapisart.png'); }
.block--4 { top: 75%; right: 15%; animation-delay: 6s; background-image: url('../assets/images/mydiamondart.png'); }
.block--5 { top: 40%; left: 45%; animation-delay: 3s; width: 26px; height: 26px; opacity: 0.18; background-image: url('../assets/images/mylapisart.png'); }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  50% { transform: translateY(-22px) rotate(6deg); opacity: 0.32; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 227, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--indigo-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.nav__gem {
  width: 16px; height: 16px;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold-deep));
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px 2px rgba(185, 146, 76, 0.4);
}
.nav__links {
  display: flex;
  gap: 1.8rem;
  font-weight: 600;
}
.nav__links a { opacity: 0.75; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; color: var(--indigo); }
.nav__cta {
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(147, 115, 47, 0.28); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__actions, .hero__ca-row { justify-content: center; }
}

.hero__eyebrow {
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 0.8rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  color: var(--indigo-deep);
}
.hero__title-highlight {
  color: var(--gold-deep);
  font-style: italic;
}
.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: #4f5b56;
  max-width: 52ch;
  margin: 0 0 2rem;
  line-height: 1.6;
}
@media (max-width: 900px) { .hero__subtitle { margin-left: auto; margin-right: auto; } }

.hero__ca {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.hero__ca-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--indigo);
}
.hero__ca-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.hero__ca-row code {
  font-size: 0.85rem;
  word-break: break-all;
  background: var(--paper);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  flex: 1;
  min-width: 0;
}

.hero__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--white);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(147, 115, 47, 0.32); }
.btn--secondary {
  background: var(--white);
  color: var(--indigo-deep);
  border: var(--border);
}
.btn--secondary:hover { box-shadow: 0 12px 28px rgba(36, 64, 77, 0.16); }
.btn--copy {
  background: var(--indigo);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.btn--lg { font-size: 1.15rem; padding: 1.05rem 2.1rem; }

.hero__art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.hero__portrait-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid var(--gold-deep);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--indigo-light), var(--indigo-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aura 5s ease-in-out infinite;
}
@keyframes aura {
  0%, 100% { box-shadow: 0 20px 50px rgba(36, 64, 77, 0.2), 0 0 0 8px rgba(185, 146, 76, 0.10), 0 0 40px 6px rgba(185, 146, 76, 0.14); }
  50% { box-shadow: 0 20px 50px rgba(36, 64, 77, 0.2), 0 0 0 8px rgba(185, 146, 76, 0.18), 0 0 65px 16px rgba(185, 146, 76, 0.24); }
}
.hero__portrait { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-align: center;
  font-weight: 600;
  padding: 1rem;
}
.hero__portrait-fallback code {
  background: rgba(0,0,0,0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.8rem;
}
.hero__portrait-frame--empty .hero__portrait { display: none; }
.hero__portrait-frame--empty .hero__portrait-fallback { display: flex; }
.hero__gem-big { width: 3.2rem; height: auto; margin-bottom: 0.5rem; image-rendering: pixelated; }
.hero__art-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--indigo-deep);
  text-align: center;
}

/* ---------- Lore ---------- */
.lore {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}
.ore-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2.2rem auto 0;
  flex-wrap: wrap;
}
.ore-compare__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.8rem;
  box-shadow: var(--shadow);
}
.ore-compare__img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  image-rendering: pixelated;
}
.ore-compare__label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #6b756f;
}
.ore-compare__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--indigo-deep);
  letter-spacing: 0.5px;
}
.ore-compare__vs {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold-deep);
}

.lore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}
.lore__step {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
}
.lore__step-icon {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 50%;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 4px;
}
.lore__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold-deep);
}
.lore__step h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0.3rem 0 0.5rem; color: var(--indigo-deep); }
.lore__step p { margin: 0; color: #52605a; font-weight: 400; line-height: 1.6; }

.lore__video-card {
  margin-top: 2.8rem;
  text-align: center;
  background: var(--indigo-deep);
  border-radius: var(--radius);
  padding: 2.2rem;
  color: var(--white);
}
.lore__video-card p { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-bottom: 1.1rem; }

.transcript {
  max-width: 620px;
  margin: 3.2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.transcript__label {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--indigo);
  margin: 0 0 0.6rem;
}
.bubble {
  position: relative;
  max-width: 78%;
  padding: 0.9rem 1.3rem;
  border: var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}
.bubble__speaker {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  opacity: 0.65;
}
.bubble--speed {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble--kai {
  align-self: flex-end;
  background: var(--gold-soft);
  color: var(--ink);
  border-bottom-right-radius: 4px;
  text-align: right;
}

/* ---------- Sacred Footage ---------- */
.footage {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}
.footage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}
.footage__card {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--indigo-deep);
}
.footage__card video {
  width: 100%;
  max-height: 520px;
  display: block;
  background: var(--indigo-deep);
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}
.meme-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
.meme-carousel__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-deep);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.meme-carousel__arrow svg { width: 20px; height: 20px; }
.meme-carousel__arrow:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.meme-carousel__arrow:disabled { opacity: 0.35; cursor: default; transform: none; box-shadow: var(--shadow-sm); }
.meme-carousel__frame {
  flex: 1;
  min-width: 0;
  margin: 0;
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
  overflow: hidden;
}
.meme-carousel__img {
  display: block;
  width: 100%;
  height: 60vw;
  max-height: 440px;
  min-height: 260px;
  object-fit: contain;
  background: var(--paper-deep);
}
.meme-carousel__broken {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 60vw;
  max-height: 440px;
  min-height: 260px;
  color: var(--indigo);
  background: var(--paper-deep);
}
.meme-carousel__broken .icon { width: 2.4rem; height: 2.4rem; }
.meme-carousel__broken span { font-size: 0.8rem; font-weight: 600; }
.meme-carousel__frame--broken .meme-carousel__img { display: none; }
.meme-carousel__frame--broken .meme-carousel__broken { display: flex; }
.meme-carousel__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.9rem 1.3rem;
  border-top: var(--border);
  background: var(--white);
}
.meme-carousel__caption span:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--indigo-deep);
}
.meme-carousel__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a8074;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.meme-carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.meme-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding: 0;
  background: var(--paper-deep);
  border: 1px solid rgba(43, 36, 32, 0.18);
  cursor: pointer;
}
.meme-carousel__dot--active { background: var(--gold-deep); border-color: var(--gold-deep); }

/* ---------- Tokenomics ---------- */
.tokenomics {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.tokenomics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}
.stat-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1rem;
  box-shadow: var(--shadow);
}
.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--indigo);
}
.stat-card__label {
  display: block;
  font-weight: 600;
  color: #5c6a64;
  margin-top: 0.5rem;
}
.tokenomics__note {
  margin-top: 2rem;
  font-style: italic;
  font-weight: 500;
  color: #6b756f;
}

/* ---------- Buy ---------- */
.buy {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}
.buy__cta { text-align: center; margin-top: 1.5rem; }

/* ---------- Community ---------- */
.community {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.community__links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.social-btn {
  font-weight: 700;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-btn__icon { display: inline-block; height: 1em; width: auto; vertical-align: -0.12em; margin-right: 0.2em; image-rendering: pixelated; }
.social-btn--x { background: var(--indigo-deep); color: var(--white); }
.social-btn--community { background: var(--indigo); color: var(--white); }
.social-btn--tt { background: var(--white); color: var(--indigo-deep); border: var(--border); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  color: #7a8580;
  font-size: 0.85rem;
  max-width: 700px;
  margin: 0 auto;
}
.footer__signoff-icon { display: inline-block; height: 1.1em; width: auto; vertical-align: -0.18em; margin-left: 0.15em; image-rendering: pixelated; }
.footer__signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--indigo-deep);
  margin-top: 1rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--indigo-deep);
  color: var(--gold-soft);
  font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
