:root {
  color-scheme: dark;
  --bg: #080504;
  --bg-2: #130d0a;
  --ink: #fff8e8;
  --muted: #cdbb9d;
  --gold: #f5c862;
  --gold-2: #8c6326;
  --crimson: #7e1519;
  --wine: #25080b;
  --teal: #18e5b8;
  --violet: #a45bff;
  --green: #60f064;
  --line: rgba(245, 200, 98, 0.24);
  --panel: rgba(20, 12, 8, 0.78);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(126, 21, 25, 0.42), transparent 30rem),
    radial-gradient(circle at 82% 0%, rgba(24, 229, 184, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--bg), #100807 48%, #070403);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(8, 5, 4, 0.86), rgba(8, 5, 4, 0.42));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
  background: rgba(8, 5, 4, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 200, 98, 0.5);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(245, 200, 98, 0.24);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 248, 232, 0.74);
  font-size: 0.9rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.header-cta,
.btn,
.copy-button {
  border: 1px solid rgba(245, 200, 98, 0.36);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.header-cta {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--gold), #fff1ae 45%, #b57b2a);
  color: #1a0d04;
  box-shadow: 0 12px 30px rgba(245, 200, 98, 0.24);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 5, 4, 0.96) 0%, rgba(8, 5, 4, 0.72) 40%, rgba(8, 5, 4, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 5, 4, 0.1) 62%, var(--bg) 100%),
    url("./assets/royal-solana-banner.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.hero-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 148px 0 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 0.95;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 9vw, 8.2rem);
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.58);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
}

h3 {
  font-size: 1.18rem;
  line-height: 1.1;
}

.hero-subtitle {
  max-width: 660px;
  color: rgba(255, 248, 232, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 20px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #fff3b8 42%, #b27223);
  color: #170b03;
  box-shadow: 0 16px 48px rgba(245, 200, 98, 0.24);
}

.btn-secondary {
  background: rgba(255, 248, 232, 0.07);
  color: var(--ink);
}

.hero-card,
.chart-shell,
.lore-grid article,
.step-grid article,
.board-grid article,
.community {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  padding: 14px;
}

.market-panel {
  width: min(1180px, calc(100% - 36px));
  margin: -56px auto 0;
  position: relative;
  z-index: 5;
}

.market-panel .hero-card {
  display: grid;
  grid-template-columns: 170px minmax(220px, 0.7fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: center;
}

.coin-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  object-fit: cover;
}

.ticker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 14px;
  font-weight: 900;
}

.ticker-row span {
  font-size: 1.6rem;
  font-family: Georgia, "Times New Roman", serif;
}

.ticker-row strong {
  padding: 8px 10px;
  border: 1px solid rgba(24, 229, 184, 0.36);
  border-radius: 999px;
  background: rgba(24, 229, 184, 0.1);
  color: #a8ffe9;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.token-summary p {
  margin: 0;
  color: rgba(255, 248, 232, 0.7);
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.live-stats div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(245, 200, 98, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
}

.live-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.live-stats strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: clamp(0.88rem, 2vw, 1.1rem);
}

.contract-band {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(245, 200, 98, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 8, 11, 0.98), rgba(9, 6, 5, 0.96));
  box-shadow: var(--shadow);
}

.contract-band span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.contract-band code {
  overflow: hidden;
  color: rgba(255, 248, 232, 0.88);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.72rem, 2vw, 0.98rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  padding: 11px 14px;
  background: rgba(245, 200, 98, 0.12);
  color: var(--gold);
}

.marquee {
  display: flex;
  gap: 24px;
  margin: 44px 0;
  overflow: hidden;
  border-block: 1px solid rgba(245, 200, 98, 0.16);
  background: rgba(255, 248, 232, 0.03);
}

.marquee div {
  display: flex;
  min-width: max-content;
  animation: scroll 28s linear infinite;
}

