:root {
  --bg-dark: #0e0d0b;
  --bg-dark-2: #171511;
  --bg-light: #faf8f4;
  --bg-cream: #f3efe6;
  --ink-dark: #161411;
  --ink-muted: #665f56;
  --ink-light: #f9f6ef;
  --ink-light-muted: #b7afa2;
  --gold: #e09a43;
  --gold-hi: #f6ce8b;
  --border-light: #e5dfd2;
  --border-dark: rgba(246, 206, 139, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  background: var(--bg-dark);
  color: var(--ink-dark);
  line-height: 1.55;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Kinetic Top Ticker */
.ticker-bar {
  background: linear-gradient(90deg, #16130f, #231c13, #16130f);
  color: var(--gold-hi);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 42px;
  animation: tickerScroll 26s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sticky Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.04em;
}
.brand em { font-style: normal; color: var(--gold-hi); font-weight: 700; font-size: 15px; }
.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  box-shadow: 0 0 14px rgba(224, 154, 67, 0.65);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-light-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold-hi); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 14.5px;
  padding: 11px 18px;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #15120d;
  box-shadow: 0 10px 26px rgba(224, 154, 67, 0.28);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-full { width: 100%; padding: 16px; font-size: 16px; }

/* Hero 3D Stage */
.hero {
  position: relative;
  min-height: 820px;
  background: radial-gradient(circle at 65% 42%, #2a2117 0%, #12100d 55%, #0a0908 100%);
  color: var(--ink-light);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 56px 0 84px;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  z-index: 1;
}
#heroCanvas:active { cursor: grabbing; }
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, rgba(10, 9, 8, 0.88) 0%, rgba(10, 9, 8, 0.45) 46%, rgba(10, 9, 8, 0.18) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: end;
  pointer-events: none;
}
.hero-copy, .hero-hud { pointer-events: auto; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(246, 206, 139, 0.12);
  border: 1px solid rgba(246, 206, 139, 0.35);
  color: var(--gold-hi);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 22px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.kinetic-title {
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.line-reveal {
  display: block;
  overflow: hidden;
}
.line-reveal > span {
  display: inline-block;
  animation: slideUpIn 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.line-reveal.delay-1 > span { animation-delay: 0.14s; }
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(38px); }
  to { opacity: 1; transform: translateY(0); }
}
.gold-grad {
  font-style: normal;
  background: linear-gradient(120deg, #ffe3b0, #e09a43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: #d6cfc3;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
}
.stat-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}
.stat-chip strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-hi);
}
.stat-chip span { font-size: 12.5px; color: var(--ink-light-muted); }

/* Hero 3D HUD */
.hero-hud {
  background: rgba(18, 16, 13, 0.78);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  justify-self: end;
  width: 100%;
  max-width: 410px;
}
.hud-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.hud-badge {
  background: var(--gold);
  color: #141210;
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}
.hud-hint { font-size: 12.5px; color: var(--ink-light-muted); }
.hud-group { margin-bottom: 16px; }
.hud-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-hi);
  margin-bottom: 8px;
}
.seg-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.seg {
  flex: 1;
  min-width: 72px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-light-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.seg:hover { border-color: var(--gold); color: #fff; }
.seg.active {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #141210;
  border-color: transparent;
}
.hud-callout {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}
.hud-callout strong { display: block; color: #fff; margin-bottom: 3px; }
.hud-callout span { color: var(--ink-light-muted); font-size: 12.5px; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(246, 206, 139, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  pointer-events: none;
}
.scroll-line {
  width: 1.5px;
  height: 26px;
  background: linear-gradient(180deg, var(--gold-hi), transparent);
}

/* Sections */
.section { padding: 88px 0; }
.section-light { background: var(--bg-light); color: var(--ink-dark); }
.section-cream { background: var(--bg-cream); color: var(--ink-dark); }
.section-dark { background: var(--bg-dark-2); color: var(--ink-light); }

.sec-head { margin-bottom: 42px; }
.sec-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #b86c1f;
  margin-bottom: 10px;
}
.sec-head.dark .sec-kicker { color: var(--gold-hi); }
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.sec-head p { color: var(--ink-muted); font-size: 16px; max-width: 640px; }
.sec-head.dark p { color: var(--ink-light-muted); }

/* Pain Point Tabs */
.pain-tabs {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
}
.pain-nav { display: flex; flex-direction: column; gap: 10px; }
.pain-tab {
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.18s ease;
}
.pain-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f2ece1;
  color: #9e5a16;
  font-size: 13px;
  font-weight: 900;
}
.pain-tab.active {
  background: #1a1713;
  color: #fff;
  border-color: #1a1713;
  transform: translateX(4px);
}
.pain-tab.active span { background: var(--gold); color: #141210; }

.pain-panel {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(22, 20, 17, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.pain-quote-box {
  background: #fdf4f1;
  border-left: 4px solid #c64528;
  padding: 16px 20px;
  border-radius: 10px;
}
.pain-quote-box small { display: block; color: #b43b22; font-weight: 800; margin-bottom: 6px; }
.pain-quote-box p { font-size: 16px; color: #362723; font-weight: 600; }

.pain-solution-box {
  background: #f3faf6;
  border-left: 4px solid #18794e;
  padding: 18px 20px;
  border-radius: 10px;
}
.pain-solution-box small { display: block; color: #18794e; font-weight: 800; margin-bottom: 6px; }
.pain-solution-box h4 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.pain-solution-box p { font-size: 15.5px; color: #263d31; }

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.calc-block { margin-bottom: 24px; }
.calc-block h3 { font-size: 16px; font-weight: 800; color: var(--gold-hi); margin-bottom: 12px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.c-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink-light);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.c-pill:hover { border-color: var(--gold); }
.c-pill.active {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #141210;
  border-color: transparent;
}
.res-card {
  background: #1f1b16;
  border: 1.5px solid rgba(246, 206, 139, 0.35);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.res-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.res-badge { font-size: 13px; font-weight: 800; color: var(--gold-hi); }
.res-ship-tag {
  background: rgba(74, 222, 128, 0.14);
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
}
.res-price { font-size: 42px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.res-compare { font-size: 14.5px; color: var(--ink-light-muted); margin-bottom: 18px; }
.res-compare strong { color: var(--gold-hi); }
.res-compat {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.res-compat.good { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(52, 211, 153, 0.35); color: #d1fae5; }
.res-checklist { list-style: none; margin-bottom: 22px; font-size: 14px; color: #ddd6c8; }
.res-checklist li { margin-bottom: 7px; }

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(22, 20, 17, 0.05);
}
.bench-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.bench-table th {
  background: #1b1915;
  color: var(--gold-hi);
  text-align: left;
  padding: 16px;
  font-size: 14.5px;
}
.bench-table td {
  padding: 16px;
  border-bottom: 1px solid #eee9de;
  font-size: 14.5px;
  vertical-align: middle;
}
.bench-table small { color: var(--ink-muted); font-size: 12.5px; }
.highlight-row { background: #fff9ee; }
.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.tag.free { background: #e3f6ec; color: #16794f; }
.tag.paid { background: #fdebe7; color: #b43b22; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gal-card {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gal-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.09); }
.gal-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
  background: #eee9de;
}
.gal-card figcaption { padding: 18px; }
.gal-card figcaption strong { display: block; font-size: 17px; margin-bottom: 4px; }
.gal-card figcaption span { font-size: 13.5px; color: var(--ink-muted); }

/* Footer */
.site-footer {
  background: #0e0d0b;
  color: var(--ink-light);
  border-top: 1px solid var(--border-dark);
  padding: 54px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner h2 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.footer-inner p { color: var(--ink-light-muted); font-size: 14px; }
.footer-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  position: relative;
  background: #fff;
  color: var(--ink-dark);
  border-radius: 20px;
  max-width: 92vw;
  max-height: 92vh;
  overflow: auto;
  padding: 26px;
}
.modal-card.lightbox { background: #141210; color: #fff; text-align: center; }
.modal-card.lightbox img { max-width: 82vw; max-height: 76vh; border-radius: 12px; display: block; margin: 0 auto 12px; }
.modal-card.order-box { width: 460px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(128, 128, 128, 0.2);
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}
.order-summary {
  background: #f6f2ea;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  font-size: 14.5px;
}
.order-form { display: flex; flex-direction: column; gap: 12px; }
.order-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; }
.order-form input {
  padding: 11px 13px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 14.5px;
}
.order-done {
  background: #e3f6ec;
  color: #145e3d;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  font-size: 14.5px;
}

@media (max-width: 960px) {
  .hero-inner, .pain-tabs, .calc-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero-hud { justify-self: stretch; max-width: none; }
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .pulse-dot, .line-reveal > span { animation: none !important; }
}
