/* ==========================================================================
   THRU.AI.KR — CityCat AI Project Hub
   ========================================================================== */

:root {
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    --container: 1200px;
    --gutter: 24px;
    --radius: 22px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --grad-brand: linear-gradient(120deg, #8b5cf6 0%, #6366f1 40%, #22d3ee 100%);
    --brand: #7c5cff;
    --brand-2: #22d3ee;

    /* dark (기본) */
    color-scheme: dark;
    --bg: #060913;
    --bg-alt: #080c18;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .18);
    --text: #eef2fb;
    --text-2: #a9b2c8;
    --text-3: #6f7a93;
    --card-bg: #0c1222;
    --input-bg: rgba(255, 255, 255, .04);
    --header-bg: rgba(6, 9, 19, .7);
    --grid-line: rgba(255, 255, 255, .04);
    --blob-opacity: .38;
    --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .7);
    --danger: #f87171;
    --success: #34d399;
    --focus: 0 0 0 4px rgba(124, 92, 255, .28);
    --ok: #4ade80;
    --warn: #fbbf24;
    --bad: #f87171;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7fc;
    --bg-alt: #eef1f8;
    --surface: #ffffff;
    --surface-2: #eef1f7;
    --border: #e2e7f0;
    --border-strong: #cfd6e3;
    --text: #0d1321;
    --text-2: #4a5468;
    --text-3: #8a93a6;
    --card-bg: #ffffff;
    --input-bg: #f7f9fc;
    --header-bg: rgba(245, 247, 252, .78);
    --grid-line: rgba(15, 23, 42, .045);
    --blob-opacity: .22;
    --shadow-lg: 0 30px 60px -32px rgba(30, 41, 80, .28);
    --danger: #dc2626;
    --success: #059669;
    --ok: #16a34a;
    --warn: #d97706;
    --bad: #dc2626;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg: #f5f7fc;
        --bg-alt: #eef1f8;
        --surface: #ffffff;
        --surface-2: #eef1f7;
        --border: #e2e7f0;
        --border-strong: #cfd6e3;
        --text: #0d1321;
        --text-2: #4a5468;
        --text-3: #8a93a6;
        --card-bg: #ffffff;
        --input-bg: #f7f9fc;
        --header-bg: rgba(245, 247, 252, .78);
        --grid-line: rgba(15, 23, 42, .045);
        --blob-opacity: .22;
        --shadow-lg: 0 30px 60px -32px rgba(30, 41, 80, .28);
        --danger: #dc2626;
        --success: #059669;
        --ok: #16a34a;
        --warn: #d97706;
        --bad: #dc2626;
    }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
    overflow-wrap: anywhere;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* 배경 장식 */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-opacity);
    animation: blob-float 22s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 520px; left: -140px; top: -120px; background: #7c3aed; }
.blob-2 { width: 460px; height: 460px; right: -120px; top: 12%; background: #0891b2; animation-delay: -8s; }
.blob-3 { width: 380px; height: 380px; left: 35%; top: 55%; background: #db2777; opacity: calc(var(--blob-opacity) * .55); animation-delay: -14s; }
.grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.08); }
    100% { transform: translate(-30px, 80px) scale(.95); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    color: #fff;
    background: var(--grad-brand);
    box-shadow: 0 10px 28px -10px rgba(124, 92, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 36px -12px rgba(124, 92, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-glass { background: var(--surface-2); border-color: var(--border); color: var(--text); backdrop-filter: blur(10px); }
.btn-glass:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }

.link-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 2px; border: 0; background: none; color: var(--text-2); font-size: 13px; font-weight: 500;
}
.link-btn:hover { color: var(--text); }
.link-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.link-btn .icon { transition: transform .2s; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(124, 92, 255, .8); }
.brand-text { font-size: 19px; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500;
    transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; }

.theme-icon-light { display: none; }
:root[data-theme="light"] .theme-icon-dark { display: none; }
:root[data-theme="light"] .theme-icon-light { display: inline-flex; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-icon-dark { display: none; }
    :root:not([data-theme="dark"]) .theme-icon-light { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-2);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.pulse-dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid #34d399; animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title {
    margin-top: 22px;
    font-size: clamp(2.3rem, 5.2vw, 4.1rem);
    line-height: 1.14; font-weight: 800; letter-spacing: -.035em;
}
.hero-title span { display: block; }
.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; max-width: 560px; font-size: 1.12rem; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px;
    margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 13px; color: var(--text-3); font-weight: 500; }
