/* ── 7. FADE-CONTAINER (Scroll-scrub initial state) ─────────────────────
   JS sets opacity/transform in real time. CSS provides the will-change
   hint so the browser creates a compositor layer.                        */
.fade-container {
  will-change: opacity, transform;
  /* JS overrides these immediately — these are fallbacks for no-JS */
  opacity: 1;
  transform: translateY(0);
}


/* ── 8. HERO SECTION ────────────────────────────────────────────────────── */



.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-height) + 80px) 48px;
  margin-top: 24px;
  background: #ffffff;
  z-index: 10;
  overflow-x: clip;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Content column */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-top: 0;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.hero__disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-xmuted);
  margin-top: 4px;
}

/* Visual column */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
}

/* ── 3-D Card ── */
.card-scene {
  perspective: 900px;
  width: 360px;
  height: 220px;
}

.card-3d {
  width: 100%;
  height: 100%;
  transform: rotateX(14deg) rotateY(-18deg) rotateZ(2deg);
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card-3d:hover {
  transform: rotateX(8deg) rotateY(-8deg) rotateZ(1deg);
}

.card-3d__face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}

/* EMV chip */
.card-3d__chip {
  width: 40px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e8d5a3, #c9a84c, #f0e68c, #c9a84c);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.card-3d__chip::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(160, 120, 40, 0.4);
  border-radius: 3px;
}

.card-3d__chip::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(160, 120, 40, 0.3);
}

.card-3d__logo {
  position: absolute;
  top: 22px;
  right: 24px;
  line-height: 0;
}

.card-3d__logo-img {
  height: 18px;
  width: auto;
  display: block;
  filter: brightness(0) opacity(0.65);
}

.card-3d__number {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(30, 30, 30, 0.65);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}

.card-3d__meta {
  display: flex;
  gap: var(--space-4);
}

.card-3d__label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(30, 30, 30, 0.45);
  margin-bottom: 2px;
}

.card-3d__value {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(30, 30, 30, 0.7);
}

/* Shimmer / holographic overlay on the card — fires only on theme change via JS */
.card-3d__shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255,255,255,0.18) 48%,
    rgba(255,255,255,0.12) 52%,
    transparent 62%
  );
  background-size: 240% 100%;
  background-position: -320% 0;
  opacity: 0;
  pointer-events: none;
}

/* ── Floating stat pills ── */
.stat-pill {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.80);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pill);
  gap: 2px;
  animation: floatPill 4s ease-in-out infinite;
}

.stat-pill--yield {
  top: 30px;
  right: 0;
  animation-delay: 0s;
}

.stat-pill--bill {
  bottom: 50px;
  left: 0;
  animation-delay: 2s;
}

@keyframes floatPill {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px); }
}

.stat-pill__value {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.stat-pill--yield .stat-pill__value { color: #16a34a; }

.stat-pill__label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Geometric background shape — SVG standalone, shape defined by path ── */
.hero__geo-bg {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1650px;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__geo-bg--mobile {
  display: none;
}

.hero__bg-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* ── Background orbs ── */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
  opacity: 0.35;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #e0e7ff 0%, transparent 70%);
  top: -100px;
  right: -80px;
}

.hero__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f0fdf4 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
}

/* Responsive hero */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    align-items: center;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__sub { max-width: 560px; }

  .hero__visual {
    height: 360px;
  }

  .card-scene {
    width: 300px;
    height: 184px;
  }

  /* Swap vectors */
  .hero__geo-bg--desktop {
    display: none;
  }

  .hero__geo-bg--mobile {
    display: block;
    top: 64px;
    bottom: 0;
    width: calc(100% - 16px);
    max-width: 100%;
  }

  /* Reposition stat pills so they stay inside the visual */
  .stat-pill--yield {
    top: 10px;
    right: 10px;
  }

  .stat-pill--bill {
    bottom: 60px;
    left: 10px;
  }

  /* Center card-theme-bar */
  .card-theme-bar {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-block: calc(var(--nav-height) + 40px) 60px;
  }

  .hero__headline {
    font-size: 36px;
  }

  .hero__headline-highlight {
    font-size: 40px;
  }

  .hero__content {
    gap: var(--space-2);
  }

  .hero__inner {
    gap: var(--space-3);
  }

  .hero__visual {
    height: 300px;
    margin-top: -8px;
  }

  .card-scene {
    width: 260px;
    height: 160px;
  }

  .card-3d__face {
    padding: 18px 18px 16px;
  }

  .card-3d__chip {
    width: 28px;
    height: 20px;
  }

  .card-3d__logo {
    top: 14px;
    right: 16px;
  }

  .card-3d__logo-img {
    height: 13px;
  }

  .card-3d__number {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .card-3d__label {
    font-size: 0.48rem;
  }

  .card-3d__value {
    font-size: 0.6rem;
  }

  .card-3d__meta {
    gap: var(--space-2);
  }

  .hero__geo-bg--mobile {
    width: calc(100% - 16px);
    left: 50%;
    transform: translateX(-50%);
  }
}

