:root {
  color-scheme: light;
  --ink: #171323;
  --muted: #655f73;
  --line: #ddd8e8;
  --paper: #ffffff;
  --soft: #f7f5fb;
  --soft-strong: #efebf8;
  --violet: #7243e8;
  --violet-dark: #4c22b5;
  --blue: #2589ee;
  --lime: #d9ff1a;
  --night: #05040c;
  --night-soft: #111022;
  --success: #177b55;
  --warning: #925f08;
  --shadow: 0 22px 70px rgba(35, 24, 59, 0.1);
  --radius: 24px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}

html[lang="en"] body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

html[lang="ja"] body {
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}

html[lang="zh-CN"] body {
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--violet-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 4, 12, 0.88);
  color: #fff;
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.035em;
}

.top-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.top-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: rgba(141, 80, 255, 0.22);
  color: #fff;
}

.top-nav .tool-link {
  border: 1px solid rgba(217, 255, 26, 0.5);
  color: var(--lime);
}

.locale-links {
  display: flex;
  flex: 0 0 auto;
  padding: 3px;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.locale-links a {
  display: grid;
  min-width: 30px;
  min-height: 30px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.locale-links a:hover,
.locale-links a[aria-current="true"] {
  background: rgba(141, 80, 255, 0.34);
  color: #fff;
}

.content-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 35%, rgba(112, 67, 232, 0.35), transparent 30rem),
    radial-gradient(circle at 15% 90%, rgba(37, 137, 238, 0.2), transparent 24rem),
    linear-gradient(145deg, #030309, #09071a 60%, #0f0824);
  color: #fff;
}

.content-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 99, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 99, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: radial-gradient(circle at 78% 45%, #000, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 74px 0 82px;
}

.breadcrumbs {
  display: flex;
  margin: 0 0 34px;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.3);
  content: "/";
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 11px;
  border: 1px solid rgba(217, 255, 26, 0.42);
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.content-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.content-hero .lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.86rem;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--violet);
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(76, 34, 181, 0.2);
}

.button:hover {
  background: var(--violet-dark);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

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

.page-section {
  padding: 84px 0;
}

.page-section.soft {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.content-card {
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 28px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(35, 24, 59, 0.06);
}

.content-card::after {
  position: absolute;
  right: -45px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 67, 232, 0.13), transparent 68%);
  content: "";
  pointer-events: none;
}

.content-card .kicker {
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.content-card h3 {
  margin: 14px 0 10px;
  font-size: 1.55rem;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.content-card p {
  margin: 0;
  color: var(--muted);
}

.content-card .card-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
  font-weight: 850;
  text-decoration: none;
}

.feature-strip,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-strip > div,
.metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.feature-strip strong,
.metric strong {
  display: block;
  color: var(--violet-dark);
  font-size: 1.45rem;
  line-height: 1.2;
}

.feature-strip span,
.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 72px;
  align-items: start;
}

.prose {
  min-width: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 76px 0 20px;
  padding-top: 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.prose h3 {
  margin: 40px 0 12px;
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.prose p,
.prose li {
  color: #373142;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 18px 0 26px;
  padding-left: 1.35em;
}

.prose li + li {
  margin-top: 8px;
}

.prose code {
  padding: 0.12em 0.36em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: #39216d;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 6px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  color: var(--violet-dark);
}

.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid rgba(114, 67, 232, 0.25);
  border-left: 5px solid var(--violet);
  border-radius: 16px;
  background: #f6f2ff;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--violet-dark);
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout.warning {
  border-color: rgba(146, 95, 8, 0.25);
  border-left-color: #d58b13;
  background: #fff8e9;
}

.callout.warning strong {
  color: var(--warning);
}

.table-wrap {
  margin: 26px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: #302a3b;
  font-size: 0.82rem;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.step-list {
  display: grid;
  margin: 28px 0 34px;
  padding: 0;
  gap: 14px;
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 74px;
  padding: 18px 20px 18px 68px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  content: counter(steps);
  font-size: 0.84rem;
  font-weight: 900;
}

.checklist {
  display: grid;
  margin: 24px 0 34px;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 13px 16px 13px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.checklist li::before {
  position: absolute;
  top: 12px;
  left: 16px;
  color: var(--success);
  content: "✓";
  font-weight: 950;
}

.comparison-grid {
  display: grid;
  margin: 28px 0 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comparison-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.comparison-figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.comparison-figure figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.related-card:hover {
  border-color: rgba(114, 67, 232, 0.5);
  color: var(--violet-dark);
  transform: translateY(-2px);
}

.related-card strong {
  display: block;
  line-height: 1.45;
}

.related-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  padding: 44px 0;
  background: var(--night);
  color: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  display: grid;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.footer-inner strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.footer-inner p {
  max-width: 600px;
  margin: 6px 0 0;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--lime);
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-copy small,
  .top-nav a:not(.tool-link):not([aria-current="page"]) {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .locale-links a {
    min-width: 27px;
    padding-inline: 4px;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .toc {
    position: static;
    grid-row: 1;
  }

  .feature-strip,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    word-break: normal;
  }

  .header-inner {
    width: min(calc(100% - 22px), var(--max));
    gap: 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .top-nav {
    gap: 2px;
  }

  .top-nav a {
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .top-nav a:not(.tool-link) {
    display: none;
  }

  .locale-links {
    gap: 0;
  }

  .locale-links a {
    min-width: 25px;
    min-height: 28px;
    padding-inline: 3px;
    font-size: 0.64rem;
  }

  .hero-inner {
    width: min(calc(100% - 30px), var(--max));
    padding: 48px 0 60px;
  }

  .breadcrumbs {
    margin-bottom: 26px;
  }

  .content-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }

  .page-section {
    padding: 62px 0;
  }

  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .card-grid,
  .comparison-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .content-card {
    min-height: 0;
  }

  .feature-strip,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .comparison-figure img {
    aspect-ratio: 4 / 5;
  }

  .prose h2 {
    margin-top: 58px;
  }

  th,
  td {
    padding: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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