@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

/* ============================================================
   ExoDesign — Design System v2 (Light / Premium / Indigo)
   Type: Pretendard · Accent: Deep Indigo · Motion: GSAP + Lenis
   ============================================================ */

/* ===== Tokens ===== */
:root {
    /* Surfaces */
    --bg: #ffffff;
    --bg-2: #f7f8fa;
    --bg-tint: #f3f3fb;
    --panel: #0e1016;
    --panel-2: #161922;
    --panel-3: #1d2130;
    --panel-line: #2a2f3d;

    /* Ink */
    --ink: #0c0d14;
    --ink-2: #44454f;
    --ink-3: #74757f;
    --ink-on-panel: #e7e8ee;
    --ink-on-panel-2: #9aa0b0;

    /* Lines */
    --line: #ebecf0;
    --line-2: #dcdde3;

    /* Accent — Deep Indigo */
    --indigo: #4338ca;
    --indigo-600: #4f46e5;
    --indigo-700: #3730a3;
    --indigo-tint: #eef0fe;
    --indigo-soft: #e0e3fd;

    /* Radius */
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    /* Shadow */
    --sh-sm: 0 1px 2px rgba(12, 13, 20, .04), 0 2px 6px rgba(12, 13, 20, .05);
    --sh: 0 12px 28px -14px rgba(12, 13, 20, .20);
    --sh-lg: 0 36px 70px -28px rgba(20, 22, 50, .35);
    --sh-indigo: 0 18px 40px -16px rgba(67, 56, 202, .45);

    /* Layout */
    --maxw: 1200px;
    --nav-h: 72px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
        system-ui, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--indigo-soft); color: var(--indigo-700); }

/* Legacy dark-theme bg elements neutralized for light theme */
.bg-gradient, .particles { display: none !important; }

/* ===== Layout helpers ===== */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tint { background: var(--bg-2); }

/* ===== Typography ===== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--indigo);
}
.eyebrow::before {
    content: "";
    width: 18px; height: 1px;
    background: var(--indigo);
    opacity: .6;
}

.display {
    font-weight: 800;
    font-size: clamp(2.3rem, 6vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--ink);
}
.h2 {
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.h3 {
    font-weight: 700;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    letter-spacing: -0.02em;
}
.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    color: var(--ink-2);
    font-weight: 400;
}
.muted { color: var(--ink-3); }
.accent { color: var(--indigo); }

.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
.section-head .h2 { margin: 1rem 0 .9rem; }
.section-head .lead { margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: var(--indigo);
    color: #fff;
    box-shadow: var(--sh-indigo);
}
.btn-primary:hover { background: var(--indigo-700); transform: translateY(-2px); }
.btn-ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-2);
    box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-text {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; color: var(--indigo);
    transition: gap .2s var(--ease);
}
.btn-text:hover { gap: .7rem; }
.btn-text svg { width: 16px; height: 16px; }

/* ===== Navigation ===== */
.nav {
    position: fixed; inset: 0 0 auto 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
    background: rgba(255, 255, 255, .88);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 30px -20px rgba(12, 13, 20, .35);
}
.nav-container {
    max-width: var(--maxw);
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: .55rem;
    font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--ink);
}
.nav-logo img { height: 30px; width: auto; }
.nav-logo .exo { color: var(--indigo); }

