:root {
  --bg: #070a12;
  --bg-soft: #0f1422;
  --stone: #141824;
  --stone-light: #202738;
  --panel: rgba(18, 23, 34, 0.88);
  --panel-strong: rgba(24, 30, 44, 0.96);
  --text: #f7edd7;
  --muted: #c8bda7;
  --line: rgba(231, 191, 107, 0.2);
  --gold: #e6b85c;
  --brass: #b98a42;
  --ember: #c4573b;
  --crimson: #8e2d34;
  --sage: #84a66d;
  --mana: #4fa3a5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 24px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(196, 87, 59, 0.18), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(79, 163, 165, 0.16), transparent 32rem),
    radial-gradient(circle at 50% 112%, rgba(230, 184, 92, 0.12), transparent 36rem),
    linear-gradient(180deg, #070a12 0%, #0c111e 46%, #11151f 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(231, 191, 107, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 191, 107, 0.022) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.36) 100%);
  background-size: 86px 86px, 86px 86px, auto;
  opacity: 0.72;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.84);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 1.32rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0b0d12;
  background:
    radial-gradient(circle at 30% 20%, #ffe6a7, transparent 30%),
    linear-gradient(135deg, #f0cf82, var(--gold) 48%, var(--crimson));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  font-weight: 950;
  border: 1px solid rgba(255, 221, 152, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(212, 178, 112, 0.22);
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 234, 214, 0.36);
}

.button.primary {
  background: linear-gradient(135deg, #f0cf82, var(--gold) 50%, var(--ember));
  color: #150d07;
  border: 1px solid rgba(255, 221, 152, 0.34);
  box-shadow: 0 16px 42px rgba(196, 87, 59, 0.22);
}

.button.ghost {
  background: rgba(244, 234, 214, 0.055);
  border-color: rgba(212, 178, 112, 0.2);
}

.hero {
  padding: 70px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(212, 178, 112, 0.28);
  background: linear-gradient(135deg, rgba(196, 87, 59, 0.16), rgba(79, 163, 165, 0.1));
  color: #f1d38e;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 16px;
}

h1, h2, h3, p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff2c6, var(--gold) 36%, #64c0bd 72%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #dacfb8;
  font-size: 0.94rem;
}

.trust-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 234, 214, 0.055);
  border: 1px solid rgba(212, 178, 112, 0.16);
}

.phone-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  border: 1px solid rgba(231, 191, 107, 0.22);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(247, 237, 215, 0.07), rgba(247, 237, 215, 0.018)),
    radial-gradient(circle at 80% 0%, rgba(196, 87, 59, 0.14), transparent 16rem),
    rgba(14, 18, 28, 0.94);
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
}

.mock-screen {
  position: relative;
  min-height: 510px;
  border-radius: 26px;
  padding: 22px;
  background:
    linear-gradient(rgba(231, 191, 107, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 191, 107, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(230, 184, 92, 0.14), transparent 12rem),
    radial-gradient(circle at 82% 12%, rgba(79, 163, 165, 0.14), transparent 13rem),
    linear-gradient(160deg, rgba(11, 15, 24, 0.96), rgba(20, 27, 40, 0.9));
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  overflow: hidden;
  border: 1px solid rgba(231, 191, 107, 0.16);
}

.mock-screen::after {
  content: none;
}

.mock-content {
  position: relative;
  z-index: 1;
  min-height: 466px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-screenshot-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(231, 191, 107, 0.18);
  background: url("assets/elchem/screenshots/hero.jpg") center / cover;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.game-screenshot-slot::before {
  content: none;
}

.map-chip {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.66);
  border: 1px solid rgba(212, 178, 112, 0.22);
  color: #f3dfb3;
  font-size: 0.86rem;
  font-weight: 800;
}

.map-layer {
  display: grid;
  gap: 10px;
  margin-bottom: 2px;
}

.map-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(7, 10, 18, 0.58);
  border: 1px solid rgba(231, 191, 107, 0.16);
  color: #eadcbd;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.map-node > div:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.map-node strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.map-node span {
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: break-word;
}

.node-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(230, 184, 92, 0.18), rgba(79, 163, 165, 0.1));
  border: 1px solid rgba(231, 191, 107, 0.18);
}

.node-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.distance {
  color: #f1d38e;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.quest-panel {
  padding: 15px;
  border-radius: 22px;
  background: rgba(14, 18, 28, 0.86);
  border: 1px solid rgba(212, 178, 112, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.quest-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.quest-panel p {
  color: var(--muted);
  margin-bottom: 14px;
}

.element-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.element {
  aspect-ratio: 1;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(247, 237, 215, 0.09), rgba(79, 163, 165, 0.08));
  border: 1px solid rgba(212, 178, 112, 0.16);
  font-weight: 900;
}

.element img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

section {
  padding: 66px 0;
}

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

.section-heading h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.062em;
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 0;
}

.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(247, 237, 215, 0.05), rgba(247, 237, 215, 0.014)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 26px;
  overflow: hidden;
}

.panel.good {
  background:
    radial-gradient(circle at 90% 0%, rgba(79, 163, 165, 0.13), transparent 18rem),
    radial-gradient(circle at 5% 100%, rgba(196, 87, 59, 0.11), transparent 18rem),
    var(--panel-strong);
}

.panel h3 {
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.panel p,
.panel ul {
  color: var(--muted);
}

.panel ul {
  margin: 0;
  padding-left: 20px;
}

.panel li + li {
  margin-top: 8px;
}

.icon-bubble {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.55rem;
  background: linear-gradient(145deg, rgba(230, 184, 92, 0.13), rgba(79, 163, 165, 0.08));
  border: 1px solid rgba(212, 178, 112, 0.18);
}

.icon-bubble img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

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

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0cf82, var(--gold));
  color: #160e08;
  font-weight: 950;
  margin-bottom: 14px;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.feature-line {
  display: flex;
  gap: 12px;
  color: #e1d4bc;
  align-items: flex-start;
}

