:root {
  --bg: #000;
  --text: #fff;
  --muted: #cfd2d8;
  --gold: #FFD700;
  --gold-2: #ffec8b;
  --border: #1a1a1a;
  --ring: 0 0 0 3px color-mix(in oklab, var(--gold) 40%, transparent);

  --hero-h: clamp(560px, 78vh, 720px);
  --w: 1200px;
}

/* ---------- Shell ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: var(--hero-h);
  padding: clamp(2rem, 4vw, 3rem) 1rem;
  background: #000;
  color: var(--text);
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 100px;
}

/* ---------- Background layers ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bg-grid {
  position: absolute;
  inset: -40%;
  background:
    linear-gradient(transparent 97%, rgba(255, 255, 255, .06) 98%) 0 0/24px 24px,
    linear-gradient(90deg, transparent 97%, rgba(255, 255, 255, .06) 98%) 0 0/24px 24px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000 30%, transparent 70%);
  opacity: .25;
  animation: gridFloat 30s linear infinite;
}

@keyframes gridFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-24px);
  }
}

.bg-glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(45% 40% at 20% 20%, color-mix(in oklab, var(--gold) 22%, transparent) 0, transparent 60%),
    radial-gradient(40% 45% at 80% 70%, color-mix(in oklab, var(--gold-2) 18%, transparent) 0, transparent 70%);
  filter: blur(60px);
  opacity: .28;
}

/* ---------- Layout ---------- */
.hero-wrap {
  max-width: var(--w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1rem, 3.5vw, 3rem);
  align-items: center;
}

@media (max-width:980px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Content ---------- */
.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  padding: .35rem .6rem;
  border-radius: .6rem;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 28px -16px color-mix(in oklab, var(--gold) 60%, transparent);
}

.hero-content h1 {
  margin: .75rem 0 .4rem;
  font-size: clamp(2rem, 2.4vw + 1.2rem, 3rem);
  letter-spacing: -.02em;
}

.hero-content .accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- CTA buttons ---------- */
.hero-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin: .9rem 0 0;
}

.btn {
  --btn-bg: #0e0e0e;
  --btn-fg: #fff;
  --btn-bd: #232323;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.1rem;
  border-radius: .9rem;
  border: 1px solid var(--btn-bd);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  border-color: transparent;
  box-shadow: 0 12px 36px -12px color-mix(in oklab, var(--gold) 60%, transparent);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 44px -10px color-mix(in oklab, var(--gold) 70%, transparent);
}

.btn-ghost {
  background: var(--btn-bg);
}

.btn-ghost:hover {
  border-color: color-mix(in oklab, var(--gold) 40%, var(--btn-bd));
  box-shadow: var(--ring);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text);
  text-decoration: underline dotted rgba(255, 255, 255, .4);
  text-underline-offset: 4px;
}

.btn-link:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ---------- Bullets ---------- */
.hero-points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  gap: .6rem 1rem;
  flex-wrap: wrap;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #e8ebf2;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: .5rem .65rem;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* ---------- Trust pills ---------- */
.trust-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .6rem;
  border-radius: .6rem;
  font-weight: 700;
  color: #111;
  background: color-mix(in oklab, var(--gold) 22%, #fff);
}

/* ---------- Visual card ---------- */
.hero-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.2rem 1.1rem;
  min-height: 240px;
  display: grid;
  place-items: end start;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 35% at 20% 30%, color-mix(in oklab, var(--gold) 22%, transparent) 0, transparent 60%),
    radial-gradient(45% 40% at 80% 80%, color-mix(in oklab, var(--gold-2) 18%, transparent) 0, transparent 70%);
  filter: blur(50px);
  opacity: .22;
  z-index: -1;
  animation: pulse 7s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: .18;
  }

  to {
    transform: scale(1.06);
    opacity: .28;
  }
}

.hero-card figcaption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: .35rem;
}

.hero-card figcaption span {
  color: #dfe3ea;
  font-weight: 600;
}

.hero-card figcaption strong {
  font-size: 1.15rem;
}

.hero-card figcaption small {
  color: #bfc6d2;
}

/* --- Decorative arrow graph behind card content --- */
.card-graph {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .6;
  filter: drop-shadow(0 10px 24px rgba(255, 215, 0, .10));
  pointer-events: none;
}

.graph-line {
  stroke-dasharray: 6 10;
  animation: draw 12s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.graph-area {
  transform-origin: 50% 100%;
  animation: lift 10s ease-in-out infinite alternate;
}

@keyframes draw {
  from {
    stroke-dashoffset: 120;
  }

  to {
    stroke-dashoffset: -120;
  }
}

@keyframes lift {
  from {
    transform: translateY(0);
    opacity: .16;
  }

  to {
    transform: translateY(-3px);
    opacity: .22;
  }
}

/* ---------- Learn more hint + arrow ---------- */
.scroll-group {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  pointer-events: auto;
}

.scroll-hint {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 215, 0, .9);
  text-shadow: 0 0 18px rgba(255, 215, 0, .25);
}

.scroll-cue {
  opacity: .85;
  transition: opacity .2s ease;
}

.scroll-cue:hover {
  opacity: 1;
}

.scroll-cue svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  animation: bounceY 1.8s ease-in-out infinite;
}

@keyframes bounceY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ---------- Motion respect ---------- */
@media (prefers-reduced-motion:reduce) {

  .btn,
  .card-glow,
  .bg-grid,
  .scroll-cue svg,
  .graph-line,
  .graph-area {
    animation: none !important;
    transition: none !important;
  }
}

/* Force white text for ghost + link buttons (including visited state) */
a.btn-ghost,
a.btn-ghost:visited,
button.btn-ghost {
  color: #fff;
}

a.btn-link,
a.btn-link:link,
a.btn-link:visited,
button.btn-link {
  color: #fff;
}

/* Keep the link hover gold (optional) */
a.btn-link:hover {
  color: var(--gold);
}