:root {
  --landing-ink: #101827;
  --landing-paper: #f5f0e6;
  --landing-cream: #fffaf0;
  --landing-wine: #6b2635;
  --landing-gold: #d1a358;
}

html.landing-active,
html.landing-active body {
  overflow: hidden !important;
}

.landing-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--landing-paper);
  color: var(--landing-ink);
  font-family: "Nanum Gothic", sans-serif;
  scroll-behavior: smooth;
  transition: opacity 360ms ease, transform 420ms cubic-bezier(.7, 0, .2, 1);
}

.landing-page.is-leaving {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}

.landing-page[hidden] { display: none; }
.landing-page *, .landing-page *::before, .landing-page *::after { box-sizing: border-box; }
.landing-page button, .landing-page a { font: inherit; }
.landing-page button { cursor: pointer; }

.landing-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 36%, rgba(209, 163, 88, .2), transparent 26%),
    linear-gradient(135deg, #111b2a 0%, #182335 62%, #301b25 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: repeating-linear-gradient(90deg, transparent 0 95px, rgba(255,255,255,.24) 96px);
  pointer-events: none;
}

.landing-nav {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 56px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.landing-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.landing-brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.landing-brand span { display: grid; gap: 2px; letter-spacing: .16em; }
.landing-brand strong { font: 600 .76rem/1 "Inter", sans-serif; }
.landing-brand small { font-size: .68rem; letter-spacing: .05em; opacity: .62; }
.landing-nav-links { margin-left: auto; display: flex; gap: 28px; }
.landing-nav-links a { color: rgba(255,255,255,.68); text-decoration: none; font-size: .82rem; transition: color 180ms ease; }
.landing-nav-links a:hover { color: #fff; }
.landing-nav-cta { min-height: 42px; padding: 0 20px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; background: transparent; }

.landing-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 56px));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 118px);
  padding: 70px 0 84px;
}

