/* =========================================================
   SUMMON — Robinhood ecosystem site
   Design DNA: obsidian palette, grid cards, tunnel frames
   Brand accents: Robinhood green
   ========================================================= */

@font-face {
  font-family: "KMR-Apparat";
  src: url("../fonts/KMR-Apparat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KMR-Apparat";
  src: url("../fonts/KMR-Apparat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KMR-Apparat";
  src: url("../fonts/KMR-Apparat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KMR-Apparat";
  src: url("../fonts/KMR-Apparat-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gridular;
  src: url("../fonts/gridular-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --obsidian-800: #000;
  --obsidian-700: #0a0a09;
  --obsidian-600: #131212;
  --obsidian-500: #1b1b1a;
  --obsidian-400: #343434;
  --obsidian-300: #434343;
  --obsidian-200: #a2a2a2;
  --obsidian-100: #fffdf7;
  --rh-green: #00c805;
  --rh-green-dim: #00a004;
  --rh-green-glow: rgba(0, 200, 5, 0.35);
  --accent-red: #ef4444;
  --grid-stroke: rgba(220, 230, 245, 0.55);
  --radius-xl: 1.5rem;
  --radius-lg: 0.75rem;
  --container: 1280px;
  --font: "KMR-Apparat", system-ui, -apple-system, sans-serif;
  --font-mono: Gridular, ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--obsidian-700);
  color: var(--obsidian-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  background: var(--rh-green);
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal-left.visible,
.reveal-right.visible {
  transform: none;
}
.reveal-scale {
  transform: scale(0.95);
}
.reveal-scale.visible {
  transform: none;
}
.stagger > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger.visible > * {
  opacity: 1;
  transform: none;
}
.stagger.visible > *:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger.visible > *:nth-child(2) {
  transition-delay: 0.12s;
}
.stagger.visible > *:nth-child(3) {
  transition-delay: 0.19s;
}
.stagger.visible > *:nth-child(4) {
  transition-delay: 0.26s;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 9, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 9, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  min-height: 64px;
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  min-width: 0;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.brand:hover {
  opacity: 0.92;
}
.brand:focus-visible {
  outline: 2px solid var(--rh-green);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

/* Logo mark — fixed square, no stretch */
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  border-radius: 9px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(0, 200, 5, 0.18), 0 4px 14px rgba(0, 200, 5, 0.12);
}
.brand img.brand-mark,
.brand .brand-mark {
  width: 34px;
  height: 34px;
}

/* Word stack next to mark */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
}
.brand-name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--obsidian-100);
  line-height: 1;
  white-space: nowrap;
}
.brand-sub {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--obsidian-200);
  line-height: 1;
  white-space: nowrap;
}
.brand-sub::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rh-green);
  box-shadow: 0 0 8px var(--rh-green-glow);
  flex-shrink: 0;
}
.brand-badge {
  display: none; /* replaced by brand-sub */
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--obsidian-500);
  color: var(--obsidian-200);
}

@media (max-width: 379px) {
  .brand-sub {
    display: none;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .brand-name {
    font-size: 0.95rem;
  }
}


.nav-desktop {
  display: none;
  flex: 1;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-left: 1.5rem;
}
.nav-desktop a {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--obsidian-200);
  padding: 0.5rem 0.25rem;
  transition: color 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--obsidian-100);
  color: var(--obsidian-800);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  ring: 1px solid rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 255, 255, 0.45);
  transform: scale(1.03);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-green {
  background: var(--rh-green);
  color: #041204;
  border-color: rgba(0, 200, 5, 0.5);
  box-shadow: 0 10px 30px rgba(0, 200, 5, 0.25);
}
.btn-green:hover {
  background: #1aff1f;
  box-shadow: 0 14px 34px rgba(0, 200, 5, 0.4), 0 0 24px var(--rh-green-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--obsidian-100);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04)),
    var(--obsidian-800);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 253, 246, 0.08);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 10px rgba(255, 253, 246, 0.12);
  transform: scale(1.02);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 0.5rem;
  color: #fff;
  transition: background 0.2s;
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .header-cta-desktop {
    display: inline-flex !important;
  }
}
.header-cta-desktop {
  display: none;
}
.header-cta-mobile {
  display: none;
}
@media (min-width: 640px) {
  .header-cta-mobile {
    display: inline-flex;
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 9, 0.97);
  padding: 5.5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--obsidian-100);
}
.mobile-menu .btn-primary {
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 1rem 0 3rem;
}
@media (min-width: 1024px) {
  .hero {
    min-height: 880px;
    padding: 2rem 0 4rem;
  }
}
@media (min-width: 1280px) {
  .hero {
    min-height: 960px;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 0.5rem 0;
}
@media (min-width: 1024px) {
  .hero-copy {
    min-height: 640px;
    padding: 1.5rem 0;
  }
}

.hero-titles {
  margin-bottom: 1.5rem;
}
.hero-titles h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.015em;
  color: var(--obsidian-100);
}

