@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  /* FacilPay-style pure-black canvas + neutral surfaces */
  --bg: #080808;
  --bg-soft: #0c0c0d;
  --bg-ink: #060606;
  --surface: #121214;
  --surface-2: #171719;
  --panel: #131315;
  --panel-strong: #1b1b1e;
  --line: #262629;
  --line-soft: #1d1d20;
  --text: #ffffff;
  --muted: #a3a3a3;
  --muted-2: #737373;
  /* single electric-blue accent system */
  --blue: #2076f3;
  --blue-bright: #4f93ff;
  --blue-light: #a5d4ff;
  --blue-deep: #0128a5;
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.5);
  --glow-blue: 0 30px 90px rgba(32, 118, 243, 0.35), 0 0 0 1px rgba(79, 147, 255, 0.4);
  --radius: 14px;
  --radius-card: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Single dramatic blue glow bloom behind the hero, FacilPay-style. */
body::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  width: min(1100px, 130vw);
  height: 900px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(32, 118, 243, 0.4), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(79, 147, 255, 0.18), transparent 70%);
  filter: blur(10px);
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.04;
  letter-spacing: -0.022em;
}

h1 {
  max-width: 11ch;
  margin-bottom: 26px;
  font-size: 5.4rem;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.35rem;
  font-weight: 880;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  font-weight: 760;
}

