/* ===== Font =====
   폰트는 index.html <head>의 <link>로 불러옵니다.
   (CSS @import는 이 파일을 받은 뒤에야 폰트 요청이 시작돼 첫 렌더가 늦어집니다) */

/* ===== Design Tokens ===== */
:root {
  --bg: #0a0e17;
  --bg-alt: #0f1420;
  --surface: #141b2b;
  --surface-2: #1a2234;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6edf6;
  --text-dim: #93a1b5;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --accent-glow: rgba(79, 140, 255, 0.35);
  --radius: 16px;
  --maxw: 1160px;
  --font: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061018; box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 23, 0.6);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.header.scrolled {
  background: rgba(10, 14, 23, 0.88);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-mark { color: var(--accent); margin-right: 2px; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #061018; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 110px; text-align: center; overflow: hidden; }

/* Background loop video */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, #0a0e17, #12203a, #0a1a30, #0a0e17);
  background-size: 300% 300%;
  animation: heroShift 18s ease-in-out infinite;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; }
.hero.has-video .hero-video-ph { display: none; }
@keyframes heroShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,14,23,0.5) 0%, rgba(10,14,23,0.72) 55%, var(--bg) 100%);
}

.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  filter: blur(30px); opacity: .5; pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--accent-2); font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.hero-title { font-size: clamp(32px, 6vw, 58px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { color: var(--text-dim); font-size: clamp(15px, 2vw, 18px); margin: 24px auto 38px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 70px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ===== Logo Marquee (무한 스크롤 띠) ===== */
.marquee-section {
  padding: 40px 0 46px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.marquee-caption {
  text-align: center; color: var(--text-dim); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; margin-bottom: 26px;
}
.marquee {
  overflow: hidden; width: 100%;
  /* 양쪽 끝 페이드 처리 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; width: max-content; gap: 18px;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); } /* 절반(1세트) + gap 절반만큼 이동 → 이음새 없음 */
}
.logo-chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 13px 24px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  transition: color .2s, border-color .2s;
}
.logo-chip:hover { color: #fff; border-color: rgba(79,140,255,.45); }
.chip-ico { font-size: 20px; }
/* 출시 예정 제품은 정식 제품과 구분되게 (제품 카드의 badge-soon과 같은 취급) */
.logo-chip.soon { border-style: dashed; opacity: .72; }
.chip-soon {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 100px; margin-left: 2px;
  background: rgba(147, 161, 181, .12); color: var(--text-dim);
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; overflow: hidden; }
/* 배경 장식(도트 그리드·광원)보다 콘텐츠가 위에 오도록 */
.section > .container { position: relative; z-index: 1; }
/* 위·아래 경계를 그라데이션 헤어라인으로 부드럽게 */
.section-alt {
  background:
    linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.32), transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.16), transparent) bottom / 100% 1px no-repeat,
    var(--bg-alt);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.eyebrow { color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: 0.15em; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--text-dim); margin-top: 14px; font-size: 17px; word-break: keep-all; overflow-wrap: break-word; }

/* ===== Grid ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; transition: all .3s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(79,140,255,.4); box-shadow: 0 20px 40px -20px var(--accent-glow); }
.card-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(79, 140, 255, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(79, 140, 255, 0.22);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover .card-icon {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: 0 10px 22px -10px var(--accent-glow);
}
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card p strong { color: var(--text); font-weight: 700; }
.card-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.card-list li { color: var(--text-dim); font-size: 14px; padding-left: 22px; position: relative; }
.card-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* 카드 하단 상세 링크 */
.card-link {
  display: inline-block; margin-top: 20px;
  font-size: 14px; font-weight: 700; color: var(--accent-2);
  transition: color .2s, transform .2s;
}
.card-link:hover { color: #7ee7f7; transform: translateX(3px); }

/* Coming-soon subsection */
.subhead { text-align: center; margin: 64px 0 32px; }
.subhead h3 { font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; }
.subhead p { color: var(--text-dim); font-size: 15px; margin-top: 10px; }
.pill {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 100px; color: var(--accent-2);
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3);
}
.product-card.soon { position: relative; opacity: 0.72; border-style: dashed; }
.product-card.soon:hover { opacity: 1; transform: translateY(-6px); border-style: solid; }
.badge-soon {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
  color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border);
}