.hero-bottom {
  margin-top: auto;
  max-width: 32rem;
  padding-top: 2.5rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-eyebrow img {
  width: 24px;
  height: 24px;
}

.hero-lead {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--obsidian-100);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  align-items: center;
}
.hero-ctas .btn-primary,
.hero-ctas .btn-ghost {
  width: 100%;
}
@media (min-width: 640px) {
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: auto;
  }
}

/* Featured character card (tunnel) */
.feature-card {
  position: relative;
  border: 1px solid var(--obsidian-500);
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 560px;
  background: var(--obsidian-700);
  cursor: default;
  --grid-stroke: rgba(200, 255, 210, 0.45);
}
@media (min-width: 640px) {
  .feature-card {
    min-height: 640px;
  }
}
@media (min-width: 1024px) {
  .feature-card {
    min-height: 720px;
  }
}

.card-inner-glow-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  box-shadow: inset 0 0 80px rgba(0, 200, 5, 0.08);
}

.tunnel-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  perspective: 900px;
}
.creator-tunnel-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.creator-tunnel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(0, 200, 5, 0.12));
}
.creator-tunnel-svg line,
.creator-tunnel-svg rect {
  stroke: var(--grid-stroke);
  fill: none;
  opacity: 0;
  transform-origin: 50% 50%;
  transform-box: view-box;
}
.creator-tunnel-svg.animated line {
  animation: grid-line-fade 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.creator-tunnel-svg.animated rect {
  animation: grid-line-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
@keyframes grid-line-fade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 0.55;
    transform: scale(1);
  }
}

.scanline-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}

.feature-card-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  height: 55%;
  background: linear-gradient(to top, var(--obsidian-700), var(--obsidian-700), transparent);
}

.feature-live {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  right: 1.75rem;
  z-index: 30;
}
.live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.15rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--obsidian-500);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--obsidian-100);
  transition: background 0.2s, border-color 0.2s;
}
.live-btn:hover {
  background: var(--obsidian-400);
  border-color: rgba(255, 255, 255, 0.2);
}
.live-dot-wrap {
  position: relative;
  width: 10px;
  height: 10px;
}
.live-dot {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--rh-green);
}
.live-dot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rh-green);
  animation: live-pulse 1.6s ease-out infinite;
  opacity: 0.5;
}
@keyframes live-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.feature-card-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  padding: 2rem;
}
@media (min-width: 640px) {
  .feature-card-body {
    padding: 2.5rem;
  }
}

.feature-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--obsidian-100);
}
.feature-name {
  margin: 0.15rem 0 0;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--obsidian-100);
}
.feature-desc {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--obsidian-200);
}
@media (min-width: 768px) {
  .feature-desc {
    font-size: 1.1rem;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.stat-box {
  border: 1px solid var(--obsidian-500);
  background: var(--obsidian-700);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
}
.stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--obsidian-200);
  font-weight: 500;
}
.stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--obsidian-100);
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}
.stat-value.green {
  color: var(--rh-green);
}
.stat-value.soon {
  color: var(--obsidian-200);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--obsidian-500);
  background: var(--obsidian-700);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  margin-top: 0.5rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 2.5rem 0;
}
@media (min-width: 1024px) {
  .section {
    padding: 4rem 0;
  }
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 900;
  color: var(--obsidian-100);
  letter-spacing: -0.01em;
}

/* How it works cards */
.steps-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-card {
  position: relative;
  border: 1px solid var(--obsidian-500);
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: transparent;
  background-image: url("../images/creator/gridbg.png");
  background-position: top;
  background-repeat: repeat-x;
  background-size: auto;
  transition: border-color 0.3s, transform 0.3s;
}
.grid-card:hover {
  border-color: rgba(0, 200, 5, 0.35);
  transform: translateY(-3px);
}
.grid-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 120px rgba(255, 255, 255, 0.12);
}
.grid-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    #0a0a0900,
    #0a0a0940 60%,
    #0a0a098c,
    #0a0a09bf
  );
}