.marquee span {
  padding: 16px 22px;
  color: rgba(255, 248, 232, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.section-copy p,
.community p {
  color: rgba(255, 248, 232, 0.75);
  font-size: 1.04rem;
}

.link-grid {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.link-grid a {
  display: flex;
  justify-content: space-between;
  padding: 15px 16px;
  border: 1px solid rgba(245, 200, 98, 0.18);
  border-radius: 7px;
  background: rgba(255, 248, 232, 0.04);
  color: var(--gold);
  font-weight: 800;
}

.link-grid a::after {
  content: "Open";
  color: rgba(255, 248, 232, 0.56);
  font-size: 0.82rem;
}

.chart-shell {
  min-height: 620px;
  padding: 10px;
}

.chart-shell iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  border-radius: 7px;
  background: #111;
}

.lore {
  display: grid;
  gap: 30px;
}

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

.lore-grid article,
.step-grid article {
  padding: 24px;
}

.lore-grid span,
.step-grid strong {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  border: 1px solid rgba(245, 200, 98, 0.32);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.lore-grid p,
.step-grid p {
  color: rgba(255, 248, 232, 0.7);
}

.gallery-section {
  padding-top: clamp(72px, 9vw, 124px);
}

.gallery-heading {
  max-width: 820px;
}

.gallery-heading p:not(.eyebrow) {
  color: rgba(255, 248, 232, 0.72);
  font-size: 1.06rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr 0.84fr;
  grid-auto-rows: minmax(260px, auto);
  gap: 14px;
  margin-top: 34px;
}

.gallery-grid figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 200, 98, 0.22);
  border-radius: 8px;
  background: #120907;
  box-shadow: var(--shadow);
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 4, 0.9));
  pointer-events: none;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.gallery-feature {
  grid-row: span 2;
}

.gallery-grid figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.gallery-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.gallery-grid span {
  color: rgba(255, 248, 232, 0.7);
  font-size: 0.94rem;
}

.royal-banner {
  width: min(1320px, calc(100% - 28px));
  margin: 12px auto 0;
}

.royal-banner img {
  display: block;
  width: 100%;
  max-height: 600px;
  border: 1px solid rgba(245, 200, 98, 0.28);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.imperial-board {
  padding-top: clamp(70px, 9vw, 118px);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.board-grid article {
  min-height: 250px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(245, 200, 98, 0.06), transparent),
    var(--panel);
}

.board-grid h3 {
  margin-bottom: 80px;
}

.board-grid p {
  margin-bottom: 0;
  color: rgba(255, 248, 232, 0.7);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
}

.community h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 54px);
  border-top: 1px solid rgba(245, 200, 98, 0.14);
  color: rgba(255, 248, 232, 0.58);
  font-size: 0.9rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(8, 5, 4, 0.55) 0%, rgba(8, 5, 4, 0.96) 62%, var(--bg) 100%),
      url("./assets/royal-solana-banner.png") center top / cover no-repeat;
  }

  .hero-content,
  .split,
  .community {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 116px;
    padding-bottom: 98px;
  }

  .market-panel .hero-card {
    grid-template-columns: 132px 1fr;
  }

  .lore-grid,
  .step-grid,
  .board-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-feature {
    grid-row: span 1;
  }

  .community-actions {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    padding: 11px 14px;
  }

  .hero-content,
  .section,
  .market-panel,
  .contract-band {
    width: min(1180px, calc(100% - 24px));
  }

  .hero-copy,
  .hero-card {
    width: min(100%, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .hero-subtitle {
    width: min(100%, 21rem);
    max-width: calc(100vw - 48px);
    overflow-wrap: break-word;
  }

  .hero-actions {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 14.5vw, 4.6rem);
  }

  .hero-actions,
  .community-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .contract-band {
    grid-template-columns: auto 1fr;
  }

  .market-panel {
    margin-top: -34px;
  }

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

  .coin-portrait {
    max-height: 360px;
  }

  .ticker-row {
    padding-top: 4px;
  }

  .copy-button {
    grid-column: 1 / -1;
  }

  .chart-shell {
    min-height: 520px;
  }

  .chart-shell iframe {
    height: 520px;
  }

  .lore-grid,
  .step-grid,
  .board-grid,
  .gallery-grid,
  .live-stats {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure {
    min-height: 380px;
  }

  .lore-grid span,
  .step-grid strong {
    margin-bottom: 26px;
  }

  .site-footer {
    display: grid;
  }
}