.landing-eyebrow, .landing-section-no { margin: 0 0 22px; color: var(--landing-gold); font: 600 .72rem/1.2 "Inter", sans-serif; letter-spacing: .22em; }
.landing-hero h1 { margin: 0; font: 700 clamp(3.4rem, 6.4vw, 6.9rem)/.98 "Gowun Batang", serif; letter-spacing: -.065em; }
.landing-hero h1 em { color: #f0d8b1; font-style: normal; }
.landing-lead { max-width: 600px; margin: 34px 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.9; }
.landing-actions { margin-top: 42px; display: flex; align-items: center; gap: 24px; }
.landing-primary { min-height: 54px; padding: 0 25px; border: 0; border-radius: 3px; color: #fff; background: var(--landing-wine); font-weight: 700; box-shadow: 0 16px 32px rgba(41, 8, 18, .28); }
.landing-primary span { margin-left: 18px; }
.landing-store-link { min-height: 54px; padding: 0 20px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.34); border-radius: 3px; color: #fff; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.landing-store-link:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); }
.landing-store-mark { width: 25px; height: 25px; display: grid; place-items: center; font-size: .82rem; }
.landing-store-link > span:last-child { display: grid; gap: 2px; text-align: left; }
.landing-store-link small { font: 500 .52rem/1 "Inter", sans-serif; letter-spacing: .13em; opacity: .62; }
.landing-store-link strong { font: 600 .92rem/1.1 "Inter", sans-serif; }
.landing-proof { margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.5); font-size: .75rem; }
.landing-proof span:not(:last-child)::after { content: "·"; margin-left: 18px; }

.landing-reader-stage { position: relative; perspective: 1000px; transform: translate3d(var(--landing-shift-x, 0), var(--landing-shift-y, 0), 0); transition: transform 180ms ease-out; }
.landing-reader-glow { position: absolute; inset: 10% -12% -4%; filter: blur(34px); background: rgba(190, 129, 72, .22); border-radius: 50%; }
.landing-reader-page { position: relative; min-height: 590px; padding: 66px 50px 34px; color: #19202d; background: #fffaf0; box-shadow: 0 42px 80px rgba(0,0,0,.36); transform: rotateY(-4deg) rotateX(1deg); }
.landing-reader-page::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(106,38,53,.18); pointer-events: none; }
.landing-reader-page header { margin-bottom: 54px; text-align: center; }
.landing-reader-page header p { margin: 0 0 12px; color: #8b7255; font: 600 .64rem/1 "Inter", sans-serif; letter-spacing: .22em; }
.landing-reader-page header h2 { margin: 0; font: 700 2rem/1.2 "Gowun Batang", serif; }
.landing-verse { position: relative; display: grid; grid-template-columns: 35px 1fr; gap: 12px; margin: 0 0 30px; font: 400 1.05rem/2 "Gowun Batang", serif; }
.landing-verse b { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; color: #7d3344; background: #f0dedb; font: 700 .73rem/1 "Inter", sans-serif; }
.landing-verse p { margin: -4px 0 0; }
.landing-verse.is-marked p { color: #6c3441; background: linear-gradient(transparent 69%, rgba(198,142,88,.22) 69%); }
.landing-reader-page footer { position: absolute; left: 50px; right: 50px; bottom: 34px; display: flex; justify-content: space-between; color: #967c5d; font-size: .7rem; letter-spacing: .08em; }

.landing-section { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 150px 0; }
.landing-section-heading h2, .landing-record-copy h2, .landing-trust h2, .landing-final h2 { margin: 0; font: 700 clamp(2.5rem, 4.4vw, 4.8rem)/1.17 "Gowun Batang", serif; letter-spacing: -.055em; }
.landing-experience { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 150px); }
.landing-feature-lines article { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid rgba(16,24,39,.16); }
.landing-feature-lines article:last-child { border-bottom: 1px solid rgba(16,24,39,.16); }
.landing-feature-lines article > span { color: var(--landing-wine); font: 600 .72rem "Inter", sans-serif; }
.landing-feature-lines h3 { margin: -5px 0 10px; font: 700 1.5rem "Gowun Batang", serif; }
.landing-feature-lines p { margin: 0; color: #5c6270; line-height: 1.8; }

.landing-records { width: 100%; max-width: none; padding: 150px max(28px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr .82fr; align-items: center; gap: clamp(60px, 10vw, 150px); color: #fff; background: #151f2d; }
.landing-record-visual { position: relative; padding: 40px 0 0 40px; }
.landing-note-card { position: relative; z-index: 1; min-height: 430px; padding: 68px; color: #2b1e1c; background: #eadfcf; box-shadow: 0 36px 72px rgba(0,0,0,.3); }
.landing-note-card > p { margin: 0; color: #8c594f; font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.landing-note-card blockquote { margin: 65px 0; font: 700 clamp(2rem, 3.2vw, 3.5rem)/1.45 "Gowun Batang", serif; }
.landing-note-card div { display: flex; justify-content: space-between; color: #8f7b6b; font-size: .72rem; }
.landing-color-strip { position: absolute; left: 0; top: 0; display: grid; gap: 8px; }
.landing-color-strip i { width: 22px; height: 64px; background: #8d3c4f; }
.landing-color-strip i:nth-child(2) { background: #d29f52; }.landing-color-strip i:nth-child(3) { background: #45927f; }.landing-color-strip i:nth-child(4) { background: #ece0ce; }
.landing-record-copy > p:not(.landing-section-no) { margin: 34px 0; color: rgba(255,255,255,.66); line-height: 1.9; }
.landing-record-copy ul { margin: 0; padding: 0; list-style: none; }
.landing-record-copy li { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.82); }

.landing-trust { display: grid; grid-template-columns: 1fr .85fr; align-items: end; gap: 80px; }
.landing-trust-copy > p { margin: 0 0 32px; color: #5c6270; font-size: 1.05rem; line-height: 1.9; }
.landing-legal-links { display: flex; flex-wrap: wrap; gap: 24px; }
.landing-legal-links a { color: var(--landing-wine); text-underline-offset: 5px; }
.landing-final { padding: 150px 28px; text-align: center; color: #fff; background: var(--landing-wine); }
.landing-final p { margin: 0 0 22px; color: #e4c48c; font: 600 .75rem "Inter", sans-serif; letter-spacing: .24em; }
.landing-final-actions { margin-top: 42px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.landing-final .landing-primary { color: var(--landing-wine); background: #fff6e7; box-shadow: none; }
.landing-store-link.is-light { color: #fffaf0; border-color: rgba(255,250,240,.46); }
.landing-footer { min-height: 86px; padding: 0 max(28px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; color: #787063; background: #eee6d9; font: 500 .7rem "Inter", sans-serif; letter-spacing: .08em; }

[data-landing-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
[data-landing-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .landing-nav-links { display: none; }
  .landing-hero-content { grid-template-columns: 1fr; gap: 70px; padding-top: 86px; }
  .landing-reader-stage { width: min(560px, 100%); margin: 0 auto; }
  .landing-experience, .landing-records, .landing-trust { grid-template-columns: 1fr; }
  .landing-record-copy { max-width: 660px; }
}

@media (max-width: 760px) {
  .landing-nav, .landing-hero-content, .landing-section { width: min(100% - 36px, 1180px); }
  .landing-nav { min-height: 76px; gap: 14px; }
  .landing-brand small { display: none; }
  .landing-nav-cta { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: .8rem; }
  .landing-hero-content { min-height: calc(100svh - 76px); padding: 62px 0 70px; }
  .landing-hero h1 { font-size: clamp(3.25rem, 15vw, 5.1rem); }
  .landing-lead { margin-top: 28px; font-size: .95rem; }
  .landing-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .landing-primary, .landing-store-link { width: 100%; min-height: 56px; justify-content: center; }
  .landing-proof { gap: 9px; font-size: .67rem; }
  .landing-proof span:not(:last-child)::after { margin-left: 9px; }
  .landing-reader-page { min-height: 510px; padding: 55px 30px 30px; }
  .landing-reader-page header { margin-bottom: 42px; }
  .landing-verse { grid-template-columns: 30px 1fr; gap: 8px; margin-bottom: 22px; font-size: .94rem; line-height: 1.8; }
  .landing-reader-page footer { left: 30px; right: 30px; }
  .landing-section { padding: 100px 0; }
  .landing-experience { gap: 55px; }
  .landing-records { width: 100%; padding: 100px 18px; gap: 60px; }
  .landing-record-visual { padding: 24px 0 0 24px; }
  .landing-note-card { min-height: 360px; padding: 48px 34px; }
  .landing-note-card blockquote { margin: 52px 0; }
  .landing-trust { gap: 45px; }
  .landing-final-actions { align-items: stretch; flex-direction: column; width: min(100%, 340px); margin: 38px auto 0; }
  .landing-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page { scroll-behavior: auto; transition: none; }
  [data-landing-reveal] { opacity: 1; transform: none; transition: none; }
  .landing-reader-stage { transform: none; transition: none; }
}