.step-card {
  height: 28rem;
}
@media (min-width: 1280px) {
  .step-card {
    height: 32rem;
  }
}
.step-card .bg-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.step-card .bg-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-card .step-icon {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  width: 28px;
  height: 28px;
  opacity: 0.9;
}
.step-card .card-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
}
.step-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
}
.step-card p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  color: #a3a3a3;
}

/* Showcase feature (wide) */
.showcase {
  position: relative;
  border: 1px solid var(--obsidian-500);
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 650px;
  background: var(--obsidian-700);
  --grid-stroke: rgba(200, 255, 210, 0.4);
}
@media (min-width: 768px) {
  .showcase {
    min-height: 800px;
  }
}
@media (min-width: 1280px) {
  .showcase {
    min-height: 900px;
  }
}
.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.showcase-stats .stat-box {
  padding: 0.75rem 1rem;
}
.showcase-stats .stat-label {
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}
.showcase-stats .stat-value {
  font-size: 1.1rem;
}

/* Overview feature row */
.overview-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.overview-row::-webkit-scrollbar {
  display: none;
}
@media (min-width: 640px) {
  .overview-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }
}
@media (min-width: 1024px) {
  .overview-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.overview-card {
  flex-shrink: 0;
  width: 85vw;
  max-width: 360px;
  height: 15rem;
  scroll-snap-align: start;
  position: relative;
}
@media (min-width: 640px) {
  .overview-card {
    width: 100%;
    max-width: none;
  }
}
@media (min-width: 1024px) {
  .overview-card {
    height: 17rem;
  }
}
.overview-card .fade-bottom {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}
.overview-card .art {
  position: absolute;
  top: -8px;
  right: 0;
  width: 250px;
  z-index: 1;
  pointer-events: none;
}
.overview-card .icon {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  width: 28px;
  height: 28px;
  opacity: 0.9;
}
.overview-card .card-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.overview-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
}

.overview-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .overview-dots {
    display: none;
  }
}
.dot-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}
.dot-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}
.dot-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dots {
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  transition: background 0.2s;
}
.dot.active {
  background: var(--rh-green);
}

/* Team */
.team-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1280px) {
  .team-head {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .team-head .section-title {
    margin: 0;
    width: 50%;
  }
  .team-head p {
    flex: 1;
    margin: 0;
  }
}
.team-head p {
  margin: 0;
  color: var(--obsidian-200);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  height: 100%;
}
.team-card .card-inner {
  position: relative;
  z-index: 10;
  padding: 1.5rem 1.5rem 1.5rem 0;
}
.team-avatar {
  width: 7rem;
  height: 7rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-avatar.rounded img {
  width: 8rem;
  height: 8rem;
  border-radius: 0.75rem;
  border: 2px solid #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
  margin: 0.75rem 0 0 1rem;
}
.team-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
}
.team-id img {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
  opacity: 0.85;
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%)
    hue-rotate(340deg) brightness(95%) contrast(92%);
}
.team-id span {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.75rem;
}
.team-card h3 {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  font-size: 1.5rem;
  font-weight: 900;
}
.team-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.team-meta .label {
  color: #6b7280;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.25rem;
}
.team-meta .value {
  margin: 0;
  font-weight: 500;
}
.status-active {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rh-green);
  font-weight: 500;
  font-size: 0.8rem;
}
.status-active::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rh-green);
}
.status-idle {
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 500;
}
.team-divider {
  border: none;
  border-top: 1px solid var(--obsidian-500);
  margin: 0 0 1rem 1.5rem;
}
.team-card .bio {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--obsidian-200);
}

