/* =========================================================
   KR 인사이트 — champagne rosé editorial
   Palette: Champagne Mist #FAF3E8 · Peach Silk #F5D0C0
            Coral Bloom #FFB5A0 · Espresso #3A2C26
            Burnt Sienna #B45A3C · Gold Leaf #C9A24B
   Type: Noto Serif KR (display) · Noto Sans KR (body)
   ========================================================= */

:root {
    --mist: #FAF3E8;
    --silk: #F5D0C0;
    --coral: #FFB5A0;
    --ink: #3A2C26;
    --ink-soft: #6f5f56;
    --sienna: #B45A3C;
    --gold: #C9A24B;
    --paper: #fffaf3;
    --line: rgba(58, 44, 38, 0.12);

    --serif: "Noto Serif KR", serif;
    --sans: "Noto Sans KR", system-ui, sans-serif;

    --maxw: 1160px;
    --radius: 22px;
    --shadow: 0 24px 60px -28px rgba(120, 70, 50, 0.45);
    --dock-h: 86px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--mist);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: var(--dock-h);
}

img { max-width: 100%; display: block; }

/* ---------- shared bits ---------- */
.section { padding: clamp(64px, 9vw, 130px) 24px; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }

.eyebrow {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sienna);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 1.2em;
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: #fff; }
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px rgba(255, 181, 160, 0.3);
}
.eyebrow.light .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }

.section-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
}
.section-lead {
    margin-top: 1.1em;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* ---------- buttons ---------- */
.btn {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.98rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.95em 1.7em;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    line-height: 1;
}
.btn i { font-size: 1.05em; }
.btn-icon { width: 1.35em; height: 1.35em; object-fit: contain; }

.btn-primary {
    background: linear-gradient(135deg, #FFC2AC 0%, var(--coral) 55%, var(--sienna) 130%);
    color: #4a2a1c;
    box-shadow: 0 14px 30px -12px rgba(180, 90, 60, 0.65);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(180, 90, 60, 0.7); }
.btn-lg { padding: 1.15em 2.4em; font-size: 1.08rem; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 0.65em 1.15em; font-size: 0.85rem; }

.btn-text {
    background: transparent;
    color: var(--ink);
    padding-left: 0.4em;
    padding-right: 0.8em;
}
.btn-text i { color: var(--sienna); font-size: 1.5em; }
.btn-text:hover { color: var(--sienna); }

/* ---------- top bar ---------- */
.topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px clamp(20px, 5vw, 56px);
}
.brand { display: inline-flex; align-items: center; gap: 0.55em; text-decoration: none; color: var(--ink); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--coral), var(--sienna));
    color: #fff; font-size: 1rem;
    box-shadow: 0 8px 18px -8px rgba(180,90,60,.7);
}
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; color: var(--sienna); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(120% 90% at 85% 0%, #FFE6DA 0%, transparent 55%),
        radial-gradient(90% 80% at 0% 100%, var(--silk) 0%, transparent 50%),
        var(--mist);
    padding: clamp(120px, 16vw, 170px) 24px clamp(60px, 8vw, 90px);
    overflow: hidden;
}
.hero-grain {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(180,90,60,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
    position: relative;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.7rem, 6.4vw, 4.7rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.hero-title .ink {
    position: relative;
    color: var(--sienna);
}
.hero-title .ink::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0.07em;
    height: 0.34em;
    background: linear-gradient(90deg, var(--coral), transparent);
    opacity: 0.35; z-index: -1; border-radius: 4px;
}
.hero-sub {
    margin: 1.5em 0 2.2em;
    color: var(--ink-soft);
    font-size: 1.1rem;
    max-width: 30em;
}
.hero-actions { display: flex; align-items: center; gap: 0.6em 1.2em; flex-wrap: wrap; }
.hero-stats {
    list-style: none;
    display: flex; gap: clamp(20px, 4vw, 48px);
    margin-top: 2.8em;
    border-top: 1px solid var(--line);
    padding-top: 1.6em;
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.2em; }
.hero-stats strong {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--ink);
}
.hero-stats strong span { color: var(--coral); }
.hero-stats small { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }

