/* zeussoft.dev v2 -- 모바일 먼저. 남보라 첫 화면 + 상태별로 묶은 제품 목록. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --night: #23155e;
  --night-2: #1a0f48;
  --gold: #f5b90f;
  --paper: #ffffff;
  --ink: #17103f;
  --soft: #55507a;
  --mist: #f2f0fa;
  --line: #d9d5ec;
  --link: #3a27c9;
  --chip-r: #0f6b3a;   --chip-r-bg: #dff3e7;
  --chip-p: #6b4a00;   --chip-p-bg: #fdf0c9;
  --chip-d: #3d3a63;   --chip-d-bg: #e6e3f4;

  --display: "Bricolage Grotesque", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --text: system-ui, -apple-system, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #120c2e; --ink: #ece9fa; --soft: #aaa5cc; --mist: #1a1340; --line: #342b66; --link: #a9a0ff;
    --chip-r: #8fe0b2; --chip-r-bg: #123a27;
    --chip-p: #ffd966; --chip-p-bg: #3b2d06;
    --chip-d: #cfcbee; --chip-d-bg: #2a2358;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--text); word-break: keep-all; overflow-wrap: anywhere;
}
html[lang="ko"] .en, html[lang="en"] .ko { display: none; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
p { margin: 0; }

/* 맨 위 줄 */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.75rem var(--pad); color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; color: inherit; text-decoration: none;
  font: 600 1.0625rem/1 var(--display); letter-spacing: -0.01em; }
.brand svg { width: 1.6rem; height: 1.6rem; }
.brand rect { fill: var(--gold); }
.brand path { fill: none; stroke: var(--night); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 2px; }
.lang button {
  min-height: 44px; min-width: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent;
  color: #fff; font: 500 0.9375rem/1 var(--text); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--night); font-weight: 650; }
.lang button:focus-visible { outline-offset: 1px; }

/* 첫 화면 */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: #fff;
  padding: 6.5rem var(--pad) 3.5rem;
}
.rings { position: absolute; z-index: -1; right: -45%; top: 1rem; width: min(120vw, 40rem); height: auto; fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; }
.rings circle:nth-child(2) { stroke: rgba(245,185,15,.35); }
h1 { margin: 0; font: 700 clamp(3.1rem, 15vw, 8.5rem)/0.95 var(--display); letter-spacing: -0.035em; }
h1 .ko { font-weight: 800; letter-spacing: -0.05em; line-height: 1.08; }
.lede { max-width: 30rem; margin-top: 1.75rem; font-size: 1.1875rem; line-height: 1.65; color: #e4e0fb; }
.jump { margin-top: 1.75rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border-radius: 999px;
  background: var(--gold); color: #1c1500; font-weight: 650; text-decoration: none; }
.jump a:hover { filter: brightness(1.08); }
.jump a:focus-visible { outline-color: #fff; }

/* 만드는 것 */
.work { padding: 3.5rem var(--pad) 1rem; max-width: 80rem; margin: 0 auto; }
h2 { margin: 0 0 1rem; font: 700 clamp(1.75rem, 6vw, 2.5rem)/1.15 var(--display); letter-spacing: -0.02em; }
.intro p { max-width: 34rem; color: var(--soft); }
.groups { margin-top: 2.5rem; display: grid; gap: 2.5rem; }
h3 { margin: 0 0 0.25rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink);
  font: 700 1.25rem/1.2 var(--display); }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; row-gap: 0.4rem; align-items: start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.item h4 { margin: 0; font: 700 1.375rem/1.25 var(--display); letter-spacing: -0.01em; }
.chip { justify-self: end; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem; border-radius: 999px;
  font: 600 0.8125rem/1.5 var(--text); white-space: nowrap; }
.chip::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; border-radius: 50%; }
.s-r .chip { color: var(--chip-r); background: var(--chip-r-bg); }
.s-p .chip { color: var(--chip-p); background: var(--chip-p-bg); }
.s-p .chip::before { border-radius: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }   /* 반쯤: 삼각 */
.s-d .chip { color: var(--chip-d); background: var(--chip-d-bg); }
.s-d .chip::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }   /* 빈 동그라미 */
.what { grid-column: 1 / -1; max-width: 38rem; color: var(--soft); }
.more { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* 회사 정보 */
.company { margin-top: 3rem; padding: 3rem var(--pad); background: var(--mist); }
.company > * { max-width: 80rem; margin-inline: auto; }
dl { margin: 0; display: grid; gap: 1rem; max-width: 46rem; }
dl div { display: grid; gap: 0.1rem; }
dt { font-size: 0.875rem; color: var(--soft); }
dd { margin: 0; font-size: 1.0625rem; }
dd a { display: inline-block; min-height: 44px; line-height: 44px; }
.company dl { margin-inline: auto; max-width: 80rem; }
footer { padding: 1.5rem var(--pad) 2.5rem; color: var(--soft); font-size: 0.875rem; text-align: left; }
footer p { max-width: 80rem; margin-inline: auto; }

/* 넓은 화면: 왼쪽 상태 이름, 오른쪽 목록 */
@media (min-width: 48rem) {
  .hero { padding-top: 6.5rem; padding-bottom: 3.25rem; }   /* owner 11-29: on a wide screen the name filled the whole first screen - shorter, so the product list starts on it */
  h1 { font-size: clamp(3.5rem, 7.2vw, 5.6rem); }
  .rings { right: -6%; top: -1rem; width: min(60vw, 30rem); }
  .work { padding-top: 5rem; }
  .groups { gap: 3rem; }
  .group { display: grid; grid-template-columns: 11rem 1fr; column-gap: 2rem; }
  h3 { border-bottom: 0; border-top: 2px solid var(--ink); padding: 1rem 0 0; margin: 0; }
  .list { border-top: 2px solid var(--ink); }
  .item { grid-template-columns: 13rem 1fr auto; column-gap: 1.5rem; padding: 1.5rem 0; }
  .item .chip { order: 3; }
  .what { grid-column: 2; grid-row: 1; }
  .item h4 { grid-row: 1; }
  .chip { grid-column: 3; grid-row: 1; }
  .company { display: grid; grid-template-columns: 11rem 1fr; column-gap: 2rem; max-width: none; }
  .company h2 { margin: 0; font-size: 1.25rem; }
  .company > * { margin-inline: 0; }
  .company { padding-inline: max(var(--pad), calc((100vw - 80rem) / 2 + var(--pad))); }
  .work { padding-inline: var(--pad); }
  dl { gap: 0.9rem; }
  dl div { grid-template-columns: 11rem 1fr; }
}
@media (min-width: 64rem) {
  .intro { display: grid; grid-template-columns: 11rem 1fr; column-gap: 2rem; }
  .intro h2 { margin: 0; font-size: 1.25rem; }
  .item { grid-template-columns: 14rem 1fr auto; }
}
