:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #0f1e1a;
  --panel-strong: #142923;
  --text: #f2f7f1;
  --muted: #a9b8ad;
  --line: rgba(242, 247, 241, 0.14);
  --green: #6ee7a8;
  --gold: #f6c768;
  --coral: #ff8d6a;
  --blue: #7ab8ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(110, 231, 168, 0.16), transparent 34%),
    linear-gradient(220deg, rgba(246, 199, 104, 0.14), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #06100d;
  box-shadow: 0 0 20px rgba(110, 231, 168, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.wallet-button,
.primary-action,
.secondary-action,
.network-pill,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 18px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.wallet-button,
.secondary-action,
.network-pill,
.copy-button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.wallet-button {
  flex: 0 0 auto;
  min-width: 150px;
  max-width: 210px;
  white-space: nowrap;
}

.wallet-button:hover,
.secondary-action:hover,
.network-pill:hover,
.copy-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 54px 0 92px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 14vw, 9.8rem);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.6;
}

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

.primary-action {
  border-color: transparent;
  background: var(--green);
  color: #06100d;
}

.hero-stack {
  display: grid;
  gap: 18px;
  align-self: start;
  padding-top: clamp(12px, 10vh, 120px);
}

.hero-world {
  position: relative;
  display: grid;
  min-height: clamp(230px, 33vw, 380px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 168, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(110, 231, 168, 0.22), transparent 36%),
    radial-gradient(circle at 78% 30%, rgba(246, 199, 104, 0.18), transparent 26%),
    rgba(7, 17, 15, 0.76);
  box-shadow:
    inset 0 0 80px rgba(110, 231, 168, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.32);
}

.hero-world::before,
.hero-world::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.hero-world::before {
  inset: 18%;
  border: 1px solid rgba(246, 199, 104, 0.28);
  transform: rotate(-16deg) scaleX(1.24);
}

.hero-world::after {
  inset: 9%;
  border: 1px solid rgba(110, 231, 168, 0.18);
  transform: rotate(18deg) scaleX(0.9);
}

.hero-world img {
  position: relative;
  z-index: 1;
  width: min(94%, 460px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.42));
}

.round-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 168, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 14%, rgba(110, 231, 168, 0.24), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(246, 199, 104, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 42%),
    rgba(11, 26, 22, 0.94);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 90px rgba(0, 0, 0, 0.44),
    0 0 72px rgba(110, 231, 168, 0.12);
  padding: 22px;
}

.round-console::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 34%);
  opacity: 0.55;
}

.console-header,
.jackpot-meter,
.stats-grid,
.section-heading,
.security-band {
  display: flex;
}

.console-header {
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.console-header strong {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110, 231, 168, 0.26), rgba(246, 199, 104, 0.18));
  color: var(--green);
  box-shadow: 0 0 24px rgba(110, 231, 168, 0.16);
  padding: 6px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.jackpot-meter {
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: 7px;
  margin: 34px 0 20px;
}

.jackpot-meter span {
  color: var(--text);
  font-size: clamp(2.9rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: 0.9;
  text-shadow:
    0 0 34px rgba(110, 231, 168, 0.2),
    0 16px 44px rgba(0, 0, 0, 0.36);
}

.usd-value {
  width: fit-content;
  border: 1px solid rgba(246, 199, 104, 0.28);
  border-radius: 8px;
  background: rgba(246, 199, 104, 0.12);
  color: var(--gold);
  box-shadow: 0 0 28px rgba(246, 199, 104, 0.1);
  padding: 6px 10px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1;
}

.jackpot-meter small {
  color: #d6eadc;
  font-size: 0.95rem;
  font-weight: 700;
}

.meter-track {
  position: relative;
  z-index: 1;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.meter-track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--coral));
  box-shadow: 0 0 28px rgba(110, 231, 168, 0.28);
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 168, 0.24);
  border-radius: 8px;
  background: rgba(110, 231, 168, 0.16);
}

.stats-grid div {
  min-width: 0;
  background: rgba(5, 15, 12, 0.72);
  padding: 14px;
}

.stats-grid dt {
  color: #bad4c2;
  font-size: 0.78rem;
  font-weight: 750;
}

.stats-grid dd {
  margin: 6px 0 0;
  color: var(--text);
  font-size: clamp(0.92rem, 2.1vw, 1.1rem);
  font-weight: 850;
}

.section {
  padding: 86px 0;
}

.section-heading {
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 780px;
}

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

.claim-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 30, 26, 0.76);
  padding: 20px;
}

.claim-panel > div {
  min-width: 0;
  flex: 1 1 auto;
}

.claim-panel-compact {
  margin-top: 18px;
  border-color: rgba(246, 199, 104, 0.34);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(246, 199, 104, 0.15), transparent 42%),
    rgba(7, 17, 15, 0.7);
  box-shadow: inset 0 0 34px rgba(246, 199, 104, 0.06);
}