/* hero visual */
.hero-visual { position: relative; min-height: 460px; }
.ribbon { position: absolute; inset: -6% -4% auto; width: 90%; height: 108%; z-index: 1; }
.ribbon-path {
    stroke: var(--gold);
    stroke-width: 2.4;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw 2.6s ease forwards 0.3s;
    filter: drop-shadow(0 4px 10px rgba(201,162,75,0.4));
}
.ribbon-path--soft { stroke: var(--coral); stroke-width: 1.6; opacity: 0.6; animation-delay: 0.55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.portrait-halo {
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 86%; aspect-ratio: 1/1.05;
    border-radius: 48% 48% 40% 40% / 55% 55% 45% 45%;
    background: radial-gradient(closest-side, #fff 0%, #FFE3D6 60%, transparent 100%);
    box-shadow: var(--shadow);
    z-index: 1;
}
.portrait {
    position: relative;
    z-index: 3;
    width: 92%;
    margin: 0 auto;
    filter: drop-shadow(0 30px 40px rgba(120, 70, 50, 0.28));
    animation: rise 1.1s cubic-bezier(.2,.7,.3,1) both 0.2s;
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.glass-card {
    position: absolute;
    z-index: 4;
    display: flex; align-items: center; gap: 0.7em;
    padding: 0.75em 1.05em;
    background: rgba(255, 252, 248, 0.72);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -18px rgba(120, 70, 50, 0.55);
}
.glass-card b { font-family: var(--serif); font-size: 1.02rem; display: block; line-height: 1.1; }
.glass-card small { font-size: 0.72rem; color: var(--ink-soft); }
.glass-card small.up { color: #2f8f5b; font-weight: 700; }
.glass-card i { color: var(--sienna); font-size: 1.1rem; }
.glass-card--live { top: 8%; left: -4%; }
.glass-card--rate { top: 40%; right: -6%; }
.glass-card--alert { bottom: 9%; left: 2%; }
.live-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #e8503a;
    box-shadow: 0 0 0 0 rgba(232,80,58,0.6);
    animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(232,80,58,.55);} 70%{box-shadow:0 0 0 9px rgba(232,80,58,0);} 100%{box-shadow:0 0 0 0 rgba(232,80,58,0);} }

.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out infinite 0.6s; }
.float-c { animation: float 6.5s ease-in-out infinite 1.1s; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

/* ---------- ticker ---------- */
.ticker {
    background: var(--ink);
    color: var(--mist);
    overflow: hidden;
    padding: 16px 0;
    border-top: 3px solid var(--coral);
}
.ticker-track {
    display: inline-flex; align-items: center; gap: 1.6em;
    white-space: nowrap;
    animation: marquee 26s linear infinite;
    font-family: var(--serif);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}
.ticker .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.cards {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-ico {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--silk), var(--coral));
    color: var(--sienna);
    font-size: 1.35rem;
    margin-bottom: 1.1em;
}
.card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5em; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- feature rows ---------- */
.feature { padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 70px); }
.feature-row {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(36px, 6vw, 84px);
}
.feature-media { position: relative; }
.feature-media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3.1;
    object-fit: cover;
}
.media-index {
    position: absolute;
    top: -22px; left: -14px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(3rem, 7vw, 5rem);
    color: #fff;
    -webkit-text-stroke: 2px var(--coral);
    text-stroke: 2px var(--coral);
    opacity: 0.95;
    z-index: 2;
    line-height: 1;
    text-shadow: 0 8px 20px rgba(180,90,60,0.25);
}
.feature--alt .media-index { left: auto; right: -14px; }
.feature-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin-bottom: 0.6em;
}
.feature-body { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.6em; max-width: 32em; }
.ticks { list-style: none; margin: 0 0 2em; display: grid; gap: 0.7em; }
.ticks li { display: flex; align-items: center; gap: 0.8em; font-weight: 500; }
.ticks i {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--silk); color: var(--sienna);
    font-size: 0.75rem; flex: none;
}

/* ---------- mentor ---------- */
.mentor {
    background:
        radial-gradient(80% 120% at 100% 0%, #FFE6DA 0%, transparent 50%),
        var(--paper);
}
.mentor-inner {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
}
.mentor-portrait { position: relative; }
.mentor-ring {
    position: absolute; inset: 6% 8% 0;
    border-radius: 50% 50% 44% 44%;
    background: radial-gradient(closest-side, var(--silk), transparent 75%);
}
.mentor-portrait img {
    position: relative; z-index: 2;
    filter: drop-shadow(0 24px 32px rgba(120,70,50,0.28));
}
.mentor-quote {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2.3vw, 1.55rem);
    line-height: 1.6;
    color: var(--ink);
    margin: 1.2em 0 0.8em;
    padding-left: 0.8em;
    border-left: 3px solid var(--coral);
}
.mentor-sign { color: var(--sienna); font-weight: 700; letter-spacing: 0.02em; }

/* ---------- final CTA ---------- */
.cta {
    background: linear-gradient(135deg, #5a3326 0%, var(--ink) 100%);
    text-align: center;
    color: var(--mist);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(60% 90% at 50% 0%, rgba(255,181,160,0.25), transparent 60%);
}
.cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.3rem);
    color: #fff;
    margin-bottom: 0.4em;
}
.cta-sub { color: rgba(255,255,255,0.82); font-size: 1.08rem; margin-bottom: 2.2em; }
.cta-note { margin-top: 1.4em; font-size: 0.86rem; color: rgba(255,255,255,0.62); }
.cta-note i { color: var(--coral); }

