:root {
  --leaf: #168a3a;
  --leaf-dark: #0f5f2a;
  --leaf-soft: #dff4e3;
  --sun: #f6a800;
  --orange: #e97713;
  --sky: #156bd8;
  --ink: #173224;
  --muted: #65746d;
  --line: #dbe7df;
  --paper: #fffdf7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 50, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body::selection {
  color: var(--white);
  background: var(--leaf);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf);
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
}

.brand span span {
  color: var(--orange);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: linear-gradient(145deg, var(--leaf), #39a94e);
  border: 3px solid #f8c348;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(22, 138, 58, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: #33483c;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--leaf);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.header-cta {
  color: var(--white);
  background: var(--leaf);
}

.button.primary {
  color: var(--white);
  background: var(--leaf);
  box-shadow: 0 14px 32px rgba(22, 138, 58, 0.26);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(23, 50, 36, 0.14);
}

.header-cta:hover,
.header-cta:focus-visible,
.button.primary:hover,
.button.primary:focus-visible {
  color: var(--white);
  background: #0f7a34;
  box-shadow: 0 18px 38px rgba(22, 138, 58, 0.34);
  transform: translateY(-2px);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--leaf-dark);
  background: #f6faf7;
  border-color: rgba(22, 138, 58, 0.34);
  box-shadow: 0 16px 34px rgba(23, 50, 36, 0.16);
  transform: translateY(-2px);
}

.header-cta:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(246, 168, 0, 0.7);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74svh;
  overflow: hidden;
  color: var(--white);
  background: #143323;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-island.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 47, 27, 0.76) 0%, rgba(10, 47, 27, 0.44) 42%, rgba(10, 47, 27, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 24, 17, 0.22), rgba(8, 24, 17, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: clamp(58px, 8vw, 108px) 0 clamp(118px, 13vw, 152px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: #f7b122;
}

.section-kicker {
  color: #6d7c73;
}

.hero h1 {
  margin: 0;
  font-family: "Baloo 2", Inter, sans-serif;
  max-width: 760px;
  font-size: clamp(2.55rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
}

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

.hero-metrics {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(16, 43, 30, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -12px 34px rgba(8, 24, 17, 0.2);
  backdrop-filter: blur(14px);
}

.hero-metrics > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 18px;
  color: rgba(255, 255, 255, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  line-height: 1.2;
  text-align: center;
}

.hero-metrics > span:last-child {
  border-right: 0;
}

.hero-metrics img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

.metric-copy {
  display: inline-block;
}

.section,
.intro-band,
.final-cta {
  padding: clamp(52px, 6.5vw, 92px) 0;
}

.section-inner {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

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

h2 {
  margin: 0;
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-grid h2,
.section-heading h2,
.xp-copy h2,
.structure-layout h2,
.game-layout h2,
.calculator-layout h2 {
  max-width: 720px;
}

.intro-grid p:last-child,
.section-heading p,
.xp-copy p,
.game-layout p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.72;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading h2 + p {
  margin-top: 16px;
}

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

.pool-card,
.rank-panel,
.calculator,
.steps article,
.onboarding-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pool-card {
  overflow: hidden;
}

.pool-art {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #dff4e3;
}

.pool-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pool-content {
  padding: 24px;
}

.pool-label {
  margin: 0 0 8px;
  color: var(--leaf);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.solar .pool-label {
  color: var(--orange);
}

.pool-card h3 {
  margin: 0;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.18;
}

.pool-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}

.pool-stats div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.future-pools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  text-align: center;
}

.future-pools span {
  color: var(--leaf-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.future-pools p {
  margin: 0;
  padding: 8px 12px;
  color: #284a35;
  background: var(--white);
  border: 1px solid #d7eadb;
  border-radius: 999px;
  font-weight: 700;
}

.xp-section {
  background: #102f22;
  color: var(--white);
}

.xp-layout,
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.structure-layout {
  display: grid;
  gap: 30px;
}

.structure-layout .section-heading {
  max-width: 760px;
}

.xp-layout {
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 0.78fr);
  justify-content: center;
}

.game-layout {
  display: grid;
  gap: 28px;
}

.game-layout > div:first-child {
  max-width: 640px;
}

.xp-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.xp-copy p + p {
  margin-top: 18px;
}

.xp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.dark-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button.dark-secondary:hover,
.button.dark-secondary:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.rank-panel {
  width: min(100%, 560px);
  justify-self: center;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
}

.profile-graphic {
  height: clamp(250px, 36vw, 390px);
  overflow: hidden;
  background: #0f5f2a;
}

.profile-graphic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.rank-details {
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 34px) 0;
  text-align: center;
}

.player-name {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 900;
}

.rank-name,
.xp-progress {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.xp-bar {
  height: 14px;
  margin: 18px 0 0;
  overflow: hidden;
  background: #e9eee9;
  border-radius: 999px;
}

.xp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), #95c83f, var(--sun));
}

.rank-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding: 0 clamp(20px, 3vw, 34px) clamp(20px, 3vw, 30px);
}

.rank-paths div {
  padding: 16px;
  background: #f6faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rank-paths span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.rank-paths strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
}

.compact {
  background: var(--white);
}

.calculator {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.calculator label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  color: var(--ink);
  font-weight: 800;
}

.calculator output {
  color: var(--leaf);
  font-weight: 900;
}

.calculator input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--leaf);
}

