:root {
  --unist-navy: #001b54;
  --unist-blue: #001b54;
  --unist-cyan: #44c1c4;
  --unist-cyan-deep: #007c86;
  --ink: #0c1728;
  --muted: #657184;
  --line: #d8e0e8;
  --paper: #f4f7f9;
  --white: #ffffff;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--white);
  border: 2px solid var(--unist-navy);
  transform: translateY(-150%);
}

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

.site-header {
  border-top: 6px solid var(--unist-navy);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
}

.brand img {
  width: 126px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 31px;
  background: var(--line);
}

.brand-label {
  color: var(--unist-blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .18em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #344257;
  font-size: 13px;
  font-weight: 700;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}

.header-nav a:hover {
  color: var(--unist-cyan-deep);
}

.header-nav svg {
  width: 15px;
  height: 15px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(0 58 112 / 5%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(0 58 112 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent 0, #000 55%, #000 100%);
}

.hero-inner {
  position: relative;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 620px;
  margin: 0 auto;
  padding: 92px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  align-items: center;
  gap: 72px;
}

.eyebrow,
.section-number {
  margin: 0;
  color: var(--unist-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

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

.eyebrow span {
  width: 8px;
  height: 8px;
  background: var(--unist-cyan);
}

.hero h1 {
  margin: 27px 0 29px;
  color: var(--unist-navy);
  font-size: clamp(50px, 5.6vw, 82px);
  font-weight: 820;
  line-height: 1.07;
  letter-spacing: -.065em;
}

.hero h1 em {
  color: var(--unist-cyan-deep);
  font-style: normal;
}

.hero-description {
  max-width: 600px;
  margin: 0;
  color: #566376;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.hero-link,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-width: 190px;
  margin-top: 38px;
  padding: 16px 18px;
  background: var(--unist-navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  transition: background-color .2s ease;
}

.hero-link:hover,
.primary-action:hover {
  background: var(--unist-cyan-deep);
}

.hero-link svg,
.primary-action svg,
.preview-action svg {
  width: 20px;
  height: 20px;
}

.geometry {
  position: relative;
  width: min(100%, 490px);
  aspect-ratio: 1 / .88;
  justify-self: end;
}

.geometry-grid {
  position: absolute;
  inset: 7% 0 0 9%;
  border: 1px solid var(--line);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 25% 25%;
}

.geometry-block,
.geometry-outline {
  position: absolute;
}

.geometry-block-navy {
  top: 0;
  right: 12%;
  width: 47%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--unist-navy);
}

.geometry-block-navy span {
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: clamp(110px, 12vw, 176px);
  font-weight: 900;
  line-height: 1;
  transform: translateY(-3%);
}

.geometry-block-cyan {
  right: 0;
  bottom: 10%;
  width: 28%;
  aspect-ratio: 1;
  background: var(--unist-cyan);
}

.geometry-outline {
  left: 0;
  bottom: 0;
  width: 37%;
  aspect-ratio: 1;
  border: 12px solid var(--unist-blue);
}

.geometry-axis {
  position: absolute;
  background: var(--unist-navy);
}

.geometry-axis-x {
  top: 54%;
  left: 3%;
  width: 88%;
  height: 1px;
}

.geometry-axis-y {
  top: 16%;
  left: 54%;
  width: 1px;
  height: 76%;
}

.geometry-note {
  position: absolute;
  top: 11%;
  left: 0;
  margin: 0;
  color: var(--unist-navy);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .15em;
}

.geometry-coordinate {
  position: absolute;
  right: 33%;
  bottom: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  line-height: 1.45;
}

.services {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 104px 0 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--unist-navy);
}

.section-heading h2,
.notice h2 {
  margin: 14px 0 0;
  color: var(--unist-navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -.045em;
}

.service-total {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--unist-blue);
}

.service-total strong {
  font-family: Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
}

.service-total span {
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .12em;
}

.service-tools {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  width: min(100%, 380px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-field svg {
  width: 20px;
  height: 20px;
  color: var(--unist-blue);
}

.search-field input {
  width: 100%;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-field:focus-within {
  box-shadow: inset 0 -3px var(--unist-cyan-deep);
}

.search-field input::placeholder {
  color: #637084;
}

.result-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 28px;
  padding-top: 42px;
}

.site-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}

.site-card:only-child {
  width: min(100%, 606px);
}

.site-card:hover {
  border-color: var(--accent, var(--unist-cyan));
  transform: translateY(-3px);
}

.site-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e7edf2;
  border-bottom: 1px solid var(--line);
}

.site-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 27 77 / 0%);
  transition: background-color .2s ease;
}

.site-card:hover .site-preview::after {
  background: rgb(0 27 77 / 9%);
}

.site-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}

.site-card:hover .site-preview img {
  transform: scale(1.012);
}

.site-index {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  min-width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: var(--accent, var(--unist-navy));
  color: var(--accent-foreground, var(--white));
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.preview-action {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--unist-navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  transform: translateY(100%);
  transition: transform .2s ease;
}

.site-card:hover .preview-action,
.site-preview:focus-visible .preview-action {
  transform: translateY(0);
}

.site-card-body {
  padding: 28px 28px 26px;
}

.site-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.site-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--unist-navy);
}

