:root {
  --ink: #17150f;
  --paper: #f3efe5;
  --paper-deep: #e8dfcf;
  --cream: #fffaf0;
  --gold: #c68b2c;
  --gold-bright: #efb647;
  --moss: #66733d;
  --brown: #4a3b2b;
  --line: rgba(39, 31, 22, .14);
  --muted: #756d61;
  --shadow: 0 30px 80px rgba(30, 23, 13, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: "Noto Sans KR", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(1240px, calc(100% - 48px));
  height: 86px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cream);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img, .footer-brand img { border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .24); }
.brand span { display: grid; line-height: 1.04; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: rgba(255, 250, 240, .58); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: rgba(255, 250, 240, .72); font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--cream); }

.hero {
  min-height: 860px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .78fr);
  align-items: center;
  gap: 70px;
  padding: 130px max(6vw, calc((100vw - 1240px) / 2)) 84px;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 18%, rgba(198, 139, 44, .18), transparent 30%),
    radial-gradient(circle at 78% 40%, rgba(101, 115, 61, .2), transparent 28%),
    linear-gradient(120deg, #17150f 0%, #272118 55%, #15130e 100%);
}

.hero::before { content: ""; position: absolute; inset: 0; opacity: .17; pointer-events: none; background-image: linear-gradient(120deg, transparent 47%, rgba(255,255,255,.08) 48%, transparent 49%); background-size: 88px 88px; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.kicker { margin: 0 0 22px; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.hero .kicker { display: flex; align-items: center; gap: 10px; color: var(--gold-bright); }
.hero .kicker span { width: 28px; height: 1px; background: currentColor; }
h1, h2, p { word-break: keep-all; }
h1 { margin: 0; font-size: clamp(50px, 6.7vw, 88px); line-height: 1.08; letter-spacing: -.065em; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: rgba(255, 250, 240, .68); font-size: clamp(16px, 1.65vw, 20px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--gold-bright); border-color: var(--gold-bright); }
.button-secondary { color: var(--cream); background: rgba(255,255,255,.04); }
.hero-facts { display: flex; gap: 30px; margin: 46px 0 0; }
.hero-facts div { min-width: 92px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-facts dt { color: var(--cream); font-size: 20px; font-weight: 900; }
.hero-facts dd { margin: 4px 0 0; color: rgba(255,250,240,.48); font-size: 11px; font-weight: 700; }

.hero-visual { min-height: 670px; display: grid; place-items: center; }
.phone { overflow: hidden; position: relative; background: #28251d; border: 6px solid #2d2922; border-radius: 38px; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.12); }
.phone::before { content: ""; position: absolute; z-index: 2; top: 9px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 0 0 13px 13px; background: #2d2922; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-main { width: 310px; aspect-ratio: 1320 / 2868; transform: rotate(2.8deg); }
.scene-note { position: absolute; right: 0; bottom: 66px; width: 240px; padding: 16px 18px; color: var(--ink); background: rgba(255,250,240,.94); box-shadow: 0 20px 55px rgba(0,0,0,.25); }
.scene-note span, .scene-note strong { display: block; }
.scene-note span { color: var(--moss); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.scene-note strong { margin-top: 4px; font-size: 13px; }

.section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr .8fr; align-items: end; gap: 40px; }
.section-heading .kicker { align-self: start; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.18; letter-spacing: -.055em; }
.section-heading > p:last-child, .feature-copy > p, .codex-copy > p, .support-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }

.play-loop { border-bottom: 1px solid var(--line); }
.loop-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 70px 0 0; padding: 0; list-style: none; }
.loop-list li { min-height: 186px; display: flex; gap: 22px; padding: 28px; background: rgba(255,255,255,.48); border: 1px solid var(--line); }
.loop-list li > span { color: var(--gold); font-size: 13px; font-weight: 900; }
.loop-list strong { display: block; margin-bottom: 12px; font-size: 20px; }
.loop-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.feature { min-height: 800px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(60px, 10vw, 140px); }
.feature-copy > p { margin-top: 24px; }
.feature-image { min-width: 0; }
.landscape-shot { overflow: hidden; height: 610px; position: relative; box-shadow: var(--shadow); background: #cbd7a2; }
.landscape-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; transform: scale(1.18); }
.landscape-shot::after { content: "실제 전투 화면"; position: absolute; right: 18px; bottom: 18px; padding: 8px 11px; color: var(--cream); background: rgba(23,21,15,.75); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.check-list { display: grid; gap: 13px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; color: var(--brown); font-size: 14px; font-weight: 700; }
.check-list li::before { content: ""; position: absolute; top: 8px; left: 0; width: 13px; height: 8px; border-bottom: 2px solid var(--moss); border-left: 2px solid var(--moss); transform: rotate(-45deg); }

.feature-battle { grid-template-columns: 1.1fr .9fr; }
.phone-pair { min-height: 720px; position: relative; }
.phone-small { position: absolute; width: 272px; aspect-ratio: 1320 / 2868; }
.phone-small figcaption { position: absolute; z-index: 3; right: 15px; bottom: 15px; padding: 7px 10px; color: var(--cream); background: rgba(23,21,15,.78); font-size: 10px; font-weight: 800; }
.phone-back { top: 10px; left: 0; transform: rotate(-5deg); }
.phone-front { right: 0; bottom: 0; z-index: 2; transform: rotate(4deg); }
.job-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.job-list span, .codex-tags span { padding: 9px 14px; border: 1px solid var(--line); color: var(--brown); background: rgba(255,255,255,.42); font-size: 12px; font-weight: 800; }

.feature-companion {
  width: 100%;
  max-width: none;
  grid-template-columns: 1fr 1fr;
  padding: 110px max(6vw, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 18% 42%, rgba(198,139,44,.14), transparent 32%),
    var(--paper-deep);
}
.feature-companion .feature-copy { max-width: 560px; }
.companion-showcase { min-height: 720px; position: relative; display: grid; place-items: center; }
.phone-system { width: 310px; aspect-ratio: 1320 / 2868; transform: rotate(-2.2deg); }
.system-caption { position: absolute; right: 1%; bottom: 86px; min-width: 194px; padding: 15px 17px; background: rgba(255,250,240,.96); box-shadow: 0 18px 45px rgba(38,28,13,.2); }
.system-caption span, .system-caption strong { display: block; }
.system-caption span { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.system-caption strong { margin-top: 4px; font-size: 14px; }

.codex-section { width: 100%; max-width: none; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; padding: 110px max(6vw, calc((100vw - 1240px) / 2)); color: var(--cream); background: #1e1b15; }
.codex-copy { max-width: 560px; justify-self: end; }
.codex-copy > p { margin-top: 24px; color: rgba(255,250,240,.58); }
.codex-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.codex-tags span { color: var(--gold-bright); border-color: rgba(239,182,71,.25); background: rgba(239,182,71,.06); }
.codex-shot { overflow: hidden; height: 620px; border-left: 1px solid rgba(255,255,255,.14); }
.codex-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }

.legendary-section { min-height: 900px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(70px, 9vw, 130px); }
.legendary-copy > p { max-width: 640px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.forge-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 42px 0 0; padding: 0; list-style: none; }
.forge-steps li { min-height: 174px; padding: 22px 18px; border-top: 2px solid var(--gold); background: rgba(255,255,255,.45); }
.forge-steps span { display: block; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.forge-steps strong { display: block; margin-top: 24px; font-size: 16px; }
.forge-steps p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.legendary-visual { min-height: 760px; position: relative; display: grid; place-items: center; background: #1e1b15; box-shadow: var(--shadow); }
.legendary-visual::before { content: ""; position: absolute; inset: 0; opacity: .08; background: linear-gradient(135deg, transparent 48%, #efb647 49%, transparent 50%); background-size: 72px 72px; }
.phone-forge { width: 310px; aspect-ratio: 1320 / 2868; border-color: #3a3326; transform: rotate(2deg); }
.legendary-visual > p { position: absolute; z-index: 3; right: -22px; bottom: 38px; width: 250px; margin: 0; padding: 16px 18px; color: var(--ink); background: rgba(255,250,240,.96); box-shadow: 0 18px 45px rgba(0,0,0,.25); font-size: 12px; line-height: 1.65; }
.legendary-visual > p span { display: block; margin-bottom: 4px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .1em; }

.support { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; align-items: start; }
.support-heading > p { margin-top: 22px; }
.support-links { border-top: 1px solid var(--line); }
.support-links a { min-height: 108px; display: grid; grid-template-columns: 1fr auto; align-content: center; position: relative; padding: 22px 54px 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s ease, color .2s ease; }
.support-links a:hover { padding-left: 10px; color: var(--gold); }
.support-links span { font-size: 17px; font-weight: 800; }
.support-links small { margin-top: 6px; color: var(--muted); font-size: 12px; }
.support-links b { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); font-size: 18px; }

footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px max(6vw, calc((100vw - 1240px) / 2)); color: rgba(255,250,240,.62); background: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand div { display: grid; gap: 4px; }
.footer-brand strong { color: var(--cream); font-size: 14px; }
.footer-brand span { font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--cream); }

@media (max-width: 980px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr .72fr; gap: 28px; }
  .phone-main { width: 270px; }
  .scene-note { display: none; }
  .section-heading { grid-template-columns: 1fr 1.5fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .feature, .feature-battle { gap: 55px; }
  .phone-small { width: 235px; }
  .feature-companion { gap: 42px; }
  .phone-system, .phone-forge { width: 275px; }
  .forge-steps { grid-template-columns: 1fr; }
  .forge-steps li { min-height: auto; }
  .support { gap: 55px; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 36px); height: 74px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding: 118px 22px 72px; }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-lead { font-size: 16px; }
  .hero-visual { min-height: 590px; }
  .phone-main { width: min(76vw, 300px); transform: rotate(1.5deg); }
  .hero-facts { gap: 18px; }
  .hero-facts div { min-width: 78px; }
  .section { width: calc(100% - 36px); padding: 82px 0; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 24px; }
  .loop-list { grid-template-columns: 1fr; margin-top: 44px; }
  .loop-list li { min-height: auto; }
  .feature, .feature-battle { min-height: auto; grid-template-columns: 1fr; gap: 52px; }
  .feature-battle .feature-image { order: 2; }
  .feature-companion { grid-template-columns: 1fr; padding: 82px 18px; }
  .feature-companion .feature-copy { max-width: none; }
  .companion-showcase { min-height: 640px; order: 2; }
  .phone-system { width: min(76vw, 300px); }
  .system-caption { right: 0; bottom: 54px; }
  .landscape-shot { height: 500px; }
  .phone-pair { min-height: 640px; }
  .phone-small { width: min(58vw, 248px); }
  .codex-section { grid-template-columns: 1fr; gap: 42px; padding: 82px 18px; }
  .codex-copy { justify-self: auto; }
  .codex-shot { height: 540px; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .legendary-section { min-height: auto; grid-template-columns: 1fr; gap: 52px; }
  .legendary-visual { min-height: 680px; }
  .phone-forge { width: min(76vw, 300px); }
  .legendary-visual > p { right: -8px; bottom: 26px; width: min(250px, 78vw); }
  .support { grid-template-columns: 1fr; gap: 44px; }
  footer { align-items: flex-start; flex-direction: column; padding: 40px 22px; }
  .footer-links { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
