@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black: #000000;
  --black-soft: #080808;
  --black-card: #0e0e0e;
  --gold: #C9A84C;
  --gold-dark: #A88730;
  --gold-light: #E8CC87;
  --gold-glow: rgba(201,168,76,0.18);
  --white: #FFFFFF;
  --white-smoke: #F0EDE8;
  --gray-lux: #9C958E;
  --gray-mid: #3A3530;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease-lux: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white-smoke);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; }
img { display: block; }

/* ===== HEADER ===== */
.legend-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 28px;
  transition: all 0.5s var(--ease-lux);
}

.legend-header.scrolled {
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 12px 28px;
}

.legend-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legend-logo-img {
  height: 40px;
  width: auto;
}

.legend-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.legend-back-link {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240,237,232,0.6);
  transition: color 0.3s;
  font-weight: 400;
}

.legend-back-link:hover { color: var(--gold); }

.legend-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(201,168,76,0.2);
}

.legend-lang-btn {
  background: none;
  border: none;
  color: rgba(240,237,232,0.5);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color 0.3s;
  padding: 4px 2px;
}

.legend-lang-btn:hover { color: var(--gold); }
.legend-lang-btn.active { color: var(--gold); font-weight: 600; }

.legend-lang-sep {
  color: rgba(201,168,76,0.25);
  font-size: 0.6rem;
}

/* ===== SECTIONS ===== */
.legend-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-media {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.legend-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}

.legend-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.50) 40%,
    rgba(0,0,0,0.70) 70%,
    rgba(0,0,0,0.95) 100%
  );
}

.legend-overlay-hero {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.50) 50%,
    rgba(0,0,0,0.85) 100%
  ),
  radial-gradient(ellipse 80% 50% at 50% 30%, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.legend-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 100px 28px 60px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux);
}

.legend-section.active .legend-content {
  opacity: 1;
  transform: translateY(0);
}

.legend-chapter {
  font-size: 0.6rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 16px;
  display: inline-block;
}

.legend-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.legend-text {
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  color: var(--gray-lux);
  font-weight: 300;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto;
}

.legend-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto 20px;
}

/* ===== HERO SPECIFIC ===== */
.legend-hero .legend-content {
  opacity: 1;
  transform: none;
  padding-bottom: 120px;
}

.legend-hero-brand {
  margin-bottom: 24px;
}

.legend-hero-logo {
  width: clamp(120px, 16vw, 200px);
  height: auto;
  margin: 0 auto;
}

.legend-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.legend-hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(240,237,232,0.45);
  margin-bottom: 40px;
}

.legend-hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
}

.legend-hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gray-lux);
}

.legend-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: legendScrollPulse 2s ease-in-out infinite;
}

@keyframes legendScrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1) translateY(0); }
  50% { opacity: 0.3; transform: scaleY(0.6) translateY(4px); }
}

/* ===== EPILOGUE ===== */
.legend-epilogue {
  background: var(--black);
}

.legend-epilogue .legend-content {
  z-index: 2;
}

.legend-epilogue-logo {
  width: clamp(80px, 10vw, 120px);
  height: auto;
  margin: 0 auto 30px;
  opacity: 0.6;
}

.legend-epilogue-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 24px;
}

.legend-epilogue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 44px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-lux);
  margin-top: 30px;
}

.legend-epilogue-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.3);
}

/* ===== SIDE NAV ===== */
.legend-side-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.legend-side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease-lux);
  padding: 0;
  display: block;
  position: relative;
}

.legend-side-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.legend-side-dot.active {
  border-color: var(--gold);
  transform: scale(1.4);
}

.legend-side-dot.active::after {
  opacity: 1;
}

.legend-side-dot:hover {
  border-color: var(--gold);
  transform: scale(1.2);
}

/* ===== WHATSAPP FLOATING ===== */
.legend-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 54px;
  height: 54px;
  background: #1FAD51;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(31,173,81,0.35);
  transition: all 0.3s;
  text-decoration: none;
}

.legend-whatsapp:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(31,173,81,0.45);
}

.legend-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: white;
}

/* ===== GOLD GRADIENT BGS ===== */
.legend-bg-gold {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 25%, rgba(201,168,76,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(201,168,76,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .legend-header { padding: 14px 20px; }
  .legend-header.scrolled { padding: 10px 20px; }
  .legend-logo-img { height: 32px; }
  .legend-back-link { font-size: 0.6rem; letter-spacing: 1.5px; }
  .legend-header-right { gap: 14px; }

  .legend-content { padding: 80px 20px 40px; }
  .legend-section-title { font-size: 1.8rem; margin-bottom: 16px; }
  .legend-text { font-size: 0.82rem; line-height: 1.7; }
  .legend-chapter { font-size: 0.5rem; letter-spacing: 4px; margin-bottom: 12px; }

  .legend-hero-title { font-size: 1.8rem; }
  .legend-hero-sub { font-size: 0.95rem; margin-bottom: 30px; }
  .legend-hero-logo { width: clamp(90px, 18vw, 140px); }
  .legend-hero .legend-content { padding-bottom: 80px; }
  .legend-hero-scroll { bottom: 24px; }
  .legend-hero-scroll span { font-size: 0.55rem; letter-spacing: 4px; }
  .legend-scroll-line { height: 28px; }

  .legend-epilogue-title { font-size: 1.6rem; }
  .legend-epilogue-btn { padding: 12px 28px; font-size: 0.65rem; }

  .legend-side-nav { right: 14px; gap: 10px; }
  .legend-side-dot { width: 8px; height: 8px; }

  .legend-whatsapp { bottom: 20px; right: 20px; width: 48px; height: 48px; }
  .legend-whatsapp svg { width: 22px; height: 22px; }

  .legend-media video { opacity: 0.5; }
  .legend-overlay-hero {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.75) 0%,
      rgba(0,0,0,0.55) 50%,
      rgba(0,0,0,0.95) 100%
    );
  }
}

@media (max-width: 600px) {
  .legend-content { padding: 60px 16px 30px; }
  .legend-section-title { font-size: 1.5rem; }
  .legend-text { font-size: 0.78rem; }
  .legend-divider { height: 24px; }

  .legend-hero-title { font-size: 1.5rem; }
  .legend-hero-sub { font-size: 0.88rem; }

  .legend-side-nav { right: 10px; gap: 8px; }
  .legend-side-dot { width: 6px; height: 6px; }
}

@media (max-width: 420px) {
  .legend-header { padding: 10px 14px; }
  .legend-header.scrolled { padding: 8px 14px; }
  .legend-logo-img { height: 28px; }
  .legend-back-link { font-size: 0.55rem; letter-spacing: 1px; }
  .legend-header-right { gap: 10px; }
  .legend-lang-switch { padding-left: 10px; gap: 6px; }
  .legend-lang-btn { font-size: 0.55rem; }

  .legend-section-title { font-size: 1.3rem; }
  .legend-text { font-size: 0.74rem; }

  .legend-hero-title { font-size: 1.3rem; }
  .legend-hero-sub { font-size: 0.82rem; }
  .legend-hero-logo { width: 80px; }

  .legend-epilogue-title { font-size: 1.3rem; }
  .legend-epilogue-btn { padding: 10px 20px; font-size: 0.6rem; }

  .legend-whatsapp { width: 42px; height: 42px; bottom: 14px; right: 14px; }
  .legend-whatsapp svg { width: 20px; height: 20px; }
}
