
:root, [data-theme="snow"] {
  --bg: #F2F4F6;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --text: #191F28;
  --text-sub: #4E5968;
  --text-muted: #8B95A1;
  --line: #E5E8EB;
  --accent: #3182F6;
  --accent-hover: #1B64DA;
  --accent-soft: #EBF3FE;
  --ok-bg: #E8FAF0;
  --ok-fg: #0D8A47;
  --warn-bg: #FFF3E0;
  --warn-fg: #C75B00;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
[data-theme="sage"] {
  --bg: #EEF3F0; --surface: #FFFFFF; --surface-2: #F5F9F6;
  --text: #16241C; --text-sub: #3F5247; --text-muted: #708478;
  --line: #DCE6DF; --accent: #168A59; --accent-hover: #0F6E46; --accent-soft: #E6F5EE;
}
[data-theme="lavender"] {
  --bg: #F3F1F8; --surface: #FFFFFF; --surface-2: #F8F7FC;
  --text: #1F1A2E; --text-sub: #4E4663; --text-muted: #807896;
  --line: #E3DFEE; --accent: #6348F5; --accent-hover: #4E35D6; --accent-soft: #EFEBFD;
}
[data-theme="peach"] {
  --bg: #F7F2EE; --surface: #FFFFFF; --surface-2: #FCF9F6;
  --text: #281D16; --text-sub: #5C4B40; --text-muted: #8E7B6F;
  --line: #EAE0D8; --accent: #E05A2B; --accent-hover: #C2471C; --accent-soft: #FCEEE8;
}
[data-theme="midnight"] {
  --bg: #10141C; --surface: #181E29; --surface-2: #202837;
  --text: #F2F4F8; --text-sub: #B8C1CE; --text-muted: #7E8A9B;
  --line: #2A3446; --accent: #4C94FF; --accent-hover: #6BA6FF; --accent-soft: rgba(76,148,255,0.16);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
}
[data-theme="obsidian"] {
  --bg: #090A0D; --surface: #12141A; --surface-2: #1A1D26;
  --text: #F5F7FA; --text-sub: #AEB6C4; --text-muted: #737C8C;
  --line: #252936; --accent: #5C9DFF; --accent-hover: #7BB0FF; --accent-soft: rgba(92,157,255,0.16);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.link-accent { color: var(--accent); font-weight: 700; }
.link-accent-semi { color: var(--accent); font-weight: 600; }
.text-muted-xs { color: var(--text-muted); font-size: 12px; }
.text-sub-xs { color: var(--text-sub); font-size: 12px; }
.w-full { width: 100%; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-link {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.theme-sel {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  padding: 56px 0 36px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 780px;
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.hero p {
  margin: 0 auto 28px;
  max-width: 660px;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-sub);
  word-break: keep-all;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn-sm { padding: 10px 15px; font-size: 13px; border-radius: 11px; }
.btn-md { padding: 11px 22px; font-size: 14px; }
.btn:active { transform: scale(0.99); }
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--surface-2); }

.section { padding: 28px 0 44px; }
.section-head { margin-bottom: 22px; }
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.prod-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.prod-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.status-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card-desc {
  margin: 0 0 18px;
  color: var(--text-sub);
  font-size: 14.5px;
  word-break: keep-all;
}
.feat-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.feat-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-sub);
}
.feat-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 900;
}
.price-strip {
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}
.price-row + .price-row {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.price-val {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--text);
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pillar-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
}
.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}
.pillar-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
  word-break: keep-all;
}

.doc-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 28px 0 44px;
}
.doc-card h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}
.doc-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.doc-card h2 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 800;
}
.doc-card p, .doc-card li {
  font-size: 14px;
  color: var(--text-sub);
}

.footer {
  margin-top: 32px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.disclaimer-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 18px;
  word-break: keep-all;
}
.biz-info {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  margin-left: auto;
  color: var(--text-muted);
  font-weight: 500;
}

/* Founder Master Console (zero inline styles) */
.admin-wrap { padding: 28px 0 56px; }
.admin-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.admin-login-card {
  max-width: 460px;
  margin: 40px auto;
}
.admin-h2 { margin: 0; font-size: 22px; font-weight: 800; }
.admin-h3 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.admin-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-sub); }
.admin-sub-mb { margin: 0 0 18px; font-size: 13.5px; color: var(--text-sub); }
.admin-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.preview-banner {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.preview-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.code-hint-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-sub);
}
.table-scroll { width: 100%; overflow-x: auto; }
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-table th, .adm-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.adm-table th {
  font-weight: 700;
  color: var(--text-sub);
  background: var(--surface-2);
}
.tag-pub {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.tag-stl {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--warn-bg);
  color: var(--warn-fg);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 5px;
}
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
}
.toast {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: none;
}
.toast-visible { display: block; }

@media (max-width: 860px) {
  .product-grid, .pillars-grid, .form-grid { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .card-actions { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; width: 100%; }
}
