:root {
  --paper: #f7f7f3;
  --paper-strong: #ffffff;
  --ink: #17191d;
  --muted: #636771;
  --line: rgba(23, 25, 29, 0.12);
  --accent: #6757ff;
  --accent-2: #ff7058;
  --soft: rgba(103, 87, 255, 0.1);
  --nav: rgba(247, 247, 243, 0.9);
  --shadow: 0 28px 80px rgba(22, 24, 29, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.family-site {
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 언어별 본문 폰트. 각 페이지는 해당 계열만 내려받는다.
   keep-all은 한국어 어절 단위 줄바꿈 규칙이라 다른 언어에는 적용하지 않는다. */
body.family-site:lang(en) {
  font-family: "Noto Sans", sans-serif;
  word-break: normal;
}

body.family-site:lang(ja) {
  font-family: "Noto Sans JP", sans-serif;
  word-break: normal;
}

body.family-site:lang(zh) {
  font-family: "Noto Sans SC", sans-serif;
  word-break: normal;
}

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 60px);
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 10px 0 0 var(--accent-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links .nav-cta {
  padding: 10px 16px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 136px clamp(20px, 5vw, 72px) 80px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  top: 8%;
  right: -10%;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  background: var(--soft);
}

.hero::after {
  bottom: -28%;
  left: -10%;
  width: min(35vw, 460px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

.hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(44px, 8vw, 112px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

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

.hero .lede {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: var(--paper-strong);
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

.button.secondary {
  background: color-mix(in srgb, var(--paper-strong) 76%, transparent);
}

.hero-caption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* 제품 상태 배지 — 색만으로 구분하지 않도록 항상 텍스트를 함께 표기한다. */
.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status.live {
  color: var(--paper-strong);
  background: var(--accent);
  border-color: transparent;
}

.status.upcoming,
.status.enterprise {
  color: var(--muted);
}

.hero .status {
  margin-bottom: 16px;
}

.feature-card .status {
  align-self: flex-start;
  margin-top: 20px;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 780px;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.value-item {
  min-height: 225px;
  padding: clamp(26px, 3.5vw, 40px);
}

.value-item + .value-item {
  border-left: 1px solid var(--line);
}

.value-item .value-label,
.feature-card .feature-label,
.flow-step .step-number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.value-item h3 {
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.35;
}

.value-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 산정 방식처럼 줄바꿈을 그대로 보여야 하는 설명 */
.value-item code {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
}

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

.feature-card {
  position: relative;
  min-height: 270px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card::after {
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 150px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.feature-card h3 {
  max-width: 420px;
  margin-top: 18px;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.feature-card p {
  max-width: 470px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.feature-card .benefit {
  display: inline-flex;
  margin-top: 24px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.feature-card.feature-wide {
  grid-column: 1 / -1;
  min-height: 240px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow-step {
  position: relative;
  min-height: 210px;
  padding: 28px 24px;
  background: color-mix(in srgb, var(--paper-strong) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.flow-step:not(:last-child)::after {
  position: absolute;
  top: 34px;
  right: -11px;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  content: "→";
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.flow-step h3 {
  margin-top: 30px;
  font-size: 19px;
}

.flow-step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.cta-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto clamp(68px, 9vw, 120px);
  padding: clamp(36px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  max-width: 650px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cta-band p {
  max-width: 560px;
  margin-top: 12px;
  color: color-mix(in srgb, var(--paper-strong) 70%, transparent);
  line-height: 1.7;
}

.cta-band .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--paper-strong);
}

.site-footer {
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.site-footer .copy {
  color: var(--muted);
  font-size: 11px;
}

/* 전자상거래법 사업자 정보 */
.site-footer .biz-info {
  width: min(1120px, 100%);
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* Liv-ay — playful branching choices */
.theme-livay {
  --paper: #fff8f2;
  --paper-strong: #ffffff;
  --ink: #211b36;
  --muted: #6d6579;
  --line: rgba(57, 37, 93, 0.13);
  --accent: #6c4dff;
  --accent-2: #ff6c57;
  --soft: rgba(255, 108, 87, 0.13);
  --nav: rgba(255, 248, 242, 0.9);
}

.theme-livay .hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(108, 77, 255, 0.17), transparent 28%),
    radial-gradient(circle at 12% 75%, rgba(255, 108, 87, 0.17), transparent 26%),
    var(--paper);
}

.branch-map {
  position: absolute;
  inset: 16px 0;
  display: grid;
  place-items: center;
}

.branch-map::before,
.branch-map::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 1px;
  content: "";
  background: var(--line);
  transform-origin: left center;
}

.branch-map::before {
  transform: rotate(-35deg);
}

.branch-map::after {
  transform: rotate(34deg);
}

.story-node {
  position: absolute;
  width: min(240px, 56%);
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.story-node strong {
  display: block;
  font-size: 17px;
}

.story-node span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.story-node.start {
  top: 38%;
  left: 0;
  color: #fff;
  background: var(--accent);
  transform: rotate(-4deg);
}

/* 기본 span 색(--muted)은 이 노드의 보라 배경 위에서 1.09:1로 읽히지 않는다.
   합성 후 대비 4.74:1. */
.story-node.start span {
  color: rgba(255, 255, 255, 0.95);
}

.story-node.choice-a {
  top: 5%;
  right: 0;
  transform: rotate(4deg);
}

.story-node.choice-b {
  right: 4%;
  bottom: 6%;
  border-color: rgba(255, 108, 87, 0.4);
  transform: rotate(-3deg);
}

.choice-chip {
  position: absolute;
  top: 46%;
  /* start 노드는 min(240px, 56%) 폭이라 좁은 화면에서 46% 지점과 겹쳤다.
     노드 오른쪽 끝을 넘어서도록 묶어 둔다. */
  left: max(46%, calc(min(240px, 56%) + 14px));
  z-index: 3;
  padding: 10px 14px;
  /* 코럴 배경에 흰 글씨는 2.79:1이라 어두운 글자로 바꿨다. */
  color: var(--ink);
  background: var(--accent-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

/* Studio — editorial production desk */
.theme-studio {
  --paper: #f4ecdd;
  --paper-strong: #fffaf0;
  --ink: #2e281f;
  --muted: #776c5d;
  --line: rgba(69, 55, 37, 0.16);
  --accent: #d5542f;
  --accent-2: #2d7356;
  --soft: rgba(213, 84, 47, 0.11);
  --nav: rgba(244, 236, 221, 0.92);
}

.theme-studio .hero {
  background:
    linear-gradient(rgba(69, 55, 37, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 55, 37, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.studio-board {
  position: absolute;
  inset: 0;
  padding: 44px;
  background: #d8c6a8;
  border: 14px solid #8f6f4b;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.studio-sheet {
  position: absolute;
  padding: 22px;
  background: var(--paper-strong);
  border: 1px solid rgba(69, 55, 37, 0.12);
  box-shadow: 0 18px 35px rgba(69, 55, 37, 0.16);
}

.studio-sheet strong {
  display: block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.studio-sheet span {
  display: block;
  margin-top: 14px;
  font-size: 19px;
  font-weight: 900;
}

.studio-sheet small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.studio-sheet.master {
  inset: 42px 100px 120px 34px;
  transform: rotate(-4deg);
}

.studio-sheet.format-a {
  right: 26px;
  bottom: 44px;
  width: 48%;
  transform: rotate(5deg);
}

.studio-sheet.format-b {
  left: 54px;
  bottom: 28px;
  width: 38%;
  background: #fff0c9;
  transform: rotate(-2deg);
}

/* Universe — content orbit */
.theme-universe {
  --paper: #090a1d;
  --paper-strong: #12152d;
  --ink: #f6f7ff;
  --muted: #9ca3c5;
  --line: rgba(214, 220, 255, 0.13);
  --accent: #58e2dd;
  --accent-2: #8d6dff;
  --soft: rgba(88, 226, 221, 0.1);
  --nav: rgba(9, 10, 29, 0.88);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.theme-universe .hero {
  background:
    radial-gradient(circle at 75% 20%, rgba(141, 109, 255, 0.22), transparent 25%),
    radial-gradient(circle at 24% 82%, rgba(88, 226, 221, 0.12), transparent 28%),
    var(--paper);
}

.theme-universe .nav-links .nav-cta,
.theme-eyes .nav-links .nav-cta,
.theme-paas .nav-links .nav-cta {
  color: #0b0d18;
  background: var(--accent);
}

.universe-orbit {
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.universe-orbit::before {
  width: 64%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.universe-core {
  position: absolute;
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: #08101c;
  background: linear-gradient(135deg, var(--accent), #fff);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(88, 226, 221, 0.28);
  font-size: 16px;
  font-weight: 900;
}

.orbit-item {
  position: absolute;
  min-width: 98px;
  padding: 12px 14px;
  text-align: center;
  color: var(--ink);
  background: rgba(18, 21, 45, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.orbit-item:nth-of-type(2) { top: 1%; left: 40%; }
.orbit-item:nth-of-type(3) { top: 24%; right: -2%; }
.orbit-item:nth-of-type(4) { right: 8%; bottom: 12%; }
.orbit-item:nth-of-type(5) { bottom: 2%; left: 30%; }
.orbit-item:nth-of-type(6) { top: 28%; left: -2%; }

/* Eyes — investigation scanner */
.theme-eyes {
  --paper: #101014;
  --paper-strong: #19191f;
  --ink: #f7f4ff;
  --muted: #aaa2b5;
  --line: rgba(235, 224, 255, 0.14);
  --accent: #c89bff;
  --accent-2: #e8ff6a;
  --soft: rgba(200, 155, 255, 0.11);
  --nav: rgba(16, 16, 20, 0.9);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.theme-eyes .hero {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(232, 255, 106, 0.08) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(232, 255, 106, 0.08) 50%, transparent 50.2%),
    radial-gradient(circle at 75% 45%, rgba(200, 155, 255, 0.15), transparent 30%),
    var(--paper);
}

.scanner {
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(200, 155, 255, 0.08);
}

.scanner::before,
.scanner::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.scanner::before {
  width: 68%;
  aspect-ratio: 1;
  border: 1px dashed rgba(232, 255, 106, 0.38);
}

.scanner::after {
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 155, 255, 0.5);
  box-shadow: 0 0 34px rgba(200, 155, 255, 0.2);
}

.scanner-eye {
  z-index: 2;
  width: 130px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 70% 30% 70% 30%;
  transform: rotate(45deg);
}

.scanner-eye span {
  width: 34px;
  aspect-ratio: 1;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(232, 255, 106, 0.45);
}

.clue {
  position: absolute;
  padding: 9px 12px;
  color: #101014;
  background: var(--accent-2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.clue.one { top: 15%; left: 4%; transform: rotate(-6deg); }
.clue.two { right: 0; bottom: 23%; transform: rotate(7deg); }
.clue.three { left: 20%; bottom: 2%; transform: rotate(2deg); }

/* Artist Guild — archival rights ledger */
.theme-guild {
  --paper: #f2eee6;
  --paper-strong: #fffdf8;
  --ink: #26221f;
  --muted: #706861;
  --line: rgba(55, 45, 38, 0.16);
  --accent: #b44235;
  --accent-2: #263e63;
  --soft: rgba(180, 66, 53, 0.1);
  --nav: rgba(242, 238, 230, 0.92);
}

.theme-guild .hero {
  background:
    linear-gradient(110deg, rgba(180, 66, 53, 0.07), transparent 42%),
    var(--paper);
}

.rights-ledger {
  position: absolute;
  inset: 18px 30px;
  padding: 42px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.ledger-header strong {
  font-size: 22px;
}

.ledger-seal {
  width: 68px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 3px double var(--accent);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  transform: rotate(-12deg);
}

.ledger-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.ledger-row span {
  color: var(--muted);
}

.ledger-row b {
  color: var(--accent-2);
}

/* Mentor — evidence stack */
.theme-mentor {
  --paper: #edf6f0;
  --paper-strong: #fbfffc;
  --ink: #173d31;
  --muted: #5f756d;
  --line: rgba(31, 94, 73, 0.15);
  --accent: #197a58;
  --accent-2: #d89d2d;
  --soft: rgba(25, 122, 88, 0.1);
  --nav: rgba(237, 246, 240, 0.92);
}

.theme-mentor .hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(216, 157, 45, 0.13), transparent 28%),
    var(--paper);
}

.evidence-stack {
  position: absolute;
  inset: 28px 0;
}

.evidence-card {
  position: absolute;
  width: 82%;
  padding: 25px 28px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.evidence-card .tag {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.evidence-card strong {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.45;
}

.evidence-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.evidence-card.question { top: 0; left: 0; transform: rotate(-2deg); }
.evidence-card.source { top: 125px; right: 0; border-left: 5px solid var(--accent-2); transform: rotate(2deg); }
.evidence-card.answer { right: 8%; bottom: 0; color: #fff; background: var(--accent); transform: rotate(-1deg); }
.evidence-card.answer .tag,
.evidence-card.answer small { color: rgba(255, 255, 255, 0.74); }

/* Cho-Pilot — work context dashboard */
.theme-pilot {
  --paper: #eff5ff;
  --paper-strong: #ffffff;
  --ink: #102a57;
  --muted: #61708c;
  --line: rgba(30, 75, 145, 0.14);
  --accent: #286ce5;
  --accent-2: #21b79b;
  --soft: rgba(40, 108, 229, 0.1);
  --nav: rgba(239, 245, 255, 0.92);
}

.theme-pilot .hero {
  background:
    linear-gradient(120deg, rgba(40, 108, 229, 0.08), transparent 48%),
    var(--paper);
}

.work-panel {
  position: absolute;
  inset: 14px 0;
  padding: 20px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  padding: 4px 4px 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.signal-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signal-lane {
  min-height: 330px;
  padding: 14px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.signal-lane > strong {
  color: var(--accent);
  font-size: 11px;
}

.signal-card {
  margin-top: 12px;
  padding: 12px;
  background: var(--paper);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.signal-card.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(40, 108, 229, 0.22);
}

/* PaaS — secure operating stack */
.theme-paas {
  --paper: #0c1512;
  --paper-strong: #14211c;
  --ink: #ecfff7;
  --muted: #94b4a8;
  --line: rgba(194, 255, 229, 0.13);
  --accent: #55e2a7;
  --accent-2: #ffbd59;
  --soft: rgba(85, 226, 167, 0.1);
  --nav: rgba(12, 21, 18, 0.9);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.theme-paas .hero {
  background:
    linear-gradient(rgba(85, 226, 167, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 226, 167, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 30px 30px;
}

.secure-stack {
  position: absolute;
  inset: 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.stack-layer {
  position: relative;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stack-layer:nth-child(1) { margin-inline: 52px; }
.stack-layer:nth-child(2) { margin-inline: 30px; }
.stack-layer:nth-child(3) { margin-inline: 12px; }
.stack-layer:nth-child(4) { border-color: rgba(85, 226, 167, 0.45); }

.stack-layer span {
  color: var(--muted);
  font-size: 11px;
}

.stack-layer b {
  color: var(--accent);
  font-size: 12px;
}

@media (max-width: 880px) {
  .site-nav {
    min-height: 64px;
  }

  /* 좁은 화면에서는 메뉴를 접지만, 언어 전환은 스크롤로 대체할 수 없으므로 남긴다. */
  .nav-links a:not(.nav-cta):not(.lang) {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a.lang {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-visual {
    min-height: 440px;
  }

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

  .value-strip {
    grid-template-columns: 1fr;
  }

  .value-item + .value-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .flow-step:nth-child(2)::after {
    display: none;
  }

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

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-visual {
    min-height: 370px;
  }

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

  .feature-card.feature-wide {
    grid-column: auto;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

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

  .story-node {
    width: 58%;
    padding: 16px;
  }

  .studio-board {
    padding: 26px;
    border-width: 9px;
  }

  .studio-sheet.master {
    inset: 30px 50px 100px 20px;
  }

  .rights-ledger {
    inset: 8px 0;
    padding: 26px 20px;
  }

  .ledger-row {
    grid-template-columns: 64px 1fr;
  }

  .ledger-row b {
    grid-column: 2;
  }

  .signal-lanes {
    gap: 6px;
  }

  .signal-lane {
    min-height: 300px;
    padding: 8px;
  }

  .signal-card {
    padding: 9px 7px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
