/* =========================================================
   Hero su spalvos atidengimo efektu
   Sluoksniai (z-index): base img (1) → canvas (2) → scrim (3) → content (4)
   ========================================================= */

:root {
  --hero-min-height: 600px;
  --color-text: #f5f4f7;
  --color-accent: #b26bd4;
  --color-accent-hover: #c98ae6;
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-stack);
  background: #060608;
  color: var(--color-text);
}

/* ---------- Hero konteineris ---------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* mobiliems – be adreso juostos šuolių */
  min-height: var(--hero-min-height);
  overflow: hidden;
}

/* ---------- Apatinis spalvotas sluoksnis ---------- */

.hero__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ---------- Judantis spalvotas video sluoksnis (video variantas) ---------- */

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

/* ---------- Canvas (grayscale) sluoksnis ---------- */

.hero__reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  /* pan-y: vertikalus swipe scrollina puslapį, horizontalus – piešia.
     Taip mobilus naudotojas nelieka „įkalintas" 100vh sekcijoje. */
  touch-action: pan-y;
}

/* ---------- Kontrasto gradientas tekstui ---------- */

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(4, 4, 8, 0.72) 0%,
    rgba(4, 4, 8, 0.25) 35%,
    rgba(4, 4, 8, 0) 60%
  );
}

/* ---------- Turinys ---------- */

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  max-width: 100%;
  /* Turinio sluoksnis nepraleidžia pelės į canvas tik ant interaktyvių
     elementų — visur kitur efektas veikia „pro" tekstą. */
  pointer-events: none;
}

.hero__content a,
.hero__content button {
  pointer-events: auto;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  max-width: 46ch;
  color: rgba(245, 244, 247, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero__cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.hero__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Reduced motion: statiškas spalvotas vaizdas ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__reveal,
  .hero__video {
    display: none;
  }
}

/* ---------- Demo blokas po hero ---------- */

.page-body {
  min-height: 60vh;
  padding: clamp(2rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
