:root {
  --bg: #0b0a12;
  --bg-alt: #110f1c;
  --surface: #17142a;
  --text: #f1eff8;
  --muted: #9d98b3;
  --accent: #a48cf0;
  --accent-strong: #7b5ce0;
  --gold: #d9b46a;
  --border: rgba(164, 140, 240, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.fonts-loading body { visibility: hidden; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--gold);
}

/* ---------- 내비게이션 ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.1rem; letter-spacing: .28em; color: var(--text); }
.logo-mark { height: 26px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { color: var(--muted); font-size: .95rem; font-weight: 600; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav nav a[aria-current="page"] { color: var(--text); }

/* ---------- 히어로 (풀스크린) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::after { /* 가장자리 비네팅 + 하단 페이드 */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(11,10,18,.85) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 560px; height: 560px; background: #6d4fc2; top: -12%; right: -6%; }
.orb-2 { width: 420px; height: 420px; background: #3c2a8a; bottom: -10%; left: -8%; animation-delay: -6s; }
.orb-3 { width: 280px; height: 280px; background: #b48a4a; top: 40%; right: 30%; opacity: .22; animation-delay: -12s; }
@keyframes drift {
  to { transform: translate3d(-60px, 40px, 0) scale(1.12); }
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(164,140,240,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164,140,240,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.hero-content { width: 100%; padding-top: 72px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 40px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--text); border-radius: 2px;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  border-radius: 4px;
  transition: transform .2s, box-shadow .25s, background .25s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 30px rgba(123, 92, 224, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 12px 44px rgba(164, 140, 240, .6);
}

/* ---------- 섹션 공통 ---------- */
.section { padding: 140px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; }
.section h2, .inquiry h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0;
}

/* ---------- 제품 카드 ---------- */
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s;
}
.product-card:hover {
  border-color: rgba(164, 140, 240, .55);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(123, 92, 224, .25);
}
.product-art {
  position: relative;
  background: #1d1838;
}

.product-body {
  padding: 56px 56px 56px 48px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .24em;
  color: var(--accent);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 24px;
}
.product-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-icon { height: 52px; width: auto; }
.product-wordmark { height: 46px; width: auto; }
.product-desc { color: var(--muted); font-size: 1.05rem; margin: 0 0 28px; }
.features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.features li {
  font-size: .9rem; font-weight: 600;
  padding: 7px 14px;
  background: rgba(164, 140, 240, .1);
  border-radius: 999px;
}

/* ---------- 회사 소개 ---------- */
.about-text { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--muted); max-width: 760px; margin: 0; }

/* ---------- 문의 ---------- */
.contact-section { padding: 80px 0; border-top: 1px solid var(--border); }
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { padding: 8px 0; }
.contact span { display: inline-block; width: 80px; color: var(--muted); font-size: .9rem; }

/* ---------- 제품 문의 페이지 ---------- */
.inquiry { padding: 112px 0 120px; }
.inquiry .section-head { max-width: 530px; margin-left: auto; margin-right: auto; }
.inquiry-form { max-width: 530px; margin: 0 auto; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.inline { grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 8px; }
.field-body { margin-top: 30px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%239d98b3%27 stroke-width=%271.6%27/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
.field textarea { min-height: 200px; resize: vertical; }
.field label.req::before { content: "*"; color: #f05252; margin-right: 4px; }
.file-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field .btn-file {
  color: var(--text); font-size: .9rem; font-weight: 600;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}
.field .btn-file:hover { border-color: var(--accent); }
.field:has(.file-input:focus-visible) .btn-file { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.file-name { color: var(--muted); font-size: .9rem; word-break: break-all; }
.file-clear {
  width: 28px; height: 28px; padding: 0;
  font-size: 1.2rem; line-height: 1; color: var(--muted);
  background: none; border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer;
}
.file-clear:hover { color: var(--text); border-color: var(--accent); }
.file-clear[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }
.inquiry-form .btn { justify-self: end; border: 0; cursor: pointer; }
.inquiry-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; text-align: right; min-height: 1.7em; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #f08c8c; }

.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(5, 4, 10, .7);
  backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-box {
  width: min(400px, 100%);
  padding: 36px 32px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal-box h3 { margin: 0 0 8px; font-size: 1.3rem; }
.modal-box p { margin: 0 0 24px; color: var(--muted); }
.modal-box .btn { border: 0; cursor: pointer; padding: 12px 40px; }

.footer { padding: 36px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .logo { font-size: .9rem; color: var(--muted); }
.footer .logo-mark { height: 20px; opacity: .75; }

/* ---------- 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .product-card { grid-template-columns: 1fr; }
  .product-art { min-height: 300px; }
  .product-body { padding: 40px 28px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: .85rem; }
  .logo { font-size: .95rem; letter-spacing: .14em; gap: 8px; }
  .logo-mark { height: 22px; }
  .section { padding: 96px 0; }
  .field.inline { grid-template-columns: 118px minmax(0, 1fr); gap: 6px; }
  .product-icon { height: 40px; }
  .product-wordmark { height: 34px; }
}
