/* heldbygrace.life — 강렬 랜딩 (전용) */

:root {
  --ln-bg-top: #05070d;
  --ln-bg-mid: #0a1a2f;
  --ln-navy: #050d1a;
  --ln-navy-mid: #0f2840;
  --ln-navy-ink: #020509;
  --ln-gold: #d4af37;
  --ln-gold-hot: #e8cf6a;
  --ln-white: #ffffff;
  --ln-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ln-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--ln-bg-top) 0%, var(--ln-bg-mid) 45%, var(--ln-navy) 100%);
  background-color: var(--ln-bg-top);
  color: #ffffff;
}

body {
  font-family: "Noto Serif KR", Georgia, serif;
}

.landing-skip {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.landing-skip:hover,
.landing-skip:focus-visible {
  color: var(--ln-gold-hot);
  border-color: var(--ln-gold);
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}

#landing-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-root {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 4rem;
  background: radial-gradient(ellipse 95% 75% at 50% 100%, rgba(15, 40, 64, 0.5) 0%, transparent 62%);
}

.landing-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.85), inset 0 0 280px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.landing-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(232, 207, 106, 0.5) 0%, transparent 55%);
  opacity: 0;
  z-index: 3;
  animation: landingFlash 0.55s var(--ln-ease) 0.15s forwards;
}

@keyframes landingFlash {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.landing-pulse-bg {
  position: absolute;
  width: 140vmax;
  height: 140vmax;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: pulseBgIn 2.2s var(--ln-ease) 0.4s forwards, pulseBgBeat 3.2s ease-in-out 2.75s infinite;
}

@keyframes pulseBgIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes pulseBgBeat {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.landing-cross-wrap {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(70vmin, 420px);
  height: min(70vmin, 420px);
  pointer-events: none;
  opacity: 0;
  animation: crossFade 1.4s var(--ln-ease) 0.5s forwards;
}

@keyframes crossFade {
  to {
    opacity: 1;
  }
}

.landing-cross {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.32)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.18));
  animation: crossPulse 2.8s ease-in-out 1.2s infinite;
}

@keyframes crossPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.04);
  }
}

.landing-logo-block {
  position: relative;
  z-index: 4;
  margin-bottom: 0.5rem;
}

.landing-logo-wrap {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(98vw, 765px);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.28), 0 0 60px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 원형 인장용 링 — 가로형 브랜드 PNG에서는 비활성 */
.landing-ring {
  display: none;
}

@keyframes ringBurst {
  0% {
    border-color: rgba(212, 175, 55, 0);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    transform: translate(-50%, -50%) scale(0.5);
  }
  60% {
    border-color: rgba(232, 207, 106, 0.65);
    box-shadow: 0 0 40px 8px rgba(212, 175, 55, 0.22);
  }
  100% {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 24px 2px rgba(212, 175, 55, 0.14);
    transform: translate(-50%, -50%) scale(1);
  }
}

.landing-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(136px, 28.9vmin, 306px);
  margin: 0;
  vertical-align: top;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  filter: blur(10px) brightness(0.45);
  animation: logoSmash 1.35s var(--ln-ease-bounce) 0.55s forwards;
}

@keyframes logoSmash {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
    filter: blur(10px) brightness(0.45);
  }
  55% {
    filter: blur(0) brightness(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) brightness(1);
  }
}

.landing-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: min(28rem, 92vw);
  margin-top: 1.1rem;
}

.landing-line1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.02rem, 3.2vw, 1.42rem);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 30px rgba(0, 0, 0, 1);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: line1Reveal 1.15s var(--ln-ease) 2.15s forwards;
}