.hero-stats dd {
    margin: 2px 0 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* 궤도 그래픽 */
.hero-visual { display: grid; place-items: center; }
.orbit {
    --size: min(460px, 82vw);
    --r: calc(var(--size) * .4);
    position: relative; width: var(--size); height: var(--size);
}
.orbit-ring {
    position: absolute; left: 50%; top: 50%; border-radius: 50%;
    transform: translate(-50%, -50%); border: 1px dashed var(--border-strong);
}
.ring-1 { width: 100%; height: 100%; border-style: solid; border-color: var(--border); }
.ring-2 { width: 80%; height: 80%; animation: spin 60s linear infinite; }
.ring-3 { width: 48%; height: 48%; border-color: var(--border); }
.orbit-core {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 30%; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--grad-brand);
    box-shadow: 0 0 60px rgba(124, 92, 255, .55), 0 0 120px rgba(34, 211, 238, .25), inset 0 2px 0 rgba(255, 255, 255, .35);
    animation: core-breathe 4s ease-in-out infinite;
}
.orbit-core span { color: #fff; font-size: calc(var(--size) * .085); font-weight: 800; letter-spacing: -.02em; }
.orbit-core::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    border: 1px solid rgba(124, 92, 255, .45); animation: pulse 3s ease-out infinite;
}
@keyframes core-breathe { 50% { box-shadow: 0 0 80px rgba(124, 92, 255, .7), 0 0 140px rgba(34, 211, 238, .35), inset 0 2px 0 rgba(255, 255, 255, .35); } }