.site-category::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--accent, var(--unist-cyan));
}

.site-card h3 {
  margin: 19px 0 12px;
  color: var(--unist-navy);
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.site-title:hover {
  color: var(--unist-cyan-deep);
}

.site-description {
  min-height: 52px;
  margin: 0;
  color: #606c7d;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.site-tags {
  min-height: 29px;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.site-tags li {
  padding: 6px 8px;
  background: #eef3f6;
  color: #546174;
  font-size: 10px;
  font-weight: 700;
}

.site-actions {
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-actions .primary-action {
  min-width: 154px;
  margin: 0;
  padding: 13px 15px;
}

.notice-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.notice-action:hover {
  color: var(--unist-cyan-deep);
}

.notice-action svg {
  width: 14px;
  height: 14px;
}

.empty-state {
  margin-top: 42px;
  padding: 70px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.empty-state span {
  color: var(--unist-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.empty-state p {
  margin: 12px 0 0;
  color: var(--muted);
}

.notice {
  position: relative;
  overflow: hidden;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto 120px;
  padding: 58px 64px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 220px;
  gap: 42px;
  background: var(--unist-navy);
  color: var(--white);
}

.notice .section-number {
  color: #79d7dd;
}

.notice-copy {
  position: relative;
  z-index: 1;
}

.notice h2 {
  margin-top: 0;
  color: var(--white);
  font-size: clamp(28px, 3.3vw, 43px);
}

.notice-copy > p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #bdc9d9;
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}

.notice-mark {
  position: relative;
  align-self: stretch;
}

.notice-mark span {
  position: absolute;
  display: block;
  width: 86px;
  height: 86px;
  border: 12px solid var(--unist-cyan);
}

.notice-mark span:nth-child(1) {
  top: -23px;
  right: 72px;
}

.notice-mark span:nth-child(2) {
  top: 51px;
  right: 0;
  border-color: var(--white);
}

.notice-mark span:nth-child(3) {
  right: 73px;
  bottom: -35px;
  background: var(--unist-cyan);
  border: 0;
}

.site-footer {
  min-height: 184px;
  padding: 42px max(24px, calc((100% - var(--max-width)) / 2));
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.site-footer img {
  width: 110px;
  margin-bottom: 17px;
}

.site-footer p {
  margin: 0;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  margin: 0;
  padding: 12px 16px;
  background: #fff3cd;
  border: 1px solid #e7ca75;
}

:focus-visible {
  outline: 3px solid var(--unist-cyan-deep);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .geometry {
    width: min(100%, 540px);
    justify-self: center;
  }

  .notice {
    grid-template-columns: 100px 1fr;
  }

  .notice-mark {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-inner,
  .services,
  .notice {
    width: min(calc(100% - 32px), var(--max-width));
  }

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

  .brand {
    gap: 11px;
  }

  .brand img {
    width: 102px;
  }

  .brand-divider {
    height: 27px;
  }

  .brand-label {
    font-size: 8px;
  }

  .header-nav {
    gap: 16px;
  }

  .hero-inner {
    padding: 68px 0 64px;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(36px, 11.5vw, 52px);
    line-height: 1.1;
  }

  .hero-description {
    font-size: 14px;
  }

  .geometry {
    width: 100%;
  }

  .geometry-block-navy span {
    font-size: 31vw;
  }

  .services {
    padding: 80px 0 88px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 26px;
  }

  .service-tools {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 14px 0;
  }

  .result-status {
    padding: 0 0 10px;
  }

  .site-grid {
    padding-top: 28px;
  }

  .site-card-body {
    padding: 24px 20px 22px;
  }

  .site-actions .primary-action {
    width: 100%;
  }

  .notice-action {
    display: none;
  }

  .site-meta {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .site-description {
    min-height: 0;
  }

  .notice {
    margin-bottom: 78px;
    padding: 42px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    min-height: 210px;
    align-items: start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .header-inner,
  .hero-inner,
  .services,
  .notice {
    width: calc(100% - 24px);
  }

  .header-inner {
    min-height: 66px;
    gap: 16px;
  }

  .brand img {
    width: 92px;
  }

  .brand-divider,
  .brand-label {
    display: none;
  }

  .header-nav {
    font-size: 12px;
  }

  .hero-inner {
    padding: 54px 0 52px;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(35px, 11.2vw, 44px);
    letter-spacing: -.055em;
  }

  .hero-link {
    width: 100%;
    margin-top: 30px;
  }

  .geometry-note,
  .geometry-coordinate {
    font-size: 8px;
  }

  .services {
    padding: 64px 0 72px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .service-total strong {
    font-size: 36px;
  }

  .search-field input {
    min-width: 0;
    font-size: 13px;
  }

  .site-card h3 {
    font-size: 24px;
  }

  .notice {
    margin-bottom: 64px;
    padding: 36px 20px;
    gap: 24px;
  }

  .notice h2 {
    font-size: 27px;
  }

  .notice-copy > p {
    font-size: 13px;
  }

  .site-footer {
    min-height: 190px;
    padding: 36px 16px;
    gap: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
