:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --paper-deep: #eee7d8;
  --ink: #142133;
  --muted: #556171;
  --line: #d9d2c5;
  --surface: #fffdf8;
  --red: #bd2b2f;
  --red-dark: #8d1d24;
  --blue: #1b5087;
  --jade: #24765d;
  --gold: #ae7621;
  --shadow: rgba(33, 38, 45, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  word-break: keep-all;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(189, 43, 47, 0.08), transparent 31rem),
    radial-gradient(circle at 96% 14%, rgba(27, 80, 135, 0.08), transparent 34rem),
    var(--paper);
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(27, 80, 135, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 210, 197, 0.88);
  background: rgba(248, 245, 237, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1080px;
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  box-shadow: 0 8px 22px rgba(141, 29, 36, 0.2);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red-dark);
}

.hero,
.page {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 72px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.eyebrow::before {
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 800px;
  margin: 16px 0 18px;
  font-family: Georgia, "Times New Roman", "Apple SD Gothic Neo", serif;
  font-size: clamp(2.45rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page h1 {
  font-size: clamp(2.15rem, 6vw, 4.2rem);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
}

li + li {
  margin-top: 7px;
}

.lead {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(141, 29, 36, 0.18);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.app-panel {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(217, 210, 197, 0.92);
  border-radius: 38px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 30px 80px var(--shadow);
  transform: rotate(1.2deg);
}

.app-panel::before {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 76px;
  height: 22px;
  border-radius: 999px;
  content: "";
  background: #090f17;
  transform: translateX(-50%);
}

.screen {
  min-height: 500px;
  padding: 58px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 27px;
  background: linear-gradient(155deg, #142133 0%, #1d3b5a 100%);
  color: #fff;
}

.screen .eyebrow {
  color: #f1bd6f;
}

.screen h2,
.screen p {
  color: #fff;
}

.screen p {
  opacity: 0.76;
}

.era-row {
  display: flex;
  gap: 7px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.era-pill {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 750;
}

.question-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.09);
}

.question-card small {
  display: block;
  margin-bottom: 8px;
  color: #f1bd6f;
  font-weight: 800;
}

.answer {
  margin-top: 13px;
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--jade);
  font-size: 0.88rem;
  font-weight: 800;
}

.stats,
.feature-grid {
  display: grid;
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
}

.stat,
.feature,
.doc-section,
.notice {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 15px 40px rgba(33, 38, 45, 0.05);
}

.stat {
  padding: 20px;
  border-radius: 18px;
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.6rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.feature {
  padding: 24px;
  border-radius: 20px;
}

.feature p {
  margin-bottom: 0;
}

.section-intro {
  margin-top: 78px;
  max-width: 680px;
}

.section-intro p {
  margin-bottom: 0;
}

.doc-section {
  max-width: 820px;
  margin-top: 18px;
  padding: 28px;
  border-radius: 20px;
}

.doc-section h2 {
  font-size: 1.32rem;
}

.doc-section p:first-of-type {
  margin-top: 0;
}

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

.notice {
  max-width: 820px;
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
}

.notice p {
  margin: 0;
}

.page-meta {
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.site-footer {
  margin-top: 22px;
  padding: 34px 24px 42px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 780px) {
  .hero,
  .page {
    padding-top: 50px;
  }

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

  .app-panel {
    width: min(390px, 100%);
    margin: 4px auto 0;
    transform: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }
}

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .hero,
  .page {
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .doc-section {
    padding: 22px;
  }
}

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

  .button {
    transition: none;
  }
}
