/* RealmStack public marketing site — dark gaming theme. */

:root {
  --bg: #0b0e14;
  --bg-elev: #131825;
  --bg-elev-2: #1a2031;
  --ink: #f1f3f8;
  --ink-dim: #aab1c2;
  --muted: #6e7689;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #5ee2a0;
  --accent-strong: #2bce81;
  --accent-soft: rgba(94, 226, 160, 0.12);
  --warn: #f5b25c;
  --danger: #ef6b6b;
  --grad-orb-a: radial-gradient(circle, #5ee2a055 0%, transparent 70%);
  --grad-orb-b: radial-gradient(circle, #6cb6ff55 0%, transparent 70%);
  --grad-orb-c: radial-gradient(circle, #f5b25c55 0%, transparent 70%);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  line-height: 1.05;
  font-weight: 700;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Layout helpers ---------- */
.section-inner {
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 14, 20, 0.75);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-glyph {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #6cb6ff);
  box-shadow: 0 0 24px var(--accent-soft);
}
.topnav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.topnav a:hover {
  color: var(--ink);
}
.topbar-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.link-muted {
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.link-muted:hover {
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.btn-primary {
  background: var(--accent);
  color: #06231a;
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Sale banner ---------- */
.sale-banner {
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  border-bottom: 1px solid var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.7rem 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/site/static/images/hero-bg.jpg") center / cover no-repeat;
  opacity: 0.15;
  filter: blur(2px) saturate(1.1);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(94, 226, 160, 0.18), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
}
.hero-copy h1 .hl {
  background: linear-gradient(120deg, var(--accent), #6cb6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 1.2rem 0 1.8rem;
  color: var(--ink-dim);
  font-size: 1.1rem;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  gap: 1.4rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.hero-visual-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: radial-gradient(circle at 30% 40%, #1a2031, #0b0e14);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: float 14s ease-in-out infinite;
}
.orb-a {
  width: 50%;
  height: 50%;
  top: 10%;
  left: 8%;
  background: var(--grad-orb-a);
}
.orb-b {
  width: 40%;
  height: 40%;
  bottom: 14%;
  right: 10%;
  background: var(--grad-orb-b);
  animation-delay: -4s;
}
.orb-c {
  width: 30%;
  height: 30%;
  top: 35%;
  right: 24%;
  background: var(--grad-orb-c);
  animation-delay: -8s;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2%, -3%) scale(1.05);
  }
}

/* ---------- Plans ---------- */
.plans {
  padding: 5rem 0;
  background: var(--bg-elev);
}
.section-lede {
  margin: 0.6rem 0 2.6rem;
  color: var(--ink-dim);
  max-width: 60ch;
  font-size: 1.05rem;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.plans-loading {
  color: var(--ink-dim);
  text-align: center;
  grid-column: 1 / -1;
  padding: 2rem;
}
.plan-card {
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.plan-card.is-popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow);
}
.plan-card.is-popular::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #06231a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.plan-tagline {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin: 0;
  min-height: 2.6rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.plan-price-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-price-suffix {
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.plan-price-strike {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}
.plan-sale-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
  flex: 1;
}
.plan-features li::before {
  content: "✓";
  color: var(--accent);
  display: inline-block;
  width: 1.2em;
  font-weight: 700;
}
.plan-cta {
  margin-top: 0.6rem;
  width: 100%;
}
.plans-fineprint {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 5rem 0 4rem;
}
.faq-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.faq-grid details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.4rem;
}
.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.faq-grid p {
  margin: 0.7rem 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0 2rem;
  background: #060810;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
}
.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.footer-meta {
  color: var(--ink-dim);
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-cols h4 {
  margin-bottom: 0.7rem;
}
.footer-cols a {
  display: block;
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.footer-cols a:hover {
  color: var(--ink);
}
.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 2rem 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual-stage {
    max-width: 480px;
    margin: 0 auto;
  }
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .topnav {
    display: none;
  }
  .plans-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 3rem 0 4rem;
  }
}

/* ===== Game picker landing (index.html) ===================================
 * Two-card chooser shown at "/" when no specific game is selected.
 * Each card links to the per-game marketing page. Visuals reuse the
 * orb fallback the per-game hero uses so missing artwork still looks
 * intentional, just smaller. */
.picker-hero {
  padding: 4rem 1.5rem 2rem;
}
.picker-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.picker-hero-inner h1 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0.4rem 0 1rem;
}
.picker-grid-section {
  padding: 0 1.5rem 6rem;
}
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #11151c;
  border: 1px solid #1f2630;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: #2b3441;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.game-card-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0c1018 0%, #161c26 100%);
  overflow: hidden;
}
.game-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
}
.game-card-body {
  padding: 1.25rem 1.5rem 1.75rem;
}
.game-card-body h2 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.game-card-body p {
  margin: 0 0 1rem;
  color: #aab2bf;
  line-height: 1.55;
}
.game-card-cta {
  font-weight: 600;
  color: #ffb454;
}