/* ===== Features =====
   제품 카드(채운 면)와 구분되도록 상단 헤어라인 기반의 에디토리얼 톤으로 구성 */
#features .grid { gap: 28px 34px; }
.feature {
  position: relative; padding: 26px 16px 6px 0;
  border-top: 1px solid var(--border);
  transition: transform .3s ease;
}
/* hover 시 상단 라인이 좌→우로 그어짐 */
.feature::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.feature:hover { transform: translateY(-4px); }
.feature:hover::before { transform: scaleX(1); }
.feature-num {
  font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.feature h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; }
.about-text p { color: var(--text-dim); margin-bottom: 16px; font-size: 16px; }
.about-values { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.about-values div { display: flex; flex-direction: column; padding-left: 16px; border-left: 2px solid var(--accent); }
.about-values strong { font-size: 14px; color: var(--accent-2); letter-spacing: 0.08em; }
.about-values span { color: var(--text-dim); font-size: 15px; }

.about-visual { display: flex; justify-content: center; }
.glass-panel {
  width: 100%; aspect-ratio: 1/1; max-width: 380px;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.node-graph { position: relative; width: 220px; height: 220px; }
.node {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent-glow);
  animation: pulse 3s ease-in-out infinite;
}
.node.center { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 24px; height: 24px; background: var(--accent-2); box-shadow: 0 0 24px var(--accent-2); }
.node.n1 { top: 6%; left: 20%; animation-delay: .2s; }
.node.n2 { top: 12%; right: 8%; animation-delay: .8s; }
.node.n3 { bottom: 10%; left: 8%; animation-delay: 1.2s; }
.node.n4 { bottom: 6%; right: 18%; animation-delay: 1.6s; }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
.node.center { animation: pulseCenter 3s ease-in-out infinite; }
@keyframes pulseCenter { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.15); } }
.visual-caption { position: absolute; bottom: 24px; color: var(--text-dim); font-size: 14px; letter-spacing: 0.1em; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin: 6px 0 14px; letter-spacing: -0.02em; }
.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 3px; }
.contact-list span { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.contact-list a, .contact-list p { color: var(--text); font-size: 16px; }
.contact-list a:hover { color: var(--accent-2); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 15px; resize: vertical; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { color: var(--text-dim); font-size: 13px; margin-top: 14px; text-align: center; }

/* 스팸 봇 함정 필드 — 화면/스크린리더 모두에서 감춤 */
/* 봇 함정 필드 래퍼 — 화면 밖으로 빼되 display:none은 쓰지 않습니다(봇이 무시함) */
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* 개인정보 수집·이용 동의 */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; cursor: pointer; }
.consent input { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.consent span { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
.consent a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.consent em { display: block; font-style: normal; font-size: 12.5px; opacity: .8; margin-top: 2px; }

/* 전송 결과 안내 */
.form-status { font-size: 13.5px; margin-top: 14px; text-align: center; min-height: 1px; }
.form-status.is-pending { color: var(--text-dim); }
.form-status.is-ok { color: var(--accent-2); }
.form-status.is-error { color: #ff8a8a; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-dim); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 68px; right: 0; left: 0;
    flex-direction: column; gap: 4px; padding: 20px 24px 28px;
    background: rgba(10,14,23,.97); border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform .35s ease; align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 4px; }
  .nav-links a.btn { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
}

/* ===== Architecture (제품 연결 흐름) ===== */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.flow-stage { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.flow-tag { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-2); text-transform: uppercase; }
.flow-node {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 20px; min-width: 168px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .25s, transform .25s;
}
.flow-node:hover { border-color: rgba(79,140,255,.45); transform: translateY(-4px); }
.flow-node .flow-ico { font-size: 26px; }
.flow-node strong { font-size: 17px; }
.flow-node span { color: var(--text-dim); font-size: 13px; }
/* 현장 설비(데이터 소스) — 제품이 아니므로 점선·중립 톤으로 구분 */
.flow-node.source { border-style: dashed; background: var(--bg-alt); gap: 10px; padding: 18px; justify-content: center; }
.flow-node.source:hover { border-color: rgba(255,255,255,.2); transform: none; }
.flow-node.source .dev {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.flow-node.source .dev span { font-size: 20px; }
/* Nexus Agent(예정) — 강조 + 예정 배지 */
.flow-node.upcoming { position: relative; border-color: rgba(34,211,238,.4); background: linear-gradient(160deg, var(--surface), rgba(34,211,238,.06)); }
.flow-node .mini-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  padding: 3px 10px; border-radius: 100px; color: var(--accent-2);
  background: var(--bg-alt); border: 1px solid rgba(34,211,238,.4);
}
/* 화살표 → 데이터가 흐르는 배선.
   남는 가로 공간을 배선이 흡수하도록 신축형(flex)으로 둬서 한 줄에 유지 */
.flow-arrow {
  position: relative; display: flex; align-items: center; justify-content: center;
  flex: 1 1 30px; min-width: 24px; max-width: 56px;
}
.wire {
  position: relative; display: block; width: 100%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(79,140,255,.12), rgba(79,140,255,.55), rgba(79,140,255,.12));
}
/* 진행 방향 꺾쇠 */
.wire::before {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
/* 흐르는 데이터 패킷 */
.wire::after {
  content: ''; position: absolute; top: 50%; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2);
  transform: translate(-50%, -50%);
  animation: packet 2.8s cubic-bezier(.55,0,.45,1) infinite;
}
@keyframes packet {
  0%   { left: 0;    opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
/* 설비 ⇄ Edge: 수집·제어 양방향 */
.flow-arrow.bi .wire::after { animation-duration: 2.2s; animation-direction: alternate; }
.flow-arrow.bi::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 7px; height: 7px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
/* 단계마다 패킷 타이밍을 흘려서 한 줄기로 이어 보이게 (배선은 4·6·8번째 자식) */
.flow > *:nth-child(4) .wire::after { animation-delay: .35s; }
.flow > *:nth-child(6) .wire::after { animation-delay: .7s; }
.flow > *:nth-child(8) .wire::after { animation-delay: 1.05s; }
.flow-aux { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.flow-node.aux { flex-direction: row; align-items: center; gap: 14px; text-align: left; min-width: 300px; }
.flow-node.aux .flow-ico { font-size: 24px; }
.flow-node.aux div { display: flex; flex-direction: column; }
/* 흐름도는 한 줄에 약 1064px가 필요하므로, 컨테이너가 그보다 좁아지는 지점부터
   어정쩡한 2줄 줄바꿈 대신 세로 배치로 전환 */
@media (max-width: 1140px) {
  .flow { flex-direction: column; align-items: center; }
  .flow-stage { width: 100%; max-width: 320px; }
  .flow-node, .flow-node.aux { width: 100%; min-width: 0; }
  .flow-aux { flex-direction: column; align-items: center; }

  /* 세로 배치에서는 배선을 회전시키지 않고 수직으로 다시 그린다.
     (rotate(90deg)는 레이아웃 박스가 2px로 남아 위아래 단계 라벨과 겹침) */
  .flow-arrow { flex: 0 0 auto; width: 100%; max-width: none; height: 46px; transform: none; }
  .wire {
    width: 2px; height: 100%;
    background: linear-gradient(180deg, rgba(79,140,255,.12), rgba(79,140,255,.55), rgba(79,140,255,.12));
  }
  /* 아래쪽 꺾쇠 */
  .wire::before {
    top: auto; right: auto; bottom: 0; left: 50%;
    border-top: 0; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: translateX(-50%) rotate(45deg);
  }
  /* 패킷도 위→아래로 */
  .wire::after { left: 50%; top: 0; animation-name: packetV; }
  @keyframes packetV {
    0%   { top: 0;    opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  /* 양방향(설비 ⇄ Edge): 위쪽 꺾쇠 추가 */
  .flow-arrow.bi::before {
    top: 0; left: 50%;
    border-bottom: 0; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
    transform: translateX(-50%) rotate(45deg);
  }
}

/* ===== Process (도입 3단계) ===== */
.steps .step { text-align: center; padding: 8px 12px; }
.step-num {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #061018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px -8px var(--accent-glow);
}
.steps .step h4 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.steps .step p { color: var(--text-dim); font-size: 15px; }

/* ===== FAQ ===== */
.container.narrow { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-2); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: rgba(79,140,255,.35); }
.faq-a { color: var(--text-dim); font-size: 15px; line-height: 1.7; padding: 0 0 22px; }
/* a { color: inherit } 기본값 탓에 본문 링크가 안 보여서 명시 */
.faq-a a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 20px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .2s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: #fff; }

/* ===== Scroll reveal (플래시 방지: html.js 기준) ===== */
.js .section-head,
.js .product-card,
.js .feature,
.js .step,
.js .faq-item,
.js .about-text,
.js .about-visual,
.js .contact-form,
.js .cta-panel,
.js .usecase,
.js .resource {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .is-visible { opacity: 1 !important; transform: none !important; }
/* 그리드 내 순차 등장(스태거) */
.js .grid > *:nth-child(2) { transition-delay: .08s; }
.js .grid > *:nth-child(3) { transition-delay: .16s; }
.js .grid > *:nth-child(4) { transition-delay: .24s; }
.js .grid > *:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .js .section-head, .js .product-card, .js .feature, .js .step,
  .js .faq-item, .js .about-text, .js .about-visual, .js .contact-form,
  .js .cta-panel, .js .usecase, .js .resource {
    opacity: 1; transform: none; transition: none;
  }
}

/* =====================================================================
   배경 레이어링 · 광원 · 질감
   ===================================================================== */

/* 섹션 도트 그리드 — 위쪽에서 아래로 사라지도록 마스크 */
.section::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000, transparent 72%);
}

/* 섹션별 오로라 광원 (좌·우 번갈아 배치해 스크롤 리듬 만들기) */
.section::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  filter: blur(100px); opacity: 0.14;
}
#products::after   { background: radial-gradient(circle, var(--accent),   transparent 64%); top: -260px; right: -200px; }
#architecture::after { background: radial-gradient(circle, var(--accent-2), transparent 64%); bottom: -280px; left: -220px; }
#features::after   { background: radial-gradient(circle, var(--accent),   transparent 64%); top: -240px; left: -240px; }
#process::after    { background: radial-gradient(circle, var(--accent-2), transparent 64%); top: -260px; right: -220px; }
#about::after      { background: radial-gradient(circle, var(--accent),   transparent 64%); bottom: -300px; right: -200px; }
#faq::after        { background: radial-gradient(circle, var(--accent-2), transparent 64%); top: -280px; left: -200px; }
#contact::after    { background: radial-gradient(circle, var(--accent),   transparent 64%); bottom: -280px; left: -180px; }

/* 전역 필름 그레인 — 평평한 다크 배경에 미세한 질감 */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   카드 스포트라이트 (마우스 위치를 따라오는 광원)
   ===================================================================== */
.product-card { position: relative; overflow: hidden; isolation: isolate; }
.product-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 140, 255, 0.18), transparent 62%);
}
.product-card:hover::before { opacity: 1; }
/* 상단 그라데이션 헤어라인 */
.product-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.7), transparent);
  opacity: 0; transition: opacity .35s ease;
}
.product-card:hover::after { opacity: 1; }