/* Token / CA block */
.token-panel {
  border: 1px solid var(--obsidian-500);
  border-radius: 1.5rem;
  padding: 1.75rem;
  background: linear-gradient(160deg, rgba(0, 200, 5, 0.06), transparent 50%),
    var(--obsidian-600);
  margin-top: 2rem;
}
.token-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
}
.token-panel p {
  margin: 0 0 1.25rem;
  color: var(--obsidian-200);
  font-size: 0.95rem;
}
.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.ca-box {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--obsidian-400);
  background: var(--obsidian-700);
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rh-green);
}
.ca-copy {
  padding: 0.85rem 1.15rem;
  border-radius: 0.65rem;
  background: var(--obsidian-500);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.ca-copy:hover {
  background: var(--obsidian-400);
}
.ca-copy.copied {
  background: rgba(0, 200, 5, 0.2);
  color: var(--rh-green);
}

/* FAQ */
.faq-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}
.faq-intro {
  position: sticky;
  top: 6rem;
}
.faq-intro h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 800;
}
.faq-intro > p {
  margin: 0;
  color: var(--obsidian-200);
  max-width: 24rem;
}
.faq-help {
  margin-top: 3rem;
  max-width: 18rem;
}
.faq-help h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.faq-help p {
  margin: 0;
  color: var(--obsidian-200);
  font-size: 0.9rem;
}
.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.social-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom, rgba(64, 64, 64, 0.4), rgba(23, 23, 23, 0.6));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}
.social-btn img,
.social-btn svg {
  width: 2.75rem;
  height: 2.75rem;
}
.social-btn.is-placeholder {
  opacity: 0.55;
  cursor: default;
  position: relative;
}
.social-btn.is-placeholder::after {
  content: "Soon";
  position: absolute;
  bottom: -1.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--obsidian-200);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 50%, rgba(0, 0, 0, 0.15));
  pointer-events: none;
}
.faq-q {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--obsidian-100);
  transition: background 0.2s;
}
.faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}
.faq-q svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--obsidian-200);
  transition: transform 0.25s;
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}
.faq-a {
  position: relative;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 240px;
}
.faq-a-inner {
  padding: 0 1.35rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 1.35rem;
  padding-top: 1rem;
}
.faq-a-inner p {
  margin: 0;
  color: var(--obsidian-200);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer-wordmark {
  display: flex;
  justify-content: center;
  padding: 2rem 0 3rem;
  pointer-events: none;
}
.footer-wordmark img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  opacity: 0.95;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-links {
    align-items: flex-end;
    text-align: right;
  }
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.footer-link-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-link-row .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom, rgba(64, 64, 64, 0.4), rgba(23, 23, 23, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-link-row .icon-box img,
.footer-link-row .icon-box svg {
  width: 2.75rem;
  height: 2.75rem;
}
.footer-link-row p {
  margin: 0;
  font-weight: 500;
}
.footer-link-row .sub {
  color: var(--obsidian-200);
  font-size: 0.875rem;
  font-weight: 400;
}
.footer-link-row a,
.footer-link-row .linkish {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rh-green);
  transition: color 0.2s;
}
.footer-link-row a:hover {
  color: #1aff1f;
}
.footer-link-row .linkish.muted {
  color: var(--obsidian-200);
  cursor: default;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}
.footer-bottom p {
  margin: 0;
  color: var(--obsidian-200);
  font-size: 0.875rem;
}
.footer-legal {
  display: flex;
  gap: 2rem;
}
.footer-legal a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--obsidian-100);
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--rh-green);
}

/* Green accent line under hero */
.rh-accent-bar {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rh-green),
    transparent
  );
  opacity: 0.5;
  margin: 0 auto;
  max-width: 60%;
}

/* Utility */
.text-green {
  color: var(--rh-green);
}
.hidden {
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .stagger > *,
  .creator-tunnel-svg line,
  .creator-tunnel-svg rect {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========== Page loader ========== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--obsidian-700);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-inner {
  text-align: center;
}
.page-loader-inner img {
  margin: 0 auto 1rem;
  animation: pulse-logo 1.2s ease-in-out infinite;
}
.page-loader-bar {
  width: 140px;
  height: 3px;
  background: var(--obsidian-500);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 0.75rem;
}
.page-loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--rh-green), transparent);
  animation: loader-slide 1s ease-in-out infinite;
}
.page-loader-inner p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--obsidian-200);
}
@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@keyframes pulse-logo {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Route topbar */
.route-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
}
.route-topbar__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rh-green), #7dff82);
  box-shadow: 0 0 8px var(--rh-green-glow);
  transition: width 0.1s linear;
}

