/* ==========================================================================
   napokonsvoj — premium dark editorial one-pager
   ========================================================================== */

:root {
  --color-bg: #0a0908;
  --color-bg-alt: #121110;
  --color-bg-alt-2: #0e0d0c;
  --color-text: #ece3d4;
  --color-text-muted: #b3a690;
  --color-text-faint: #8a7f6d;
  --color-gold: #c9a668;
  --color-gold-bright: #e3c48a;
  --color-border: rgba(201, 166, 104, 0.16);
  --color-border-strong: rgba(201, 166, 104, 0.32);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Segoe UI", Arial, sans-serif;

  --container-max: 1080px;
  --container-narrow-max: 700px;

  --space-section: 9rem;
  --space-section-mobile: 5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin: 0 0 1.2rem;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 6vw;
}

.container-narrow {
  max-width: var(--container-narrow-max);
}

.center {
  text-align: center;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem 0;
  transition: background-color 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}

.site-header.scrolled {
  background-color: rgba(10, 9, 8, 0.86);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-bright), #a9803f);
  color: #16130f;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(201, 166, 104, 0.45);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(236, 227, 212, 0.3);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-gold-bright);
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
}

.btn-ghost:hover {
  border-color: var(--color-gold);
  background: rgba(201, 166, 104, 0.08);
}