/* =====================================================================
   스크롤 진행 바 · 네비 스크롤스파이
   ===================================================================== */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
}
.nav-links a { position: relative; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: 50% 50%; transition: transform .28s ease;
}
.nav-links a.active { color: var(--text); }
.nav-links a.active:not(.btn)::after { transform: scaleX(1); }

/* =====================================================================
   히어로 스크롤 유도 큐
   ===================================================================== */
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 54px; color: var(--text-dim); transition: color .25s;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue-label { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; }
.scroll-cue-line {
  position: relative; width: 1px; height: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent);
}
.scroll-cue-line::after {
  content: ''; position: absolute; left: 50%; top: 0;
  width: 5px; height: 5px; border-radius: 50%; margin-left: -2.5px;
  background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0%   { top: 0;    opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 카운트업 진행 중 숫자 폭이 흔들리지 않도록 */
.stat strong[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .wire::after, .scroll-cue-line::after { animation: none; }
  .scroll-cue-line::after { top: 0; opacity: 1; }
}

/* =====================================================================
   중간 CTA 배너
   ===================================================================== */
.cta-band { padding: 84px 0; }
.cta-panel {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: linear-gradient(140deg, rgba(79, 140, 255, 0.10), rgba(34, 211, 238, 0.04)), var(--surface);
}
/* 그라데이션 1px 보더 (mask로 안쪽을 비워 테두리만 남김) */
.cta-panel::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.6), rgba(34, 211, 238, 0.35), rgba(79, 140, 255, 0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* 오른쪽 아래 광원 */
.cta-panel::after {
  content: ''; position: absolute; right: -140px; bottom: -220px; z-index: 0;
  width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--accent), transparent 64%);
  filter: blur(90px); opacity: 0.2;
}
.cta-copy { position: relative; z-index: 1; max-width: 620px; }
.cta-copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
/* .eyebrow 색이 덮이지 않도록 설명 문단만 지정 */
.cta-desc { color: var(--text-dim); font-size: 16px; margin-top: 12px; word-break: keep-all; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 860px) {
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}

