/* ============================================================
   VirtueleWereld — Hero Section
   ============================================================ */

.hero {
  height: 100dvh;
  padding: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .hero { padding: 1.5rem; }
}

.hero__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}

.hero__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

/* Background video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Gradient overlay */
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    transparent 40%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Noise on top of video */
.hero__noise {
  z-index: 3;
}

/* ---- Navbar ---- */
.hero__nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0.6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__nav { padding: 0.75rem 2rem; }
}

.hero__nav-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hero__nav-logo img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.hero__nav-logo-text {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero__nav-logo img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .hero__nav-logo-text {
    font-size: 0.7rem;
  }
}

.hero__nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  justify-self: center;
}

@media (min-width: 1024px) {
  .hero__nav-links { gap: 3.5rem; }
}

.hero__nav-links a {
  font-size: 0.7rem;
  font-weight: var(--fw-regular);
  color: rgba(232, 230, 212, 0.75);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}

.hero__nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}

.hero__nav-links a:hover::after {
  width: 100%;
}

.hero__nav-links a:hover {
  color: var(--color-text);
}

/* Context override — CTA in nav bar */
.hero__nav > .hero__cta {
  justify-self: end;
  opacity: 1;
  animation: none;
  color: var(--color-bg);
  font-weight: var(--fw-bold);
  font-size: 0.8rem;
  letter-spacing: normal;
}

@media (min-width: 768px) {
  .hero__nav > .hero__cta { font-size: 0.875rem; }
}

.hero__nav > .hero__cta:hover {
  color: var(--color-bg);
}

@media (min-width: 768px) {
  .hero__nav-links a { font-size: 0.8rem; }
}
@media (min-width: 1024px) {
  .hero__nav-links a { font-size: 0.875rem; }
}

@media (max-width: 767px) {
  .hero__nav-logo-text { display: none; }
}

/* ---- Hamburger / Mobile nav ---- */

/* Desktop guard: make panel transparent to grid so nav-links sits in center column as before */
@media (min-width: 1024px) {
  .hero__nav-panel        { display: contents; }
  .hero__nav-panel-overlay,
  .hero__nav-panel-close,
  .hero__nav-toggle       { display: none; }
}

/* Responsive (<1024px) */
@media (max-width: 1023px) {
  /* Nav bar: logo | toggle | cta */
  .hero__nav {
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
  }

  /* Hamburger button */
  .hero__nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 0;
    flex-shrink: 0;
    justify-self: end;
  }

  /* Full-screen panel (closed) */
  .hero__nav-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
  }

  /* Black overlay that slides down from top */
  .hero__nav-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--color-bg);
    transition: height 0.45s var(--ease-out-expo);
  }

  /* Links inside overlay */
  .hero__nav-links {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    pointer-events: none;
    justify-self: unset;
  }

  .hero__nav-links a {
    font-size: 2.25rem;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    letter-spacing: -0.02em;
    opacity: 0;
  }

  /* Disable desktop underline in overlay */
  .hero__nav-links a::after {
    display: none;
  }

  /* Close (X) button — top-right, matches nav padding */
  .hero__nav-panel-close {
    position: absolute;
    top: 0.6rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1;
  }

  /* Open state */
  .hero__nav.is-open .hero__nav-panel {
    pointer-events: auto;
  }

  .hero__nav.is-open .hero__nav-panel-overlay {
    height: 100vh;
  }

  .hero__nav.is-open .hero__nav-panel-close {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.4s;
  }

  .hero__nav.is-open .hero__nav-links {
    pointer-events: auto;
  }

  .hero__nav.is-open .hero__nav-links a {
    animation: fadeIn 0.5s var(--ease-out-expo) forwards;
    animation-delay: calc(0.35s + var(--nav-stagger, 0) * 0.09s);
  }
}

