/* ============================================================
   RelicScape — landing page styles
   Dark RSPS theme (near-reality inspired) with teal-gem + gold
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #090c11;
  --bg-alt:    #0d1119;
  --bg-band:   #0b0e14;
  --panel:     #121826;
  --panel-2:   #161d2d;

  --ink:       #e9eef6;
  --ink-soft:  #c4cedd;
  --muted:     #8a97aa;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --teal:      #41d4e2;
  --teal-bright:#62e4ef;
  --teal-deep: #1c93a3;
  --gold:      #e6c477;
  --gold-2:    #cda14d;
  --gold-deep: #9c7430;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.5px;
}

::selection { background: rgba(65, 212, 226, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section, .stats-band, #top { scroll-margin-top: 80px; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #c7d2e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--btn-bg);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), filter 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-icon { font-size: 1.05em; line-height: 1; }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 55%, var(--gold-deep) 100%);
  border-color: rgba(255, 240, 200, 0.5);
  color: #2a1d05;
  box-shadow: 0 10px 26px rgba(205, 161, 77, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 0 rgba(255, 247, 222, 0.5);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(205, 161, 77, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  background: rgba(65, 212, 226, 0.06);
  border-color: rgba(65, 212, 226, 0.4);
  color: var(--teal-bright);
  box-shadow: inset 0 0 0 1px rgba(65, 212, 226, 0.05);
}
.btn-ghost:hover {
  background: rgba(65, 212, 226, 0.14);
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(65, 212, 226, 0.18);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(9, 12, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.04); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
  border-radius: 2px;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.nav-ext { color: var(--muted) !important; }

.nav-cta { margin-left: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #0a1018 0%, #0a0d13 60%, var(--bg) 100%),
    radial-gradient(1200px 600px at 50% -10%, rgba(65, 212, 226, 0.12), transparent 60%);
}
.hero-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 180, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 180, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-glow--1 { width: 460px; height: 460px; left: -80px; top: 6%; background: radial-gradient(circle, rgba(65,212,226,0.5), transparent 70%); }
.hero-glow--2 { width: 520px; height: 520px; right: -120px; bottom: -6%; background: radial-gradient(circle, rgba(205,161,77,0.4), transparent 70%); }
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

.hero-inner { position: relative; max-width: 860px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(65, 212, 226, 0.08);
  border: 1px solid rgba(65, 212, 226, 0.35);
}
.badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .badge::before { animation: none; } }
.hero-logo {
  width: min(620px, 88%);
  margin: 10px auto 26px;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(65, 212, 226, 0.18));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

.hero-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 46px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 18px rgba(65, 212, 226, 0.25);
}
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--teal);
  border-radius: 2px;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- Discord divider band ---------- */
.discord-band { background: var(--bg-band); border-block: 1px solid var(--line); padding: 28px 0; }
.discord-inner { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 36px); }
.divider-line {
  flex: 1;
  max-width: 340px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 50%, transparent);
  position: relative;
}
.divider-line::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold-2);
  box-shadow: 0 0 10px rgba(205, 161, 77, 0.5);
}
.discord-link { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.discord-link:hover { transform: translateY(-2px); }
.discord-eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.discord-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  letter-spacing: 1px;
  background: linear-gradient(180deg, #fff, #c7d2e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter 0.2s;
}
.discord-link:hover .discord-title { filter: drop-shadow(0 0 14px rgba(65, 212, 226, 0.5)); }

/* ---------- Features grid ---------- */
.grid { display: grid; gap: 22px; }
.features-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  font-size: 1.7rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(65,212,226,0.18), rgba(205,161,77,0.1));
  border: 1px solid var(--line-2);
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #fff; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Split / The World ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}
.split-text h2 { margin-bottom: 18px; }
.split-text > p { color: var(--ink-soft); }
.check-list { margin: 22px 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--teal-bright), var(--teal-deep));
  box-shadow: 0 0 12px rgba(65, 212, 226, 0.4);
}
.check-list li::after {
  content: "";
  position: absolute; left: 6px; top: 8px;
  width: 5px; height: 9px;
  border: solid #04222a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.split-visual { display: flex; justify-content: center; }
.relic-panel {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 14%;
  background:
    radial-gradient(circle at 50% 45%, rgba(65,212,226,0.1), transparent 60%),
    linear-gradient(160deg, var(--panel-2), #0a0e16);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.5);
}
.relic-gem {
  position: absolute;
  width: 62%; height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65,212,226,0.35), transparent 65%);
  filter: blur(14px);
  animation: pulse 4.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 0.85; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .relic-gem { animation: none; } }
.relic-logo { position: relative; width: 100%; filter: drop-shadow(0 10px 26px rgba(0,0,0,0.6)); }
.relic-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--gold-2);
  opacity: 0.85;
}
.relic-corner--tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.relic-corner--tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.relic-corner--bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.relic-corner--br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

/* Trailer video (click-to-load) */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.5);
  background: #05070b;
}
.video-embed video { width: 100%; height: 100%; display: block; background: #000; }
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  border: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 50% 42%, rgba(65, 212, 226, 0.14), transparent 60%),
    linear-gradient(160deg, var(--panel-2), #06090e);
  transition: background 0.3s var(--ease);
}
.video-facade:hover {
  background:
    radial-gradient(circle at 50% 42%, rgba(65, 212, 226, 0.22), transparent 60%),
    linear-gradient(160deg, #1a2335, #06090e);
}
.video-play {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 30px rgba(205, 161, 77, 0.45), 0 0 0 10px rgba(65, 212, 226, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #2a1d05;
}
.video-facade:hover .video-play {
  transform: scale(1.08);
  box-shadow: 0 14px 38px rgba(205, 161, 77, 0.6), 0 0 0 14px rgba(65, 212, 226, 0.12);
}
.video-facade-label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.05rem;
  color: #fff;
}
.video-facade-sub {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

/* ---------- Stats band ---------- */
.stats-band {
  background:
    linear-gradient(90deg, rgba(65,212,226,0.06), rgba(205,161,77,0.06)),
    var(--bg-band);
  border-block: 1px solid var(--line);
  padding: clamp(40px, 6vw, 66px) 0;
}
.stats-grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-block { display: flex; flex-direction: column; gap: 6px; }
.stat-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-cap { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

/* Positioning band */
.pitch { max-width: 900px; margin-inline: auto; text-align: center; }
.pitch-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.8vw, 1.85rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.pitch-text strong {
  font-weight: 700;
  background: linear-gradient(180deg, var(--teal-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Steps ---------- */
.steps-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 46px; }
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 16px;
  color: #2a1d05;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 20px rgba(205, 161, 77, 0.3);
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; color: #fff; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0 0 16px; }
.link-arrow {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal-bright);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: gap 0.2s, color 0.2s;
}
.link-arrow:hover { color: #fff; }

.cta-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Community CTA ---------- */
.section--cta {
  position: relative;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(65,212,226,0.12), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.community-inner { max-width: 720px; margin-inline: auto; }
.community-inner .hero-actions { margin-top: 30px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #07090d; border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}
.footer-logo { height: 50px; width: auto; margin-bottom: 14px; }
.footer-tag { color: var(--muted); font-style: italic; margin: 0; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: 0.94rem; transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 22px 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.footer-fine { color: #5a6577 !important; font-size: 0.78rem !important; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.2rem;
  color: #2a1d05;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 18px 20px;
    background: rgba(9, 12, 17, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav a::after { display: none; }
  .nav-ext { border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-strip .btn, .community-inner .btn { width: 100%; }
}