.check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(132, 166, 109, 0.22);
  color: #e4f5c9;
  font-weight: 900;
  font-size: 0.8rem;
  margin-top: 1px;
  border: 1px solid rgba(212, 178, 112, 0.12);
}

.screenshot-frame {
  border-radius: 30px;
  border: 1px solid var(--line);
  aspect-ratio: 20 / 9;
  min-height: 360px;
  background:
    linear-gradient(rgba(231, 191, 107, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 191, 107, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 28% 38%, rgba(230, 184, 92, 0.24) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 32%, rgba(79, 163, 165, 0.2) 0 6px, transparent 7px),
    radial-gradient(circle at 58% 72%, rgba(196, 87, 59, 0.2) 0 7px, transparent 8px),
    linear-gradient(128deg, transparent 0 34%, rgba(230, 184, 92, 0.14) 34% 35%, transparent 35% 100%),
    linear-gradient(32deg, transparent 0 58%, rgba(79, 163, 165, 0.12) 58% 59%, transparent 59% 100%),
    radial-gradient(circle at 20% 20%, rgba(214, 168, 90, 0.12), transparent 14rem),
    radial-gradient(circle at 78% 10%, rgba(126, 36, 31, 0.18), transparent 15rem),
    linear-gradient(180deg, rgba(244, 234, 214, 0.04), rgba(244, 234, 214, 0.012)),
    url("assets/elchem/screenshots/gameplay.jpg") center / cover,
    #101622;
  background-size: 52px 52px, 52px 52px, auto, auto, auto, auto, auto, auto, auto, auto, cover;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 22px;
  border: 1px solid rgba(231, 191, 107, 0.14);
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.02), rgba(7, 10, 18, 0.18));
}

.lore-note {
  margin-top: 20px;
  padding: 18px;
  border-left: 3px solid var(--gold);
  border-radius: 18px;
  background: rgba(247, 237, 215, 0.045);
  color: var(--muted);
}

.lore-note strong {
  color: var(--text);
}

.video-section {
  padding: 52px 0 58px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(212, 178, 112, 0.24);
  background: #070a12;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-card p {
  margin-bottom: 0;
}

.final-cta {
  text-align: center;
  padding: 56px 26px;
  border-radius: 34px;
  border: 1px solid rgba(212, 178, 112, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(196, 87, 59, 0.16), transparent 22rem),
    radial-gradient(circle at 88% 22%, rgba(79, 163, 165, 0.14), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(230, 184, 92, 0.12), transparent 24rem),
    rgba(18, 23, 34, 0.84);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 820px;
  margin: 0 auto 14px;
  font-size: clamp(2.25rem, 4.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.062em;
}

.final-cta p {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1.12rem;
}

footer {
  padding: 34px 0 48px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .hero-grid,
  .split-card,
  .showcase {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 30px;
  }

  .steps,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

  .phone-card {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .nav {
    min-height: 62px;
    gap: 12px;
  }

  .site-header {
    overflow: hidden;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .nav .button {
    display: none;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero .container {
    width: calc(100% - 48px);
    max-width: var(--max);
  }

  section {
    padding: 44px 0;
  }

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

  .section-heading h2 {
    font-size: 2.05rem;
    line-height: 1.04;
    max-width: 13ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1;
    letter-spacing: -0.035em;
    max-width: 12ch;
    margin-bottom: 16px;
  }

  .world-title,
  .final-cta h2 {
    font-size: 2.1rem;
    line-height: 1.05;
    max-width: 13ch;
  }

  .hero-copy,
  .section-heading p,
  .final-cta p {
    font-size: 1.02rem;
  }

  .hero-copy {
    margin-bottom: 18px;
    max-width: 32ch;
  }

  .hero-actions,
  .trust-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    margin-bottom: 16px;
  }

  .button {
    width: 100%;
  }

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

  .panel {
    padding: 20px;
  }

  .phone-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 26px;
    padding: 8px;
  }

  .mock-screen {
    min-width: 0;
    min-height: 420px;
    border-radius: 22px;
    padding: 12px;
  }

  .mock-content {
    min-height: 386px;
  }

  .game-screenshot-slot {
    min-height: 180px;
    border-radius: 20px;
  }

  .map-node {
    gap: 10px;
    padding: 10px;
  }

  .node-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .element-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .quest-panel p {
    max-width: 28ch;
  }

  .element {
    aspect-ratio: auto;
    min-height: 52px;
    min-width: 0;
  }

  .screenshot-frame {
    min-height: 300px;
    border-radius: 26px;
  }

  .video-section {
    padding: 40px 0 44px;
  }

  .video-frame {
    border-radius: 22px;
  }

  .final-cta {
    padding: 38px 18px;
    border-radius: 26px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 390px) {
  .nav .button {
    display: none;
  }

  h1 {
    font-size: 2.15rem;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 22px, var(--max));
  }

  .brand {
    gap: 9px;
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .mock-screen {
    padding: 12px;
  }

  .mock-content {
    gap: 10px;
  }

  .game-screenshot-slot {
    min-height: 150px;
  }

  .map-node {
    align-items: flex-start;
    gap: 8px;
  }

  .distance {
    font-size: 0.76rem;
  }

  .quest-panel {
    padding: 12px;
  }

  .final-cta {
    padding: 34px 14px;
  }
}

.world-title {
  font-size: clamp(2.25rem, 4.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

img.brand-mark { display: block; object-fit: contain; background: none; }
