@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap");

:root {
  --ink: #151515;
  --muted: #67645e;
  --paper: #f4f1ea;
  --paper-deep: #e7e1d6;
  --line: rgba(21, 21, 21, 0.16);
  --white: #fffefa;
  --capture: #1778f2;
  --pin: #6d5ce8;
  --trace: #078a98;
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.site-header,
.hero,
.products,
.principle,
.contact-section,
.site-footer {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  grid-template-columns: repeat(3, 7px);
  align-items: end;
  gap: 3px;
  width: 27px;
  height: 27px;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.wordmark-mark i {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: var(--capture);
}

.wordmark-mark i:nth-child(2) {
  height: 15px;
  background: var(--pin);
}

.wordmark-mark i:nth-child(3) {
  height: 19px;
  background: var(--trace);
}

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

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(48px, 9vw, 144px);
  align-items: center;
  padding: 90px 0;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1,
.section-heading h2,
.principle h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3.3rem, 8vw, 7.2rem);
  font-weight: 600;
}

.hero h1 em {
  position: relative;
  color: var(--pin);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(-1.5deg);
}

.hero-description {
  margin: 36px 0 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  padding-bottom: 5px;
  text-decoration: none;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(4px);
}

.hero-note {
  position: relative;
  align-self: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  box-shadow: 12px 12px 0 var(--ink);
  padding: 30px;
  transform: rotate(2deg);
}

.hero-note::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 74px;
  height: 27px;
  background: rgba(246, 229, 165, 0.86);
  transform: translateX(-50%) rotate(-3deg);
}

.note-label {
  display: block;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-note > strong {
  display: block;
  font-size: 6.8rem;
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.82;
}

.hero-note > p {
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.note-icons {
  display: flex;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.note-icons img {
  width: 42px;
  height: 42px;
  margin-left: -6px;
  border: 3px solid var(--white);
  border-radius: 13px;
  object-fit: cover;
}

.note-icons img:first-child {
  margin-left: 0;
}

.products {
  scroll-margin-top: 28px;
  padding: 120px 0 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: end;
  column-gap: 48px;
  margin-bottom: 62px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 600;
}

.section-heading > p:last-child {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 1rem;
}

.product-list {
  display: grid;
  gap: 18px;
}

.product-card {
  --accent: var(--capture);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 220px;
  gap: 36px;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-top: 6px solid var(--accent);
  border-radius: 3px;
  background: var(--white);
  padding: 36px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  box-shadow: 9px 9px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.product-card.pin {
  --accent: var(--pin);
}

.product-card.trace {
  --accent: var(--trace);
}

.product-number {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product-main {
  align-self: center;
}

.product-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-title img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.product-title p {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.product-title h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.product-description {
  max-width: 720px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 1rem;
  word-break: keep-all;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 11px;
}

.product-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.product-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 13px 0;
  text-decoration: none;
}

.product-links a:hover {
  color: var(--accent);
}

.product-links .primary-link {
  color: var(--ink);
  font-size: 0.95rem;
}

.principle {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 56px;
  border-top: 1px solid var(--line);
  padding: 120px 0;
}

.principle .eyebrow {
  padding-top: 10px;
}

.principle h2 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 500;
}

.principle-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin-top: 24px;
}

.principle-grid p {
  margin: 0;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  padding-top: 18px;
}

.contact-section {
  scroll-margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(48px, 8vw, 110px);
  margin-bottom: 110px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 6vw, 76px);
}

.contact-intro h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 480px;
  margin: 30px 0 0;
  color: rgba(244, 241, 234, 0.72);
  word-break: keep-all;
}

.contact-email {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  margin-top: 48px;
  border-top: 1px solid rgba(244, 241, 234, 0.28);
  padding-top: 22px;
}

.contact-email span {
  color: rgba(244, 241, 234, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-email strong {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
}

.inquiry-template {
  align-self: start;
  min-width: 0;
  border: 1px solid rgba(244, 241, 234, 0.3);
  background: rgba(255, 254, 250, 0.08);
  padding: clamp(22px, 3vw, 34px);
}

.template-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.24);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding-bottom: 16px;
}

.template-heading span:last-child {
  color: rgba(244, 241, 234, 0.52);
  font-weight: 500;
  letter-spacing: 0;
}

.inquiry-template pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  color: var(--paper);
  font-family: "DM Sans", "Noto Sans KR", sans-serif;
  font-size: 0.86rem;
  line-height: 1.75;
  padding: 24px 0;
  white-space: pre-wrap;
  word-break: keep-all;
  user-select: text;
}

.inquiry-template > p {
  margin: 0;
  border-top: 1px solid rgba(244, 241, 234, 0.24);
  color: rgba(244, 241, 234, 0.62);
  font-size: 0.75rem;
  padding-top: 16px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  border-top: 1px solid var(--ink);
  padding: 38px 0 48px;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
}

.site-footer strong {
  font-size: 1.05rem;
}

.site-footer span,
.site-footer small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer small {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 90px 0 110px;
  }

  .hero-note {
    width: min(100%, 330px);
    margin-left: auto;
  }

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

  .section-heading > p:last-child {
    max-width: 540px;
    margin-top: 24px;
  }

  .product-card {
    grid-template-columns: 42px 1fr;
  }

  .product-links {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .product-links a {
    margin-right: 20px;
  }

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

  .principle h2,
  .principle-grid {
    grid-column: 1;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .products,
  .principle,
  .site-footer {
    width: min(100% - 32px, 1240px);
  }

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

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

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 76px 0 90px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero h1 em::after {
    height: 4px;
  }

  .hero-description br {
    display: none;
  }

  .hero-note {
    width: calc(100% - 12px);
    margin-right: 12px;
  }

  .products,
  .principle {
    padding: 84px 0;
  }

  .contact-section {
    width: calc(100% - 32px);
    gap: 42px;
    margin-bottom: 80px;
    padding: 34px 24px;
  }

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

  .product-card {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 25px 22px;
  }

  .product-number {
    display: none;
  }

  .product-title {
    gap: 14px;
  }

  .product-title img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .product-description {
    margin: 22px 0;
  }

  .product-links {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .product-links a {
    margin-right: 0;
  }

  .principle {
    gap: 14px;
  }

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

  .template-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-footer small {
    grid-column: 1;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
