:root {
  --bg: #f3f5f7;
  --bg-dark: #0c1218;
  --card: #ffffff;
  --ink: #12171d;
  --muted: #5c6773;
  --line: #d7dde3;
  --accent: #1f6f78;
  --accent-deep: #15555c;
  --accent2: #2a4a5c;
  --danger: #a33b2c;
  --hero-glow: #1a3a48;
  --font: "Source Sans 3", "Noto Sans KR", "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
input, select, textarea, button {
  -webkit-user-select: text;
  user-select: text;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: var(--accent-deep); }
.wrap {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: inherit;
}
.brand strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.brand span { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.nav-main {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-main a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.nav-main a:hover { color: var(--ink); }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 13px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg-dark);
  color: #f4f7f9;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(80, 160, 170, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(40, 80, 100, 0.35), transparent 50%),
    linear-gradient(160deg, #0a1016 0%, #13202a 48%, #0e161c 100%);
  animation: heroPulse 10s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
@keyframes heroPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.08); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 64px;
  animation: riseIn 0.9s ease both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-brand {
  margin: 0 0 14px;
  font-family: var(--display);
  letter-spacing: 0.28em;
  font-size: 14px;
  color: #9ec4cb;
}
.hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}
.hero-lead {
  margin: 0 0 22px;
  max-width: 34em;
  color: #c5d0d8;
  font-size: 16px;
}
.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 26px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  animation: riseIn 1.1s ease both;
}
.hero-stat[hidden] { display: none !important; }
.hero-stat-value {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: #f4fbfc;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.hero-stat-label {
  font-size: 13px;
  color: #9ec4cb;
  letter-spacing: 0.04em;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Sections */
.section { padding: 72px 0; }
.section-head { margin-bottom: 28px; max-width: 40em; }
.section-head h2,
.about h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
}
.section-head p { margin: 0; color: var(--muted); }
.section-head.light h2 { color: #f2f6f8; }
.section-head.light p { color: #aebcc7; }

.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
}
.about p { color: var(--muted); margin: 0; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.about-points .num {
  font-family: var(--display);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
}
.about-points strong { display: block; margin-bottom: 4px; }
.about-points p { margin: 0; font-size: 14px; }

.four-c { background: var(--bg); }
.c-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.c-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.c-card:hover {
  transform: translateY(-4px);
  border-color: #b7cdd1;
}
.c-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--accent-deep);
  background: #e8f3f4;
  margin-bottom: 14px;
}
.c-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: var(--display);
  font-weight: 600;
}
.c-card h3 span {
  display: block;
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.c-card p { margin: 0; font-size: 13px; color: var(--muted); }

.gia-check {
  background: #101820;
  color: #e8eef2;
}
.gia-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  align-items: start;
}
.gia-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.gia-steps li {
  counter-increment: step;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 16px 16px 56px;
  position: relative;
}
.gia-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f6f78;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.gia-steps strong { display: block; margin-bottom: 4px; }
.gia-steps p { margin: 0; color: #aebcc7; font-size: 14px; }
.gia-steps a { color: #8fd0d8; }
.gia-panel {
  background: #16232e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 22px;
}
.gia-panel h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 24px;
}
.gia-panel p { color: #aebcc7; margin: 0 0 16px; }
.tiny { font-size: 12px; color: #80909c !important; margin-top: 14px !important; }

.inventory-section { background: #fff; padding-bottom: 48px; }

.contact { background: var(--bg); padding-top: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 28px;
}
.contact-body { margin-top: 8px; }
.contact-org {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.contact-scope {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-scope li {
  background: #e8f3f4;
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.contact-phone {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  font-size: 15px;
  color: var(--muted);
}
.contact-phone a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  text-decoration: none;
}
.contact-phone a:hover { text-decoration: underline; }

.search-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
input, select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.search-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { background: transparent; }
.btn.ghost-light {
  background: transparent;
  color: #e8f0f3;
  border-color: rgba(255,255,255,0.28);
}
.btn.ghost-light:hover { background: rgba(255,255,255,0.08); }
.btn.sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.btn.sm.media {
  background: #e8f3f4;
  border-color: #c5dce0;
  color: var(--accent-deep);
  font-weight: 600;
}
.btn.sm.media:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn:hover { filter: brightness(0.98); }

.results { margin-top: 16px; }
.table-wrap {
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: 70vh;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf1;
  white-space: nowrap;
  vertical-align: middle;
}
th {
  position: sticky;
  top: 0;
  background: #eef3f5;
  color: var(--muted);
  z-index: 1;
}
.empty { text-align: center; color: var(--muted); padding: 28px; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }
.price-locked { color: var(--muted); font-weight: 500; font-size: 12px; }
.th-price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sort-btns { display: inline-flex; flex-direction: column; gap: 0; line-height: 1; }
.sort-btn {
  border: 0;
  background: transparent;
  color: #9aa7b2;
  cursor: pointer;
  font-size: 10px;
  padding: 0 2px;
  line-height: 1;
}
.sort-btn:hover, .sort-btn.active { color: var(--accent); font-weight: 700; }
.shape-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shape-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: #3d5a68;
}
.shape-name { font-size: 12px; color: var(--muted); }

.site-footer {
  background: #0c1218;
  color: #aebcc7;
  padding: 36px 0 42px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.footer-brand {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.14em;
  color: #f2f6f8;
  display: block;
  margin-bottom: 6px;
}
.site-footer a {
  color: #c5d4dc;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 6px; font-size: 13px; }

.badge {
  display: inline-block;
  min-width: 1.2em;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 2px;
}
.modal .card.wide { width: min(720px, 100%); }
.cart-body { max-height: 50vh; overflow: auto; margin: 8px 0 12px; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cart-table th, .cart-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cart-footer {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.btn.sm.cart-add {
  background: #e8f3f4;
  border-color: #c5dce0;
  color: var(--accent-deep);
  font-weight: 600;
}
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  resize: vertical;
}

.hidden { display: none !important; }
.error { color: var(--danger); font-size: 13px; min-height: 1.2em; }

.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 16px;
}
.modal.hidden { display: none !important; }
.backdrop { position: absolute; inset: 0; background: rgba(8, 12, 16, 0.55); }
.modal .card {
  position: relative;
  width: min(400px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal h2 { margin: 0; font-family: var(--display); }
.modal .row { display: flex; gap: 8px; }
.modal .switch-auth { margin: 4px 0 0; }
.modal .linkish {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
.modal .h3 { margin: 0 0 6px; font-size: 14px; }
.modal hr.soft {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}
.media-card {
  position: relative;
  width: min(960px, 100%);
  max-height: min(90vh, 860px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.media-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #eef3f5;
}
.media-head h3 { margin: 0; font-size: 16px; }
.media-body {
  background: #111;
  min-height: 360px;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.media-body iframe,
.media-body img {
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
  display: block;
  background: #111;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}
.media-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: default;
}

@media (max-width: 900px) {
  .nav-main { display: none; }
  .about-grid,
  .gia-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 70vh; align-items: center; }
  .hero-inner { padding: 56px 0 48px; }
}
@media (max-width: 560px) {
  .c-grid,
  .grid { grid-template-columns: 1fr; }
  .top-actions .muted { display: none; }
}