.btn-large {
  padding: 1.15rem 2.6rem;
  font-size: 1rem;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/hero-portal-warrior.png");
  background-image: image-set(
    url("assets/hero-portal-warrior.webp") type("image/webp"),
    url("assets/hero-portal-warrior.png") type("image/png")
  );
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: 62% center;
  animation: heroZoom 46s ease-out forwards;
  will-change: transform;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

/* Golden glow localized around the portal figure — static box,
   opacity-only "breathing" so it never competes with the zoom or the text.
   z-index is explicit (2), above the overlay (1) and below the text (3),
   so it doesn't depend on paint-order tie-breaking between the overlay and this pseudo-element.
   Two gradient layers give it depth: a tight, brighter core (as if the light
   is concentrated at the portal itself) plus a wider, softer ambient wash
   around it — rather than one flat halo. Same box, same position, same animation. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 7%;
  top: 17%;
  width: 32%;
  height: 40%;
  background-image:
    radial-gradient(
      ellipse at center,
      rgba(255, 244, 219, 0.95) 0%,
      rgba(255, 226, 173, 0.55) 30%,
      rgba(255, 226, 173, 0) 68%
    ),
    radial-gradient(
      ellipse at center,
      rgba(227, 196, 138, 0.4) 0%,
      rgba(227, 196, 138, 0.16) 45%,
      rgba(227, 196, 138, 0) 78%
    );
  background-size: 55% 55%, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0.85;
  animation: heroGlowBreathe 9s ease-in-out infinite;
  pointer-events: none;
  will-change: opacity;
}

@keyframes heroGlowBreathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 7, 6, 0.97) 0%,
    rgba(8, 7, 6, 0.88) 30%,
    rgba(8, 7, 6, 0.5) 54%,
    rgba(8, 7, 6, 0.08) 74%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  padding: 0 6vw;
  padding-top: 4rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.6rem;
}

.eyebrow-short {
  display: none;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw + 1rem, 3.4rem);
  line-height: 1.22;
  margin-bottom: 1.8rem;
  color: #f4ecdf;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 0 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 6vw;
  z-index: 2;
  width: 1px;
  height: 52px;
  background: rgba(236, 227, 212, 0.25);
  overflow: hidden;
}

.scroll-cue span {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-gold));
  animation: scrollCue 2.6s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-section) 0;
  background: var(--color-bg);
  scroll-margin-top: 90px;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 2.2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 1px;
  background: var(--color-border-strong);
}

.section-label.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.prose p {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  margin: 0 0 1.3rem;
}

.prose-emphasis {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-gold-bright);
  line-height: 1.5;
  margin-top: 2rem !important;
}

.benefit-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.benefit-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.3rem;
  font-size: 1.08rem;
  color: var(--color-text-muted);
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 9px;
  height: 1px;
  background: var(--color-gold);
}

.plain-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.plain-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.9rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-text-faint);
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}

.price-card {
  border: 1px solid var(--color-border);
  padding: 2.6rem 2.2rem;
  position: relative;
  background: rgba(236, 227, 212, 0.015);
}

.price-card-featured {
  border-color: var(--color-border-strong);
  background: rgba(201, 166, 104, 0.05);
}

.price-tag {
  position: absolute;
  top: -0.75rem;
  left: 2.2rem;
  background: var(--color-bg-alt);
  color: var(--color-gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--color-border-strong);
}

.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price-meta {
  font-size: 0.88rem;
  color: var(--color-text-faint);
  margin-bottom: 1.2rem;
}

.price {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--color-gold-bright);
  margin: 0 0 1.2rem;
}

.price-desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin: 0;
}

.price-inline {
  font-size: 1.8rem;
  margin: 0.5rem 0 1.6rem;
}

.center-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- Application form ---------- */

.application-form {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-row label,
.form-label-block {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  background: rgba(236, 227, 212, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-row textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--color-text-faint);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(201, 166, 104, 0.04);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
  font-size: 0.96rem;
  color: var(--color-text-muted);
}

.radio-option:hover {
  border-color: var(--color-border-strong);
}

.radio-option input[type="radio"] {
  accent-color: var(--color-gold);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.radio-option.is-selected {
  border-color: var(--color-gold);
  background: rgba(201, 166, 104, 0.06);
  color: var(--color-text);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.form-checkbox input[type="checkbox"] {
  accent-color: var(--color-gold);
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.form-submit {
  align-self: center;
  margin-top: 0.6rem;
}

.form-error {
  color: #d98c7a;
  font-size: 0.9rem;
  text-align: center;
  margin-top: -0.6rem;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.form-success {
  margin-top: 3rem;
}

.form-privacy-note {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-faint);
  margin: -0.6rem 0 0;
}

/* ---------- Product sections ---------- */

.product-section .btn {
  margin-top: 1rem;
}

.coming-soon {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.6rem;
}

/* ---------- Split image / text layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-text .section-label {
  margin-bottom: 1.6rem;
}

.split-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* "Tko sam ja" reads as one connected composition, so the portrait
   sits noticeably closer to the bio text than the other split sections.
   Desktop only — mobile stacking already uses its own gap. */
@media (min-width: 861px) {
  #o-meni .split {
    gap: 1.75rem;
  }
}

/* ---------- Media frame (shared image treatment) ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-alt-2);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-tall {
  aspect-ratio: 4 / 5;
  max-width: 420px;
}

.media-portrait {
  aspect-ratio: 1 / 2;
  max-width: 300px;
}

.media-cover {
  aspect-ratio: 1055 / 1491;
}

/* ---------- Portrait treatment (Tko sam ja) ---------- */
/* marko-portrait-editorial.png already arrives dark/gold-graded,
   so only a light blend into the section is needed here. */

.portrait-frame img {
  object-position: center center;
  filter: contrast(1.04) brightness(0.96) saturate(0.96);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 75% at 50% 42%,
    rgba(10, 9, 8, 0) 0%,
    rgba(10, 9, 8, 0.18) 72%,
    rgba(10, 9, 8, 0.42) 100%
  );
}

.portrait-caption {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-align: center;
}

/* ---------- Book / guide product composition ---------- */

.book-media {
  gap: 1.6rem;
}

.book-cover {
  width: 74%;
  max-width: 300px;
}

.book-previews {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  width: 100%;
}

.book-preview {
  width: 38%;
  max-width: 145px;
  transition: transform 0.6s ease;
}

.book-preview-1 {
  transform: rotate(-3deg);
}

.book-preview-2 {
  transform: rotate(3deg);
}

.book-media:hover .book-preview-1 {
  transform: rotate(-1deg) translateY(-4px);
}

.book-media:hover .book-preview-2 {
  transform: rotate(1deg) translateY(-4px);
}

/* ---------- Lightbox trigger affordance ---------- */

.lightbox-trigger {
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: block;
  text-align: left;
}

.lightbox-trigger::after {
  content: "+";
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: rgba(10, 9, 8, 0.6);
  color: var(--color-gold-bright);
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox-trigger:hover::after,
.lightbox-trigger:focus-visible::after {
  opacity: 1;
  transform: scale(1.08);
}

.book-preview.lightbox-trigger::after {
  width: 1.3rem;
  height: 1.3rem;
  font-size: 0.85rem;
  bottom: 0.4rem;
  right: 0.4rem;
}

/* ---------- Lightbox modal ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 5, 4, 0.93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  padding: 2rem;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.lightbox-stage {
  position: relative;
  max-width: min(90vw, 720px);
  max-height: 88vh;
  display: flex;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.lightbox.is-open .lightbox-stage img {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.55);
  border: 1px solid var(--color-border-strong);
  color: var(--color-gold-bright);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(201, 166, 104, 0.2);
}

.lightbox-close {
  top: 1.6rem;
  right: 1.6rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.6rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.7rem;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: 1.6rem;
}

.lightbox-next {
  right: 1.6rem;
}

/* ---------- Final CTA ---------- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding-bottom: 10rem;
  background: var(--color-bg-alt-2);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 166, 104, 0.07), transparent 60%),
    radial-gradient(
      ellipse 90% 75% at 50% 42%,
      rgba(10, 9, 8, 0.6) 0%,
      rgba(10, 9, 8, 0.9) 60%,
      rgba(10, 9, 8, 0.98) 100%
    );
}

.final-cta-art {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(38%, 420px);
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
  z-index: 0;
}

.final-cta-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) brightness(0.85);
  display: block;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.8rem);
  margin-bottom: 1.6rem;
}

.final-cta .prose-emphasis {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn {
  margin-top: 2.4rem;
}

.final-line {
  margin-top: 2.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 4.5rem 0 2.4rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-faint);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 320px;
  margin: 0;
}

.footer-heading {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 1.2rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-gold-bright);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-faint);
  max-width: 640px;
  margin: 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--color-text-faint);
  margin: 0;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero-content .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.16s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.27s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.38s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.49s; }
.hero-content .reveal:nth-child(6) { transition-delay: 0.6s; }
.hero-content .reveal:nth-child(7) { transition-delay: 0.71s; }
.hero-content .reveal:nth-child(8) { transition-delay: 0.82s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue span {
    animation: none;
  }
  .hero::before {
    animation: none;
  }
  .hero::after {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive — mobile-first hero rework
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --space-section: 3.75rem;
  }

  body {
    line-height: 1.6;
  }

  /* -- Header: lighter, slimmer, less dominant -- */
  .site-header {
    padding: 0.9rem 0;
  }

  .site-header.scrolled {
    padding: 0.65rem 0;
    backdrop-filter: blur(8px);
  }

  .header-inner {
    padding: 0 5.5vw;
  }

  .logo {
    font-size: 1.08rem;
  }

  .btn-ghost {
    font-size: 0.76rem;
    padding: 0.45rem 1rem;
    border-color: rgba(201, 166, 104, 0.22);
  }

  .section {
    scroll-margin-top: 84px;
    padding-top: calc(var(--space-section) + 1.1rem);
    padding-bottom: var(--space-section);
  }

  /* -- Hero -- */
  .hero {
    align-items: flex-end;
  }

  .hero::before {
    /* 62% left the portal cropped off-screen on narrow phones (verified:
       it landed past 100% of viewport width). 83% brings it back into
       view around 60-63% across the frame, consistent from 375px-428px. */
    background-position: 83% center;
    /* Zoom stays off on mobile: shorter viewport, tighter crop already,
       and one less continuous animation running on constrained devices. */
    animation: none;
  }

  .hero::after {
    /* Glow box was positioned for the desktop "right center" crop;
       simplest and safest is to turn it off where the crop differs. */
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 7, 6, 0.25) 0%,
      rgba(8, 7, 6, 0.55) 40%,
      rgba(8, 7, 6, 0.93) 72%,
      rgba(8, 7, 6, 1) 100%
    );
  }

  .hero-content {
    max-width: 100%;
    padding: 0 6vw;
    padding-top: 5.5rem;
    padding-bottom: 2.6rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    margin-bottom: 1rem;
  }

  .eyebrow-full {
    display: none;
  }

  .eyebrow-short {
    display: inline;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.28;
    margin-bottom: 1.1rem;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 100%;
    margin-bottom: 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-top: 1.6rem;
  }

  .hero-actions .btn {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .scroll-cue {
    display: none;
  }

  /* -- Typography rhythm -- */
  .section-label {
    margin-bottom: 1.7rem;
  }

  .prose p {
    font-size: 0.99rem;
    line-height: 1.62;
    margin-bottom: 1.05rem;
  }

  .prose-emphasis {
    font-size: 1.18rem;
    line-height: 1.5;
    margin-top: 1.6rem !important;
  }

  .benefit-list li,
  .plain-list li {
    font-size: 0.99rem;
    margin-bottom: 1.05rem;
  }

  .plain-list li {
    margin-bottom: 0.8rem;
  }

  /* -- Split image / text sections -- */
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-media {
    order: -1;
  }

  .media-tall,
  .media-portrait {
    max-width: 320px;
    margin: 0 auto;
  }

  .book-cover {
    max-width: 220px;
  }

  .book-preview {
    max-width: 105px;
  }

  /* -- Pricing cards -- */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: 2.2rem;
  }

  .price-card {
    padding: 2.2rem 1.6rem;
  }

  .price-tag {
    left: 1.6rem;
    font-size: 0.68rem;
  }

  .center-cta {
    margin-top: 2.2rem;
  }

  /* -- Final CTA -- */
  .final-cta {
    padding-bottom: 5rem;
  }

  .final-cta-art {
    display: none;
  }

  .final-cta .btn {
    margin-top: 2rem;
  }

  .final-line {
    margin-top: 2rem;
  }

  /* -- Footer -- */
  .site-footer {
    padding: 3.2rem 0 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-bottom {
    margin-top: 0.6rem;
    padding-top: 2.2rem;
    gap: 0.8rem;
  }

  /* -- Lightbox -- */
  .lightbox {
    padding: 1.2rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.4rem;
  }

  .lightbox-nav {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 0.6rem;
  }

  .lightbox-next {
    right: 0.6rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-section: 3rem;
  }

  .container,
  .header-inner {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.26;
  }

  .btn {
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
  }

  .price {
    font-size: 2rem;
  }

  .price-card {
    padding: 1.9rem 1.3rem;
  }

  .price-tag {
    left: 1.3rem;
  }

  .final-cta {
    padding-bottom: 4rem;
  }
}

/* ── Header actions + "Zanima me knjiga" nav button ─────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-book-nav {
  background: linear-gradient(135deg, var(--color-gold-bright), #a9803f);
  color: #16130f;
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
}

.btn-book-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(201, 166, 104, 0.45);
}

/* ── Guide waitlist form (book interest capture) ────────────────── */
.book-waitlist {
  margin-top: 1.8rem;
  max-width: 460px;
}

.book-waitlist-label {
  display: block;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.book-waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.book-waitlist-row input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
}

.book-waitlist-row input[type="email"]::placeholder {
  color: var(--color-text-faint);
}

.book-waitlist-row input[type="email"]:focus {
  outline: none;
  border-color: var(--color-gold);
}

.book-waitlist-submit {
  flex: 0 0 auto;
  white-space: nowrap;
}

.book-waitlist-note {
  font-family: var(--font-sans);
  color: var(--color-text-faint);
  font-size: 0.82rem;
  margin-top: 0.7rem;
}

.book-waitlist-success {
  margin-top: 1.8rem;
}

@media (max-width: 600px) {
  .btn-book-nav {
    font-size: 0.76rem;
    padding: 0.45rem 1rem;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .book-waitlist-submit {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .header-actions .btn-ghost {
    display: none;
  }
}
