:root {
  --paper: #fbfaf6;
  --grid: #eee6d6;
  --ink: #111111;
  --soft-ink: #68665f;
  --line: #dedbd2;
  --panel: #f0efeb;
  --mint: #5acb91;
  --mint-soft: #c8f5dc;
  --orange: #ff8a45;
  --yellow: #f6cf3e;
  --red: #ff5f56;
  --white: #ffffff;
  --black: #111111;
  --shadow: 8px 8px 0 rgba(17, 17, 17, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.58;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.grid-paper {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 800;
}

.nav a,
.menu-label,
.footer a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.menu-label:hover,
.menu-label:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: var(--black);
  outline: none;
}

.menu-label {
  display: none;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(54px, 7vw, 104px) clamp(20px, 6vw, 92px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.8vw, 86px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 10px;
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 900;
  line-height: 1.26;
  word-break: keep-all;
}

.hero-small,
.section-head p,
.detail-hero p,
.contact-copy p,
.footer p {
  color: var(--soft-ink);
}

.terminal {
  position: relative;
  min-height: 430px;
  border: 2px solid var(--black);
  border-radius: 18px;
  background: #1f211f;
  color: #f7f2df;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  color: #d9d1bc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dot.red {
  background: var(--red);
}

.dot.yellow {
  background: var(--yellow);
}

.dot.green {
  background: var(--mint);
}

.terminal-top strong {
  margin-left: 8px;
}

.terminal-body {
  padding: 34px 28px 142px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 800;
}

.terminal-body p {
  margin-bottom: 16px;
}

.terminal-body span {
  color: var(--yellow);
}

.memo {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  width: min(235px, calc(100% - 48px));
  padding: 18px;
  transform: rotate(-2deg);
  border: 2px solid var(--black);
  background: var(--yellow);
  color: var(--black);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.9);
}

.memo b {
  font-size: 13px;
}

.section {
  padding: clamp(58px, 7.5vw, 112px) clamp(20px, 6vw, 92px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head > div {
  display: grid;
  gap: 10px;
}

.section-mark {
  width: 42px;
  height: 11px;
  border-radius: 999px;
}

.section-mark.green {
  background: var(--mint);
}

.section-mark.orange {
  background: var(--orange);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  word-break: keep-all;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.24;
  letter-spacing: 0;
  word-break: keep-all;
}

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

.thing-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 18px;
  border: 2px solid var(--black);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.thing-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.2);
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
}

.card-preview {
  position: relative;
  display: grid;
  min-height: 190px;
  margin-bottom: 22px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--black);
  border-radius: 10px;
  background: var(--panel);
}

.thing-card.odd .card-preview {
  background: #f7efe5;
}

.card-preview strong {
  max-width: 80%;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  word-break: keep-all;
}

.corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 84px;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.corner.green {
  background: var(--mint);
}

.corner.yellow {
  background: var(--yellow);
}

.corner.orange {
  background: var(--orange);
}

.arrow {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 22px;
  font-weight: 900;
}

.thing-card h3,
.thing-card p,
.thing-card small {
  position: relative;
  z-index: 1;
}

.thing-card p {
  min-height: 76px;
  color: var(--soft-ink);
}

.thing-card small {
  display: block;
  margin-top: auto;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.thing-card small + small {
  margin-top: 6px;
}

.list-section {
  padding-top: 0;
}

.work-list {
  border-top: 2px solid var(--black);
}

.work-list a {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.45fr) minmax(90px, 0.25fr) 24px;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.work-list strong {
  font-size: clamp(20px, 2vw, 28px);
  word-break: keep-all;
}

.work-list span,
.work-list em {
  color: var(--soft-ink);
  font-style: normal;
  font-weight: 800;
}

.work-list i {
  font-style: normal;
  font-weight: 900;
}

.detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  background: #f5f3ed;
}

.detail-hero {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--black);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.detail-hero h2 {
  font-size: clamp(38px, 5.2vw, 72px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 2px solid var(--black);
  border-radius: 8px;
  color: var(--black);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible,
.request-card button:hover,
.request-card button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
  outline: none;
}

.green-btn {
  background: var(--mint);
}

.flow-panel,
.info-grid,
.usage-grid {
  grid-column: 2;
}

.flow-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 24px;
  border: 2px solid var(--black);
  border-radius: 18px;
  background: var(--white);
}

.flow-panel > p {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: var(--soft-ink);
  font-weight: 900;
  text-align: center;
}

.mini-card {
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf6;
}