/* =====================================================================
   Use Cases (적용 시나리오)
   ===================================================================== */
/* 배경색이 같은 섹션이 연달아 올 때 경계를 만들어주는 헤어라인 */
.has-divider {
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.22), transparent) top / 100% 1px no-repeat;
}

.usecase {
  display: flex; flex-direction: column;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(79, 140, 255, 0.5);
  border-radius: var(--radius);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.usecase:hover {
  transform: translateY(-5px);
  border-left-color: var(--accent-2);
  box-shadow: 0 20px 40px -22px var(--accent-glow);
}
.usecase-tag {
  /* .usecase가 flex column이라 기본값(stretch)이면 pill이 카드 폭 전체로 늘어남 */
  align-self: flex-start;
  display: inline-block; margin-bottom: 16px;
  font-size: 12px; font-weight: 700; color: var(--accent-2);
  padding: 5px 11px; border-radius: 100px;
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25);
}
.usecase h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.usecase p { color: var(--text-dim); font-size: 14.5px; word-break: keep-all; margin-bottom: 18px; }
/* 어떤 제품이 쓰이는지 */
/* margin-top:auto — 본문 길이가 달라도 칩 줄을 카드 아래쪽에 정렬 */
.usecase-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border);
}
.usecase-chips li {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  padding: 5px 11px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
}

