:root {
  --black: #08040d;
  --ink: #12091f;
  --purple: #6d23ff;
  --royal: #3c136f;
  --violet: #a855f7;
  --gold: #f6cf6a;
  --gold-deep: #b47a22;
  --marble: #f5edf8;
  --smoke: #c9bad8;
  --red: #ef374d;
  --green: #4ade80;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(246, 207, 106, 0.34);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--marble);
  background: var(--black);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::selection {
  color: var(--black);
  background: var(--gold);
}

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

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

button {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 8%, rgba(168, 85, 247, 0.32), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(246, 207, 106, 0.16), transparent 28%),
    linear-gradient(135deg, #07040c 0%, #1b0b2a 35%, #08040d 68%, #19071d 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(30deg, rgba(255, 255, 255, 0.12) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.12) 87.5%, rgba(255, 255, 255, 0.12)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.12) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.12) 87.5%, rgba(255, 255, 255, 0.12));
  background-size: 72px 126px;
  animation: patternDrift 28s linear infinite;
}

.marble-vein {
  position: absolute;
  width: 55vw;
  height: 160vh;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.16;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(245, 237, 248, 0.72), transparent);
}

.vein-one {
  top: -50vh;
  left: -14vw;
}

.vein-two {
  right: -25vw;
  bottom: -60vh;
}

.particle-field {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(246, 207, 106, 0.85);
  opacity: 0.64;
  animation: particleRise var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  padding: 12px 0;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand-mark,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(246, 207, 106, 0.22);
  border-radius: 999px;
  background: rgba(8, 4, 13, 0.74);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.brand-mark {
  font-weight: 900;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold), #fff1aa);
  font-family: "Cinzel", serif;
  font-size: 0.76rem;
}

.nav-links a {
  color: var(--smoke);
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(246, 207, 106, 0.55);
}

.section-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: center;
  min-height: 94vh;
  padding: 104px 0 52px;
}

.roman-pattern {
  position: absolute;
  inset: 12% auto auto -5%;
  width: 55%;
  height: 54%;
  border: 1px solid rgba(246, 207, 106, 0.18);
  border-radius: 50%;
  opacity: 0.45;
  background:
    repeating-radial-gradient(circle, rgba(246, 207, 106, 0.11) 0 2px, transparent 2px 34px),
    conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.25), transparent, rgba(246, 207, 106, 0.18), transparent);
  filter: blur(1px);
  animation: slowSpin 36s linear infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.7rem, 8vw, 7.55rem);
  line-height: 0.86;
  text-shadow:
    0 0 26px rgba(168, 85, 247, 0.72),
    0 0 70px rgba(246, 207, 106, 0.22);
}

h2 {
  max-width: 980px;
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  line-height: 0.95;
  text-shadow: 0 0 28px rgba(168, 85, 247, 0.42);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.hero-subtitle {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--smoke);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.contract-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(109, 35, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 52px rgba(0, 0, 0, 0.28);
}

.contract-pill span {
  color: var(--smoke);
}

.contract-pill strong {
  color: #fff7c9;
}

.copy-btn {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--black);
  background: var(--gold);
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(246, 207, 106, 0.5);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(246, 207, 106, 0.35);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

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

.btn-primary {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold), #fff2a3);
  box-shadow: 0 14px 38px rgba(246, 207, 106, 0.2);
}

.btn-secondary {
  color: #fff7c9;
  background: linear-gradient(135deg, rgba(109, 35, 255, 0.94), rgba(168, 85, 247, 0.68));
  box-shadow: 0 14px 38px rgba(109, 35, 255, 0.28);
}

.btn-ghost {
  color: var(--marble);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
}

.hero-visual img {
  position: relative;
  z-index: 3;
  width: min(100%, 560px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 36px 68px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 48px rgba(246, 207, 106, 0.23));
  animation: stoicFloat 5.4s ease-in-out infinite;
}

.laurel-ring {
  position: absolute;
  width: min(92%, 580px);
  aspect-ratio: 1;
  border: 2px solid rgba(246, 207, 106, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 62%);
  box-shadow: inset 0 0 70px rgba(246, 207, 106, 0.13), 0 0 80px rgba(109, 35, 255, 0.28);
  animation: pulseRing 3.8s ease-in-out infinite;
}

