/* =============================================================================
   Hero Block — Frontend Stylesheet
   1-1 conversion of Hero.tsx (Tailwind → plain CSS)
   Fonts & Motion One loaded via CDN in functions.php
   ============================================================================= */

/* --------------------------------------------------------------------------
   Google Fonts are loaded via CDN — referenced here
   -------------------------------------------------------------------------- */
/* Loaded: Inter, JetBrains Mono, Syne */

/* --------------------------------------------------------------------------
   Section wrapper
   className="relative min-h-screen flex flex-col items-center justify-center
              bg-[#050505] overflow-hidden pt-20 cursor-none"
   -------------------------------------------------------------------------- */
.hero-block {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #050505;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
  /* pt-20 */
  cursor: none;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Technical Grid Background
   linear-gradient to right #ffffff05 1px + linear-gradient to bottom #ffffff05 1px
   bg-size: 4rem 4rem, mask: radial-gradient ellipse 80% at 50%
   -------------------------------------------------------------------------- */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   Smooth Glow orbs
   -------------------------------------------------------------------------- */
.hero-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(var(--glow-blur));
}

/* top-[-10%] left-[-10%] w-[40vw] h-[40vw] bg-[#FF4E00]/20 blur-[120px]
   animate: x 0→50→0, y 0→30→0, scale 1→1.2→1, 15s */
.hero-glow--orange-tl {
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: rgba(255, 78, 0, 0.20);
  --glow-blur: 120px;
  animation: glow-orange-tl 15s ease-in-out infinite;
}

/* bottom-[-10%] right-[-10%] w-[50vw] h-[50vw] bg-white/5 blur-[150px]
   animate: x 0→-30→0, y 0→-40→0, scale 1→1.3→1, 20s */
.hero-glow--white-br {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: rgba(255, 255, 255, 0.05);
  --glow-blur: 150px;
  animation: glow-white-br 20s ease-in-out infinite;
}

/* top-[20%] left-[40%] w-[30vw] h-[30vw] bg-[#FF4E00]/10 blur-[100px]
   animate: x 0→-40→0, y 0→50→0, scale 1→1.4→1, 25s */
.hero-glow--orange-mid {
  top: 20%;
  left: 40%;
  width: 30vw;
  height: 30vw;
  background: rgba(255, 78, 0, 0.10);
  --glow-blur: 100px;
  animation: glow-orange-mid 25s ease-in-out infinite;
}

@keyframes glow-orange-tl {
  0% {
    transform: translate(0%, 0%) scale(1);
  }

  50% {
    transform: translate(50%, 30%) scale(1.2);
  }

  100% {
    transform: translate(0%, 0%) scale(1);
  }
}

@keyframes glow-white-br {
  0% {
    transform: translate(0%, 0%) scale(1);
  }

  50% {
    transform: translate(-30%, -40%) scale(1.3);
  }

  100% {
    transform: translate(0%, 0%) scale(1);
  }
}

