:root {
  --ink: #162022;
  --paper: #f7fbff;
  --muted: #607176;
  --line: rgba(22, 32, 34, 0.13);
  --vortex: #1e9e93;
  --leaf: #4faf68;
  --sun: #f2bd57;
  --coral: #e86f64;
  --blue: #3c7fd0;
  --night: #0b1519;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 54px);
  color: white;
  background: rgba(8, 17, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: cover;
  background: #071113;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(100, 214, 177, 0.24);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: white;
  background: var(--night);
}

#heroScene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 49%, transparent 0 26%, rgba(7, 17, 19, 0.26) 48%, rgba(7, 17, 19, 0.72) 100%),
    linear-gradient(90deg, rgba(5, 13, 15, 0.9), rgba(5, 13, 15, 0.68) 42%, rgba(5, 13, 15, 0.12) 78%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  padding: clamp(120px, 17vh, 190px) 0 120px clamp(20px, 6vw, 78px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #051112;
  background: linear-gradient(135deg, var(--sun), #78e0b5);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
}

.hero-status {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 24px;
  left: clamp(18px, 4vw, 54px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-status span {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(2, 10, 11, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13px;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #ffffff;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.feature-band article {
  min-height: 260px;
  padding: clamp(28px, 5vw, 54px);
  background: #f2f8f6;
}

.feature-band article:nth-child(2) {
  background: #fff8ed;
}

.feature-band article:nth-child(3) {
  background: #eef5ff;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: white;
  background: var(--vortex);
  border-radius: 50%;
  font-size: 20px;
}

.feature-band article:nth-child(2) .feature-icon {
  background: var(--coral);
}

.feature-band article:nth-child(3) .feature-icon {
  background: var(--blue);
}

.feature-band p,
.creature-copy p,
.faction p,
.token-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-head {
  max-width: 880px;
  margin-bottom: 32px;
}

.showcase {
  background: #ffffff;
}

.creature-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(135deg, #10252b, #123c36 48%, #473929);
  border-radius: 8px;
}

#creatureCanvas {
  width: 100%;
  min-height: 430px;
  height: 100%;
}

.creature-copy {
  padding: 28px 30px 28px 0;
  color: white;
}

.creature-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.factions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.faction {
  min-height: 380px;
  padding: clamp(34px, 6vw, 76px);
}

.faction.vortex {
  color: #082021;
  background:
    radial-gradient(circle at 82% 20%, rgba(242, 189, 87, 0.32), transparent 28%),
    linear-gradient(135deg, #dff8ee, #f8fff8);
}

.faction.rogue {
  color: white;
  background:
    radial-gradient(circle at 76% 18%, rgba(232, 111, 100, 0.34), transparent 30%),
    linear-gradient(135deg, #121619, #273238);
}

.faction.rogue p {
  color: rgba(255, 255, 255, 0.76);
}

.token-panel {
  background: #fff7f1;
}

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

.token-grid article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 32, 34, 0.1);
  border-radius: 8px;
}

.wallet-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 20px;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  color: white;
  background:
    linear-gradient(135deg, rgba(12, 28, 31, 0.98), rgba(17, 43, 48, 0.94)),
    #101d20;
  border: 1px solid rgba(22, 32, 34, 0.12);
  border-radius: 8px;
}

.wallet-copy p:last-child {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.chain-console {
  display: grid;
  gap: 14px;
}

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

.status-row,
.address-box {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.status-row span,
.address-box span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-row strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.address-box code {
  display: block;
  margin-top: 8px;
  color: #b9ffe7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

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

.wallet-actions button {
  min-height: 44px;
  padding: 10px 12px;
  color: #061315;
  background: #f2bd57;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.wallet-actions button:nth-child(2) {
  background: #78e0b5;
}

.wallet-actions button:nth-child(3) {
  background: #9bc8ff;
}

.wallet-actions button:nth-child(4) {
  background: #ffffff;
}

.wallet-actions button:disabled {
  color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
}

.chain-message {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.play-section {
  color: white;
  background: #111d20;
}

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

.download-tile {
  min-height: 150px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(30, 158, 147, 0.24), rgba(60, 127, 208, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.download-tile span {
  display: block;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.download-tile strong {
  display: block;
  margin-top: 28px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #071011;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-copy {
    padding-top: 142px;
  }

  .intro-grid,
  .feature-band,
  .creature-stage,
  .factions,
  .token-grid,
  .wallet-panel,
  .play-grid {
    grid-template-columns: 1fr;
  }

  .status-list,
  .wallet-actions {
    grid-template-columns: 1fr 1fr;
  }

  .creature-copy {
    padding: 0 24px 28px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .hero-copy {
    width: calc(100% - 24px);
    padding-left: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .status-list,
  .wallet-actions {
    grid-template-columns: 1fr;
  }
}