.orbit-track { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit-item {
    position: absolute; left: 50%; top: 50%; width: 0; height: 0;
    transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(var(--r)) rotate(calc(-360deg / var(--n) * var(--i)));
}
.orbit-bubble {
    position: absolute; left: 0; top: 0;
    width: calc(var(--size) * .15); height: calc(var(--size) * .15);
    margin: calc(var(--size) * -.075) 0 0 calc(var(--size) * -.075);
    display: grid; place-items: center; border-radius: 30%;
    font-size: calc(var(--size) * .07);
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 14px 30px -10px var(--c1), inset 0 1px 0 rgba(255, 255, 255, .35);
    animation: spin 40s linear infinite reverse;
}
.float-chip {
    position: absolute; padding: 6px 12px; border-radius: 999px;
    background: var(--card-bg); border: 1px solid var(--border);
    font-size: 12px; font-weight: 700; color: var(--text-2); box-shadow: var(--shadow-lg);
    animation: bob 6s ease-in-out infinite;
}
.chip-a { left: -2%; top: 18%; }
.chip-b { right: -4%; top: 30%; animation-delay: -1.5s; }
.chip-c { left: 4%; bottom: 14%; animation-delay: -3s; }
.chip-d { right: 2%; bottom: 8%; animation-delay: -4.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 20%, var(--bg-alt) 80%, transparent); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-kicker {
    display: inline-block; margin-bottom: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.section-desc { margin-top: 10px; color: var(--text-2); font-size: 1.04rem; max-width: 620px; }

.search-box {
    position: relative; display: flex; align-items: center; width: 300px; max-width: 100%;
    color: var(--text-3);
}
.search-box .icon { position: absolute; left: 14px; pointer-events: none; }
.search-box input {
    width: 100%; height: 46px; padding: 0 16px 0 42px;
    border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
    font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }

.health-summary {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 14px;
    padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    font-size: 13.5px; color: var(--text-3);
}
.health-summary i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.health-summary b { color: var(--ok); font-weight: 700; }
.health-summary.is-degraded i { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.health-summary.is-degraded b { color: var(--warn); }
.health-summary.is-down i { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .2); animation: health-blink 1.4s ease-in-out infinite; }
.health-summary.is-down b { color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface);
    font-size: 14px; font-weight: 600; color: var(--text-2);
    transition: all .2s var(--ease);
}
.chip span {
    min-width: 22px; padding: 1px 7px; border-radius: 999px;
    background: var(--surface-2); font-size: 12px; color: var(--text-3);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { color: #fff; background: var(--grad-brand); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(124, 92, 255, .8); }
.chip.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }

.empty-state {
    display: grid; place-items: center; gap: 10px;
    padding: 64px 24px; text-align: center; color: var(--text-3);
    border: 1px dashed var(--border-strong); border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.process-step {
    position: relative; overflow: hidden;
    padding: 28px 24px 26px; border-radius: var(--radius);
    background: var(--card-bg); border: 1px solid var(--border);
    transition: transform .35s var(--ease), border-color .3s;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-no {
    position: absolute; right: 18px; top: 8px;
    font-size: 3.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: .16;
}
.step-icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(124, 92, 255, .8);
}
.process-step h3 { margin-top: 18px; font-size: 1.12rem; font-weight: 700; }
.process-step p { margin-top: 8px; font-size: .94rem; color: var(--text-2); }

.tech-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.tech-row li {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info { position: sticky; top: 100px; }
.contact-points { display: grid; gap: 18px; margin-top: 32px; }
.contact-points li { display: flex; gap: 14px; }
.contact-points li > span {
    display: grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--brand);
}
.contact-points strong { font-size: 15px; }
.contact-points p { font-size: 14px; color: var(--text-2); }
.contact-direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-direct a {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
    border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600;
}
.contact-direct a:hover { border-color: var(--border-strong); }

.form-card {
    position: relative; overflow: hidden;
    padding: 34px; border-radius: 26px;
    background: var(--card-bg); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-brand); }

.field { margin-bottom: 18px; }
.field label:not(.check) {
    display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px;
    font-size: 14px; font-weight: 650; color: var(--text);
}
.req { color: #f472b6; font-style: normal; }
.counter { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
    width: 100%; padding: 13px 15px;
    border-radius: 12px; border: 1px solid var(--border); background: var(--input-bg);
    font-size: 16px; line-height: 1.5;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.field .is-invalid, .consent.is-invalid { border-color: var(--danger) !important; }
.field-error { margin-top: 6px; font-size: 13px; color: var(--danger); }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-img { width: 190px; height: 64px; border-radius: 12px; border: 1px solid var(--border); background: #eef2ff; }
.captcha-refresh { width: 46px; height: 46px; }
.captcha-refresh.is-spinning .icon { animation: spin .6s var(--ease); }
.captcha input { flex: 1; min-width: 150px; text-align: center; font-weight: 700; letter-spacing: .35em; }
.captcha input::placeholder { letter-spacing: normal; font-weight: 400; }

.consent {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px 12px 16px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--input-bg);
}
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check b { color: var(--brand); font-weight: 700; }
.check input {
    appearance: none; -webkit-appearance: none; flex-shrink: 0;
    width: 22px; height: 22px; margin: 0; border-radius: 7px;
    border: 1.5px solid var(--border-strong); background: var(--card-bg);
    display: grid; place-items: center; transition: all .2s; cursor: pointer;
}
.check input::after {
    content: ""; width: 6px; height: 11px; margin-top: -2px;
    border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease);
}
.check input:checked { background: var(--grad-brand); border-color: transparent; }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible { box-shadow: var(--focus); outline: none; }

.privacy-detail { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.privacy-detail table { width: 100%; border-collapse: collapse; font-size: 13px; }
.privacy-detail th { width: 104px; padding: 6px 10px 6px 0; text-align: left; vertical-align: top; color: var(--text-3); font-weight: 600; }
.privacy-detail td { padding: 6px 0; color: var(--text-2); }
.privacy-detail tr + tr th, .privacy-detail tr + tr td { border-top: 1px solid var(--border); }

.form-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.form-alert.is-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.form-alert.is-success { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }

.submit-btn { margin-top: 6px; }
.submit-btn .spinner {
    display: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.submit-btn.is-loading .spinner { display: inline-block; }
.submit-btn.is-loading .icon { display: none; }

.form-success { padding: 36px 8px; text-align: center; outline: none; }
.success-icon {
    display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px;
    border-radius: 50%; color: #fff; background: var(--grad-brand);
    box-shadow: 0 16px 40px -14px rgba(124, 92, 255, .9);
    animation: pop .5s var(--ease);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.form-success h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.form-success p { margin-top: 8px; color: var(--text-2); }
.form-success .receipt { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.form-success .btn { margin-top: 24px; }
.form-closed { display: grid; justify-items: center; gap: 10px; padding: 40px 10px; text-align: center; color: var(--text-2); }
.form-closed h3 { color: var(--text); }
.muted { color: var(--text-3); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 40px; padding: 56px 0 28px; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: 14px; color: var(--text-2); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 36px; }
.footer-brand p { margin-top: 12px; max-width: 320px; color: var(--text-3); }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand .brand-text { font-size: 17px; }
.footer-info p + p { margin-top: 6px; }
.footer-info strong { color: var(--text); margin-right: 8px; }
.footer-info span + span::before { content: "·"; margin: 0 8px; color: var(--text-3); }
.footer-info strong + span::before { content: none; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links a { display: inline-flex; align-items: center; gap: 4px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.to-top:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal {
    width: min(720px, calc(100vw - 32px)); max-width: none; max-height: none;
    padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.modal::backdrop { background: rgba(3, 6, 15, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] .modal-card { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.modal-card {
    --c1: #7c3aed; --c2: #db2777;
    position: relative; overflow: auto; overscroll-behavior: contain;
    max-height: calc(100dvh - 40px);
    border-radius: 26px; background: var(--card-bg); border: 1px solid var(--border);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
}
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 5; background: rgba(8, 12, 24, .35); border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(8px); }
.modal-close:hover { color: #fff; background: rgba(8, 12, 24, .55); }
.modal-visual { position: relative; height: 210px; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; }
.modal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-icon {
    position: absolute; left: 32px; bottom: -1px; z-index: 1;
    width: 96px; height: 96px; display: grid; place-items: center;
    font-size: 52px; border-radius: 28px 28px 0 0;
    background: var(--card-bg);
}
.modal-body { padding: 22px 32px 32px; }
.modal-meta { display: flex; align-items: center; gap: 8px; }
.modal-meta .pcard-status { position: static; background: var(--surface-2); border-color: var(--border); color: var(--text); backdrop-filter: none; }
.modal-category { font-size: 13px; font-weight: 600; color: var(--text-3); }
.modal-body h3 { margin-top: 12px; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.modal-subtitle { margin-top: 4px; font-size: 1.05rem; font-weight: 600; color: color-mix(in srgb, var(--c1) 45%, var(--text)); }
.modal-url {
    display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin-top: 12px;
    font-size: 14px; font-weight: 600; color: var(--text-2);
    transition: color .2s;
}
/* 긴 주소는 한 줄로 줄이고 전체 주소는 title 로 보여준다 */
.modal-url span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-url .icon { flex-shrink: 0; }
.modal-url:hover, .modal-url:focus-visible { color: color-mix(in srgb, var(--c1) 55%, var(--text)); }
.modal-url .icon:first-child { color: var(--text-3); }
.modal-url .icon:last-child { transition: transform .2s var(--ease); }
.modal-url:hover .icon:last-child { transform: translate(2px, -2px); }

.modal-desc { margin-top: 18px; color: var(--text-2); line-height: 1.8; }
.modal-desc p + p { margin-top: 10px; }
.inline-link {
    color: color-mix(in srgb, var(--c1) 55%, var(--text));
    font-weight: 600; overflow-wrap: anywhere;
    text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c1) 40%, transparent);
    text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s;
}
.inline-link::after { content: "↗"; margin-left: 2px; font-size: .85em; }
.inline-link:hover, .inline-link:focus-visible { text-decoration-color: currentColor; }
.modal-features-wrap { margin-top: 24px; }
.modal-features-wrap h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.modal-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.modal-features li {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
    border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600;
}
.modal-features li::before {
    content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(135deg, var(--c1), var(--c2));
}
.modal-body .pcard-tags { margin-top: 20px; }
.modal-health { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); }
.mh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.mh-head h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.mh-state { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.mh-state i { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.modal-health.is-up .mh-state i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.modal-health.is-up .mh-state b { color: var(--ok); }
.modal-health.is-degraded .mh-state i { background: #f59e0b; }
.modal-health.is-degraded .mh-state b { color: var(--warn); }
.modal-health.is-down .mh-state i { background: #ef4444; animation: health-blink 1.4s ease-in-out infinite; }
.modal-health.is-down .mh-state b { color: var(--bad); }
.mh-meta { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.mh-foot { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.mh-foot strong { color: var(--text); }

.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.modal-actions .btn-primary { background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 26px -12px var(--c1); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .project-grid .pcard { opacity: 0; }
.js .project-grid .pcard.in-view { opacity: 1; animation: card-in .7s var(--ease) backwards; animation-delay: var(--delay, 0ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(30px) scale(.98); } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero { padding: 56px 0 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .orbit { --size: min(360px, 78vw); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .contact-info { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 760px) {
    :root { --gutter: 16px; }
    .header-inner { height: 60px; gap: 12px; }
    .nav-toggle { display: inline-grid; }
    .hide-sm { display: none; }
    .site-nav {
        position: absolute; left: 12px; right: 12px; top: 64px; margin: 0;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
        border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s, transform .2s var(--ease), visibility .2s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .site-nav a { padding: 12px 14px; font-size: 16px; }
    .hero { padding: 36px 0 40px; }
    .hero-sub { font-size: 1rem; }
    .hero-cta .btn { flex: 1; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
    .hero-stats dd { font-size: 1.8rem; }
    .float-chip { display: none; }
    .orbit { --size: min(300px, 76vw); }
    .section { padding: 64px 0; }
    .search-box { width: 100%; }
    .project-grid { grid-template-columns: 1fr; gap: 18px; }
    .process { grid-template-columns: 1fr; }
    .form-card { padding: 24px 18px; border-radius: 20px; }
    .field-row { grid-template-columns: 1fr; }
    .captcha-img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 190 / 64; }
    .captcha input { min-width: 100%; }
    .consent { flex-direction: column; align-items: flex-start; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; }
    .modal { width: calc(100vw - 16px); }
    .modal-card { max-height: calc(100dvh - 16px); border-radius: 20px; }
    .modal-body { padding: 18px 20px 24px; }
    .modal-visual { height: 170px; }
    .modal-icon { left: 20px; width: 80px; height: 80px; font-size: 42px; }
    .modal-body h3 { font-size: 1.5rem; }
    .modal-features { grid-template-columns: 1fr; }
    .modal-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   프로젝트 서비스 소개 페이지 (page.php)
   -------------------------------------------------------------------------- */
.pg-main { padding-bottom: 64px; }
.pg-draft {
    display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 9px 14px;
    border-radius: 999px; font-size: 13.5px; color: var(--warn);
    background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
}
.pg-hero { --c1: #7c3aed; --c2: #db2777; margin-top: 22px; padding: 42px 0; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.pg-hero-inner { display: flex; align-items: center; gap: 22px; }
.pg-icon {
    display: grid; place-items: center; flex-shrink: 0; width: 86px; height: 86px; border-radius: 26px; font-size: 44px;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px);
}
.pg-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pg-meta .pcard-status { position: static; background: rgba(8, 12, 24, .32); border: 1px solid rgba(255, 255, 255, .25); }
.pg-category { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12.5px; font-weight: 700; }
.pg-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.pg-subtitle { margin-top: 8px; font-size: 1.05rem; color: rgba(255, 255, 255, .88); }

.pg-body { max-width: 820px; padding-top: 40px; }
.pg-heading { margin: 34px 0 12px; font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; }
.pg-heading:first-child { margin-top: 0; }
.pg-text { margin: 14px 0; color: var(--text-2); font-size: 1.02rem; line-height: 1.85; }
.pg-text p + p { margin-top: 12px; }
.pg-text ul { margin: 10px 0; padding-left: 4px; display: grid; gap: 7px; }
.pg-text li { position: relative; padding-left: 20px; }
.pg-text li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.pg-text strong { color: var(--text); font-weight: 700; }
.pg-text a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pg-figure { margin: 26px 0; }
.pg-figure img { width: 100%; border-radius: 18px; border: 1px solid var(--border); }
.pg-figure figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-3); text-align: center; }
.pg-divider { margin: 34px 0; border: 0; border-top: 1px solid var(--border); }
.pg-link {
    display: flex; align-items: center; gap: 14px; margin: 14px 0; padding: 16px 18px;
    border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
    transition: transform .2s var(--ease), border-color .2s, background-color .2s;
}
.pg-link:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }
.pg-link-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.pg-link-body strong { font-size: 15.5px; font-weight: 700; }
.pg-link-body span { font-size: 13.5px; color: var(--text-2); }
.pg-link-body small { font-size: 12.5px; color: var(--text-3); }
.pg-link .icon { color: var(--text-3); flex-shrink: 0; }
.pg-tags { margin-top: 30px; }
.pg-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 44px; padding: 24px 26px; border-radius: 20px;
    border: 1px solid var(--border); background: var(--card-bg);
}
.pg-cta strong { display: block; font-size: 1.05rem; font-weight: 750; }
.pg-cta span { font-size: 14px; color: var(--text-2); }
.pg-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
    .pg-hero { padding: 30px 0; }
    .pg-hero-inner { gap: 16px; }
    .pg-icon { width: 64px; height: 64px; font-size: 32px; border-radius: 20px; }
    .pg-body { padding-top: 28px; }
    .pg-cta { padding: 20px; }
    .pg-cta-actions .btn { flex: 1; }
}