.nav-menu { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .55rem .85rem;
    font-size: .96rem; font-weight: 600;
    color: var(--ink-2);
    border-radius: 10px;
    transition: color .2s, background .2s;
}
.nav-item:hover .nav-link, .nav-link.active { color: var(--ink); }
.nav-item:has(.nav-dropdown) > .nav-link::after {
    content: "";
    width: 7px; height: 7px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: .5;
    transition: transform .25s var(--ease);
}
.nav-item:hover:has(.nav-dropdown) > .nav-link::after { transform: rotate(225deg) translateY(-1px); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--sh-lg);
    padding: .5rem;
    opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown::before {
    content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px;
}
.nav-dropdown-link {
    display: block;
    padding: .65rem .8rem;
    font-size: .92rem; font-weight: 500;
    color: var(--ink-2);
    border-radius: 10px;
    transition: background .15s, color .15s;
}
.nav-dropdown-link:hover { background: var(--indigo-tint); color: var(--indigo-700); }
.nav-dropdown-link.sub { font-size: .85rem; padding-left: 1.6rem; color: var(--ink-3); }
.nav-dropdown-soon { opacity: .55; cursor: default; }
.nav-dropdown-soon:hover { background: transparent; color: var(--ink-3); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px; background: none; border: none; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
    padding-bottom: clamp(3rem, 7vw, 6rem);
    overflow: hidden;
}
.hero::before {
    /* soft indigo aura behind product window */
    content: "";
    position: absolute;
    top: -10%; right: -5%;
    width: 60vw; height: 60vw;
    max-width: 820px; max-height: 820px;
    background: radial-gradient(circle at 60% 40%, rgba(79, 70, 229, .26), rgba(79, 70, 229, 0) 62%);
    z-index: -1;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-copy { max-width: 560px; }
.hero-copy .display { margin: 1.1rem 0; }
.hero-copy .display .grad {
    background: linear-gradient(100deg, var(--indigo-600), #7c6df2 55%, #06b6d4);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-copy .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    margin-top: 2rem; padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: .88rem; color: var(--ink-3); font-weight: 500;
}
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }

/* ===== Hero video placeholder ===== */
.hero-video {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 70% 10%, rgba(79,70,229,.22), transparent 60%),
        linear-gradient(155deg, #14152b, #1b1d3e 55%, #0e1016);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--sh-lg);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-inner {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; text-align: center; color: #fff;
}
.hero-video-tag {
    position: absolute; top: 16px; left: 16px;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .8rem; border-radius: 999px;
    background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
    font-size: .8rem; font-weight: 600; letter-spacing: -.01em;
}
.hero-video-tag .d { width: 7px; height: 7px; border-radius: 50%; background: #fe0201; box-shadow: 0 0 0 3px rgba(254,2,1,.2); }
.hero-video-play {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,.96); color: var(--indigo);
    border: none; display: grid; place-items: center;
    box-shadow: 0 14px 40px -10px rgba(79,70,229,.6);
    transition: transform .25s var(--ease);
}
.hero-video-play svg { width: 30px; height: 30px; margin-left: 3px; }
.hero-video-play:hover { transform: scale(1.08); }
.hero-video-cap { font-size: .92rem; color: rgba(255,255,255,.82); line-height: 1.6; }
.hero-video-cap small { color: rgba(255,255,255,.5); font-size: .82rem; }

/* ===== InStudio App Window (the star) ===== */
.appwin {
    --win-bg: var(--panel);
    background: var(--win-bg);
    border: 1px solid #21242f;
    border-radius: 16px;
    box-shadow: var(--sh-lg);
    overflow: hidden;
    color: var(--ink-on-panel);
    font-size: 13px;
    user-select: none;
}
.appwin-bar {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem .85rem;
    background: #0b0d12;
    border-bottom: 1px solid var(--panel-line);
}
.appwin-bar .dots { display: flex; gap: 6px; }
.appwin-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.appwin-bar .dots i:nth-child(1) { background: #ff5f57; }
.appwin-bar .dots i:nth-child(2) { background: #febc2e; }
.appwin-bar .dots i:nth-child(3) { background: #28c840; }
.appwin-bar .title { font-size: 11.5px; color: var(--ink-on-panel-2); font-weight: 500; }

.appwin-body { display: grid; grid-template-columns: 152px 1fr; min-height: 420px; }

.app-side {
    background: #0b0d12;
    border-right: 1px solid var(--panel-line);
    padding: .9rem .65rem;
    display: flex; flex-direction: column;
}
.app-brand { display: flex; align-items: center; gap: .5rem; padding: .25rem .35rem .9rem; }
.app-brand .mark {
    width: 26px; height: 26px; border-radius: 7px;
    background: #fe0201;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 800; color: #fff;
}
.app-brand b { font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.app-brand small { display: block; font-size: 9px; color: var(--ink-on-panel-2); font-weight: 500; }

.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav .ai {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .55rem;
    border-radius: 8px;
    color: var(--ink-on-panel-2);
    font-size: 12px; font-weight: 500;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.app-nav .ai .ic {
    width: 16px; height: 16px; flex: 0 0 16px;
    display: grid; place-items: center;
    opacity: .85;
}
.app-nav .ai.is-active {
    background: linear-gradient(100deg, #fe0201, #ff4b4a);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(254, 2, 1, .7);
}
.app-nav .sep { height: 1px; background: var(--panel-line); margin: .6rem .3rem; }
.app-side .app-status {
    margin-top: auto;
    display: flex; align-items: center; gap: .45rem;
    padding: .55rem;
    border-radius: 8px;
    background: #11141c;
    font-size: 10.5px; color: var(--ink-on-panel-2);
}
.app-side .app-status .live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.app-side .app-status b { color: #4ade80; font-weight: 600; }

.app-main { position: relative; padding: 1.1rem 1.2rem; }
.app-screen { display: none; }
.app-screen.is-active { display: block; animation: scrIn .5s var(--ease-out); }
@keyframes scrIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app-h { font-size: 16px; font-weight: 700; margin-bottom: .2rem; }
.app-sub { font-size: 11.5px; color: var(--ink-on-panel-2); margin-bottom: 1rem; }

/* path-setup screen */
.field { margin-bottom: .8rem; }
.field label { display: block; font-size: 11px; color: var(--ink-on-panel-2); margin-bottom: .35rem; }
.field .row { display: flex; gap: .5rem; }
.field .inp {
    flex: 1; padding: .55rem .65rem;
    background: #11141c; border: 1px solid var(--panel-line);
    border-radius: 8px; font-size: 11px; color: #c7cad6;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.field .mini-btn {
    padding: .55rem .7rem; border-radius: 8px;
    background: #1b1f2b; border: 1px solid var(--panel-line);
    color: #c7cad6; font-size: 11px; font-weight: 600;
}
.field .mini-btn.solid { background: linear-gradient(135deg,#6d5efc,#7c6df2); border-color: transparent; color: #fff; }

/* analyze / progress */
.scan-stat { display: flex; gap: .7rem; margin-bottom: 1rem; }
.scan-card { flex: 1; background: #11141c; border: 1px solid var(--panel-line); border-radius: 10px; padding: .7rem .8rem; }
.scan-card .n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.scan-card .l { font-size: 10.5px; color: var(--ink-on-panel-2); }
.bar { height: 7px; border-radius: 999px; background: #11141c; overflow: hidden; margin: .2rem 0 .3rem; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#6d5efc,#06b6d4); width: 0; }
.app-screen.is-active .bar i { animation: fill 1.6s var(--ease-out) forwards; }
@keyframes fill { to { width: var(--w, 100%); } }
.log { font-size: 10.5px; color: var(--ink-on-panel-2); line-height: 1.8; font-variant-numeric: tabular-nums; }
.log .ok { color: #4ade80; }

/* labeler list */
.lab-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; border-radius: 8px; background: #11141c; border: 1px solid var(--panel-line); margin-bottom: .45rem; }
.lab-row .th { width: 30px; height: 30px; border-radius: 6px; flex: 0 0 30px; }
.lab-row .nm { font-size: 11px; color: #c7cad6; flex: 1; }
.lab-row .tag { font-size: 10px; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; background: rgba(109,94,252,.18); color: #b3a9ff; }

/* ===== Album spread (placement star) ===== */
.spread {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 16px 40px -18px rgba(0,0,0,.7);
}
.spread-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.spread-head b { color: #0c0d14; font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.spread-head span { color: #9aa0b0; font-size: 9.5px; }
.grid-frames {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}
.frame {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 5px;
    background: #eef0f4;
    border: 1px dashed #c7cbd6;
    overflow: hidden;
}
.frame .ph {
    position: absolute; inset: 0;
    border-radius: 4px;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(.6) translateY(14px);
    transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.frame.filled { border-style: solid; border-color: transparent; }
.frame.filled .ph { opacity: 1; transform: none; }
.frame .lbl {
    position: absolute; left: 4px; bottom: 4px;
    font-size: 7px; font-weight: 700; color: #fff;
    background: rgba(12,13,20,.55); padding: 1px 4px; border-radius: 3px;
    opacity: 0; transition: opacity .3s .2s;
}
.frame.filled .lbl { opacity: 1; }
.spread-foot { display: flex; align-items: center; gap: .5rem; margin-top: 10px; }
.spread-foot .pct { font-size: 10px; font-weight: 700; color: #4338ca; }
.spread-foot .track { flex: 1; height: 5px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.spread-foot .track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#4f46e5,#06b6d4); transition: width .4s var(--ease); }

/* portrait tile fallback gradient (used until AI photos load) */
.ph[data-fallback] { background-image: var(--g); }

/* ===== Sticky scroll walkthrough (clerk pattern) ===== */
.flow { position: relative; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.flow-steps { display: flex; flex-direction: column; }
.flow-step {
    padding: clamp(3.5rem, 14vh, 9rem) 0;
    border-top: 1px solid var(--line);
}
.flow-step:first-child { border-top: none; padding-top: 1rem; }
.flow-step .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--indigo-tint); color: var(--indigo-700);
    font-weight: 800; font-size: .9rem;
    margin-bottom: 1rem;
    transition: background .3s, color .3s, transform .3s var(--ease);
}
.flow-step.is-active .num { background: var(--indigo); color: #fff; transform: scale(1.05); }
.flow-step h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .7rem; }
.flow-step p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; max-width: 30rem; }
.flow-step .opacity-gate { opacity: .45; transition: opacity .35s var(--ease); }
.flow-step.is-active .opacity-gate { opacity: 1; }

.flow-sticky { position: sticky; top: calc(var(--nav-h) + 4vh); }
.flow-sticky .appwin, .flow-sticky .shot { width: 100%; }

/* screenshot window — real InSnapper captures */
.shot { background: #0b0d12; border: 1px solid #21242f; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-lg); }
.shot-bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; background: #0b0d12; border-bottom: 1px solid #1c1f29; }
.shot-bar .dots { display: flex; gap: 6px; }
.shot-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.shot-bar .dots i:nth-child(1) { background: #ff5f57; }
.shot-bar .dots i:nth-child(2) { background: #febc2e; }
.shot-bar .dots i:nth-child(3) { background: #28c840; }
.shot-title { font-size: 11.5px; color: #9aa0b0; font-weight: 500; }
.shot-stage { position: relative; aspect-ratio: 4 / 3; background: #0e1016; }
.shot-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s var(--ease); }
.shot-stage.swapping img { opacity: .15; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.stat { text-align: center; }
.stat .n { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat .n .u { color: var(--indigo); }
.stat .l { margin-top: .6rem; color: var(--ink-3); font-size: .95rem; font-weight: 500; }
.stat .n span[data-stat] { font-variant-numeric: tabular-nums; }

/* grouped stats (ExoDesign은 / InSnapper는) */
.stat-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.stat-group + .stat-group { border-left: 1px solid var(--line-2); padding-left: clamp(1.5rem, 5vw, 4rem); }
.stat-group-title {
    display: block; text-align: center;
    font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 700; color: var(--ink);
    letter-spacing: -.02em; margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.stat-group-title b { color: var(--indigo); font-weight: 800; }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }

@media (max-width: 720px) {
    .stat-groups { grid-template-columns: 1fr; gap: 2.5rem; }
    .stat-group + .stat-group { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2.5rem; }
}

/* ===== Feature cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.8rem;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--line-2); }
.card .ic {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--indigo-tint); color: var(--indigo);
    margin-bottom: 1.1rem;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.card p { color: var(--ink-3); font-size: .96rem; line-height: 1.65; }

/* ===== Spotlight (InSnapper close) ===== */
.spot {
    background: linear-gradient(140deg, #14152b 0%, #1c1d3e 45%, #2a1f55 100%);
    border-radius: var(--r-xl);
    padding: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.spot::after {
    content: ""; position: absolute; right: -10%; top: -30%;
    width: 50%; height: 160%;
    background: radial-gradient(circle, rgba(124,109,242,.35), transparent 60%);
}
.spot .inner { position: relative; max-width: 620px; }
.spot .h2 { color: #fff; }
.spot .lead { color: #c7cad6; margin: 1rem 0 2rem; }

/* ===== CTA ===== */
.cta { text-align: center; }
.cta .h2 { margin-bottom: .9rem; }
.cta .lead { margin: 0 auto 2rem; max-width: 540px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }

/* ===== Footer ===== */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.footer-logo img { height: 28px; }
.footer-logo .exo { color: var(--indigo); }
.footer-description { color: var(--ink-3); font-size: .92rem; line-height: 1.7; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-link { color: var(--ink-2); font-size: .94rem; transition: color .2s; }
.footer-link:hover { color: var(--indigo); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: .86rem;
}
.footer-bottom p { margin: 0; white-space: nowrap; }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: .65rem 0; }
.footer-policy-links a { color: var(--ink-2); font-weight: 500; transition: color .2s; }
.footer-policy-links a + a { margin-left: 1.5rem; }
.footer-policy-links a:nth-child(2) { font-weight: 700; color: var(--ink); }
.footer-policy-links a:hover { color: var(--indigo); }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-copy { max-width: 640px; }
    .flow-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    /* 모바일: 앱 화면을 상단에 고정하고 텍스트만 뒤로 스크롤 → 단계별 이미지 전환.
       .flow-grid가 끝나면 sticky가 풀려 앱 화면도 함께 올라갑니다. */
    .flow-sticky {
        position: sticky; top: var(--nav-h); order: -1;
        z-index: 3; background: var(--bg);
        padding-bottom: .85rem; margin-bottom: .25rem;
    }
    .flow-sticky .shot-stage { max-height: 48vh; }
    .flow-step { padding: 2rem 0; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; inset: var(--nav-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: .5rem; box-shadow: var(--sh);
        max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
        transition: max-height .35s var(--ease), opacity .25s, visibility .25s;
    }
    .nav-menu.active { max-height: 80vh; opacity: 1; visibility: visible; }
    .nav-link { padding: .85rem 1rem; justify-content: space-between; }
    .nav-dropdown {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; border: none; border-radius: 0;
        max-height: 0; overflow: hidden; padding: 0 0 0 .8rem; min-width: 0;
        transition: max-height .3s var(--ease);
    }
    .nav-item.dropdown-open .nav-dropdown { max-height: 320px; }
    /* 데스크탑 호버 규칙이 모바일에서 드롭다운을 좌측으로 밀어 텍스트가 사라지는 문제 방지 */
    .nav-item:hover .nav-dropdown { transform: none; }
    .nav-dropdown::before { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .cards { grid-template-columns: 1fr; }
    .grid-frames { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 460px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-bottom p { white-space: normal; }
    .hero-actions .btn, .cta-actions .btn { flex: 1; }
}

/* ============================================================
   LEGACY COMPAT LAYER
   기존 페이지(about/faq/notice/contact/inquiry/insnapper/manual)가
   새 라이트 테마에서 깨지지 않도록 옛 변수·클래스를 재매핑합니다.
   기존 HTML/JS/API는 수정하지 않습니다.
   ============================================================ */
:root {
    --color-bg-dark: #ffffff;
    --color-bg-darker: #f7f8fa;
    --color-bg-card: #ffffff;
    --color-bg-card-hover: #ffffff;
    --color-primary: #4338ca;
    --color-secondary: #4f46e5;
    --color-accent: #4f46e5;
    --color-success: #22c55e;
    --color-text: #0c0d14;
    --color-text-muted: #44454f;
    --color-text-dim: #74757f;
    --color-border: #ebecf0;
    --color-border-hover: #dcdde3;

    --gradient-primary: linear-gradient(100deg, #4f46e5, #6d5efc);
    --gradient-accent: linear-gradient(100deg, #4f46e5, #06b6d4);
    --gradient-bg: none;
    --gradient-border: linear-gradient(100deg, #4f46e5, #06b6d4);

    --font-main: var(--font);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    --max-width: 1200px;
    --nav-height: 72px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-card: 0 12px 28px -14px rgba(12,13,20,.2);
    --shadow-glow: 0 12px 28px -14px rgba(67,56,202,.3);
    --shadow-glow-strong: 0 18px 40px -16px rgba(67,56,202,.4);
}

/* legacy hero (insnapper 등) */
.hero-content { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem; margin-bottom: 1.4rem;
    background: var(--indigo-tint); border: 1px solid var(--indigo-soft);
    border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--indigo-700);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.hero-title { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.hero-title .gradient-text, .gradient-text {
    background: linear-gradient(100deg, var(--indigo-600), #7c6df2 55%, #06b6d4);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-description { font-size: 1.15rem; color: var(--ink-2); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* legacy buttons */
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--sh-sm); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-icon { width: 18px; height: 18px; }

/* legacy sections */
.section-container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-badge {
    display: inline-block; padding: .35rem 1rem; margin-bottom: 1rem;
    background: var(--indigo-tint); border: 1px solid var(--indigo-soft); border-radius: 999px;
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--indigo);
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .8rem; }
.section-description { font-size: 1.1rem; color: var(--ink-2); max-width: 620px; margin: 0 auto; line-height: 1.7; }

/* legacy cards */
.card::before { display: none; }
.card-icon {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: var(--indigo-tint); border-radius: 14px; margin-bottom: 1.1rem; font-size: 1.4rem;
}
.card-icon img { width: 30px; height: 30px; object-fit: contain; }
.card-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.card-description { color: var(--ink-3); font-size: .96rem; line-height: 1.65; }
.card-link {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem;
    color: var(--indigo); font-weight: 600; transition: gap .2s var(--ease);
}
.card-link:hover { gap: .7rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* legacy feature card */
.feature-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.feature-card.reverse { direction: rtl; }
.feature-card.reverse > * { direction: ltr; }
.feature-card-content { padding: 0; }
.feature-card-image { border-radius: 16px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.feature-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* legacy stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,3vw,2rem); text-align: center; }
.stat-item { padding: 1rem; }
.stat-number { font-size: clamp(2.2rem,5vw,3rem); font-weight: 800; letter-spacing: -.04em; color: var(--indigo); }
.stat-label { color: var(--ink-3); font-size: .95rem; margin-top: .5rem; }

/* legacy gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.2rem; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--sh-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,13,20,.7), transparent); display: flex; align-items: flex-end; padding: 1rem; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-title { color: #fff; font-weight: 600; }

/* legacy forms (contact/inquiry) — light, keep names/ids for JS+API */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; margin-bottom: .5rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.form-input, .form-textarea {
    width: 100%; padding: .8rem 1rem;
    background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
    color: var(--ink); font-family: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-3); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-tint); }
.form-input:-webkit-autofill, .form-input:-webkit-autofill:hover, .form-input:-webkit-autofill:focus, .form-textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important; -webkit-text-fill-color: var(--ink) !important;
    transition: background-color 5000s ease-in-out 0s;
}
.form-textarea { min-height: 150px; resize: vertical; }

/* legacy reveal (uses js/main.js) */
.fade-in, .fade-in-left, .fade-in-right { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.fade-in-left { transform: translateX(-28px); }
.fade-in-right { transform: translateX(28px); }
.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: none; }
.stagger-1 { transition-delay: .08s; }
.stagger-2 { transition-delay: .16s; }
.stagger-3 { transition-delay: .24s; }

/* legacy utilities */
.text-center { text-align: center; }
.mt-md { margin-top: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

@media (max-width: 768px) {
    .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card { grid-template-columns: 1fr; }
}