.floating-relic {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(246, 207, 106, 0.5);
  border-radius: 50%;
  color: var(--black);
  background: radial-gradient(circle at 30% 25%, #fff4ae, var(--gold) 54%, var(--gold-deep));
  font-family: "Cinzel", serif;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(246, 207, 106, 0.42);
  animation: relicFloat 4s ease-in-out infinite;
}

.coin-one {
  top: 18%;
  right: 4%;
}

.coin-two {
  left: 4%;
  bottom: 16%;
  animation-delay: -1.2s;
}

.scroll-one {
  right: 10%;
  bottom: 8%;
  width: 96px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f4dfb0, #b88337, #f8e6bc);
  transform: rotate(-10deg);
}

.candle {
  position: absolute;
  z-index: 2;
  bottom: 5%;
  width: 22px;
  height: 108px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(#f3d78f, #8f52d0 34%, #32104f);
  box-shadow: 0 0 30px rgba(246, 207, 106, 0.22);
}

.candle span {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 22px;
  height: 34px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(#fff7ba, #f97316);
  transform: translateX(-50%);
  animation: flame 650ms ease-in-out infinite alternate;
}

.candle-left {
  left: 10%;
}

.candle-right {
  right: 0;
  height: 88px;
}

.market,
.characters,
.video-section,
.lore {
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-copy {
  max-width: 950px;
  margin: 0 0 28px;
  color: var(--smoke);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 32px;
  align-items: stretch;
}

.market-copy {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(109, 35, 255, 0.08)),
    rgba(8, 4, 13, 0.78);
  box-shadow: var(--shadow);
}

.market-copy p {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.22;
}

.calm-meter {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.calm-meter span {
  color: var(--smoke);
  font-weight: 800;
}

.calm-meter strong {
  color: var(--green);
  font-size: 1.2rem;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.45);
}

.meter-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter-track span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  animation: meterGlow 2.8s ease-in-out infinite;
}

.market-scene {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(246, 207, 106, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(239, 55, 77, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 55, 77, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 64%, rgba(246, 207, 106, 0.16), transparent 34%),
    rgba(8, 4, 13, 0.72);
  background-size: 54px 54px, 54px 54px, auto, auto;
  box-shadow: var(--shadow);
}

.market-token {
  position: absolute;
  z-index: 4;
  max-width: min(34vw, 270px);
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}

.bitcoin-token {
  top: 12%;
  left: 7%;
  animation: tokenDip 2.5s ease-in-out infinite;
}

.solana-token {
  top: 24%;
  right: 7%;
  animation: tokenDip 2.5s ease-in-out infinite -0.8s;
}

.calm-marcus {
  position: absolute;
  left: 50%;
  bottom: -26px;
  z-index: 3;
  width: min(62%, 360px);
  transform: translateX(-50%);
}

.calm-marcus img {
  filter: drop-shadow(0 0 42px rgba(246, 207, 106, 0.34));
  animation: calmGlow 3s ease-in-out infinite;
}

.red-candle {
  position: absolute;
  top: -90px;
  width: 18px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(var(--red), #7f1020);
  box-shadow: 0 0 18px rgba(239, 55, 77, 0.45);
  animation: candleDrop 3.5s linear infinite;
}

.candle-drop-one {
  left: 20%;
}

.candle-drop-two {
  left: 56%;
  animation-delay: -1.2s;
}

.candle-drop-three {
  right: 18%;
  animation-delay: -2.1s;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.character-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(246, 207, 106, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.character-card:hover {
  transform: translateY(-8px) rotate(0.6deg);
  border-color: rgba(246, 207, 106, 0.72);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.5), 0 0 38px rgba(168, 85, 247, 0.28);
}

.character-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.character-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.14) contrast(1.06);
}

.character-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(8, 4, 13, 0.96) 22%, rgba(8, 4, 13, 0.98));
}

.character-card p {
  margin: 8px 0 0;
  color: var(--smoke);
  line-height: 1.45;
}

.video-wrap {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(246, 207, 106, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(109, 35, 255, 0.12));
  box-shadow: var(--shadow);
}

.video-wrap video {
  width: min(100%, 860px);
  max-height: 78vh;
  border: 1px solid rgba(246, 207, 106, 0.32);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.lore-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(246, 207, 106, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(245, 237, 248, 0.12), rgba(109, 35, 255, 0.12)),
    rgba(8, 4, 13, 0.8);
  box-shadow: var(--shadow);
}

.lore-panel p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--smoke);
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  line-height: 1.78;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(246, 207, 106, 0.24);
  color: var(--smoke);
}

.footer div,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer strong {
  color: var(--marble);
  font-family: "Cinzel", serif;
}

.footer a {
  font-weight: 900;
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes patternDrift {
  to {
    background-position: 144px 252px;
  }
}

@keyframes particleRise {
  0% {
    transform: translate3d(0, 110vh, 0) scale(0.7);
  }

  100% {
    transform: translate3d(var(--drift), -12vh, 0) scale(1.1);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(378deg);
  }
}

@keyframes stoicFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes relicFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }

  50% {
    transform: translateY(-18px) rotate(7deg);
  }
}

@keyframes flame {
  from {
    transform: translateX(-50%) scale(0.92) rotate(-4deg);
  }

  to {
    transform: translateX(-50%) scale(1.08) rotate(4deg);
  }
}

@keyframes tokenDip {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  45% {
    transform: translateY(82px) rotate(-6deg);
  }

  55% {
    transform: translateY(74px) rotate(5deg);
  }
}

@keyframes candleDrop {
  to {
    transform: translateY(720px);
  }
}

@keyframes calmGlow {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 34px rgba(246, 207, 106, 0.28));
  }

  50% {
    transform: translateY(-8px);
    filter: drop-shadow(0 0 58px rgba(246, 207, 106, 0.54));
  }
}

@keyframes meterGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.38);
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-visual {
    min-height: 390px;
  }

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

  .character-card {
    min-height: 390px;
  }

  .character-card img {
    height: 310px;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .footer,
  .topbar {
    width: min(100% - 20px, 1180px);
  }

  .brand-mark {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.6rem);
  }

  .contract-pill,
  .cta-row,
  .btn {
    width: 100%;
  }

  .contract-pill {
    justify-content: center;
    border-radius: 8px;
  }

  .market,
  .characters,
  .video-section,
  .lore {
    padding: 62px 0;
  }

  .market-copy {
    padding: 24px;
  }

  .market-scene {
    min-height: 420px;
  }

  .market-token {
    max-width: 44vw;
  }

  .calm-marcus {
    width: min(78%, 320px);
  }

  .floating-relic {
    width: 52px;
    height: 52px;
  }
}

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