p {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 14px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright), var(--blue-light));
  box-shadow: 0 0 22px rgba(32, 118, 243, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px max(20px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(79, 147, 255, 0.5);
  border-radius: 13px;
  background: linear-gradient(140deg, var(--blue-bright), var(--blue));
  box-shadow: 0 8px 24px rgba(32, 118, 243, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 850;
}

.brand-tag {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav a,
.lang-dropdown {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.lang-dropdown:hover,
.lang-dropdown:focus-visible {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface-2);
  outline: none;
}

.nav .play-link {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(32, 118, 243, 0.35);
}

.nav .play-link:hover,
.nav .play-link:focus-visible {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: #fff;
}

.lang-dropdown {
  max-width: 68px;
  padding: 0 9px;
  cursor: pointer;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

/* ===== HERO — FacilPay-style centered composition ===== */
.terra-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-top: 40px;
  padding-bottom: 96px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--blue-light);
  background: rgba(32, 118, 243, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.terra-hero h1 {
  max-width: 15ch;
  margin-bottom: 24px;
  font-size: 4.6rem;
  font-weight: 700;
}

.lead {
  max-width: 600px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 1.18rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.actions.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 24px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn.primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 40px rgba(32, 118, 243, 0.4);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: 0 18px 54px rgba(32, 118, 243, 0.55);
}

.btn.secondary {
  color: #fff;
  background: var(--surface-2);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: #3a3a3e;
  background: #202023;
}

.btn.ghost {
  color: var(--muted);
  background: transparent;
}

/* ===== HERO VISUAL — glowing dot-matrix living world globe ===== */
.core-device {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 12px;
}

.world-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 400px;
  perspective: 900px;
}

.world-orb {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(165, 212, 255, 0.6), transparent 44%),
    radial-gradient(circle at 52% 56%, rgba(32, 118, 243, 0.92), rgba(1, 40, 165, 0.62) 62%, rgba(2, 8, 26, 0.95) 100%);
  box-shadow:
    inset -28px -28px 80px rgba(0, 0, 0, 0.6),
    inset 22px 22px 64px rgba(165, 212, 255, 0.22),
    0 0 120px rgba(32, 118, 243, 0.55),
    0 0 240px rgba(32, 118, 243, 0.32);
  transform-style: preserve-3d;
}

.globe-dots {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: radial-gradient(rgba(220, 236, 255, 0.9) 1.3px, transparent 1.7px);
  background-size: 15px 15px;
  opacity: 0.55;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(circle at 44% 40%, #000 30%, rgba(0, 0, 0, 0.4) 60%, transparent 74%);
  mask: radial-gradient(circle at 44% 40%, #000 30%, rgba(0, 0, 0, 0.4) 60%, transparent 74%);
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(165, 212, 255, 0.22);
}

.ring-a {
  transform: rotateX(76deg);
}

.ring-b {
  transform: rotateY(76deg);
}

.ring-c {
  inset: -22px;
  border-style: dashed;
  border-color: rgba(165, 212, 255, 0.14);
}

.voxel-cluster {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(140deg, #6aa6ff, #2076f3);
  box-shadow: 0 12px 34px rgba(32, 118, 243, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cluster-a {
  top: -10px;
  left: 26px;
}

.cluster-b {
  right: 14px;
  bottom: 30px;
  transform: scale(0.82);
}

.cluster-c {
  top: 46%;
  right: -14px;
  transform: scale(0.62);
  opacity: 0.85;
}

.world-chip {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 16px;
  background: rgba(18, 18, 20, 0.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  white-space: nowrap;
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 12px var(--blue-bright);
}

.chip-txt {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
  color: var(--muted);
  font-size: 0.78rem;
}

.chip-txt strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.chip-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0;
  background: var(--line-soft);
  box-shadow: var(--shadow-card);
}

.metrics-strip div {
  min-height: 110px;
  padding: 22px;
  background: var(--surface);
  transition: background 220ms ease;
}

.metrics-strip div:hover {
  background: var(--surface-2);
}

.metrics-strip span,
.roadmap-item small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metrics-strip strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.roadmap-section,
.community-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.split-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.split-intro h2 {
  margin-bottom: 20px;
}

.split-intro p,
.community-copy p,
.roadmap-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

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

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

.premium-card,
.system-card,
.step-card,
.doc-card,
.card,
.community-card,
.tokenomics article,
.token-grid article,
.timeline-item {
  position: relative;
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  background: var(--surface);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.premium-card:hover,
.system-card:hover,
.step-card:hover,
.doc-card:hover,
.card:hover {
  border-color: rgba(79, 147, 255, 0.55);
  background: var(--surface-2);
  transform: translateY(-5px);
  box-shadow: var(--glow-blue);
}

.premium-card span,
.step-card strong,
.tokenomics span,
.token-grid article span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--blue-light);
  font-size: 0.85rem;
  font-weight: 700;
}

.premium-card p,
.system-card p,
.step-card p,
.doc-card p,
.card p,
.community-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.compact {
  max-width: 560px;
}

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

.card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(32, 118, 243, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.system-card:hover .card-sheen {
  opacity: 1;
}

.roadmap-section {
  align-items: start;
}

.roadmap-copy {
  position: sticky;
  top: 112px;
}

.roadmap-track {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 28px;
}

.roadmap-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.roadmap-line span {
  display: block;
  width: 100%;
  height: var(--roadmap-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(180deg, var(--blue-light), var(--blue));
  box-shadow: 0 0 16px rgba(32, 118, 243, 0.7);
}

.roadmap-item {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--surface);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 260ms ease;
}

.roadmap-item:hover {
  transform: translateX(4px);
  border-color: rgba(79, 147, 255, 0.5);
  box-shadow: var(--glow-blue);
}

.community-section {
  align-items: center;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.doc-card {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.doc-card span {
  display: inline-flex;
  margin-top: 28px;
  color: var(--blue-light);
  font-weight: 700;
}

.final-cta {
  max-width: 1000px;
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 104px 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% -10%, rgba(32, 118, 243, 0.4), transparent 58%),
    radial-gradient(circle at 50% 120%, rgba(1, 40, 165, 0.35), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(165, 212, 255, 0.12);
  text-align: center;
}

.final-cta h2 {
  margin-right: auto;
  margin-left: auto;
  max-width: 18ch;
  font-size: 3.6rem;
}

.final-cta p {
  margin-right: auto;
  margin-bottom: 30px;
  margin-left: auto;
  max-width: 600px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ===== Live demo (click-to-load iframe; full game opens in a new tab) ===== */
.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(32, 118, 243, 0.22), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
.demo-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.demo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.6);
  color: var(--blue-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.demo-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(165, 212, 255, 0.6), transparent 44%),
    radial-gradient(circle at 52% 56%, rgba(32, 118, 243, 0.9), rgba(1, 40, 165, 0.6) 62%, rgba(2, 8, 26, 0.95) 100%);
  box-shadow: 0 0 80px rgba(32, 118, 243, 0.45);
}
.demo-note {
  max-width: 420px;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.demo-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 40px;
  border-top: 1px solid var(--line-soft);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 30px;
}

.footer strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1rem;
}

.footer p {
  margin-bottom: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.disclaimer {
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.subhero,
.hero,
.split,
.systems-showcase,
.economy-flow,
.longread,
.panel-soft,
.cta {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.subhero,
.hero,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 40px;
  align-items: center;
  padding: 88px 0;
}

.prose,
.longread {
  max-width: 840px;
}

.text-link {
  color: var(--blue-light);
  font-weight: 700;
  text-decoration: none;
}

.mini-art {
  display: grid;
  grid-template-columns: repeat(2, 56px);
  gap: 10px;
  justify-content: center;
}

.mini-art span {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

/* ===== ambient motion — keeps the world "alive" ===== */
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes floatYsm {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.78; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

@keyframes dotDrift {
  to { background-position: 90px 0; }
}

.js-motion body::before,
body::before {
  animation: glowPulse 7s ease-in-out infinite;
}

.world-orb {
  animation: floatY 7s ease-in-out infinite;
}

.world-chip {
  animation: floatYsm 6s ease-in-out infinite;
}

.globe-dots {
  animation: dotDrift 22s linear infinite;
}

.voxel-cluster {
  animation: floatYsm 4.5s ease-in-out infinite;
}

.cluster-b { animation-duration: 5.5s; }
.cluster-c { animation-duration: 6.5s; }

/* SplitType word reveal support */
.terra-hero h1 {
  perspective: 700px;
}

.terra-hero h1 .word {
  display: inline-block;
  transform-origin: 50% 100%;
}

/* condensing glass header */
.site-header {
  transition: min-height 300ms ease, padding 300ms ease, background 300ms ease, border-color 300ms ease;
}

.site-header.scrolled {
  min-height: 58px;
  background: rgba(8, 8, 8, 0.9);
  border-color: var(--line);
}

/* subtle film grain for an expensive surface */
body .grain,
.grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 1180px) {
  h1 {
    font-size: 4rem;
  }

  .terra-hero h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.9rem;
  }

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

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

@media (max-width: 860px) {
  .site-header {
    min-height: 66px;
    padding: 12px 20px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(3, 3, 6, 0.97);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: grid;
  }

  .nav a,
  .lang-dropdown {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .section {
    width: min(100% - 32px, var(--max));
    padding: 68px 0;
  }

  .terra-hero {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .final-cta {
    padding: 64px 26px;
  }

  h1 {
    max-width: 14ch;
    font-size: 3.35rem;
  }

  .terra-hero h1 {
    font-size: 3.2rem;
  }

  h2,
  .final-cta h2 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1.03rem;
  }

  .metrics-strip,
  .definition-grid,
  .how-grid,
  .grid,
  .community-grid,
  .ecosystem-grid,
  .docs-grid,
  .token-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-section,
  .community-section,
  .footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .roadmap-copy {
    position: static;
  }

  .community-actions,
  .footer nav {
    justify-content: flex-start;
  }

  .world-stage {
    height: 320px;
  }

  .world-orb {
    width: 244px;
    height: 244px;
  }
}

@media (max-width: 520px) {
  .brand-tag,
  .menu-label {
    display: none;
  }

  .section {
    width: min(100% - 24px, var(--max));
    padding: 58px 0;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2,
  .final-cta h2 {
    font-size: 2rem;
  }

  .final-cta {
    padding: 52px 20px;
  }

  .actions,
  .community-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .terra-hero h1 {
    font-size: 2.5rem;
  }

  .world-stage {
    height: 260px;
  }

  .world-orb {
    width: 192px;
    height: 192px;
  }

  .world-chip {
    font-size: 0.72rem;
  }

  .cluster-a,
  .cluster-c {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ===== DOWNLOADS SECTION (Premium Glassmorphic Layout) ===== */
.downloads-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.downloads-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 48px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.downloads-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(32, 118, 243, 0.12), transparent 50%);
}

.download-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 24px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  transition: all 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-download:hover {
  border-color: rgba(79, 147, 255, 0.55);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}

.dl-icon {
  font-size: 1.8rem;
  color: var(--blue-light);
  transition: transform 260ms ease;
}

.btn-download:hover .dl-icon {
  transform: scale(1.1);
}

.dl-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dl-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.dl-sub {
  font-size: 0.74rem;
  color: var(--muted-2);
  margin-top: 4px;
}

.downloads-footer {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.85rem;
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}

@media (max-width: 860px) {
  .download-buttons-grid {
    grid-template-columns: 1fr;
  }
  .btn-download {
    padding: 16px 20px;
  }
}

/* ═══ 2026-06-10 fixpass: mega hero + shots + tokenomics + presale ═══ */
.mega-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 24px 64px;
}
.hero3d { position: absolute; inset: 0; z-index: 0; }
.hero3d canvas { width: 100%; height: 100%; display: block; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(8,8,8,0.55) 78%, var(--bg) 100%),
    linear-gradient(180deg, rgba(8,8,8,0.45) 0%, transparent 22%, transparent 64%, var(--bg) 100%);
}
.mega-hero-copy { position: relative; z-index: 2; text-align: center; max-width: 880px; }
.mega-hero-copy h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.06; margin: 18px 0 14px; letter-spacing: -0.02em; }
.mega-hero-copy .grad {
  background: linear-gradient(92deg, #4f93ff 0%, #39e6d0 55%, #a5d4ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mega-hero-copy .lead { max-width: 640px; margin: 0 auto 26px; }
.mega-hero-copy .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn.xl { padding: 16px 32px; font-size: 1.05rem; }
.btn.presale-btn {
  background: linear-gradient(120deg, #1faf9b, #39e6d0);
  color: #04221d; font-weight: 700; border: none;
  box-shadow: 0 24px 70px rgba(57, 230, 208, 0.35);
}
.btn.presale-btn:hover { transform: translateY(-2px); box-shadow: 0 28px 80px rgba(57, 230, 208, 0.5); }
.live-stats {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px;
}
.live-stats > div {
  background: rgba(12, 14, 18, 0.72); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 22px; min-width: 130px;
  backdrop-filter: blur(8px);
}
.live-stats strong { display: block; font-size: 1.5rem; color: var(--blue-light); }
.live-stats span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.scroll-hint { margin: 40px auto 0; width: 26px; height: 44px; border: 2px solid var(--line); border-radius: 14px; position: relative; }
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px;
  border-radius: 2px; background: var(--blue-bright);
  animation: scrollnudge 1.8s ease-in-out infinite;
}
@keyframes scrollnudge { 0%,100%{ transform: translateY(0); opacity:1 } 60%{ transform: translateY(14px); opacity:0.2 } }

/* Gerçek oyun görüntüleri */
.shots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { position: relative; margin: 0; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.shot.wide { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; aspect-ratio: 16/10; }
.shot:hover img { transform: scale(1.045); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px;
  font-size: 0.85rem; color: #dfe9ff; letter-spacing: 0.03em;
  background: linear-gradient(180deg, transparent, rgba(5,8,14,0.85));
}
@media (max-width: 900px) { .shots-grid { grid-template-columns: 1fr 1fr; } .shot.wide { grid-column: span 2; grid-row: auto; } }

/* Tokenomics */
.tokenomics-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.token-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0; margin: 26px 0; }
.token-facts li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px; }
.token-facts strong { display: block; font-size: 1.35rem; color: var(--blue-light); }
.token-facts span { font-size: 0.82rem; color: var(--muted); }
.token-allocation { margin: 10px 0 22px; display: grid; gap: 9px; }
.alloc-row { display: grid; grid-template-columns: 170px 1fr 48px; align-items: center; gap: 12px; font-size: 0.88rem; }
.alloc-label { color: var(--muted); }
.alloc-pct { text-align: right; color: var(--text); font-weight: 600; }
.alloc-bar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.alloc-bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 6px; transform-origin: left; animation: allocgrow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes allocgrow { from { transform: scaleX(0); } }
.contract-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contract-line code { background: var(--surface-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: var(--radius); color: var(--blue-light); }
.coin3d { width: 100%; aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.coin3d canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) { .tokenomics-grid { grid-template-columns: 1fr; } .alloc-row { grid-template-columns: 130px 1fr 44px; } }

/* Presale */
.presale-section { display: flex; justify-content: center; }
.presale-card {
  position: relative; max-width: 860px; width: 100%;
  background: linear-gradient(160deg, rgba(57,230,208,0.07), rgba(32,118,243,0.05)), var(--surface);
  border: 1px solid rgba(57, 230, 208, 0.25); border-radius: var(--radius-lg);
  padding: 44px 40px; text-align: center;
  box-shadow: 0 40px 120px rgba(57, 230, 208, 0.08);
}
.presale-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 28px 0; }
.presale-steps li { background: rgba(10, 14, 16, 0.6); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 14px; font-size: 0.92rem; color: var(--muted); }
.presale-steps strong { display: block; color: #39e6d0; font-size: 1.15rem; margin-bottom: 6px; }
.presale-note { margin-top: 20px; font-size: 0.78rem; color: var(--muted-2); }
.presale-form { display: grid; gap: 16px; max-width: 460px; margin: 26px auto 0; text-align: left; }
.presale-form label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.presale-form input {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); padding: 13px 16px; font-size: 1rem; outline: none;
}
.presale-form input:focus { border-color: #39e6d0; box-shadow: 0 0 0 3px rgba(57,230,208,0.15); }
.presale-form-result { min-height: 22px; font-size: 0.9rem; }
.presale-form-result.ok { color: #5ee8a8; }
.presale-form-result.err { color: #ff8a7a; }
@media (max-width: 720px) { .presale-steps { grid-template-columns: 1fr; } .presale-card { padding: 32px 22px; } }

/* fixpass2: animasyon güçlendirme + perf */
.mega-hero-copy .grad { background-size: 200% 100%; animation: gradshift 6s ease-in-out infinite; }
@keyframes gradshift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn.presale-btn { position: relative; }
.btn.presale-btn::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; z-index: -1;
  background: linear-gradient(120deg, #1faf9b, #39e6d0);
  filter: blur(14px); opacity: 0.55; animation: presalepulse 2.6s ease-in-out infinite;
}
@keyframes presalepulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.8; } }
.shot { transform: translateZ(0); }
.shot img { will-change: transform; }
@media (pointer: coarse) {
  .live-stats > div { backdrop-filter: none; background: rgba(12, 14, 18, 0.92); }
}

/* presale canlı panel */
.live-dot { color: #5ee8a8; }
.presale-progress { margin: 20px auto; max-width: 480px; }
.presale-progress-bar { height: 14px; border-radius: 8px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.presale-progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1faf9b, #39e6d0); transition: width 0.8s ease; }
.presale-progress-nums { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.presale-contrib { display: grid; gap: 14px; justify-items: center; }
.presale-amount { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.presale-amount input { width: 160px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); padding: 13px 16px; font-size: 1rem; }
.presale-amount.hidden { display: none; }

/* presale canlı doğrudan-transfer akışı + geri sayım */
.presale-countdown { display: flex; gap: 12px; justify-content: center; margin: 22px 0 8px; }
.presale-countdown > div {
  background: var(--surface); border: 1px solid rgba(57,230,208,.3); border-radius: var(--radius);
  min-width: 76px; padding: 12px 8px; text-align: center;
}
.presale-countdown b { display: block; font-size: 1.9rem; color: #39e6d0; font-variant-numeric: tabular-nums; }
.presale-countdown span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.presale-raised { margin: 6px 0 22px; }
.presale-raised b { font-size: 2.2rem; color: #5ee8a8; }
.presale-raised span { color: var(--muted); font-size: .95rem; }
.presale-address { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.presale-address code {
  background: var(--surface-2); border: 1px solid rgba(57,230,208,.35); padding: 12px 16px;
  border-radius: var(--radius); color: #9ff5e8; font-size: .85rem; word-break: break-all; max-width: 100%;
}
.presale-tokens { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.presale-tokens span { background: rgba(57,230,208,.1); border: 1px solid rgba(57,230,208,.3); color: #9ff5e8; border-radius: 999px; padding: 4px 14px; font-size: .82rem; font-weight: 600; }
@media (max-width: 560px) { .presale-countdown > div { min-width: 64px; } .presale-countdown b { font-size: 1.4rem; } }

/* atıf satırı */
.footer .attribution { font-size: 0.78rem; color: var(--muted-2); margin: 10px 0 4px; }
.footer .attribution a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer .attribution a:hover { color: var(--blue-light); }

/* perf: scroll yolundaki blur'ları kaldır (kasma hissi) */
.live-stats > div { backdrop-filter: none !important; background: rgba(12, 14, 18, 0.92); }
.glass, .downloads-card { backdrop-filter: none !important; }
