/* ========================================
   Midnight Vision — Dark Receipt
   ======================================== */

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

:root {
    /* Dark paper */
    --bg: #14110c;
    --paper: #1b1812;
    --paper-warm: #211d15;
    --paper-strong: #25201a;

    /* Aged ink */
    --ink: #d8cdb4;
    --ink-soft: #b8ad94;
    --muted: #8c826d;
    --dim: #5a5345;

    /* Lines (mostly dashed) */
    --line: #3a342a;
    --line-strong: #534a3c;

    /* Brown accents */
    --accent: #a47148;
    --accent-dark: #7e5733;
    --accent-soft: #c69468;

    /* Typography */
    --serif: 'Cormorant Garamond', 'Noto Serif KR', 'Noto Serif JP', 'Times New Roman', serif;
    --sans: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background-color: var(--bg);
    /* 종이 결 (어두운 결) */
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.45 0 0 0 0 0.25 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.005em;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 어두운 가장자리 vignette */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.45);
}

body > * {
    position: relative;
    z-index: 1;
}

::selection {
    background: var(--accent-dark);
    color: var(--paper);
}

/* ====== 타이포그래피 — 큰 글씨는 세리프 ====== */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.22;
    color: var(--ink);
}

/* ====== 네비게이션 — 영수증 헤더 ====== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
    background: rgba(20, 17, 12, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px dashed var(--line-strong);
    z-index: 1000;
}

.logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.lang-selector {
    display: flex;
    align-items: center;
    font-family: var(--mono);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 0.35rem 0.75rem;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.25s var(--ease);
    text-transform: uppercase;
    position: relative;
}

.lang-btn:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -3px;
    color: var(--dim);
}

.lang-btn:hover {
    color: var(--ink);
}

.lang-btn.active {
    color: var(--accent-soft);
}

/* ====== 히어로 — 영수증 헤딩 ====== */
.hero {
    padding: 5.5rem 2rem 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '— ✦ —';
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.5em;
    margin-bottom: -0.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 600;
    color: var(--ink);
}

.hero h2 {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 500;
    color: var(--accent-soft);
    font-family: var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero p {
    font-size: 1rem;
    max-width: 520px;
    color: var(--ink-soft);
    line-height: 1.75;
}

/* 영수증 분리선 */
.hero::after {
    content: '';
    display: block;
    width: 100%;
    max-width: 360px;
    height: 1px;
    background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
    margin: 0.6rem auto -0.4rem;
}

/* ====== 다운로드 버튼 ====== */
.download-btn {
    margin-top: 1.4rem;
    padding: 0.85rem 2.2rem;
    font-size: 0.78rem;
    font-family: var(--mono);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--accent);
    color: #1b1812;
    border: 1px solid var(--accent-dark);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    display: inline-block;
    box-shadow:
        0 1px 0 var(--accent-dark),
        0 4px 14px rgba(0, 0, 0, 0.35);
}

.download-btn:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 var(--accent-dark),
        0 6px 18px rgba(0, 0, 0, 0.45);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 var(--accent-dark);
}

/* ====== 콘텐츠 ====== */
.content {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ====== 카드 — 영수증 한 장 ====== */
.feature-section {
    padding: 2.2rem 2.4rem;
    background: var(--paper);
    border: 1px dashed var(--line-strong);
    border-radius: 0;
    transition: all 0.3s var(--ease);
    position: relative;
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.35);
}

/* 카드 상단 영수증 일련번호 */
.feature-section::before {
    content: 'NO. 001 · MIDNIGHT VISION';
    position: absolute;
    top: -0.55rem;
    left: 1.4rem;
    background: var(--bg);
    padding: 0 0.5rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.18em;
}

.feature-section:nth-of-type(2)::before { content: 'NO. 002 · MIDNIGHT VISION'; }
.feature-section:nth-of-type(3)::before { content: 'NO. 003 · MIDNIGHT VISION'; }
.feature-section:nth-of-type(4)::before { content: 'NO. 004 · MIDNIGHT VISION'; }

.hover-shadow:hover {
    transform: translateY(-2px);
    border-color: var(--accent-dark);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.4),
        0 14px 30px rgba(0, 0, 0, 0.5);
}

.feature-header {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--line-strong);
}

.feature-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    font-size: 0;
    flex-shrink: 0;
    transform: translateY(-2px);
}

.feature-section h3 {
    font-size: clamp(1.45rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--ink);
}

.feature-summary {
    color: var(--ink);
    margin-bottom: 1.4rem;
    font-style: italic;
    font-family: var(--serif);
    font-size: 1.18rem;
    line-height: 1.55;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.feature-list li {
    padding-left: 1.4rem;
    position: relative;
    color: var(--ink-soft);
}

.feature-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 600;
}

.feature-list li strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--sans);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.005em;
}

.feature-list li p {
    font-size: 0.93rem;
    line-height: 1.72;
}

/* ====== 안내·추천 섹션 — 메모 스탬프 ====== */
.info-section {
    padding: 1.5rem 1.8rem;
    background: var(--paper-warm);
    border: 1px dashed var(--line);
    border-left: 2px solid var(--accent);
    border-radius: 0;
}

.info-section h4 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--ink);
    font-family: var(--mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.info-section ul {
    list-style: none;
}

.info-section li {
    margin-bottom: 0.45rem;
    padding-left: 1.1rem;
    position: relative;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.7;
}

.info-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--dim);
}

/* ====== 푸터 — 영수증 절취선 ====== */
.footer {
    margin-top: 4rem;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    border-top: 1px dashed var(--line-strong);
    background: transparent;
    position: relative;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.footer::before {
    content: '✂  —  —  —  —  —  —  —  —  —  —';
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 0 0.8rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.2em;
    white-space: nowrap;
    overflow: hidden;
    max-width: 90%;
}

.footer p {
    color: var(--ink-soft);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
}

.booth-link {
    display: inline-block;
    margin-top: 1.4rem;
    padding: 0.65rem 1.7rem;
    color: var(--accent-soft);
    text-decoration: none;
    background: transparent;
    border: 1px dashed var(--accent-dark);
    border-radius: 0;
    transition: all 0.25s var(--ease);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    font-family: var(--mono);
    text-transform: uppercase;
}

.booth-link:hover {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
    border-style: solid;
}

.footer .copyright {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: var(--dim);
    letter-spacing: 0.18em;
    font-family: var(--mono);
    font-style: normal;
    text-transform: uppercase;
}

/* ====== i18n 페이드 ====== */
[data-i18n] {
    transition: opacity 0.3s ease;
}

.fade-out {
    opacity: 0;
}

/* ====== 반응형 ====== */
@media (max-width: 768px) {
    body { font-size: 15px; }

    .navbar {
        padding: 0.9rem 1.1rem;
    }

    .logo { font-size: 1.1rem; }

    .lang-btn {
        padding: 0.28rem 0.55rem;
        font-size: 0.66rem;
    }

    .hero {
        padding: 4rem 1.2rem 2.5rem;
    }

    .content {
        padding: 1.5rem 1rem;
        gap: 1.4rem;
    }

    .feature-section {
        padding: 1.7rem 1.4rem;
    }

    .feature-section::before {
        left: 0.9rem;
        font-size: 0.6rem;
    }

    .info-section {
        padding: 1.3rem 1.2rem;
    }

    .footer::before {
        font-size: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
