/* DeepWork public site — Liquid Glass rebrand.
   Brand mark gradient: #00E778 (green) → #746EFF (violet). */

:root {
  color-scheme: light dark;
  --ink: #171923;
  --muted: #575c6b;
  --paper: #f3f4f9;
  --panel: rgba(255, 255, 255, 0.66);
  --panel-solid: #ffffff;
  --rule: rgba(23, 25, 35, 0.12);
  --accent: #0b7a5a;
  --accent-strong: #4a43d9;
  --warn: #9a5b00;
  --code-bg: rgba(23, 25, 35, 0.06);
  --subtle-bg: rgba(23, 25, 35, 0.03);
  --subtle-rule: rgba(23, 25, 35, 0.08);
  --focus: #5d56f2;
  --on-accent: #081018;
  --brand-a: #00c76c;
  --brand-b: #746eff;
  --brand-text-a: #049467;
  --brand-text-b: #4a43d9;
  --glass-edge: rgba(255, 255, 255, 0.65);
  --glow-a: rgba(0, 231, 120, 0.16);
  --glow-b: rgba(116, 110, 255, 0.18);
  --card-shadow: 0 18px 44px -28px rgba(41, 37, 112, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceef4;
    --muted: #9ba1ae;
    --paper: #0e1015;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-solid: #1a1d24;
    --rule: rgba(255, 255, 255, 0.1);
    --accent: #3ecf8e;
    --accent-strong: #9d98ff;
    --warn: #e0a45a;
    --code-bg: rgba(255, 255, 255, 0.07);
    --subtle-bg: rgba(255, 255, 255, 0.03);
    --subtle-rule: rgba(255, 255, 255, 0.07);
    --focus: #8f8aff;
    --on-accent: #081018;
    --brand-a: #00e778;
    --brand-b: #8f8aff;
    --brand-text-a: #00e778;
    --brand-text-b: #a3a0ff;
    --glass-edge: rgba(255, 255, 255, 0.09);
    --glow-a: rgba(0, 231, 120, 0.1);
    --glow-b: rgba(116, 110, 255, 0.14);
    --card-shadow: 0 22px 48px -30px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel-solid);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: top 0.15s ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* 브랜드 그라데이션을 은은한 조명으로 깔아 아이콘의 유리 질감과 톤을 맞춘다 */
  background-image:
    radial-gradient(52rem 34rem at 12% -6%, var(--glow-a), transparent 62%),
    radial-gradient(56rem 36rem at 96% 4%, var(--glow-b), transparent 64%),
    radial-gradient(40rem 30rem at 55% 118%, var(--glow-b), transparent 70%);
  background-attachment: fixed;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  word-break: keep-all;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand span {
  background: linear-gradient(92deg, var(--brand-text-a), var(--brand-text-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand picture {
  display: flex;
}

.brand img {
  display: block;
  width: 26px;
  height: auto;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.82;
}

nav a:hover,
nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.document {
  max-width: 840px;
}

.page-head {
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-bottom: 8px;
}

.hero-copy {
  min-width: 0;
}

.hero-sub {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 17px;
}

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

/* 스크린샷 대신 새 Liquid Glass 앱 아이콘을 브랜드 쇼케이스로 띄운다 */
.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 48px);
}

.hero-mark::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 36% 38%, var(--glow-a), transparent 72%),
    radial-gradient(closest-side at 66% 62%, var(--glow-b), transparent 72%);
  filter: blur(14px);
}

.hero-mark img {
  position: relative;
  display: block;
  width: min(232px, 58%);
  height: auto;
  filter: drop-shadow(0 26px 40px rgba(20, 18, 60, 0.35));
  animation: hero-mark-float 7s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  /* 다크에서는 아이콘 스퀘클이 배경과 겹치므로 브랜드 글로우로 실루엣을 띄운다 */
  .hero-mark::before {
    inset: -2%;
    filter: blur(22px);
    background:
      radial-gradient(closest-side at 34% 36%, rgba(0, 231, 120, 0.22), transparent 70%),
      radial-gradient(closest-side at 68% 64%, rgba(116, 110, 255, 0.3), transparent 70%);
  }

  .hero-mark img {
    filter:
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.35))
      drop-shadow(0 22px 44px rgba(0, 0, 0, 0.6));
  }
}

@keyframes hero-mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

h2 {
  font-size: 24px;
  line-height: 1.2;
}