.mini-card b {
  font-size: 13px;
}

.black-thumb,
.gray-thumb {
  display: block;
  min-height: 78px;
  border-radius: 8px;
}

.black-thumb {
  background: var(--black);
}

.gray-thumb {
  background:
    linear-gradient(135deg, var(--mint-soft), transparent 55%),
    #d8d8d2;
}

.mini-card small {
  color: var(--soft-ink);
  font-weight: 800;
}

.flow-arrow {
  font-size: 34px;
  font-weight: 900;
}

.info-grid,
.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.info-grid > div,
.usage-grid article {
  padding: 24px;
  border: 2px solid var(--black);
  border-radius: 14px;
  background: var(--white);
}

.info-grid p,
.info-grid li,
.usage-grid p {
  color: var(--soft-ink);
}

.info-grid ol,
.info-grid ul {
  margin: 0;
  padding-left: 20px;
}

.mock-field {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f6f1;
  color: var(--soft-ink);
  font-weight: 900;
}

.mock-button {
  display: inline-flex;
  margin-top: 12px;
  min-height: 36px;
  align-items: center;
  padding: 6px 12px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--mint);
  font-size: 13px;
  font-weight: 950;
}

.mock-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mock-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f6f1;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 800;
}

.mock-list b {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--yellow);
}

.mock-list em {
  color: var(--black);
  font-style: normal;
}

.black-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--black);
  color: var(--white);
}

.black-cta h2 {
  max-width: 820px;
  color: var(--white);
}

.black-cta p {
  color: #d6d1c4;
  font-weight: 800;
}

.fake-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.fake-buttons button {
  min-height: 42px;
  border: 2px solid var(--white);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 950;
}

.fake-buttons button:nth-child(1) {
  padding: 8px 14px;
}

.fake-buttons button:nth-child(2) {
  padding: 6px 10px;
  font-size: 14px;
}

.fake-buttons button:nth-child(3) {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 12px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
  padding: clamp(60px, 8vw, 116px) clamp(20px, 6vw, 92px);
}

.contact-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6.4vw, 78px);
}

.contact-copy p {
  max-width: 640px;
  font-size: clamp(18px, 2vw, 22px);
}

.contact-copy strong {
  display: block;
  margin-top: 40px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.22;
  word-break: keep-all;
}

.request-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 2px solid var(--black);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-dot {
  width: 42px;
  height: 42px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--mint);
}

.request-card h3 {
  margin-bottom: 0;
}

.request-card > p,
.request-card small {
  color: var(--soft-ink);
}

.request-card label {
  display: grid;
  gap: 7px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 900;
}

.request-card input,
.request-card select,
.request-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--black);
  font-size: 15px;
}

.request-card input,
.request-card select {
  min-height: 46px;
  padding: 10px 12px;
}

.request-card textarea {
  min-height: 130px;
  resize: vertical;
  padding: 12px;
}

.request-card input:focus,
.request-card select:focus,
.request-card textarea:focus {
  border-color: var(--black);
  outline: 2px solid var(--mint-soft);
}

.agree {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.agree input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.request-card button {
  min-height: 52px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--mint);
  color: var(--black);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
}

.footer strong {
  font-size: 24px;
  font-weight: 950;
}

.footer p {
  margin-bottom: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--soft-ink);
  font-weight: 900;
}

.footer span {
  color: var(--soft-ink);
  font-weight: 900;
}

@media (max-width: 920px) {
  .topbar {
    min-height: 64px;
  }

  .nav {
    display: none;
  }

  .menu-label {
    display: inline-flex;
  }

  .hero,
  .detail,
  .black-cta,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .card-grid,
  .info-grid,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    position: relative;
    top: auto;
  }

  .flow-panel,
  .info-grid,
  .usage-grid {
    grid-column: auto;
  }

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

@media (max-width: 560px) {
  .topbar {
    min-height: 53px;
  }

  .brand,
  .menu-label {
    font-size: 14px;
  }

  .hero,
  .section,
  .contact {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  h2,
  .detail-hero h2,
  .contact-copy h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .terminal {
    min-height: 390px;
    border-radius: 14px;
  }

  .terminal-body {
    padding: 26px 20px 144px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .thing-card {
    min-height: 360px;
  }

  .work-list a {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 0;
  }

  .work-list strong {
    grid-column: 1 / -1;
  }

  .work-list i {
    grid-column: 2;
    grid-row: 2 / 4;
  }

  .flow-panel {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .mock-list span {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .request-card button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