@keyframes glow-orange-mid {
  0% {
    transform: translate(0%, 0%) scale(1);
  }

  50% {
    transform: translate(-40%, 50%) scale(1.4);
  }

  100% {
    transform: translate(0%, 0%) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Grain overlay
   bg-grain opacity-20 mix-blend-overlay z-10
   (grain SVG from index.css)
   -------------------------------------------------------------------------- */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.20;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   HUD Elements
   absolute top-32 left|right-12
   font-mono text-[10px] text-white/40 tracking-widest uppercase
   hidden md:block z-20
   -------------------------------------------------------------------------- */
.hero-hud {
  position: absolute;
  top: 8rem;
  /* top-32 */
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: none;
  z-index: 20;
  line-height: 1.6;
}

.hero-hud--left {
  left: 3rem;
}

/* md:left-12  */
.hero-hud--right {
  right: 3rem;
  text-align: right;
}

/* md:right-12 */

.hero-hud__line {
  margin-bottom: 0.25rem;
}

.hero-hud__accent {
  color: #FF4E00;
}

/* --------------------------------------------------------------------------
   Main content container
   relative z-20 max-w-7xl mx-auto px-6 w-full flex flex-col items-center text-center
   -------------------------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Badge
   overflow-hidden mb-4 md:mb-6
   font-mono text-[10px] md:text-sm text-[#FF4E00] tracking-[0.2em] uppercase
   px-4 py-2 rounded-full border border-[#FF4E00]/30 bg-[#FF4E00]/5 backdrop-blur-sm
   -------------------------------------------------------------------------- */
.hero-badge-wrap {
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-badge {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #FF4E00;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 78, 0, 0.30);
  background: rgba(255, 78, 0, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  /* entry animation — initial hidden state; Motion One will animate this in */
  opacity: 0;
  transform: translateY(100%);
}

/* --------------------------------------------------------------------------
   Headline wrappers
   -------------------------------------------------------------------------- */
.hero-h1-wrap {
  position: relative;
}

.hero-h1-wrap--mb {
  margin-bottom: 2rem;
}

/* Both h1s:
   font-sans text-[12vw] sm:[10vw] md:[8vw] lg:[7vw]
   font-bold leading-[1.1] tracking-tight pb-4
   -------------------------------------------------------------------------- */
.hero-h1 {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding-bottom: 1rem;
  margin: 0;
  font-size: clamp(3rem, 12vw, 7.5rem);
  /* 12vw → capped at ~7vw lg */

  /* entry animation initial state */
  opacity: 0;
  transform: translateY(40px);
}

/* Plain white: text-white */
.hero-h1--plain {
  color: #ffffff;
}

/* Gradient: text-transparent bg-clip-text bg-gradient-to-b from-white via-white/90 to-white/10 */
.hero-h1--gradient {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.90) 50%, rgba(255, 255, 255, 0.10) 100%);
}

.hero-accent {
  color: #FF4E00;
}

/* --------------------------------------------------------------------------
   Body paragraph + CTAs
   -------------------------------------------------------------------------- */
.hero-body {
  opacity: 0;
  transform: scale(0.95);
}

.hero-body__text {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.60);
  max-width: 42rem;
  line-height: 1.75;
  margin: 0 auto 2.5rem auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Base button */
.hero-btn {
  display: inline-block;
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  gap: 10px;
  align-content: center;
  align-items: center;
  justify-content: center;
}

/* Primary: bg-[#FF4E00] text-white hover:bg-white hover:text-black */
.hero-btn--primary {
  background-color: #FF4E00;
  color: #ffffff;
}

.hero-btn--primary:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Ghost: border border-white/20 text-white hover:bg-white/10 */
.hero-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

.hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Scrolling Marquee
   absolute bottom-0 w-full border-t border-white/5 py-4
   bg-black/40 backdrop-blur-md z-20
   -------------------------------------------------------------------------- */
.hero-marquee-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

.hero-marquee__track {
  display: flex;
  white-space: nowrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.30);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* animate x 0% → -50%, 25s linear infinite */
  animation: marquee 25s linear infinite;
}

.hero-marquee__item {
  margin: 0 1.5rem;
  /* mx-6 */
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Custom Cursor
   absolute top-0 left-0 pointer-events-none z-50
   mix-blend-difference
   -------------------------------------------------------------------------- */
.hero-cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  /* shown via JS on mousemove */
  will-change: transform;
  /* JS moves with translate(x,y) */
}

.hero-cursor__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
  /* Centre the cursor on the pointer */
  transform: translate(-50%, -50%);
}

/* Dot: w-3 h-3 bg-white rounded-full */
.hero-cursor__dot {
  width: 0.75rem;
  height: 0.75rem;
  background: #ffffff;
  border-radius: 9999px;
}

/* Ring: absolute w-12 h-12 border border-white/40 rounded-full animate pulse */
.hero-cursor__ring {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 9999px;
  animation: cursor-pulse 2s ease-in-out infinite;
}

@keyframes cursor-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* =============================================================================
   Responsive
   ============================================================================= */

/* ≥ 48rem (md) — reveal HUD, adjust badge, body text */
@media (min-width: 48rem) {
  .hero-hud {
    display: block;
  }

  .hero-badge-wrap {
    margin-bottom: 1.5rem;
  }

  .hero-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .hero-body__text {
    font-size: 1.25rem;
  }

  .hero-h1-wrap--mb {
    margin-bottom: 2.5rem;
  }
}

/* ≥ 40rem (sm) — side-by-side CTAs */
@media (min-width: 40rem) {
  .hero-ctas {
    flex-direction: row;
  }

  .hero-btn {
    width: auto;
  }
}

/* max width 767px */
@media (max-width: 767px) {
  .hero-block {
    position: relative;
    min-height: calc(100svh - 10rem);

  }

}