p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b));
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 26px -14px color-mix(in srgb, var(--brand-b) 55%, transparent);
}

.button.primary {
  min-width: 190px;
}

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

.button.secondary {
  border-color: var(--rule);
  background: var(--panel);
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.button.secondary:hover {
  border-color: var(--accent-strong);
}

.button.compact {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.button-stack {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.button-stack .button {
  width: 100%;
  white-space: nowrap;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    var(--card-shadow);
}

.download-card + .download-card {
  margin-top: 16px;
}

.download-card-subtle {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 16px;
  background: var(--subtle-bg);
  border-color: var(--subtle-rule);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}

.download-card-subtle h2 {
  font-size: 18px;
}

.download-card-subtle p,
.download-card-subtle .metadata dt {
  color: var(--muted);
}

.download-card-subtle p {
  margin-top: 6px;
  font-size: 14px;
}

.download-card-subtle .metadata {
  gap: 6px;
  margin-top: 12px;
}

.download-card-subtle .metadata div {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.download-card-subtle code {
  background: var(--code-bg);
}

.download-card-subtle .button.secondary {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--rule);
}

.guide-card {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}

.guide-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.guide-card li {
  color: var(--ink);
}

.prompt-card {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}

.copy-prompt {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--ink);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 14px;
  line-height: 1.65;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-row,
.release-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}

.release-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.release-row {
  padding: 14px 18px;
}

.link-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

.metadata {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.metadata div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
}

.metadata dt {
  color: var(--muted);
  font-size: 14px;
}

.metadata dd {
  margin: 0;
  min-width: 0;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--code-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

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

.warning {
  color: var(--warn);
}

.document section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.document .page-head {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

footer {
  padding: 28px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  font-size: 14px;
}

.site-footer {
  display: grid;
  gap: 12px;
}

.footer-brand {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.footer-details {
  display: grid;
  gap: 6px;
  font-style: normal;
}

.footer-copyright {
  margin-top: 4px;
  font-size: 14px;
}

.section-title {
  margin: 36px 0 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-right: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  vertical-align: 3px;
}

.page-head + .section-title {
  margin-top: 8px;
}

.version-history {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.version-history > .section-title {
  margin-top: 0;
}

.version-group + .version-group {
  margin-top: 28px;
}

.version-group-title {
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.version-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}

.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.version-table th,
.version-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.version-table thead th {
  position: sticky;
  top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--subtle-bg);
  white-space: nowrap;
}

.version-table tbody tr:last-child td {
  border-bottom: 0;
}

.version-table tbody tr:hover {
  background: var(--subtle-bg);
}

.version-table .v-version {
  white-space: nowrap;
  font-weight: 600;
}

.version-table .v-version a {
  font-weight: 600;
}

.v-tag {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.v-tag.preview {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.version-table .v-date {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.version-table .v-downloads {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v-asset {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.version-status td {
  color: var(--muted);
  text-align: center;
}

.version-fallback {
  margin-top: 14px;
  font-size: 14px;
}

.version-mobile-note {
  display: none;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-mark {
    order: -1;
    justify-items: start;
    padding: 0 0 18px;
  }

  .hero-mark img {
    width: 96px;
    animation: none;
  }

  .hero-mark::before {
    inset: -30% -60% 0 -20%;
  }
}

@media (max-width: 720px) {
  header,
  .download-card,
  .download-row,
  .release-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-card {
    display: flex;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions .button,
  .button.primary,
  .button.compact {
    width: 100%;
  }

  .metadata div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* PC 전용 앱이라 모바일에서는 무거운 릴리스 표를 숨기고 GitHub 링크만 노출 */
  .version-group .version-table-wrap {
    display: none;
  }

  .version-mobile-note {
    display: block;
    margin-top: 8px;
    font-size: 14px;
  }
}

.install-guide {
  margin-top: 56px;
}

.install-guide-intro {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--muted);
}

.install-guide-intro code {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 1px 5px;
}

.guide-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.command-row {
  position: relative;
  min-width: 0;
}

.command-box {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  /* 오른쪽 패딩은 오버레이된 복사 버튼 밑에 텍스트 끝이 가려지지 않게 하는 여백 */
  padding: 14px 86px 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--ink);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre;
}

.copy-button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--panel-solid);
  color: var(--accent-strong);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--accent-strong);
}

.guide-note {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  color: var(--muted);
}

.install-guide > .guide-note {
  margin-top: 18px;
}
