:root {
  --ink: #111625;
  --ink-soft: #20283b;
  --paper: #f5f1e8;
  --paper-deep: #e8e1d3;
  --white: #fffdf8;
  --yellow: #f3c94a;
  --cyan: #5ae0d0;
  --coral: #ff765f;
  --violet: #8f7aff;
  --muted: #6f746f;
  --line: rgba(17, 22, 37, 0.16);
  --wrap: min(1180px, calc(100% - 48px));
  --shadow: 0 24px 70px rgba(17, 22, 37, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

html[lang="ko"] body {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", ui-sans-serif, system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  display: block;
  width: 4px;
  border-radius: 5px;
  content: "";
}

.brand-mark::before {
  left: 7px;
  height: 8px;
  background: var(--yellow);
}

.brand-mark span {
  left: 13px;
  height: 15px;
  background: var(--cyan);
}

.brand-mark::after {
  right: 6px;
  height: 21px;
  background: var(--coral);
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a,
.site-footer nav a {
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  min-height: 720px;
  padding-block: 80px 100px;
}

.eyebrow,
.section-label {
  margin: 0 0 22px;
  color: #4f5664;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow > span {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(90, 224, 208, 0.32);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(3.35rem, 6.2vw, 6.55rem);
  font-weight: 870;
  letter-spacing: -0.07em;
  line-height: 0.93;
}

h1 span {
  display: block;
}

h1 .accent {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.06em;
  text-decoration-skip-ink: none;
}

.ko-hero-title {
  max-width: 810px;
  font-size: clamp(3.1rem, 5.8vw, 6rem);
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 34px;
  color: #434a57;
  font-size: clamp(1.05rem, 1.7vw, 1.27rem);
  line-height: 1.66;
}

.ko-lede {
  max-width: 710px;
}

.hero-actions,
.status-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
}

.button-primary:hover {
  box-shadow: 7px 7px 0 var(--yellow);
}

.button-quiet {
  background: transparent;
}

.button-quiet:hover {
  background: var(--white);
}

.window-visual {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--cyan), var(--shadow);
  transform: rotate(1.2deg);
}

.window-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: rgba(255, 253, 248, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.69rem;
  letter-spacing: 0.09em;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot::before {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(243, 201, 74, 0.16);
  content: "";
}

.window-stage {
  padding: 60px 34px 50px;
}

.window-track {
  position: relative;
  display: grid;
  grid-template-columns: 42% 19% 39%;
  height: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.window-track span {
  position: relative;
  display: block;
}

.track-safe {
  background: var(--cyan);
}

.track-fault {
  background: repeating-linear-gradient(135deg, var(--coral) 0 6px, #d84f40 6px 12px);
}

.track-replay {
  background: var(--yellow);
}

.window-track::after {
  position: absolute;
  top: 50%;
  left: 59%;
  width: 28px;
  height: 28px;
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 2px var(--coral);
  content: "";
  transform: translate(-50%, -50%);
}

.window-events {
  display: grid;
  grid-template-columns: 42% 19% 21% 18%;
  margin-top: 14px;
  color: rgba(255, 253, 248, 0.56);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.window-events span:nth-child(2),
.window-events span:nth-child(3) {
  text-align: center;
}

.window-events span:last-child {
  text-align: right;
}

.window-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.window-stats div {
  display: grid;
  min-height: 122px;
  align-content: center;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.window-stats div:last-child {
  border-right: 0;
}

.window-stats strong {
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
}

.window-stats span {
  margin-top: 9px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
}

.problem-band {
  color: var(--paper);
  background: var(--ink);
}

.statement {
  display: grid;
  grid-template-columns: 0.55fr 1.8fr 1fr;
  gap: 54px;
  align-items: start;
  padding-block: 110px;
}

.statement .section-label,
.safety-section .section-label,
.status-section .section-label {
  color: rgba(245, 241, 232, 0.58);
}

.statement h2,
.section-heading h2,
.status-layout h2 {
  margin-bottom: 0;
  font-size: clamp(2.45rem, 4.6vw, 4.85rem);
  font-weight: 840;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.statement p:last-child {
  margin: 8px 0 0;
  color: rgba(245, 241, 232, 0.74);
  font-size: 1rem;
}

.ko-section-title span {
  display: block;
}

.method-section,
.fit-section {
  padding-block: 125px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 2.8fr;
  gap: 54px;
  align-items: start;
  margin-bottom: 70px;
}

.section-heading .section-label {
  padding-top: 13px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  list-style: none;
}

.method-grid li {
  min-height: 265px;
  padding: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 253, 248, 0.35);
}

.method-grid li:nth-child(3n) {
  background: rgba(90, 224, 208, 0.13);
}

.method-grid li:nth-child(5n) {
  background: rgba(243, 201, 74, 0.18);
}

.method-grid li > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 800;
}

.method-grid h3,
.response-grid h3,
.fit-grid h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
  font-weight: 840;
  letter-spacing: -0.025em;
}

.method-grid p,
.response-grid p,
.fit-grid p {
  margin-bottom: 0;
  color: #535965;
  font-size: 0.9rem;
}

.safety-section {
  padding-block: 125px;
  color: var(--paper);
  background: var(--ink-soft);
}

.safety-heading {
  grid-template-columns: 0.55fr 1.5fr 1fr;
}

.safety-heading p:last-child {
  margin: 12px 0 0;
  color: rgba(245, 241, 232, 0.7);
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(245, 241, 232, 0.34);
}

.response {
  position: relative;
  min-height: 285px;
  padding: 30px 26px;
  border-right: 1px solid rgba(245, 241, 232, 0.34);
}

.response:last-child {
  border-right: 0;
}

.response > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 54px;
  color: var(--ink);
  border-radius: 3px;
  font-weight: 900;
}

.response-abort > span {
  background: var(--coral);
}

.response-isolate > span {
  background: var(--violet);
}

.response-degrade > span {
  background: var(--yellow);
}

.response-continue > span {
  background: var(--cyan);
}

.response p {
  color: rgba(245, 241, 232, 0.7);
}

.hard-rule {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
  margin: 36px 0 0;
  color: rgba(245, 241, 232, 0.7);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

.hard-rule strong {
  color: var(--coral);
  font-size: 1.25rem;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fit-grid article {
  min-height: 275px;
  padding: 30px;
  border: 1px solid var(--ink);
  background: rgba(255, 253, 248, 0.4);
}

.fit-grid .fit-current {
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
}

.fit-code {
  display: inline-block;
  margin-bottom: 65px !important;
  padding: 6px 9px;
  color: var(--paper) !important;
  border-radius: 2px;
  background: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.fit-current p:last-child {
  color: #3b3c36;
}

.status-section {
  padding-block: 115px;
  color: var(--paper);
  background: #151a2b;
}

.status-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 100px;
  align-items: end;
}

.status-copy > p {
  margin-bottom: 34px;
  color: rgba(245, 241, 232, 0.72);
  font-size: 1.02rem;
}

.status-section .button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--cyan);
}

.text-link {
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  min-height: 128px;
}

.site-footer p {
  margin: 0;
  color: #71766f;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 980px) {
  :root {
    --wrap: min(100% - 40px, 780px);
  }

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

  .window-visual {
    width: min(100%, 620px);
    transform: none;
  }

  .statement {
    grid-template-columns: 1fr 2fr;
  }

  .statement p:last-child {
    grid-column: 2;
  }

  .method-grid,
  .response-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .response:nth-child(2) {
    border-right: 0;
  }

  .response:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(245, 241, 232, 0.34);
  }

  .safety-heading {
    grid-template-columns: 1fr 2fr;
  }

  .safety-heading p:last-child {
    grid-column: 2;
  }

  .status-layout {
    gap: 60px;
  }
}

@media (max-width: 720px) {
  :root {
    --wrap: calc(100% - 30px);
  }

  .site-header {
    min-height: 72px;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a:nth-child(1),
  .site-header nav a:nth-child(2) {
    display: none;
  }

  .hero {
    gap: 60px;
    padding-block: 64px 80px;
  }

  h1 {
    font-size: clamp(3.05rem, 15vw, 4.9rem);
  }

  .ko-hero-title {
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
    line-height: 1.09;
  }

  .ko-hero-title span {
    max-width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .window-visual {
    box-shadow: 8px 8px 0 var(--cyan);
  }

  .window-stage {
    padding: 50px 20px 40px;
  }

  .window-stats div {
    min-height: 104px;
    padding: 13px;
  }

  .window-stats strong {
    font-size: 1.75rem;
  }

  .statement,
  .section-heading,
  .safety-heading,
  .status-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .statement {
    padding-block: 82px;
  }

  .statement p:last-child,
  .safety-heading p:last-child {
    grid-column: auto;
  }

  .statement h2,
  .section-heading h2,
  .status-layout h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.6rem);
  }

  .ko-section-title span {
    display: inline;
  }

  .method-section,
  .fit-section,
  .safety-section {
    padding-block: 90px;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .section-heading .section-label {
    padding-top: 0;
  }

  .method-grid,
  .response-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .method-grid li {
    min-height: 225px;
  }

  .response,
  .response:nth-child(2) {
    min-height: 235px;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 241, 232, 0.34);
  }

  .response:last-child {
    border-bottom: 0;
  }

  .response > span {
    margin-bottom: 34px;
  }

  .hard-rule {
    justify-content: flex-start;
  }

  .fit-grid article {
    min-height: 230px;
  }

  .fit-code {
    margin-bottom: 42px !important;
  }

  .status-section {
    padding-block: 85px;
  }

  .status-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
    padding-block: 34px;
    text-align: center;
  }
}

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

  .button {
    transition: none;
  }
}

@media print {
  .site-header nav,
  .hero-actions,
  .status-actions,
  .site-footer nav {
    display: none;
  }

  body,
  .problem-band,
  .safety-section,
  .status-section {
    color: #000;
    background: #fff;
  }

  .window-visual {
    box-shadow: none;
  }
}