.claim-panel-compact strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.claim-panel strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.claim-panel p {
  margin: 0;
  color: #c5d6ca;
  line-height: 1.45;
}

.claim-panel button {
  flex: 0 0 auto;
  min-width: 118px;
  min-height: 42px;
  box-shadow: 0 12px 30px rgba(110, 231, 168, 0.2);
  white-space: nowrap;
}

.claim-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.winner-list {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(246, 199, 104, 0.24);
  border-radius: 8px;
  background: rgba(15, 30, 26, 0.72);
}

.winner-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.winner-list-header strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.2rem;
}

.winner-list-header a,
.winner-list li a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.winner-list ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.winner-list li {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  background: rgba(7, 17, 15, 0.78);
  padding: 16px 20px;
}

.winner-list li span {
  color: var(--muted);
  font-weight: 800;
}

.winner-list li strong {
  color: var(--gold);
  text-align: right;
  overflow-wrap: anywhere;
}

.tier-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 30, 26, 0.72);
  padding: 20px;
}

.tier-label {
  color: var(--muted);
  font-weight: 750;
}

.tier-card strong {
  display: block;
  margin: 40px 0 18px;
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 0.85;
}

.tier-card:nth-child(1) strong {
  color: var(--green);
}

.tier-card:nth-child(2) strong {
  color: var(--gold);
}

.tier-card:nth-child(3) strong {
  color: var(--coral);
}

.tier-card p,
.flow-list p,
.security-band p {
  color: var(--muted);
  line-height: 1.55;
}

.deployment-section {
  border-top: 1px solid var(--line);
}

.docs-section {
  border-top: 1px solid var(--line);
}

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

.doc-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(110, 231, 168, 0.08), transparent 48%),
    rgba(15, 30, 26, 0.74);
  padding: 20px;
}

.doc-card-wide {
  grid-column: span 2;
}

.doc-card h3 {
  margin: 18px 0 12px;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.docs-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 168, 0.22);
  border-radius: 8px;
  background: var(--line);
}

.docs-timeline div {
  min-width: 0;
  background: rgba(7, 17, 15, 0.78);
  padding: 18px;
}

.docs-timeline span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.docs-timeline strong {
  display: block;
  margin: 22px 0 8px;
  color: var(--green);
  font-size: 1.05rem;
}

.docs-timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 850;
}

.deployment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.deployment-status,
.contract-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 30, 26, 0.76);
}

.deployment-status {
  padding: 22px;
}

.deployment-facts {
  display: grid;
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.deployment-facts {
  grid-template-columns: repeat(4, 1fr);
}

.deployment-facts div {
  min-width: 0;
  background: rgba(7, 17, 15, 0.78);
  padding: 14px;
}

.deployment-facts dt,
.contract-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.deployment-facts dd {
  margin: 7px 0 0;
  font-weight: 850;
}

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

.contract-card {
  display: grid;
  gap: 14px;
  min-height: 150px;
  padding: 18px;
}

.contract-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contract-card strong {
  font-size: 1.02rem;
}

.contract-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

.contract-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  align-self: end;
}

.contract-actions a,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.contract-actions a {
  background: rgba(110, 231, 168, 0.14);
  color: var(--green);
}

.copy-button {
  border: 1px solid var(--line);
}

.tx-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tx-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.72);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 750;
}

.tx-strip a:hover {
  color: var(--text);
}

.flow-section {
  border-top: 1px solid var(--line);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: 8px;
  background: var(--line);
  list-style: none;
  overflow: hidden;
}

.flow-list li {
  min-height: 250px;
  background: rgba(7, 17, 15, 0.82);
  padding: 20px;
}

.flow-list span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--blue);
  font-weight: 900;
}

.flow-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.security-band {
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.security-band > div,
.security-band > p {
  flex: 1;
}

@media (max-width: 860px) {
  .app-shell,
  .section {
    width: min(100% - 28px, 720px);
  }

  .topbar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .tier-grid,
  .flow-list,
  .deployment-grid,
  .contract-grid,
  .docs-grid,
  .docs-timeline {
    grid-template-columns: 1fr;
  }

  .doc-card-wide {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    padding: 52px 0 72px;
  }

  .hero-stack {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-world {
    min-height: clamp(230px, 76vw, 430px);
  }

  .section-heading,
  .security-band {
    display: block;
  }

  .stats-grid,
  .deployment-facts {
    grid-template-columns: 1fr;
  }

  .winner-list li {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .winner-list li strong {
    grid-column: 1 / -1;
    text-align: left;
  }

  .flow-list li {
    min-height: auto;
  }

  .flow-list span {
    margin-bottom: 24px;
  }
}

@media (max-width: 520px) {
  .wallet-button {
    max-width: none;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .claim-panel {
    display: block;
  }

  .claim-panel button {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }

  .winner-list-header {
    display: block;
  }

  .winner-list-header a {
    display: inline-flex;
    margin-top: 12px;
  }

  .winner-list li {
    grid-template-columns: 1fr;
  }
}
