/* ──────────────────────────────────────────────────────────
   HERO — Bold Editorial Asymmetrical Layout
   Design Spells & Impeccable custom layout tokens
   Vibrant Cherry Red backings cohesive theme
   ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-left: var(--safe);
  padding-right: var(--safe);
  padding-top: 160px;
  padding-bottom: 100px;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.hero-left::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 400px;
  height: 250px;
  background: radial-gradient(circle, rgba(232, 160, 52, 0.045) 0%, rgba(212, 67, 26, 0.015) 50%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  animation: textGlowPulse 10s ease-in-out infinite alternate;
}

@keyframes textGlowPulse {
  0% { transform: scale(0.95) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.05) translate(10px, -5px); opacity: 1; }
}


.hero-label-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 6px 18px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  display: inline-block;
  opacity: 0; /* Animated by anime.js */
}

.hero-display-text {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.5vw, 105px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-row {
  display: block;
}

.hero-editorial-desc {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 40px 0;
  opacity: 0; /* Animated by anime.js */
}

.hero-editorial-cta-wrap {
  flex-shrink: 0;
  opacity: 0; /* Animated by anime.js */
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  background: transparent;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.hero-cta-btn .arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}

.hero-cta-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-cta-btn:hover .arrow {
  transform: translate(2px, -2px);
}

/* ── Hero Showcase: Prismatic Glass Portal (Sacred Geometry Reactor) ── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-card-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  opacity: 0; /* Animated by anime.js */
}

.prismatic-portal {
  width: 320px;
  height: 430px;
  border-radius: var(--r-md);
  background: rgba(19, 16, 30, 0.45); /* Translucent Surface Dark */
  position: relative;
  overflow: visible; /* Let backlights and orbits bleed out poetically */
  transform-style: preserve-3d;
  border: 1px solid var(--border-default);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7),
              0 0 40px rgba(232, 160, 52, 0.08);
  will-change: transform;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Atmospheric Volumetric Backlight */
.portal-backlight {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(232, 160, 52, 0.25) 0%, rgba(212, 67, 26, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  animation: portalPulse 8s ease-in-out infinite alternate;
}

/* Concentric Orbital Wireframe Rings */
.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  z-index: 2;
  transform-style: preserve-3d;
}

.portal-ring.ring-1 {
  width: 240px;
  height: 240px;
  border-color: rgba(232, 160, 52, 0.25);
  animation: spinClockwise 18s linear infinite;
  transform: rotateX(45deg) rotateY(15deg);
}

.portal-ring.ring-2 {
  width: 180px;
  height: 180px;
  border-color: rgba(212, 67, 26, 0.25);
  border-style: dotted;
  border-width: 2px;
  animation: spinCounterClockwise 12s linear infinite;
  transform: rotateX(-30deg) rotateY(30deg);
}

.portal-ring.ring-3 {
  width: 120px;
  height: 120px;
  border-color: rgba(245, 240, 232, 0.15);
  animation: spinClockwise 8s linear infinite;
  transform: rotateX(60deg) rotateY(-20deg);
}

/* Prismatic Luminous Core */
.portal-core {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e8a034 50%, #d4431a 100%);
  z-index: 3;
  box-shadow: 0 0 30px rgba(232, 160, 52, 0.6),
              0 0 60px rgba(212, 67, 26, 0.2),
              inset 0 0 10px rgba(245, 240, 232, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(20px); /* Lift off physical plane in 3D perspective */
  animation: coreFloat 4s ease-in-out infinite alternate;
}

.core-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 15px #ffffff;
  filter: blur(2px);
  animation: corePulse 2s ease-in-out infinite alternate;
}

/* Telemetry Coordinate Specs */
.portal-specs {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  z-index: 4;
}

.spec-line {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.spec-line:first-child {
  color: var(--accent); /* Amber status code */
}

/* Keyframe Animations */
@keyframes portalPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

@keyframes spinClockwise {
  0% { transform: rotate(0deg) rotateX(45deg) rotateY(15deg); }
  100% { transform: rotate(360deg) rotateX(45deg) rotateY(15deg); }
}

@keyframes spinCounterClockwise {
  0% { transform: rotate(360deg) rotateX(-30deg) rotateY(30deg); }
  100% { transform: rotate(0deg) rotateX(-30deg) rotateY(30deg); }
}

@keyframes coreFloat {
  0% { transform: translateZ(20px) translateY(-5px); }
  100% { transform: translateZ(20px) translateY(5px); }
}

@keyframes corePulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Glitch Typography Easing & Dramatic Vignette Background */
.hero {
  background: radial-gradient(circle at 80% 30%, rgba(232, 160, 52, 0.05) 0%, transparent 65%),
              radial-gradient(circle at 20% 80%, rgba(212, 67, 26, 0.03) 0%, transparent 60%),
              var(--bg-primary);
}

.text-glitch {
  position: relative;
  color: var(--text-primary);
}

.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  text-shadow: -1px 0 var(--accent);
  top: 0;
  color: var(--text-primary);
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim 2s infinite linear alternate-reverse;
}

@keyframes noise-anim {
  0% { clip: rect(12px, 9999px, 85px, 0); }
  10% { clip: rect(34px, 9999px, 5px, 0); }
  20% { clip: rect(80px, 9999px, 50px, 0); }
  30% { clip: rect(10px, 9999px, 90px, 0); }
  45% { clip: rect(60px, 9999px, 20px, 0); }
  60% { clip: rect(95px, 9999px, 65px, 0); }
  80% { clip: rect(5px, 9999px, 40px, 0); }
  100% { clip: rect(25px, 9999px, 75px, 0); }
}

/* ── Scroll Indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
  opacity: 0; /* Animated by anime.js */
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Responsive breakpoints ── */
@media (max-width: 1024px) {
  .hero {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: auto;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-left {
    align-items: center;
    text-align: center;
  }
  
  .hero-display-text {
    font-size: clamp(54px, 10vw, 84px);
    margin-bottom: 24px;
  }
  
  .hero-editorial-desc {
    max-width: 620px;
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 130px;
    padding-bottom: 60px;
  }
  
  .hero-inner {
    gap: 40px;
  }
  
  .hero-display-text {
    font-size: clamp(40px, 11vw, 56px);
  }
  
  .hero-card {
    width: 280px;
    height: 380px;
  }
  
  .hero-label-badge {
    font-size: 11px;
    padding: 4px 12px;
    margin-bottom: 20px;
  }
  
  .hero-scroll {
    display: none; /* Hide scroll indicator on very small screens */
  }
}