@keyframes line1Reveal {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.landing-tagline {
  margin: 0;
  font-size: clamp(0.95rem, 2.85vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ln-gold-hot);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  text-shadow: 0 0 28px rgba(212, 175, 55, 0.4), 0 0 56px rgba(212, 175, 55, 0.18);
  animation: taglineImpact 0.95s var(--ln-ease-bounce) 3.2s forwards, taglineGlow 2.4s ease-in-out 4s infinite;
}

@keyframes taglineImpact {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes taglineGlow {
  0%,
  100% {
    text-shadow: 0 0 28px rgba(212, 175, 55, 0.38), 0 0 56px rgba(212, 175, 55, 0.18);
  }
  50% {
    text-shadow: 0 0 42px rgba(232, 207, 106, 0.5), 0 0 88px rgba(212, 175, 55, 0.28);
  }
}

.landing-root.is-shake {
  animation: landingShake 0.55s ease-out 3.45s;
}

@keyframes landingShake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3px, 2px);
  }
  40% {
    transform: translate(4px, -2px);
  }
  60% {
    transform: translate(-2px, -1px);
  }
  80% {
    transform: translate(2px, 1px);
  }
}

.landing-cta-row {
  position: fixed;
  bottom: clamp(5.5rem, 14vh, 7.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  justify-content: center;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  animation: ctaLand 0.9s var(--ln-ease) 5.35s forwards;
}

@keyframes ctaLand {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.landing-cta-primary,
.landing-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.82rem 1.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.8rem, 2.4vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.25s var(--ln-ease), box-shadow 0.25s, border-color 0.25s, background 0.25s, color 0.25s;
}

.landing-cta-ico {
  font-size: 1.05em;
  line-height: 1;
}

.landing-cta-primary {
  color: var(--ln-navy-ink);
  background: linear-gradient(180deg, var(--ln-gold-hot) 0%, var(--ln-gold) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 28px rgba(212, 175, 55, 0.38);
}

.landing-cta-primary:hover,
.landing-cta-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 36px rgba(212, 175, 55, 0.48);
  outline: none;
}

.landing-cta-secondary {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(5, 13, 26, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.landing-cta-secondary:hover,
.landing-cta-secondary:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ln-gold-hot);
  background: rgba(212, 175, 55, 0.1);
  color: var(--ln-gold-hot);
  outline: none;
}

.landing-cta-sub {
  position: fixed;
  bottom: clamp(3.5rem, 9vh, 4.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 6;
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: ctaSubLand 0.75s var(--ln-ease) 5.55s forwards;
}

.landing-cta-sub a {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.1em;
  transition: color 0.2s, border-color 0.2s;
}

.landing-cta-sub a:hover,
.landing-cta-sub a:focus-visible {
  color: rgba(232, 207, 106, 0.9);
  border-bottom-color: var(--ln-gold);
  outline: none;
}

@keyframes ctaSubLand {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.landing-hint {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.22);
  opacity: 0;
  animation: ctaLand 1s var(--ln-ease) 5.75s forwards;
}

@media (max-width: 480px) {
  .landing-cta-row {
    bottom: clamp(6.25rem, 20vh, 8rem);
    flex-direction: column;
    align-items: stretch;
  }

  .landing-cta-primary,
  .landing-cta-secondary {
    width: 100%;
    max-width: 17.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-cta-sub {
    bottom: clamp(4.5rem, 12vh, 5.5rem);
  }
}

/* 접근성: 모션 줄이기 */
@media (prefers-reduced-motion: reduce) {
  html,
  body {
    overflow: auto;
  }

  .landing-flash,
  .landing-pulse-bg,
  .landing-cross,
  .landing-ring,
  .landing-logo,
  .landing-line1,
  .landing-tagline,
  .landing-cta-row,
  .landing-cta-sub,
  .landing-hint,
  .landing-root.is-shake {
    animation: none !important;
  }

  .landing-flash {
    opacity: 0;
  }

  .landing-pulse-bg {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  .landing-cross-wrap {
    opacity: 0.4;
    animation: none;
  }

  .landing-logo {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .landing-ring {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.14);
  }

  .landing-line1 {
    opacity: 1;
    clip-path: none;
  }

  .landing-tagline {
    opacity: 1;
    transform: none;
  }

  .landing-cta-row {
    opacity: 1;
    transform: translateX(-50%);
  }

  .landing-cta-sub {
    opacity: 1;
    transform: translateX(-50%);
  }

  .landing-hint {
    opacity: 0.35;
    transform: translateX(-50%);
  }
}