/* ---------- footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(250, 243, 232, 0.7);
    padding: clamp(50px, 7vw, 80px) 24px 110px;
    font-size: 0.9rem;
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin-top: 0.8em; max-width: 24em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.link-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(250,243,232,0.78);
    font-family: var(--sans); font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.5em;
    transition: color 0.2s;
}
.link-btn i { color: var(--coral); }
.link-btn:hover { color: #fff; }
.footer-disc { max-width: var(--maxw); margin: 24px auto 0; font-size: 0.78rem; opacity: 0.6; line-height: 1.7; }
.footer-copy { max-width: var(--maxw); margin: 14px auto 0; font-size: 0.8rem; opacity: 0.55; }

/* ---------- fixed dock ---------- */
.dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex; justify-content: center;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(250,243,232,0) 0%, rgba(250,243,232,0.92) 38%, #FAF3E8 100%);
    backdrop-filter: blur(6px);
}
.dock-btn { width: min(520px, 100%); box-shadow: 0 16px 34px -12px rgba(180,90,60,0.7); }

/* ---------- modals ---------- */
.modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(40, 28, 22, 0.55);
    backdrop-filter: blur(4px);
}
.modal.open { display: flex; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
    background: var(--paper);
    border-radius: var(--radius);
    max-width: 600px; width: 100%;
    max-height: 84vh; overflow-y: auto;
    padding: clamp(28px, 4vw, 44px);
    position: relative;
    box-shadow: var(--shadow);
    animation: pop 0.3s cubic-bezier(.2,.8,.3,1);
}
@keyframes pop { from { transform: translateY(18px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x {
    position: absolute; top: 18px; right: 18px;
    width: 38px; height: 38px; border-radius: 50%;
    border: none; cursor: pointer;
    background: var(--silk); color: var(--sienna);
    font-size: 1rem;
    display: grid; place-items: center;
    transition: background 0.2s, transform 0.2s;
}
.modal-x:hover { background: var(--coral); transform: rotate(90deg); }
.modal-title { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; margin-bottom: 1em; padding-right: 40px; }
.modal-body p { color: var(--ink-soft); margin-bottom: 1em; font-size: 0.96rem; }
.modal-body b { color: var(--ink); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; min-height: 380px; max-width: 420px; margin: 0 auto; }
    .hero-stats { justify-content: space-between; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; }
    .feature--alt .feature-media { order: -1; }
    .mentor-inner { grid-template-columns: 1fr; text-align: center; }
    .mentor-portrait { max-width: 300px; margin: 0 auto; }
    .mentor-quote { border-left: none; padding-left: 0; }
    .footer-inner { flex-direction: column; }
}

@media (max-width: 540px) {
    /* ---- 더 촘촘한 모바일 레이아웃 ---- */
    .section { padding: 46px 20px; }
    .section-head { margin-bottom: 30px; }
    .section-lead { font-size: 0.98rem; margin-top: 0.9em; }

    /* hero */
    .hero { padding: 100px 20px 34px; }
    .hero-visual { min-height: 300px; max-width: 330px; }
    .hero-title { font-size: clamp(2.4rem, 11vw, 3rem); }
    .hero-sub { font-size: 1rem; margin: 1.1em 0 1.5em; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 0.5em; }
    .hero-actions .btn { width: 100%; }
    .hero-actions .btn-text { justify-content: center; }
    .hero-stats { gap: 12px; margin-top: 1.7em; padding-top: 1.2em; }
    .hero-stats strong { font-size: 1.5rem; }
    .topbar { padding: 16px 20px; }
    .topbar .btn-ghost { display: none; }
    .glass-card { padding: 0.6em 0.85em; }
    .glass-card--rate { right: -2%; }
    .glass-card--live { left: 0; }

    /* ticker */
    .ticker { padding: 12px 0; }
    .ticker-track { font-size: 0.95rem; gap: 1.2em; }

    /* value cards — 모바일에서도 2열 */
    .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card { padding: 20px 16px; }
    .card-ico { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 0.7em; }
    .card h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
    .card p { font-size: 0.88rem; }

    /* feature rows */
    .feature { padding-top: 34px; padding-bottom: 34px; }
    .feature-row { gap: 26px; }
    .feature-title { font-size: clamp(1.6rem, 7vw, 2rem); margin-bottom: 0.5em; }
    .feature-body { font-size: 1rem; margin-bottom: 1.2em; }
    .ticks { gap: 0.55em; margin-bottom: 1.5em; }
    .media-index { font-size: 3rem; top: -16px; }

    /* mentor */
    .mentor-inner { gap: 20px; }
    .mentor-portrait { max-width: 220px; }
    .mentor-quote { font-size: 1.12rem; margin: 1em 0 0.6em; }

    /* final cta */
    .cta-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
    .cta-sub { font-size: 1rem; margin-bottom: 1.7em; }

    /* dock */
    .dock { padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); }
    .dock-btn { padding: 0.85em 1.2em; }
    .dock-btn span { font-size: 0.9rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .ribbon-path { stroke-dashoffset: 0; }
}
