/* ============================================================================
   METANOIA HERO — V3 ENHANCEMENTS
   Loads AFTER landing.css. Overrides + extends the hero section only.
   ============================================================================ */

/* ---------- hero container — more breathing room, taller ---------- */
.hero {
  padding: 72px 0 88px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: center;
  position: relative;
}
.hero > .wrap {
  flex: 1;
  display: flex; align-items: center;
  width: min(1320px, 100%);
}
.hero .grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 96px;
  align-items: center;
}

/* Pull the cycling word's drop shadow into a real flame */
.hero h1 .line-2 {
  filter: drop-shadow(0 0 32px rgba(167, 57, 226, 0.28));
}

.hero-copy { position: relative; z-index: 2; }

/* eyebrow — keep on a single line, refined tracking + rhythm */
.hero .greek {
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  gap: 14px;
  margin: 0 0 30px;
}
.hero .greek::before { width: 32px; }

/* headline — Title Case, tuned size + spacing */
.hero h1 {
  text-transform: capitalize;
  margin: 0 0 34px;
  font-size: clamp(54px, 7vw, 110px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}

/* sub-copy — slightly tighter measure, more breathing room before the CTA */
.hero .hero-sub {
  margin: 0 0 42px;
  max-width: 528px;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.62;
}

@media (max-width: 600px) {
  .hero .greek { white-space: normal; font-size: 11px; letter-spacing: 0.16em; }
}

/* ---------- brand logo (nav + footer) ---------- */
.nav .brand { gap: 0; }
.nav .brand .brand-logo {
  height: 26px; width: auto; display: block;
}
.footer .brand-block .wordmark .brand-logo {
  height: 30px; width: auto; display: block;
}

/* ---------- star-stage ---------- */
.star-stage {
  width: clamp(420px, 48vw, 660px);
}
.star-tilt {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}

/* particle canvas — sits behind orb, in front of rings, never tilts */
.star-stage .particles {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* ---------- rings — phase-colored, dashed, rotating, parallax-able ---------- */
.star-stage .ring-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.star-stage .ring-svg circle {
  fill: none;
  stroke-width: 0.7;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.star-stage .ring-svg .ring-1 {
  stroke: var(--phase-1);
  stroke-dasharray: 4 6;
  animation:
    ring-fade-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards,
    ring-rotate-cw 220s linear infinite;
}
.star-stage .ring-svg .ring-2 {
  stroke: var(--phase-2);
  stroke-dasharray: 5 8;
  animation:
    ring-fade-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 280ms forwards,
    ring-rotate-ccw 300s linear infinite;
}
.star-stage .ring-svg .ring-3 {
  stroke: var(--phase-3);
  stroke-dasharray: 3 5;
  animation:
    ring-fade-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 410ms forwards,
    ring-rotate-cw 160s linear infinite;
}
@keyframes ring-fade-in {
  to { opacity: 0.22; }
}
@keyframes ring-rotate-cw  { to { transform: rotate(360deg); } }
@keyframes ring-rotate-ccw { to { transform: rotate(-360deg); } }

/* legacy ring divs from V2 — disable */
.star-stage .ring { display: none; }
.star-stage svg.rays { display: none; }

/* ---------- 3D orb — multi-layer depth + pulse emitters ---------- */
.orb-stack {
  position: absolute;
  width: 30%; aspect-ratio: 1;
  z-index: 3;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Expanding pulse rings — slow, subtle emission from the core */
.orb-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--phase-2) 50%, transparent);
  pointer-events: none;
  opacity: 0;
  animation: orb-pulse-out 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  transform-origin: 50% 50%;
}
.orb-pulse:nth-of-type(1) {
  animation-delay: 0s;
  border-color: color-mix(in srgb, var(--phase-1) 55%, transparent);
}
.orb-pulse:nth-of-type(2) {
  animation-delay: 2.67s;
  border-color: color-mix(in srgb, var(--phase-2) 55%, transparent);
}
.orb-pulse:nth-of-type(3) {
  animation-delay: 5.33s;
  border-color: color-mix(in srgb, var(--phase-3) 55%, transparent);
}
@keyframes orb-pulse-out {
  0%   { transform: scale(0.94); opacity: 0; }
  12%  { opacity: 0.32; }
  100% { transform: scale(2.4); opacity: 0; }
}

.orb-glow-far {
  position: absolute; inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(167, 57, 226, 0.42) 0%,
    rgba(60, 194, 221, 0.18) 28%,
    rgba(245, 140, 86, 0.18) 56%,
    transparent 70%);
  filter: blur(34px);
  pointer-events: none;
  animation: glow-pulse 5.4s ease-in-out infinite;
}
.orb-glow-near {
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(167, 57, 226, 0.40) 18%,
    rgba(245, 140, 86, 0.22) 42%,
    transparent 70%);
  filter: blur(16px);
  pointer-events: none;
  animation: glow-pulse 5.4s ease-in-out infinite reverse;
}