/* Scroll lock when nav is open */
body.nav-open { overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__nav-panel-overlay {
    transition: none;
  }
  .hero__nav.is-open .hero__nav-links a {
    animation: none;
    opacity: 1;
  }
  .hero__nav.is-open .hero__nav-panel-close {
    transition: none;
    transition-delay: 0s;
    opacity: 1;
  }
}

/* ---- Hero Content ---- */
.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .hero__content { padding: 0 2rem 2rem; gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .hero__content { gap: 4rem; }
}

.hero__heading-col {
  grid-column: 1 / 7;
}

.hero__aside-col {
  grid-column: 9 / 13;
  padding-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .hero__heading-col { grid-column: 1 / 13; }
  .hero__aside-col   { display: none; }
}

/* Giant heading */
.hero__heading {
  font-size: min(12vw, 6rem);
  font-weight: var(--fw-bold);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  color: var(--color-text);
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.15em;
  position: relative;
}

@media (min-width: 480px)  { .hero__heading { font-size: min(14vw, 6rem); } }
@media (min-width: 768px)  { .hero__heading { font-size: min(13vw, 6rem); } }
@media (min-width: 1024px) { .hero__heading { font-size: min(11vw, 6rem); } }
@media (min-width: 1280px) { .hero__heading { font-size: min(10vw, 6rem); } }
@media (min-width: 1536px) { .hero__heading { font-size: min(9vw,  6rem); } }

.hero__heading .word-inner { animation-fill-mode: both; }
.hero__heading .word-inner:nth-child(1) { animation-delay: 0.05s; }
.hero__heading .word-inner:nth-child(2) { animation-delay: 0.13s; }
.hero__heading .word-inner:nth-child(3) { animation-delay: 0.21s; }

/* Superscript star on "Virtueel" */
.hero__heading sup {
  position: absolute;
  font-size: 0.28em;
  top: 0.62em;
  right: -0.28em;
  color: var(--color-accent);
  font-weight: var(--fw-regular);
}

/* Tagline */
.hero__tagline {
  font-size: 0.75rem;
  font-weight: var(--fw-light);
  color: var(--color-text);
  line-height: 1.55;
  opacity: 0;
  animation: fadeIn 0.7s var(--ease-out-expo) 0.5s forwards;
}

@media (min-width: 768px)  { .hero__tagline { font-size: 0.875rem; } }
@media (min-width: 1024px) { .hero__tagline { font-size: 1rem; } }

/* Stats row */
.hero__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  font-size: 0.875rem;
  opacity: 0;
  animation: fadeIn 0.7s var(--ease-out-expo) 0.65s forwards;
}

@media (min-width: 768px)  { .hero__stats { font-size: 1rem; } }
@media (min-width: 1024px) { .hero__stats { font-size: 1.125rem; } }

.hero__stats .stat-num {
  color: var(--color-text);
  font-weight: var(--fw-bold);
  font-size: 1.1em;
}

.hero__stats .stat-label {
  color: var(--color-text-muted);
  font-weight: var(--fw-light);
}

.hero__stats .stat-sep {
  color: rgba(232, 230, 212, 0.2);
  margin: 0 0.1rem;
}

/* Scroll hint */
@media (max-width: 767px) {
  .hero__scroll-hint { display: none; }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 0rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out-expo) 1.3s forwards;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__scroll-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(232, 230, 212, 0.35);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  user-select: none;
}


.hero__scroll-line {
  display: block;
  width: 1px;
  height: 3.25rem;
  background: rgba(232, 230, 212, 0.15);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(232, 230, 212, 0.9));
  animation: scrollDrop 2s ease-in-out 1.5s infinite;
}

@keyframes scrollDrop {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 0.7; }
  100% { transform: translateY(300%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint { animation: none; opacity: 0.5; }
  .hero__scroll-line::after { animation: none; top: 30%; opacity: 0.6; }
}

/* Google badge */
.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  font-weight: var(--fw-regular);
  opacity: 0;
  animation: fadeIn 0.6s ease 1s forwards;
}

.hero__badge-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