/* =====================================================================
   Resources (자료실)
   ===================================================================== */
.resource {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  transition: transform .25s ease, border-color .25s ease;
}
.resource-ico {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; border-radius: 12px;
  background: linear-gradient(145deg, rgba(79, 140, 255, 0.16), rgba(34, 211, 238, 0.07));
  border: 1px solid rgba(79, 140, 255, 0.2);
}
.resource-body { flex: 1; min-width: 0; }
.resource-body h4 { font-size: 15.5px; font-weight: 700; }
.resource-body p { color: var(--text-dim); font-size: 13px; margin-top: 3px; }
.resource-state { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--accent-2); white-space: nowrap; }
/* 준비 중 항목은 링크가 아니므로 비활성 톤으로 구분 */
.resource.is-soon { opacity: 0.62; border-style: dashed; }
.resource.is-soon .resource-state { color: var(--text-dim); }
a.resource:hover { transform: translateY(-3px); border-color: rgba(79, 140, 255, 0.45); }

/* =====================================================================
   하위 페이지 공용 (protocols.html · 제품 상세 등)
   ===================================================================== */
.subpage-hero {
  position: relative; overflow: hidden;
  padding: 148px 0 64px;
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.09), transparent 70%), var(--bg);
}
.subpage-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 0%, #000, transparent 72%);
}
.subpage-hero > .container { position: relative; z-index: 1; }
.subpage-hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.subpage-desc { color: var(--text-dim); font-size: 17px; margin-top: 16px; max-width: 680px; word-break: keep-all; }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-dim); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span[aria-hidden] { opacity: .45; }