/* Orb body — single spectrum radial, calm, matches the about-page orb */
.orb-body {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 26%,
    rgba(255, 255, 255, 0.92) 0%,
    var(--phase-1) 18%,
    var(--phase-2) 44%,
    var(--phase-3) 78%,
    color-mix(in srgb, var(--phase-3) 72%, #000) 100%);
  box-shadow:
    0 0 30px rgba(60, 194, 221, 0.30),
    0 0 60px rgba(167, 57, 226, 0.38),
    0 0 100px rgba(245, 140, 86, 0.42);
  animation: orb-breathe-3d 5.4s ease-in-out infinite;
}
/* Soft white glint, top-left — single subtle highlight, no glossy sweep */
.orb-specular {
  position: absolute;
  top: 10%; left: 12%;
  width: 38%; height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(255, 255, 255, 0.40) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.orb-rim { display: none; }

@keyframes orb-breathe-3d {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.04); filter: brightness(1.08); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50%      { opacity: 1.00; transform: scale(1.06); }
}

/* old core-orb hidden */
.star-stage .core-orb { display: none; }

/* ---------- sigil nodes: soft fade-in on load ---------- */
.star-stage .node {
  opacity: 0;
  animation: node-fade-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.star-stage .node[data-id="1"] { animation-delay: 900ms; }
.star-stage .node[data-id="2"] { animation-delay: 980ms; }
.star-stage .node[data-id="3"] { animation-delay: 1060ms; }
.star-stage .node[data-id="4"] { animation-delay: 1140ms; }
.star-stage .node[data-id="5"] { animation-delay: 1220ms; }
.star-stage .node[data-id="6"] { animation-delay: 1300ms; }
.star-stage .node[data-id="7"] { animation-delay: 1380ms; }
.star-stage .node[data-id="8"] { animation-delay: 1460ms; }
.star-stage .node[data-id="9"] { animation-delay: 1540ms; }
@keyframes node-fade-in {
  to { opacity: 1; }
}

/* ---------- scroll affordance ---------- */
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--fg3);
  z-index: 4;
  opacity: 0;
  animation: scroll-cue-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 1200ms forwards;
}
.hero-scroll .line {
  position: relative;
  width: 1px; height: 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  overflow: hidden;
}
.hero-scroll .line::after {
  content: '';
  position: absolute;
  top: -20%; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent 0%, var(--brand-purple) 50%, transparent 100%);
  animation: scroll-cue-drop 2400ms ease-in-out infinite;
}
@keyframes scroll-cue-in {
  to { opacity: 1; }
}
@keyframes scroll-cue-drop {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero .grid { grid-template-columns: 1fr; gap: 56px; }
  .star-stage { max-width: 520px; margin: 0 auto; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .star-stage .ring-svg circle { animation: none !important; opacity: 0.22; }
  .star-stage .node { animation: none !important; opacity: 1; }
  .orb-body, .orb-glow-far, .orb-glow-near, .orb-pulse { animation: none !important; }
  .orb-pulse { opacity: 0; }
  .hero-scroll .line::after { animation: none; opacity: 0.4; }
}
