@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("PretendardVariable.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --bg: #fcfcfd;
  --elevated: #ffffff;
  --fill: #f2f4fa;
  --border: rgba(24, 27, 33, .08);
  --border-strong: rgba(24, 27, 33, .16);
  --text-1: #181a1f;
  --text-2: #383c44;
  --text-3: #565b64;
  --accent: #006aff;
  --accent-hover: #0052c7;
  --accent-bg: rgba(0, 106, 255, .12);
  --shadow: 0 4px 14px rgba(10, 22, 40, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text-1);
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.ic {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none; vertical-align: middle;
}
.ic-lg { width: 20px; height: 20px; }

.shell, main { width: 100%; max-width: 1180px; margin: 0 auto; }

.topbar-row { background: var(--elevated); border-bottom: 1px solid var(--border); }
.topbar { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 32px; }
.topbar .sep { width: 1px; height: 18px; background: var(--border-strong); }
.topbar .label { font-size: 21px; font-weight: 400; line-height: 1; color: var(--text-1); }
.topbar .brand { display: block; }
.topbar .brand-logo { position: relative; top: -4px; height: 24px; width: auto; display: block; }
.topbar .brand:hover .brand-logo { opacity: .8; }

.hero-band {
  position: relative;
  background: linear-gradient(100deg, #0c1f38, #112f50 70%, #163c62);
  overflow: hidden;
}
.hero-band .geo { position: absolute; pointer-events: none; }
.hero-band .geo.g1 { top: -60px; right: 120px; width: 340px; height: 340px; border: 1px solid rgba(255, 255, 255, .10); transform: rotate(12deg); }
.hero-band .geo.g2 { top: 40px; right: -40px; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, .07); transform: rotate(-8deg); }
.hero-band .geo.g3 { top: -120px; right: 60px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(77, 166, 217, .16), transparent 65%); }

.hero { position: relative; padding: 36px 32px 32px; }
.hero h1 { margin: 0 0 10px; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #ffffff; }
.hero .lede { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .72); }
.hero .lede .hl { color: #4da6d9; }

.releases { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.release {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .92); font-size: 14px;
  transition: background 160ms ease;
}
.release:hover { color: rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .32); }
.release .new { padding: 1px 9px; border-radius: 999px; background: #aecfe8; color: #0a1628; font-size: 12px; font-weight: 600; }
.release b { color: #ffffff; }

main { flex: 1; padding-bottom: 24px; }
section { padding: 36px 32px 0; }
section h2 { margin: 0 0 16px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-1); }

.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--elevated); color: var(--text-1);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease;
}
a.card:hover, a.card:focus-visible { border-color: var(--accent); color: var(--text-1); outline: none; }
.card .title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; color: var(--text-1); }
.card .title .ic { color: var(--accent); }
.card .desc { color: var(--text-2); }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  background: var(--fill); color: var(--text-2);
  font-size: 12px; line-height: 1.3; white-space: nowrap;
}
.card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.cta {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: #ffffff;
  font-size: 14px; font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease;
}
.cta:hover, a.card:hover .cta.primary { background: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff; }

.flow { display: flex; align-items: stretch; }
.flow .node {
  flex: none; width: 150px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 18px 16px;
  border: 1px dashed var(--border-strong); border-radius: 12px;
  background: var(--fill);
}
.flow .node .cap { font-size: 12px; color: var(--text-3); }
.flow .node .chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.flow .node .chip { background: var(--elevated); border: 1px solid var(--border); }
.flow .arrow { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; color: var(--text-3); font-size: 12px; }
.flow .card { flex: 1.2; }
.flow .file { padding: 1px 7px; border-radius: 6px; background: var(--fill); color: var(--text-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.flow .node.npu { width: 120px; align-items: center; gap: 6px; color: var(--text-2); transition: border-color 160ms ease; }
.flow a.node.npu:hover, .flow a.node.npu:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.flow a.node.npu:hover .cap { color: var(--accent); }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }

.guides { display: grid; gap: 24px; }
.guides h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--text-3); }
.guides ul { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.guides li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.guides .name { font-weight: 600; color: var(--text-1); }
.guides .langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
.guides .langs a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.guides .langs .ic { width: 14px; height: 14px; }

.resources { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px 32px; }
.resources .code ul { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
.resources h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--text-3); }
.resources ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.resources li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.resources li a { font-weight: 600; }
.resources li span { display: block; font-size: 12px; color: var(--text-3); }

footer { border-top: 1px solid var(--border); }
footer .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 18px 32px 32px; font-size: 12px; color: var(--text-3); }
footer .shell a { margin-left: auto; color: var(--text-2); }
footer .shell a:hover { color: var(--text-1); }

@media (max-width: 960px) {
  .flow { flex-direction: column; }
  .flow .node, .flow .node.npu { width: 100%; }
  .flow .arrow { flex-direction: row; padding: 8px 0; }
  .flow .arrow .ic { transform: rotate(90deg); }
  .topbar, .hero, section, footer .shell { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 30px; }
  .devices, .guides ul, .resources .code ul { grid-template-columns: 1fr; }
  .flow .node .chips { flex-direction: row; flex-wrap: wrap; }
  .resources { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .guides li { flex-direction: column; gap: 4px; }
  .guides .langs { justify-content: flex-start; }
  .guides .langs a { padding: 4px 0; }
  footer .shell a { margin-left: 0; }
}