.estimate-result {
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--leaf-dark), var(--leaf));
  border-radius: 8px;
}

.estimate-result span {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estimate-result strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.estimate-result p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.steps article {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.step-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.step-copy {
  padding: clamp(22px, 3vw, 32px);
}

.step-copy span {
  color: var(--leaf);
  font-weight: 900;
}

.steps h3,
.onboarding-grid h3 {
  margin: 6px 0 0;
  font-size: 1.08rem;
}

.steps p,
.onboarding-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

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

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

.game-tools {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 16px;
  color: #1a3b2a;
  background: var(--white);
  border: 1px solid #d8e5e9;
  border-radius: 8px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(38, 71, 86, 0.08);
}

.feature-icon {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
}

.feature-icon img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(23, 50, 36, 0.14));
}

.feature-label {
  line-height: 1.15;
}

.rank-ladder {
  width: 100%;
  overflow: hidden;
  color: #1a3b2a;
  background: var(--white);
  border: 1px solid #d8e5e9;
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  box-shadow: 0 10px 28px rgba(38, 71, 86, 0.08);
}

.rank-ladder caption {
  padding: 18px 22px 8px;
  text-align: left;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rank-ladder th,
.rank-ladder td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid #e5edf0;
}

.rank-ladder th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.rank-ladder td {
  font-weight: 850;
}

.rank-ladder tbody tr:last-child td {
  border-bottom: 0;
}

.onboarding {
  background: var(--paper);
}

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

.onboarding-grid article {
  padding: 26px;
}

.method-icon {
  display: grid;
  place-items: center;
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--white);
  border-radius: 16px;
  box-shadow: 0 14px 26px rgba(23, 50, 36, 0.14);
}

.method-icon svg {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 2px 2px rgba(23, 50, 36, 0.12));
}

.method-icon.wallet {
  background: linear-gradient(135deg, #f59f25, #f7c147);
}

.method-icon.usdt {
  background: linear-gradient(135deg, #26a17b, #8fd8ba);
}

.method-icon.exchange {
  background: linear-gradient(135deg, #1664d8, #7db7ff);
}

.final-cta {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 95, 42, 0.78), rgba(16, 95, 42, 0.2)),
    url("assets/cta-progression.png") center / cover no-repeat;
}

.final-inner {
  max-width: 860px;
  margin-left: clamp(18px, 7vw, 92px);
}

.final-inner h2 {
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  line-height: 0.98;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #54665d;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--leaf);
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    position: fixed;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 70svh;
  }

  .hero-bg {
    background: url("assets/hero-island.png") center / cover no-repeat;
  }

  .hero-bg::after {
    background: linear-gradient(90deg, rgba(12, 53, 28, 0.82) 0%, rgba(12, 53, 28, 0.5) 100%);
  }

  .intro-grid,
  .xp-layout,
  .calculator-layout,
  .structure-layout,
  .game-layout,
  .pool-grid {
    grid-template-columns: 1fr;
  }

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

  .step-copy {
    padding: 22px;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-cta {
    display: none;
  }

  .hero-inner {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 52px 0 214px;
  }

  .hero {
    min-height: 82svh;
  }

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

  .hero-metrics {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: 1fr;
  }

  .hero-metrics > span {
    justify-content: flex-start;
    min-height: 42px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
  }

  .hero-metrics > span:last-child {
    border-bottom: 0;
  }

  .pool-stats,
  .rank-paths,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .pool-art {
    height: 250px;
  }

  .calculator label {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}