/* 프로토콜 개수 요약 */
.proto-summary { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.proto-summary div {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 104px; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.proto-summary strong {
  font-size: 26px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.proto-summary span { color: var(--text-dim); font-size: 12.5px; white-space: nowrap; }

/* 그룹 제목 */
.proto-group {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 21px; font-weight: 700; letter-spacing: -0.01em;
  margin: 52px 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.proto-group:first-of-type { margin-top: 0; }
.proto-count {
  font-size: 12px; font-weight: 700; color: var(--accent-2);
  padding: 4px 10px; border-radius: 100px;
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25);
}

/* 표 — 좁은 화면에서는 표 안쪽만 가로 스크롤 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.data-table th, .data-table td { text-align: left; padding: 13px 18px; white-space: nowrap; }
.data-table thead th {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim);
  text-transform: uppercase; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr { border-top: 1px solid var(--border); transition: background .2s; }
.data-table tbody tr:first-child { border-top: 0; }
.data-table tbody tr:hover { background: rgba(79, 140, 255, 0.05); }
.data-table td:first-child { font-weight: 600; color: var(--text); }
.data-table td { color: var(--text-dim); }

/* 읽기/쓰기 배지 */
.rw { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.rw.yes { color: var(--accent-2); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.28); }
.rw.no { color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); }

.proto-note { color: var(--text-dim); font-size: 13.5px; margin-top: 12px; padding-left: 2px; }
.proto-lead { color: var(--text-dim); font-size: 15.5px; margin: -4px 0 18px; word-break: keep-all; }

/* 페이지 하단 안내 + CTA */
.proto-foot {
  margin-top: 56px; padding: 32px 34px; border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(79, 140, 255, 0.09), rgba(34, 211, 238, 0.04)), var(--surface);
  border: 1px solid var(--border);
}
.proto-foot p { color: var(--text-dim); font-size: 15.5px; word-break: keep-all; }
.proto-foot p strong { color: var(--text); }
.proto-foot-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 720px) {
  .subpage-hero { padding: 116px 0 48px; }
  .proto-foot { padding: 26px 22px; }
}

/* =====================================================================
   제품 화면 스크린샷
   ─ 이미지 파일이 없으면 개별 항목과 섹션 전체가 자동으로 숨습니다.
     (script.js의 productScreenshots 참고 — 파일을 넣으면 저절로 나타남)
   ===================================================================== */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.shot { display: flex; flex-direction: column; gap: 12px; }
.shot[hidden] { display: none !important; }
.shot-frame {
  position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2);
  aspect-ratio: 16 / 10;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.shot-frame:hover { border-color: rgba(79, 140, 255, 0.45); transform: translateY(-4px); box-shadow: 0 20px 40px -22px var(--accent-glow); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; cursor: zoom-in; }
