:root { --bg: #FFFFFF; --bg-alt: #FDFCFB; --text: #333333; --muted: #666666; --navy: #1A237E; --gold: #BDB76B; --border: #E5E7EB; --card: #FFFFFF; --shadow: 0 6px 24px rgba(0,0,0,0.06); --radius: 14px; --radius-sm: 10px; --radius-lg: 18px; --trans: .2s ease; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Malgun Gothic', Arial, sans-serif; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.shadow { box-shadow: var(--shadow); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-weight: 800; letter-spacing: .02em; color: var(--navy); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-weight: 500; transition: color var(--trans); }
.nav a:hover { color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #F2F4F7; color: var(--text); border: 1px solid var(--border); transition: transform .06s ease, background var(--trans), color var(--trans), box-shadow var(--trans); cursor: pointer; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.gold { background: var(--gold); color: #1b1b1b; border-color: var(--gold); }
.btn.link { background: transparent; border-color: transparent; color: var(--navy); }
.btn.block { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 68vh; display: grid; place-items: center; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35)); z-index: 2; }
.hero::after { display:none; }
.hero-video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; }
.hero-video-background video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; }
.hero.video-ready::after { display: none; }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: 44px; line-height: 1.2; margin: 0 0 14px; font-weight: 800; letter-spacing: .01em; }
.hero .sub { font-size: 18px; opacity: .9; margin: 0 0 26px; }
.hero .cta-row { display: flex; justify-content: center; gap: 12px; }

/* Feature grid */
.features { padding: 60px 0; background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; transition: transform var(--trans), box-shadow var(--trans); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(26,35,126,.08); display: grid; place-items: center; color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* Before-After showcase */
.showcase { padding: 64px 0; }
.section-title { text-align: center; margin: 0 0 24px; font-size: 26px; font-weight: 800; color: var(--navy); }
.showcase-list { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.shot { width: 100%; max-width: 1200px; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; display: block; }

/* CTA band */
.cta-band { padding: 48px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.cta-band h3 { margin: 0 0 14px; font-size: 22px; }

/* App layout (simulate) */
.simulate-grid { display: grid; grid-template-columns: 320px 1fr 380px; gap: 20px; margin: 24px auto; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 12px; font-size: 18px; color: var(--navy); }

/* Accordion */
.accordion details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
.accordion summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--text); background: #fafafa; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion .content { padding: 12px 14px; border-top: 1px solid var(--border); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 12px; border-radius: 20px; border: 1px solid var(--border); background: #fff; cursor: pointer; transition: background var(--trans), color var(--trans), border-color var(--trans); }
.chip.selected, .chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Dropzone */
.dropzone { display: grid; place-items: center; aspect-ratio: 4/3; border: 2px dashed #d5d7dc; border-radius: var(--radius-sm); color: #8a8f98; background: #fafbfc; transition: border-color var(--trans), background var(--trans); position: relative; overflow: hidden; }
.dropzone.drag-over { border-color: var(--navy); background: #f0f3ff; color: var(--navy); }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone .hint { font-size: 13px; }

/* Viewer & compare */
.viewer { position: relative; display: grid; place-items: center; aspect-ratio: 4/3; background: #f6f7f9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.compare { margin-top: 14px; }
.compare-inner { position: relative; width: 100%; aspect-ratio: 4/3; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.compare-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare-inner .overlay { position: absolute; inset: 0; width: 50%; overflow: hidden; box-shadow: inset -1px 0 rgba(255,255,255,.3); }
.compare .compare-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.compare input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: #d1d5db; border-radius: 999px; outline: none; }
.compare input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; background: var(--gold); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.compare-labels { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; }

/* Loading */
.loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,.6); z-index: 5; }
.loading.show { display: flex; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(26,35,126,.2); border-top-color: var(--navy); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.form-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow); }
.form-card h3 { margin: 0 0 12px; color: var(--navy); }
.form-card form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.form-card form input, .form-card form textarea, .form-card form select { width: 100%; margin-top: 6px; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; background: #fff; transition: box-shadow var(--trans), border-color var(--trans); }
.form-card form input:focus, .form-card form textarea:focus, .form-card form select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,35,126,.15); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 20px 0; background: #fff; margin-top: 40px; color: var(--muted); }

/* Admin */
.admin-login { display: grid; place-items: center; min-height: 70vh; }
.admin-box { width: 100%; max-width: 420px; }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.table-scroll { max-height: 420px; overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th { position: sticky; top: 0; background: #f3f4f6; z-index: 1; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 10px 12px; vertical-align: top; }
.table tbody tr:hover { background: #fafafa; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #eef2ff; color: var(--navy); font-size: 12px; }

/* Utilities */
.section-pad { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 18px; color: var(--muted); }
.file-name { font-size: 12px; color: #6b7280; margin-top: 6px; word-break: break-all; }
.status { margin-top: 8px; color: #475569; font-size: 13px; min-height: 18px; }
.hidden { display: none; }

/* Responsive */
@media (max-width: 1024px) {
	.features-grid, .showcase-grid { grid-template-columns: 1fr 1fr; }
	.simulate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.features-grid, .showcase-grid { grid-template-columns: 1fr; }
	.hero h1 { font-size: 32px; }
}
