/* ===== Tokens ===== */
:root {
  --bg-black: #050505;
  --bg-dark: #0a0a0a;
  --bg-panel: #151515;
  --text-light: #e6e1d8;
  --gold-dark: #8b5a10;
  --gold-mid: #c28a24;
  --gold-bright: #d29b31;
  --gold-deep: #9a6515;
  --gold-border: #a66d12;
  --cta-bg: rgba(8, 8, 8, 0.72);
  --max-content: 500px;
  --side-padding: clamp(10px, 3vw, 14px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  font-family: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  color: var(--text-light);
  background: var(--bg-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Full-viewport cinematic background ===== */
.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-black);
  background-image: url("assets/hero-bg.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, transparent 35%, rgba(5, 5, 5, 0.55) 100%),
    radial-gradient(ellipse 90% 60% at 50% 50%, transparent 20%, rgba(5, 5, 5, 0.35) 100%),
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.92) 0%,
      rgba(5, 5, 5, 0.78) 18%,
      rgba(5, 5, 5, 0.42) 38%,
      rgba(5, 5, 5, 0.35) 52%,
      rgba(5, 5, 5, 0.48) 72%,
      rgba(5, 5, 5, 0.65) 100%
    );
}

/* ===== Hero content ===== */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  padding:
    max(clamp(56px, 14vh, 120px), var(--safe-top))
    var(--side-padding)
    max(16px, var(--safe-bottom));
}

.hero__poster {
  width: 100%;
  max-width: var(--max-content);
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

/* ===== Unified headline block ===== */
.hero-title {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  text-align: center;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow: visible;
}

.hero-title__line {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 1;
  padding-top: 0.08em;
  padding-bottom: 0.05em;
  margin-bottom: -0.06em;
  overflow: visible;
  text-align: center;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-title__line--main {
  font-size: clamp(90px, 26vw, 120px);
  font-weight: 400;
  background: linear-gradient(
    180deg,
    #f0ebe3 0%,
    #e6e1d8 42%,
    #c8c2b8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85))
          drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}

.hero-title__line--wide {
  font-size: clamp(42px, 11.5vw, 60px);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.05;
  padding-top: 0.1em;
  padding-bottom: 0.06em;
  margin-bottom: -0.08em;
  background: linear-gradient(
    180deg,
    #f0ebe3 0%,
    #e6e1d8 42%,
    #c8c2b8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85))
          drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}

.hero-title__line--gold {
  font-size: clamp(68px, 18vw, 90px);
  font-weight: 400;
  line-height: 1;
  background: linear-gradient(
    180deg,
    #7b4d08 0%,
    #d39b28 46%,
    #a56b0f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8))
          drop-shadow(0 0 16px rgba(163, 107, 15, 0.22));
}

.hero-title__line--gold-first {
  margin-top: clamp(4px, 0.8vh, 8px);
}

/* ===== CTA buttons ===== */
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.5vw, 16px);
  width: calc(100% - 32px);
  max-width: 390px;
  margin-top: clamp(16px, 2vh, 24px);
  margin-left: auto;
  margin-right: auto;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-height: clamp(72px, 10vw, 80px);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--gold-border);
  background:
    linear-gradient(
      180deg,
      rgba(21, 21, 21, 0.35) 0%,
      rgba(8, 8, 8, 0.15) 100%
    ),
    var(--cta-bg);
  box-shadow:
    inset 0 1px 0 rgba(210, 155, 49, 0.12),
    inset 0 0 18px rgba(166, 109, 18, 0.08),
    0 0 14px rgba(166, 109, 18, 0.12);
  color: var(--gold-mid);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold-bright);
}

.cta__text {
  font-family: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  font-size: clamp(17px, 4.6vw, 20px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.cta:hover {
  border-color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(210, 155, 49, 0.18),
    inset 0 0 22px rgba(166, 109, 18, 0.12),
    0 0 20px rgba(166, 109, 18, 0.2);
}

.cta:active {
  transform: scale(0.985);
}

.cta:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ===== Narrow / short viewport tuning ===== */
@media (max-width: 360px) {
  .hero-title__line--wide {
    font-size: clamp(38px, 11vw, 48px);
    letter-spacing: 0.015em;
  }
}

@media (max-height: 740px) {
  .hero {
    padding-top: max(clamp(40px, 10vh, 80px), var(--safe-top));
  }

  .hero-title__line--main {
    font-size: clamp(84px, 25vw, 108px);
  }

  .hero-title__line--wide {
    font-size: clamp(40px, 11.2vw, 54px);
  }

  .hero-title__line--gold {
    font-size: clamp(62px, 17vw, 82px);
  }

  .cta {
    min-height: 72px;
    padding: 12px 16px;
  }
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
  .page__bg {
    background-position: center center;
  }

  .hero-title__line--main {
    font-size: 120px;
  }

  .hero-title__line--wide {
    font-size: 60px;
  }

  .hero-title__line--gold {
    font-size: 90px;
  }

  .cta {
    min-height: 80px;
  }

  .cta__text {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
