:root {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.65;
  letter-spacing: -.02em;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #4338ca; }
a:focus-visible { outline: 3px solid #818cf8; outline-offset: 3px; }
.top, main, footer { width: min(100% - 32px, 1152px); margin-inline: auto; }
.top {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #0f172a; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 17px;
  background: linear-gradient(135deg, #6366f1, #4f46e5 58%, #3b82f6);
  box-shadow: 0 5px 12px #4f46e53b;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  white-space: nowrap;
}
.brand-name { font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.brand-name small { display: block; margin-top: 4px; color: #64748b; font-size: 12px; font-weight: 500; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nav-short { display: none; }
.top nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 5px #0f172a09;
}
.top nav a:hover { border-color: #a5b4fc; color: #4338ca; }
.top nav a.active { border-color: #4f46e5; background: #4f46e5; color: #fff; }
.hero {
  position: relative;
  overflow: hidden;
  margin: 32px 0;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #312e81;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 58%, #0f172a 100%);
  box-shadow: 0 18px 38px -15px #312e8173;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -120px;
  bottom: -170px;
  border-radius: 50%;
  background: #6366f180;
  filter: blur(75px);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid #818cf877;
  border-radius: 999px;
  background: #6366f133;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 800;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; }
.hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(30px, 4.7vw, 47px);
  font-weight: 900;
  line-height: 1.23;
  letter-spacing: -.045em;
  word-break: keep-all;
}
.gradient-text {
  background: linear-gradient(90deg, #fde68a, #a7f3d0 54%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p:not(.eyebrow) { max-width: 760px; margin: 0; color: #e2e8f0; font-size: 16px; line-height: 1.75; word-break: keep-all; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
  padding: 13px 20px;
  border-radius: 14px;
  background: #fff;
  color: #3730a3;
  font-weight: 900;
  text-decoration: none;
}
.button:hover { background: #eef2ff; }
article {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 30px -13px #6366f133;
  counter-reset: guide;
}
article h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 42px 0 16px;
  padding-top: 35px;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.035em;
  word-break: keep-all;
  counter-increment: guide;
}
article h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
article h2::before {
  content: counter(guide, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}
article p, article li { font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word; }
article p { max-width: 86ch; margin: 0 0 16px; color: #475569; }
article strong { color: #4338ca; font-weight: 900; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.cards section { min-width: 0; padding: 22px; border: 1px solid #dbe4f4; border-radius: 20px; background: #f8faff; }
.cards section:nth-child(2) { background: #f5f7ff; }
.cards section:nth-child(3) { background: #f5fcfb; }
.cards h3 { margin: 0 0 10px; color: #312e81; font-size: 18px; font-weight: 900; line-height: 1.35; word-break: keep-all; }
.cards p { margin: 0; color: #475569; font-size: 15px; }
.example, .note { max-width: none; padding: 21px 24px; border-radius: 18px; }
.example { border: 1px solid #c7d2fe; background: #f5f7ff; }
.note { border: 1px solid #a7f3d0; background: #f0fdf9; color: #065f46; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; align-items: flex-start; gap: 13px; padding: 14px 18px; border: 1px solid #e2e8f0; border-radius: 15px; background: #f8fafc; }
.steps li::before { content: counter(step); counter-increment: step; display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 50%; background: #4f46e5; color: white; font-size: 13px; font-weight: 900; }
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sources a { display: inline-flex; padding: 10px 14px; border: 1px solid #c7d2fe; border-radius: 12px; color: #3730a3; font-size: 14px; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.sources a:hover { background: #eef2ff; }
.updated { margin: 28px 0 0; color: #64748b; font-size: 13px; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0 48px; color: #64748b; }
.footer-brand { display: grid; align-content: start; gap: 3px; }
.footer-brand strong { color: #1e293b; font-size: 14px; font-weight: 900; }
.footer-brand span, .footer-brand small { font-size: 12px; }
.footer-brand a { font-size: inherit; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 8px 18px; max-width: 560px; }
.footer-links a { color: #334155; font-size: 13px; font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: #4f46e5; }
@media (max-width: 860px) {
  body::before { height: 128px; }
  .top { flex-direction: column; align-items: stretch; gap: 12px; }
  .top nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .top nav a { padding: 7px 4px; font-size: 12px; text-align: center; white-space: nowrap; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .brand-name small { display: none; }
  .hero { margin-top: 22px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top, main, footer { width: min(100% - 28px, 1152px); }
  .brand-mark { width: 48px; height: 48px; flex-basis: 48px; font-size: 22px; }
  .brand-name { font-size: 18px; }
  .top nav a { font-size: 11px; line-height: 1.2; min-height: 42px; }
  .hero { padding: 27px 22px; border-radius: 24px; }
  .hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .hero p:not(.eyebrow) { font-size: 14px; }
  article { padding: 23px 18px; border-radius: 23px; }
  article h2 { align-items: flex-start; gap: 9px; font-size: 21px; }
  article h2::before { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
  article p, article li { font-size: 15px; }
  .example, .note { padding: 17px; }
  footer { flex-direction: column; padding-top: 28px; }
  .footer-links { justify-content: flex-start; }
}
