/* WaveOps 첫 화면 — 스크립트 없음 · 바깥 자원 없음(CSP: style-src 'self') */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #14171c;
  --muted: #5b6370;
  --line: #dfe3e8;
  --market: #1a7f9c;
  --vibe: #6a48c2;
  --focus: #1a7f9c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --card: #161b22;
    --ink: #e8ebf0;
    --muted: #9aa3b0;
    --line: #2a313b;
    --market: #7dd3e8;
    --vibe: #b9a6f2;
    --focus: #7dd3e8;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI",
               "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 56px 16px 32px;
  display: flex;
  flex-direction: column;
}

.top { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.mark { width: 44px; height: 44px; color: var(--market); flex: none; }
h1 { margin: 0; font-size: 28px; letter-spacing: -0.01em; }
.lede { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 520px) {
  .units { grid-template-columns: 1fr; }
  .wrap { padding-top: 36px; }
}

.unit {
  --accent: var(--market);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon desc"
    "icon host";
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
  padding: 22px 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--accent);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.unit-vibe { --accent: var(--vibe); }
.unit:hover { border-color: var(--accent); transform: translateY(-1px); }
.unit:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.icon { grid-area: icon; align-self: stretch; display: block; height: 100%; aspect-ratio: 1 / 1; width: auto; }
.icon svg { width: 100%; height: 100%; display: block; border-radius: 22%; }
@supports not (aspect-ratio: 1 / 1) { .icon { width: 76px; height: 76px; } }
.name { grid-area: name; font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1.25; align-self: end; }
.desc { grid-area: desc; font-size: 15px; align-self: start; }
.host {
  grid-area: host;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.foot { margin-top: auto; padding-top: 40px; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .unit { transition: none; }
  .unit:hover { transform: none; }
}