/* Nav text link */
.nav-text-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.25rem;
  transition: color 0.2s;
}
.nav-text-link:hover { color: #fff; }

/* Hero line anim */
.anim-line {
  opacity: 0;
  transform: translateY(24px);
  animation: line-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-line.delay-1 { animation-delay: 0.1s; }
.anim-line.delay-2 { animation-delay: 0.2s; }
.anim-line.delay-3 { animation-delay: 0.3s; }
.anim-line.delay-4 { animation-delay: 0.4s; }
@keyframes line-in {
  to { opacity: 1; transform: none; }
}

/* VRM mount */
.vrm-mount {
  position: absolute;
  inset: 0 0 28% 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.vrm-mount--showcase {
  inset: 0 0 32% 0;
}
.vrm-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.vrm-fallback-img {
  max-height: 92%;
  max-width: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  animation: float-char 4.5s ease-in-out infinite;
}
.vrm-mount.is-loading .vrm-fallback-img {
  opacity: 0.55;
  filter: blur(1px) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}
.vrm-mount.is-ready .vrm-fallback-img { display: none; }
.vrm-mount.is-fallback .vrm-fallback-img {
  opacity: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}
@keyframes float-char {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Skeleton pulse (live stats) */
.skeleton {
  display: inline-block;
  height: 1rem;
  width: 3.5rem;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--obsidian-500) 70%, transparent);
  animation: sk-pulse 1.2s ease-in-out infinite;
}
.skeleton.sk-wide { width: 5rem; height: 1.15rem; }
@keyframes sk-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

/* Step card artwork positioning (match source layout) */
.step-card .bg-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.step-card .step-bg,
.step-card .step-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-card.step-2 .step-chat {
  position: absolute;
  left: 50%;
  top: 1.25rem;
  transform: translateX(-50%);
  width: 108%;
  max-width: none;
  height: auto;
  object-fit: contain;
}
.step-card.step-3 .step-earn-a {
  position: absolute;
  bottom: -1rem;
  right: -2.5rem;
  width: 120%;
  height: auto;
  opacity: 0.4;
  object-fit: contain;
}
.step-card.step-3 .step-earn-b {
  position: absolute;
  top: 1.25rem;
  right: 0;
  width: 70%;
  height: auto;
  object-fit: contain;
}
.step-card .card-content .block { display: block; }

/* Team grid 4 cards */
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.team-avatar {
  width: 10.5rem;
  height: 10.5rem;
}
.team-avatar.border-purple { box-shadow: inset 0 0 0 2px rgba(168, 85, 247, 0.45); }
.team-avatar.border-pink { box-shadow: inset 0 0 0 2px rgba(236, 72, 153, 0.45); }
.team-avatar.border-blue { box-shadow: none; }
.team-avatar.rounded {
  width: auto;
  height: auto;
  overflow: visible;
}
.team-card--soon .soon-inner {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem !important;
  gap: 0.75rem;
}
.soon-x {
  width: 4rem;
  height: 4rem;
  border: 2px solid var(--obsidian-300);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--obsidian-200);
  margin-bottom: 0.5rem;
}
.team-card--soon h3 {
  padding-left: 0 !important;
  margin: 0 !important;
  font-size: 1.1rem !important;
}
.team-card--soon .bio {
  padding-left: 0 !important;
  color: var(--obsidian-200);
}

/* Token panel extras */
.token-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.token-mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 200, 5, 0.25));
  flex-shrink: 0;
  animation: float-char 5s ease-in-out infinite;
}
@media (max-width: 640px) {
  .token-mascot { width: 64px; height: 64px; }
}

/* Footer brand blurb */
.footer-brand-blurb p {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: var(--obsidian-200);
  font-size: 0.95rem;
  line-height: 1.45;
}
.footer-brand { margin-bottom: 0.25rem; }

/* Feature title row */
.feature-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
  border: none;
  background: transparent;
  padding: 0;
}
.stat-row > div {
  border: 1px solid var(--obsidian-500);
  background: var(--obsidian-700);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
}
.legal-page .meta {
  color: var(--obsidian-200);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 1.75rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-page p, .legal-page li {
  color: var(--obsidian-200);
  line-height: 1.6;
  font-size: 0.95rem;
}
.legal-page a { color: var(--rh-green); }
.legal-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--obsidian-200);
}
.legal-back:hover { color: var(--rh-green); }

/* Body ready state */
body.is-ready .hero-copy .reveal { transition-delay: 0.05s; }
