/* ============================= */
/* LAYOUT / DESIGN TOKENS */
/* ============================= */

:root {
    --bg: #0f0c12;
    --bg-deep: #16111b;
    --bg-soft: #1c1622;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-soft: rgba(255, 255, 255, 0.02);
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.18);

    --text: #f7f2ec;
    --text-soft: #c7beb2;
    --text-muted: #968a80;

    --accent-1: #d6945a;
    --accent-2: #8a5cf6;
    --accent-3: #ff7a59;

    --gradient-primary: linear-gradient(135deg, #d6945a 0%, #ff7a59 55%, #8a5cf6 100%);
    --gradient-soft: linear-gradient(180deg, rgba(214, 148, 90, 0.12), rgba(138, 92, 246, 0.02));
    --gradient-divider: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);

    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.18);

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;

    --container: 1200px;
    --header-height: 84px;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: 'Cormorant Garamond', 'Noto Serif KR', serif;
    color: var(--text);
    line-height: 1.7;
    letter-spacing: -0.01em;
    background:
        radial-gradient(circle at 12% 12%, rgba(214, 148, 90, 0.16), transparent 22%),
        radial-gradient(circle at 86% 18%, rgba(138, 92, 246, 0.15), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(255, 122, 89, 0.08), transparent 18%),
        linear-gradient(180deg, #0f0c12 0%, #16111b 36%, #110d15 100%);
}

body.menu-open {
    overflow: hidden;
}

main {
    position: relative;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

section {
    position: relative;
    padding: 112px 0;
}

section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(calc(100% - 40px), var(--container));
    height: 1px;
    transform: translateX(-50%);
    background: var(--gradient-divider);
}

/* ============================= */
/* TYPOGRAPHY */
/* ============================= */

h1, h2, h3 {
    font-family: 'Cormorant Garamond', 'Noto Serif KR', serif;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.08;
}

h1 {
    font-family: 'IBM Plex Sans', 'Noto Sans KR', sans-serif;
    font-size: clamp(3.1rem, 7vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
h2 {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.34;
    letter-spacing: -0.02em;
    max-width: 720px;
    margin-bottom: 1.2rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
}

section h2 {
    margin-left: 0;
    margin-right: 0;
}


@media (max-width: 768px) {
    h2 {
        max-width: 100%;
        line-height: 1.4;
    }
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 600;
}

p, li, a, span {
    font-family: 'Noto Sans KR', sans-serif;
}

p {
    color: var(--text-soft);
    font-size: 1rem;
}

.section-header {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-header h2 {
    max-width: 820px;
}

.section-header p {
    margin-top: 18px;
    max-width: 680px;
}

.section-header::before {
    content: attr(data-label);
    display: inline-block;
    margin-bottom: 16px;
    padding-bottom: 8px;
    color: #ead0b4;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(234, 208, 180, 0.35);
}

/* ============================= */
/* HEADER */
/* ============================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, padding 0.3s ease;
    padding: 18px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header.scrolled {
    background: rgba(15, 12, 18, 0.72);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header.hide {
    transform: translateY(-100%);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    position: relative;
    font-size: 0.92rem;
    color: #f2e8dc;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.25s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* ============================= */
/* BUTTONS - CTA 정리 버전 */
/* 투명 배경 + 다크골드 테두리 */
/* ============================= */

.header-cta,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

/* 메인 CTA / 헤더 CTA */
.header-cta,
.btn-primary {
    border: 1px solid rgba(214, 148, 90, 0.58);
    color: #e7c29f;
    font-weight: 600;
}

/* 서브 CTA */
.btn-secondary {
    border: 1px solid rgba(214, 148, 90, 0.32);
    color: rgba(247, 242, 236, 0.88);
    font-weight: 500;
}

/* hover도 과하지 않게 */
.header-cta:hover,
.btn-primary:hover {
    background: transparent;
    border-color: rgba(214, 148, 90, 0.82);
    color: #f2d3b4;
    box-shadow: none;
    transform: none;
}


/* ============================= */
/* TELEGRAM CTA */
/* 텔레그램 CTA 전용 정렬 */
/* ============================= */

.telegram-cta .cta-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.telegram-cta .cta-emoji {
    display: inline-block;
    font-size: 0.92rem;
    line-height: 1;
    transform: translateY(-1px);
}

/* 헤더 CTA는 조금 더 컴팩트하게 */
.header-cta.telegram-cta .cta-label {
    gap: 7px;
}

/* 푸터 링크는 과장 없이 텍스트 중심 유지 */
.footer-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.btn-secondary:hover {
    background: transparent;
    border-color: rgba(214, 148, 90, 0.56);
    color: #f3e9dd;
    box-shadow: none;
    transform: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================= */
/* HERO - 기존 상단 히어로 구조 유지 */
/* ============================= */

/* ============================= */
/* HERO - 텍스트 구조 재정리 */
/* 제목 / 본문 / CTA 위계 명확화 */
/* ============================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 140px 20px 100px;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    margin: 0 auto;
}

/* 상단 작은 라벨 */
.hero-eyebrow {
    display: inline-block;
    margin-bottom: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(214, 148, 90, 0.26);
    color: rgba(215, 176, 138, 0.9);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
/* 제목은 span 단위로 줄 구조를 고정 */
/* ============================= */
/* HERO TITLE - desktop balance refinement */
/* 제목 줄 수 / 서체 / 간격 / 크기 재정리 */
/* ============================= */

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.16em;
    max-width: 940px;
    margin: 0 auto;

    font-family: 'IBM Plex Sans', 'Noto Sans KR', sans-serif;
    font-size: clamp(3.05rem, 5vw, 4.85rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.04em;

    word-break: keep-all;
    overflow-wrap: break-word;
    text-wrap: balance;
}


.hero-title span {
    display: block;
}

/* 본문은 제목보다 명확히 좁게 */
.hero-description {
    width: min(100%, 680px);
    margin: 34px auto 0;
    color: rgba(247, 242, 236, 0.76);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.06rem;
    line-height: 1.78;
    letter-spacing: -0.012em;
}
/* CTA는 제목과 본문에서 분리 */
.hero-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero .btn-primary {
    margin-top: 0;
}

/* ============================= */
/* HERO DESKTOP FINE TUNING */
/* ============================= */
@media (min-width: 1280px) {
    .hero-content {
        width: min(100%, 1120px);
    }

    .hero-title {
        font-size: 4.6rem;
        line-height: 1.08;
        letter-spacing: -0.048em;
    }

    .hero-description {
        width: 700px;
        font-size: 1.05rem;
    }
}
/* ============================= */
/* GRIDS */
/* ============================= */

.trust-grid,
.features .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
}

.principles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
}
