/* ==========================================================================
   Cyber Ronin // Neural Edges - Stylesheet
   ========================================================================== */

:root {
  --cream: #121214;
  --muted: rgba(20, 20, 24, 0.72);
  --label: rgba(20, 20, 24, 0.50);
  --orange: #E07020;
  --card: rgba(10, 8, 7, 0.58);
  --hero-img-size: auto 75%;
  --hero-img1-size: auto 75%;
  --hero-img2-size: auto 75%;
  --smart-shift-x: 1in;
  --home-shift-x: -1in;
  --hero-bg: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F5F7FA 35%, #E9EDF2 70%, #DEE2E8 100%);
}

.hero *,
.hero *::before,
.hero *::after {
  box-sizing: border-box;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--cream);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero h1,
.hero h2,
.hero h3,
.hero .heading-font {
  font-family: 'Orbitron-Medium', 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-base-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: var(--hero-img1-size, var(--hero-img-size, auto 75%));
  background-repeat: no-repeat;
  background-position: center center;
}

.hero-reveal-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-size: var(--hero-img2-size, var(--hero-img-size, auto 75%));
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-mask-image: radial-gradient(circle 0px at -999px -999px, #fff, transparent);
  mask-image: radial-gradient(circle 0px at -999px -999px, #fff, transparent);
}

/* ==========================================================================
/* ==========================================================================
   Hero UI Overlay (Flanking Layout Around Central Image)
   ========================================================================== */

.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr min(460px, 42vw) 1fr;
  align-items: center;
  padding: 84px clamp(16px, 3vw, 48px) 40px;
  pointer-events: none;
}

.hero-side {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 9;
}

.hero-side-left {
  grid-column: 1;
  justify-self: center;
  position: relative;
  left: var(--smart-shift-x, 1in);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-side-right {
  grid-column: 3;
  justify-self: center;
  position: relative;
  left: var(--home-shift-x, -1in);
}

.hero-title-part {
  font-family: 'Orbitron-Medium', 'Arial Narrow', sans-serif;
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  margin: 0;
  letter-spacing: 0.04em;
  display: inline-block;
  white-space: nowrap;
}

.pull-line {
  display: block;
}

.hero-side-left p {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  transform: none;
  width: max-content;
  max-width: 320px;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  text-align: left;
}

/* Visibility Utilities for Hero Desktop vs Mobile */
.hero-mobile-only {
  display: none !important;
}

/* Icon Buttons (Scoped to Hero) */
.hero .icon-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 24, 0.25);
  background: transparent;
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.hero .icon-btn:hover {
  background: rgba(20, 20, 24, 0.08);
  border-color: var(--cream);
}

/* ==========================================================================
   Hero Product Card (Scoped to .hero only)
   ========================================================================== */

.hero .product-card {
  position: relative;
  pointer-events: auto;
  width: min(320px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(20, 20, 24, 0.15);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 0;
}

.hero .product-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  border-radius: 18px;
}

/* ==========================================================================
   Page Number Indicator
   ========================================================================== */

.hero-page {
  position: absolute;
  top: 84px;
  right: 44px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(20, 20, 24, 0.65);
  pointer-events: auto;
}

/* ==========================================================================
   Specs Section (Scoped to .hero)
   ========================================================================== */

.hero .specs {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  pointer-events: auto;
  width: min(340px, 100%);
}

.hero .specs h3 {
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.12em;
  margin-top: 0;
  color: var(--cream);
}

.hero .spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
}

.hero .spec-row + .spec-row {
  border-top: 1px solid rgba(20, 20, 24, 0.10);
}

.hero .spec-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}

.hero .spec-value {
  font-size: 12.5px;
  color: var(--cream);
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(1.18);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-image-animate {
  opacity: 0;
  animation: heroImageIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.15s;
}

@keyframes wordPullUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pull-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.pull-word:not(:last-child) {
  margin-right: 0.3em;
}

.words-visible .pull-word {
  animation: wordPullUp 0.55s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.fade-up-reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
}

.fade-up-reveal.is-visible {
  animation: fadeUp 0.7s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-image-animate,
  .pull-word,
  .fade-up-reveal,
  .words-visible .pull-word,
  .fade-up-reveal.is-visible {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .hero-ui {
    grid-template-columns: 1fr min(360px, 42vw) 1fr;
    padding: 84px 16px 32px;
  }
  .hero-title-part {
    font-size: clamp(2rem, 5.2vw, 3.8rem);
  }
}

@media (max-width: 720px) {
  .hero-desktop-only {
    display: none !important;
  }
  .hero-mobile-only {
    display: flex !important;
  }

  .hero-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: max(86px, 12vh) 20px 24px;
    pointer-events: none;
  }

  .hero-mobile-header {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    width: 100%;
    max-width: 380px;
  }

  .hero-mobile-title {
    font-family: 'Orbitron-Medium', 'Arial Narrow', sans-serif;
    font-size: clamp(1.65rem, 7.8vw, 2.45rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--cream);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    margin: 0;
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: block;
  }

  .hero-mobile-title .pull-line {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.32em;
    white-space: nowrap;
  }

  .hero-mobile-header p {
    margin-top: 10px;
    max-width: 280px;
    font-size: clamp(12.5px, 3.4vw, 14.5px);
    font-weight: 400;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
    margin-bottom: 0;
  }

  /* Center character image proportionally below the title on mobile */
  .hero-base-img,
  .hero-reveal-img {
    background-size: auto 60% !important;
    background-position: center 76% !important;
  }
}

@media (max-width: 480px) {
  .hero-ui {
    padding-top: max(80px, 11vh);
  }
  .hero-mobile-title {
    font-size: clamp(1.4rem, 8vw, 1.95rem);
  }
  .hero-mobile-title .pull-line {
    gap: 0.28em;
  }
  .hero-base-img,
  .hero-reveal-img {
    background-size: auto 58% !important;
    background-position: center 78% !important;
  }
}
