:root {
  --bg: #111418;
  --bg-2: #171b20;
  --panel: #22262c;
  --panel-2: #2a2f36;
  --line: #2f353d;
  --text: #e7eaee;
  --muted: #a0a8b3;
  --accent: #4c9aff;
  --accent-fill: #2f6fc4;
  --c-wall: #e7eaee;
  --c-door: #56c271;
  --c-wind: #4fc3f7;
  --c-grid: #f47067;
  --c-dim: #d47fe0;
  --c-text: #e8b93b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "IBM Plex Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: var(--accent); }
code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .88em;
  background: var(--panel-2);
  border-radius: 5px;
  padding: 1px 6px;
}
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { background: #3a7fd6; }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 7px; }
.brand b { color: var(--accent); font-weight: inherit; }
.brand-sm { font-size: 15px; gap: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(#22272e 1px, transparent 1.2px) 0 0 / 24px 24px,
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font: 500 14px "IBM Plex Mono", monospace; letter-spacing: .02em; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
.lead { margin: 22px 0 0; font-size: 18px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Editor mock */
.mock { margin: 0; }
.mock-screen {
  position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden;
  background: radial-gradient(#262b33 1px, transparent 1.2px) 0 0 / 16px 16px, #15181c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  font-size: 11px; color: var(--muted);
}
.m-float { position: absolute; background: var(--panel); border-radius: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); z-index: 2; }
.m-top { top: 3%; left: 2.5%; padding: 7px 12px; color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-door); }
.m-topr { top: 3%; right: 2.5%; padding: 6px; display: flex; align-items: center; gap: 6px; }
.m-topr i { width: 18px; height: 18px; border-radius: 5px; background: var(--panel-2); }
.m-topr b { background: var(--accent-fill); color: #fff; border-radius: 6px; padding: 2px 10px; font-weight: 600; }
.m-left { top: 15%; left: 2.5%; bottom: 3%; width: 23%; padding: 8px 6px; }
.m-tab { color: var(--text); font-weight: 600; padding: 2px 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.m-row { display: flex; align-items: center; gap: 7px; padding: 4px 6px; font-family: "IBM Plex Mono", monospace; border-radius: 5px; }
.m-row:first-of-type { background: rgba(76, 154, 255, .16); color: var(--text); }
.m-row span { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.sw-wall { background: var(--c-wall); } .sw-door { background: var(--c-door); } .sw-wind { background: var(--c-wind); }
.sw-grid { background: var(--c-grid); } .sw-dim { background: var(--c-dim); } .sw-text { background: var(--c-text); }
.m-plan { position: absolute; left: 27%; top: 15%; width: 70%; height: 70%; }
.m-plan path, .m-plan rect { fill: none; vector-effect: non-scaling-stroke; }
.pg path { stroke: var(--c-grid); stroke-width: 1; stroke-dasharray: 10 3 2 3; opacity: .6; }
.pw path { stroke: var(--c-wall); stroke-width: 1.3; }
.pd path { stroke: var(--c-door); stroke-width: 1.2; }
.pi path { stroke: var(--c-wind); stroke-width: 1.2; }
.pm path { stroke: var(--c-dim); stroke-width: 1; }
.pm text { fill: var(--c-dim); font: 10px "IBM Plex Mono", monospace; text-anchor: middle; }
.pt text { fill: var(--c-text); font: 500 12px "IBM Plex Sans KR", sans-serif; text-anchor: middle; }
.ps { stroke: var(--accent); stroke-width: 2.4; }
.m-plan .pgp { fill: var(--accent); stroke: #fff; stroke-width: 1; }
.m-ctx { left: 56%; top: 33%; padding: 5px 6px; display: flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; }
.m-ctx span { padding: 0 6px; }
.m-ctx i, .m-tools i { width: 16px; height: 16px; border-radius: 4px; background: var(--panel-2); }
.m-tools { left: 50%; transform: translateX(-34%); bottom: 4%; padding: 6px; display: flex; align-items: center; gap: 6px; }
.m-tools i { width: 24px; height: 24px; border-radius: 6px; }
.m-tools i.on { background: var(--accent-fill); }
.m-tools em { font-style: normal; background: var(--panel-2); border-radius: 6px; padding: 4px 10px; white-space: nowrap; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; letter-spacing: -.01em; }
.section-lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 40em; }
h3 { margin: 0; font-size: 18px; line-height: 1.4; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.feature { background: var(--panel); border-radius: 14px; padding: 26px; }
.feature p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.devices { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.device-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.device-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 20px 22px; background: var(--panel); border-radius: 14px; }
.device-list strong { font-size: 17px; }
.device-list span { color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.steps li { padding: 26px; border: 1px solid var(--line); border-radius: 14px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(76, 154, 255, .16); color: var(--accent); font: 600 15px "IBM Plex Mono", monospace; margin-bottom: 16px; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.final { padding: 0 0 96px; }
.final-box { text-align: center; padding: 64px 24px; border-radius: 20px; background: var(--panel); }
.final-box p { margin: 12px 0 28px; color: var(--muted); font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.stat.stat-wide { text-align: left; margin-top: 16px; flex-direction: row; align-items: center; gap: 28px; }
.stat.stat-wide strong { font-size: 56px; color: var(--accent); flex: none; }
.stat.stat-wide span { font-size: 17px; color: var(--text); }
.stat { background: var(--panel); border-radius: 14px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.stat strong { font: 600 40px/1.1 "IBM Plex Sans KR", sans-serif; letter-spacing: -.02em; color: var(--text); }
.stat strong small { font-size: 20px; margin-left: 4px; color: var(--muted); font-weight: 500; }
.stat span { color: var(--muted); font-size: 15px; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.biz { margin-top: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.biz p { margin: 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .devices { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features, .steps, .stats { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
  .lead { font-size: 16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stat.stat-wide { flex-direction: column; align-items: flex-start; gap: 10px; }
  .device-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mock-screen { aspect-ratio: 4 / 3.4; font-size: 9px; }
  .m-left { display: none; }
  .m-plan { left: 4%; width: 92%; }
  .m-ctx { left: 34%; }
  .m-tools { left: 3%; right: 3%; transform: none; justify-content: space-between; }
  .m-tools em { display: none; }
  .footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