.shot figcaption { color: var(--text-dim); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.shot figcaption strong { color: var(--text); font-weight: 700; display: block; margin-bottom: 2px; }
.shots-wide { grid-template-columns: 1fr; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }

/* 라이트박스 (script.js가 동적으로 생성) */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: rgba(5, 8, 14, 0.92); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px; border: 1px solid var(--border);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 17px; line-height: 1;
}
.lightbox-close:hover { border-color: var(--accent); color: #fff; }

/* =====================================================================
   제품 상세 페이지
   ===================================================================== */
.prod-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 100px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--accent-2); font-size: 13px; font-weight: 700;
}
.prod-badge .ico { font-size: 17px; }
.prod-tagline { font-size: clamp(17px, 2.2vw, 20px); font-weight: 700; margin-top: 16px; word-break: keep-all; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.prod-chips li {
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 7px 13px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
}
.prod-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* 기능 카드 */
.func-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.func {
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease;
}
.func:hover { transform: translateY(-4px); border-color: rgba(79, 140, 255, 0.4); }
.func h3 { font-size: 17px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; }
.func p { color: var(--text-dim); font-size: 14.5px; word-break: keep-all; }
@media (max-width: 720px) { .func-grid { grid-template-columns: 1fr; } }

/* 연계 제품 */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s;
}
.related a:hover { transform: translateY(-4px); border-color: rgba(79, 140, 255, 0.45); }
.related .ico { font-size: 22px; }
.related strong { font-size: 16px; }
.related span { color: var(--text-dim); font-size: 13.5px; word-break: keep-all; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* 404 */
.notfound {
  position: relative; overflow: hidden;
  min-height: 78vh; display: flex; align-items: center; text-align: center;
  padding: 140px 0 90px;
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.10), transparent 65%), var(--bg);
}
.notfound-code {
  font-size: clamp(64px, 14vw, 132px); font-weight: 800; line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.notfound h1 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; }
.notfound-desc { color: var(--text-dim); font-size: 16px; margin: 14px auto 0; max-width: 460px; word-break: keep-all; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.notfound-links {
  display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border);
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.notfound-links a { color: var(--text-dim); font-size: 14.5px; transition: color .2s; }
.notfound-links a:hover { color: var(--accent-2); }

/* 약관·방침 본문 */
.legal h2 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
  margin: 44px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-dim); font-size: 15px; line-height: 1.75; margin-bottom: 14px; word-break: keep-all; }
.legal a { color: var(--accent-2); }
.legal .table-wrap { margin-bottom: 16px; }
.legal .data-table td, .legal .data-table th { white-space: normal; }
.legal-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.legal-list li { color: var(--text-dim); font-size: 15px; line-height: 1.7; padding-left: 18px; position: relative; }
.legal-list li::before { content: "·"; position: absolute; left: 4px; color: var(--accent-2); font-weight: 700; }
.legal-note {
  font-size: 13.5px; color: var(--text-dim);
  padding: 12px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); border-left: 2px solid rgba(34, 211, 238, .45);
}
.legal-date { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }

/* =====================================================================
   마감 디테일
   ===================================================================== */

/* 스크롤바 */
html { scrollbar-color: var(--surface-2) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2); border-radius: 100px;
  border: 3px solid var(--bg); /* 트랙과 간격을 줘서 얇게 보이도록 */
}
::-webkit-scrollbar-thumb:hover { background: #2c3850; }

/* 텍스트 선택 */
::selection { background: rgba(79, 140, 255, 0.32); color: #fff; }

/* .eyebrow가 섹션별 문단 규칙(.about-text p 등)에 덮이지 않도록 특이도 보강 */
p.eyebrow { color: var(--accent-2); margin-bottom: 12px; }

/* 주요 버튼 shine sweep (hover 시 한 번 지나감) */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { animation: shine .7s ease-out; }
@keyframes shine { from { left: -60%; } to { left: 130%; } }

/* 로고 다이아몬드 미세 회전 */
.logo-mark { display: inline-block; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.logo:hover .logo-mark { transform: rotate(90deg); }

/* FAQ 답변 열림 애니메이션 */
.faq-item[open] .faq-a { animation: faqOpen .3s ease-out; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* 키보드 포커스 가시성 (마우스 클릭에는 표시 안 함) */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover::after { animation: none; }
  .faq-item[open] .faq-a { animation: none; }
  .logo:hover .logo-mark { transform: none; }
}
