/* Vertical — 서비스 소개 페이지 */

:root {
  --bg: #F5F7FA;
  --bg-alt: #ECF0F4;
  --surface: #FFFFFF;
  --surface-2: #F1F4F8;
  --text: #0B1220;
  --text-2: #3D4757;
  --text-3: #667085;
  --line: rgba(11, 18, 32, 0.09);
  --line-strong: rgba(11, 18, 32, 0.18);
  --accent: #0E7490;
  --accent-strong: #0B5E75;
  --accent-soft: rgba(14, 116, 144, 0.10);
  --on-accent: #FFFFFF;
  --amber: #B45309;
  --amber-soft: rgba(180, 83, 9, 0.10);
  --good: #047857;
  --good-soft: rgba(4, 120, 87, 0.10);
  --hero-glow: rgba(14, 116, 144, 0.10);
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.06);
  --header-bg: rgba(245, 247, 250, 0.82);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07090D;
    --bg-alt: #0B0F15;
    --surface: #0F141C;
    --surface-2: #161C26;
    --text: #F3F5F8;
    --text-2: rgba(255, 255, 255, 0.72);
    --text-3: rgba(255, 255, 255, 0.50);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #22D3EE;
    --accent-strong: #67E8F9;
    --accent-soft: rgba(34, 211, 238, 0.12);
    --on-accent: #04141A;
    --amber: #F5A524;
    --amber-soft: rgba(245, 165, 36, 0.13);
    --good: #34D399;
    --good-soft: rgba(52, 211, 153, 0.12);
    --hero-glow: rgba(34, 211, 238, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(7, 9, 13, 0.78);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #07090D;
  --bg-alt: #0B0F15;
  --surface: #0F141C;
  --surface-2: #161C26;
  --text: #F3F5F8;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.50);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #22D3EE;
  --accent-strong: #67E8F9;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --on-accent: #04141A;
  --amber: #F5A524;
  --amber-soft: rgba(245, 165, 36, 0.13);
  --good: #34D399;
  --good-soft: rgba(52, 211, 153, 0.12);
  --hero-glow: rgba(34, 211, 238, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(7, 9, 13, 0.78);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { border-radius: 8px; }
.brand-sm { font-size: 15px; gap: 8px; }
.brand-sm img { border-radius: 6px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.nav-cta { color: var(--accent); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .ic { grid-area: 1 / 1; }

.theme-btn .ic-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ic-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .ic-moon { display: none; }
}

.menu-btn { display: none; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.menu-btn[aria-expanded="true"] .ic-menu { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; font-size: 16px; }
}

/* ---------- 공통 ---------- */
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-lead { margin-top: 16px; color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); }

.fine { margin-top: 20px; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, background-color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

.cards { display: grid; gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-4, .cards-3 { grid-template-columns: 1fr; } }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3, .card h4 { font-size: 18px; font-weight: 700; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.card-num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--amber);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.hero .lead {
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.75;
}
.hero .lead strong { color: var(--text); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hero-tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px;
}
.hero-visual { margin: 0; }
.mock {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.28));
}
.hero-visual figcaption,
.diagram figcaption {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- 구성도 ---------- */
.diagram {
  margin: 0 0 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.dg { width: 100%; height: auto; font-family: inherit; }
.dg-tall { display: none; max-width: 380px; margin: 0 auto; }
@media (max-width: 720px) {
  .diagram { padding: 18px 12px; }
  .dg-wide { display: none; }
  .dg-tall { display: block; }
}

.dg-node rect, .dg-hub > rect {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 1.2;
}
.dg-hub > rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.dg-muted rect { stroke-dasharray: 4 4; }
.dg-ico { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.dg-ico-s { fill: none; stroke: var(--accent); stroke-width: 2; }
.dg-ico-s2 { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.dg-wifi path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.dg-wifi circle { fill: var(--accent); }
.dg-t { fill: var(--text); font-size: 15.5px; font-weight: 700; }
.dg-s { fill: var(--text-3); font-size: 12.5px; }
.dg-cap { fill: var(--text-3); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; }
.dg-label { fill: var(--accent); font-size: 12.5px; font-weight: 700; }
.dg-label-back { fill: var(--amber); }
.dg-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  animation: flow 1.6s linear infinite;
}
.dg-back {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  opacity: 0.85;
}
@keyframes flow { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) {
  .dg-flow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 단계 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
}
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 숫자 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
}
.stat dd { margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.stat-v {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat-v small {
  margin-left: 4px;
  color: var(--text-3);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.stat-note { color: var(--text-3); font-size: 13.5px; line-height: 1.6; }
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.badge-goal { background: var(--amber-soft); color: var(--amber); }
.badge-measured { background: var(--good-soft); color: var(--good); }
.badge-spec { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- 기능 ---------- */
.feature-group + .feature-group { margin-top: 56px; }
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
}
.dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.dot-cyan { background: var(--accent); }
.dot-amber { background: var(--amber); }
.dot-green { background: var(--good); }
.feature .ic-feat {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  padding: 9px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 1.7;
}
.feature-group:nth-of-type(2) .ic-feat { background: var(--amber-soft); color: var(--amber); }
.feature-group:nth-of-type(3) .ic-feat { background: var(--good-soft); color: var(--good); }

/* ---------- 장비 ---------- */
.hw { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.hw-title {
  margin-bottom: 14px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hw-title-gap { margin-top: 32px; }
.hw-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.hw-item + .hw-item { margin-top: 12px; }
.hw-item h4 { font-size: 17.5px; font-weight: 700; }
.hw-item ul { margin: 12px 0 0; padding: 0; list-style: none; }
.hw-item li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 15px;
}
.hw-item li + li { margin-top: 6px; }
.hw-item li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
@media (max-width: 860px) { .hw { grid-template-columns: 1fr; gap: 0; } .hw-col + .hw-col { margin-top: 32px; } }

/* ---------- 운영 ---------- */
.ops {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}
.ops-flow {
  position: sticky;
  top: 88px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ota { width: 100%; height: auto; font-family: inherit; }
.ops-list { display: grid; gap: 12px; }
.op {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ic-op {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.op h3 { font-size: 17px; font-weight: 700; }
.op p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) {
  .ops { grid-template-columns: 1fr; gap: 20px; }
  .ops-flow { position: static; padding: 16px; }
}

/* ---------- 문의 ---------- */
.contact { padding-top: 96px; }
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--hero-glow), transparent 60%),
    var(--surface);
}
.contact-card h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.contact-info { margin: 0; display: grid; gap: 12px; }
.contact-info > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.contact-info dt { color: var(--text-3); font-size: 14px; font-weight: 500; }
.contact-info dd { margin: 0; font-weight: 700; text-align: right; }
.placeholder { color: var(--text-3); }
@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; }
}

/* ---------- 푸터 ---------- */
.site-footer {
  margin-top: 0;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13.5px;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-inner .brand { color: var(--text); }
.to-top { margin-left: auto; color: var(--text-2); text-decoration: none; }
.to-top:hover { color: var(--accent); }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .card, .steps li, .stat { padding: 20px; }
  .contact { padding-top: 64px; }
}

/* ---------- 404 ---------- */
.nf-title { margin-top: 48px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.nf-cta { margin-top: 28px; }

.nw { white-space: nowrap; }
.ota .dg-t { font-size: 17px; }
.ota .dg-s { font-size: 13.5px; }
.ota .dg-label { font-size: 13.5px; }
.ota-tall { display: none; max-width: 360px; margin: 0 auto; }
.ota-tall .dg-t { font-size: 16px; }
.ota-tall .dg-s { font-size: 13.5px; }
@media (max-width: 900px) {
  .ota-wide { display: none; }
  .ota-tall { display: block; }
}
@media (max-width: 720px) {
  .diagram { padding: 14px 4px; }
  .dg-tall .dg-t { font-size: 17px; }
  .dg-tall .dg-s { font-size: 13.5px; }
  .dg-tall .dg-label, .dg-tall .dg-cap { font-size: 13.5px; }
}
