:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-alt: #0b1220;
  --surface: #101a2c;
  --surface-2: #14213a;
  --line: #22314d;
  --text: #e8eef9;
  --muted: #a3b1c9;
  --cyan: #51e1ff;
  --mint: #65ffb7;
  --violet: #8c76ff;
  --danger: #ff8f9a;
  --radius: 14px;
  --wrap: 1120px;
  --font:
    "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "D2Coding", Consolas, "SFMono-Regular", Menlo, monospace;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
pre {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--mint);
  background: rgba(101, 255, 183, 0.08);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  /* 파일 이름은 하이픈에서 먼저 줄을 바꾸고, 끊을 곳이 없는 해시만 글자 단위로 나눈다. */
  word-break: normal;
  overflow-wrap: anywhere;
}

pre {
  background: #060a12;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
  line-height: 1.55;
}

pre code {
  background: none;
  padding: 0;
  color: #cfe3ff;
  font-size: 0.82rem;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--cyan);
  color: #04121a;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 11, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
}

.nav-link {
  color: var(--muted);
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  color: #04121a;
  background: var(--cyan);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

.nav-cta:hover {
  text-decoration: none;
  background: #7be9ff;
}

/* 공통 */
.eyebrow {
  color: var(--mint);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 700;
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 44em;
}

.lead {
  margin-top: 20px;
}

.section-lead {
  margin-top: 14px;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border: 1px solid transparent;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  color: #04121a;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.button.primary:hover {
  filter: brightness(1.08);
}

.button.ghost {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.button.ghost:hover {
  border-color: var(--cyan);
}

.button.wide {
  width: 100%;
}

/* 히어로 */
.hero {
  padding: 76px 0 84px;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(140, 118, 255, 0.2), transparent 70%),
    radial-gradient(50% 50% at 0% 10%, rgba(81, 225, 255, 0.14), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fineprint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.demo-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.demo-bar b {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.demo-prompt {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.demo-label {
  display: block;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.flow {
  margin: 16px 0 0 9px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 4px 0 4px 18px;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 0.92rem;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted);
}

.flow-step.think::before {
  border-color: var(--violet);
}

.flow-step.read::before {
  border-color: var(--cyan);
}

.flow-step.edit::before {
  border-color: var(--mint);
}

.flow-step.run::before {
  border-color: var(--mint);
  background: var(--mint);
}

.flow-kind {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
}

.flow-step.think .flow-kind {
  color: var(--violet);
}

.flow-step.read .flow-kind {
  color: var(--cyan);
}

.flow-step.edit .flow-kind,
.flow-step.run .flow-kind {
  color: var(--mint);
}

.flow-text {
  color: var(--text);
}

.flow-text code {
  display: inline-block;
  max-width: 100%;
  margin: 1px 2px 1px 0;
  color: #cfe3ff;
  background: rgba(81, 225, 255, 0.08);
}

.flow-text i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.82rem;
  margin-left: 4px;
}

.plus,
.ok {
  color: var(--mint);
}

.minus {
  color: var(--danger);
}

.demo figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* 작업 흐름 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(81, 225, 255, 0.12);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 엔진 카드 */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.card h3 {
  color: var(--cyan);
}

.card p {
  color: var(--text);
  font-size: 0.95rem;
}

.card ul {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card li {
  position: relative;
  padding-left: 16px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* 모델 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.facts {
  display: grid;
  gap: 14px;
}

.facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.facts p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.facts .note {
  background: transparent;
  border-style: dashed;
}

.facts .note p {
  margin-top: 0;
  font-size: 0.9rem;
}

/* 다운로드 */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--cyan);
  border-radius: 18px;
  padding: 26px 24px;
  display: grid;
  gap: 20px;
  min-width: 0;
}

.download-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-head img {
  border-radius: 16px;
  flex: none;
}

.download-head h3 {
  font-size: 1.3rem;
}

.download-head p {
  color: var(--muted);
  font-size: 0.94rem;
}

.release-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.release-facts > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.release-facts dt {
  color: var(--muted);
}

.platforms {
  display: grid;
  gap: 14px;
}

.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.platform p {
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
}

.platform-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* 설치 방법 */
.install {
  counter-reset: install;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.install li {
  counter-increment: install;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 22px 66px;
  min-width: 0;
}

.install li::before {
  content: counter(install);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(101, 255, 183, 0.12);
  color: var(--mint);
  font-weight: 800;
  font-size: 0.9rem;
}

.install p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.install strong {
  color: var(--text);
}

.install pre {
  margin-top: 10px;
}

.faq {
  margin-top: 48px;
  display: grid;
  gap: 10px;
}

.faq-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 15px 0;
}

.faq details p {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 16px;
}

/* 푸터 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer strong {
  color: var(--text);
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.notfound .wrap {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.notfound p {
  color: var(--muted);
}

/* 반응형 */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 36px;
  }

  .split {
    gap: 28px;
  }

  .cards,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-link {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .install {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }

  .cards,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .actions .button {
    width: 100%;
  }

  .release-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
