/* =========================================================
   PURPLECAT — 공식 홈페이지 스타일
   컬러 90:10 — 블랙·그레이·화이트 베이스 + 퍼플은 빛·선·포커스에만
   ========================================================= */
:root {
  --bg: #09090B;
  --card: #111115;
  --line: #27272A;
  --fg: #FAFAFA;
  --muted: #A1A1AA;
  --dim: #71717A;
  --violet: #7C3AED;
  --neon: #A855F7;
  --glow: rgba(168, 85, 247, 0.55);

  --radius: 20px;
  --pad-x: clamp(20px, 5vw, 56px);
  --sec-y: clamp(96px, 14vw, 180px);
  --blur: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "D2Coding", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(124, 58, 237, .45); color: #fff; }
:focus-visible { outline: 1px solid var(--neon); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(168, 85, 247, .18); border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--card); padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.skip:focus { left: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.m-br { display: none; }
.d-br { display: inline; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.btn-primary {
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
}
.btn-primary:hover { box-shadow: 0 0 0 1px var(--neon), 0 0 28px rgba(168, 85, 247, .45); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--fg); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--neon); box-shadow: 0 0 22px rgba(124, 58, 237, .25) inset; }
.btn-ghost span { transition: transform .35s var(--ease); }
.btn-ghost:hover span { transform: translateX(3px); }

/* ---------- GNB ---------- */
.gnb {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.gnb.scrolled {
  background: rgba(9, 9, 11, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(39, 39, 42, .7);
}
.gnb-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { height: 30px; width: auto; }
.brand-word { height: 14px; width: auto; }

.gnb-nav { display: flex; gap: 6px; }
.gnb-nav a {
  position: relative; padding: 10px 16px; font: 500 13px/1 var(--font); letter-spacing: .14em; color: var(--muted);
  transition: color .3s;
}
.gnb-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--neon); box-shadow: 0 0 8px var(--neon);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.gnb-nav a:hover, .gnb-nav a.active { color: var(--fg); }
.gnb-nav a:hover::after, .gnb-nav a.active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 120; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg); border-radius: 2px;
  transition: transform .45s var(--ease), top .45s var(--ease), background .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span { background: var(--neon); box-shadow: 0 0 8px var(--glow); }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* 모바일 드로어 */
.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 96px var(--pad-x) 40px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.drawer::before {
  content: ""; position: absolute; right: -30%; top: -10%; width: 90vw; height: 90vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .16), transparent 65%); pointer-events: none;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-nav { display: flex; flex-direction: column; gap: 6px; position: relative; }
.drawer-nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  font-size: clamp(30px, 9vw, 44px); font-weight: 700; letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.drawer-nav a small { font: 500 12px var(--mono); color: var(--neon); letter-spacing: .1em; }
.drawer.open .drawer-nav a { opacity: 1; transform: none; }
.drawer.open .drawer-nav a:nth-child(2) { transition-delay: .06s; }
.drawer.open .drawer-nav a:nth-child(3) { transition-delay: .12s; }
.drawer.open .drawer-nav a:nth-child(4) { transition-delay: .18s; }
.drawer-nav a:active { color: var(--neon); }
.drawer-foot { margin-top: auto; color: var(--dim); font-size: 12px; letter-spacing: .1em; position: relative; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
}
.aurora { position: absolute; inset: -10%; z-index: -3; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(var(--blur)); will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * var(--k)), calc(var(--my, 0) * var(--k)), 0);
}
.b1 { --k: 46px; width: 46vw; height: 46vw; right: 6%; top: 8%;  background: radial-gradient(circle, rgba(124, 58, 237, .30), transparent 68%); }
.b2 { --k: -34px; width: 34vw; height: 34vw; right: 28%; top: 42%; background: radial-gradient(circle, rgba(168, 85, 247, .16), transparent 70%); }
.b3 { --k: 22px; width: 40vw; height: 40vw; left: -6%; bottom: -4%; background: radial-gradient(circle, rgba(63, 63, 70, .45), transparent 70%); }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 40%, var(--bg) 95%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}

.hero-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 120px var(--pad-x) 96px;
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font: 500 11.5px/1.4 var(--mono); letter-spacing: .16em; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(17, 17, 21, .6);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse 2.4s infinite; flex: none; }
.hero-title { font-weight: 700; letter-spacing: -0.035em; line-height: 1.16; }
.hero-title .ko { display: block; font-size: clamp(34px, 5.4vw, 72px); }
.hero-title .en {
  display: block; margin-top: 18px; font-size: clamp(19px, 2.3vw, 30px); font-weight: 500; letter-spacing: -0.02em; color: var(--muted);
}
.hero-title .en em {
  font-style: normal; color: var(--fg);
  background: linear-gradient(90deg, var(--fg) 0%, var(--fg) 40%, #D8B4FE 60%, var(--fg) 80%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
.hero-sub { margin-top: 28px; max-width: 680px; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 시그니처 심볼 — 실제 CI 마크 */
.mark-glow {
  position: absolute; inset: 8% 4%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, .38), rgba(124, 58, 237, .08) 45%, transparent 70%);
  filter: blur(24px); animation: glowBreath 6s ease-in-out infinite;
}
.hero-symbol .mark {
  position: absolute; z-index: 1; left: 50%; top: 50%; height: 72%; width: auto; transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(124, 58, 237, .35));
  animation: markIn 1.6s var(--ease) .2s both, float 7s ease-in-out 1.8s infinite;
}
/* 마크 모양 그대로 빛이 한 번씩 훑고 지나감 */
.mark-sheen {
  position: absolute; z-index: 2; left: 50%; top: 50%; height: 72%; aspect-ratio: 372 / 543; transform: translate(-50%, -50%);
  -webkit-mask: url(assets/mark.png) center / contain no-repeat; mask: url(assets/mark.png) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  mix-blend-mode: overlay; pointer-events: none;
  animation: sheenSweep 6s ease-in-out 2.4s infinite, float 7s ease-in-out 1.8s infinite;
}
.hero-symbol { position: relative; justify-self: center; width: min(400px, 34vw); aspect-ratio: 1; }
.symbol-ring {
  position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgba(39, 39, 42, .9);
  mask: linear-gradient(to bottom, #000 30%, transparent 85%); -webkit-mask: linear-gradient(to bottom, #000 30%, transparent 85%);
}
.symbol-ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 80%, rgba(168, 85, 247, .8) 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 0);
  animation: spin 9s linear infinite;
}
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--neon); box-shadow: 0 0 6px var(--neon); animation: cue 2s infinite; }

/* ---------- 섹션 공통 ---------- */
.section { position: relative; padding: var(--sec-y) 0 0; }
.section + .section::before {
  content: ""; position: absolute; top: calc(var(--sec-y) / 2); left: 50%; width: min(1100px, 90vw); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.sec-head { margin-bottom: clamp(44px, 6vw, 72px); }
.sec-label { font: 500 12px/1 var(--mono); letter-spacing: .18em; color: var(--neon); margin-bottom: 18px; }
.sec-title { font-size: clamp(30px, 4.2vw, 54px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.2; }
.sec-title span { display: inline-block; margin-left: 12px; font-size: .48em; font-weight: 500; color: var(--dim); letter-spacing: -0.01em; vertical-align: middle; }
.sec-desc { margin-top: 18px; max-width: 620px; color: var(--muted); }

/* ---------- 축 & 벤토 ---------- */
.axis + .axis { margin-top: clamp(64px, 8vw, 104px); }
.axis-head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 6px; align-items: baseline; margin-bottom: 22px; }
.axis-tag { grid-row: span 2; align-self: start; margin-top: 7px; font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--muted); padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.axis-head h3 { font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.35; }
.axis-head h3 span { font-size: .62em; font-weight: 500; color: var(--dim); margin-left: 8px; letter-spacing: 0; }
.axis-head p { color: var(--muted); font-size: 14.5px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bento-a { grid-template-rows: auto auto; }
.bento-a .card-tall { grid-row: span 2; }
.bento-a .card-wide { grid-column: span 2; }
.bento-b .card-wide { grid-column: span 2; }

.card {
  --x: 50%; --y: 50%; --r: 360px;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px); min-height: 230px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s;
}
/* 퍼플 테두리 스포트라이트 */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(var(--r) circle at var(--x) var(--y), rgba(168, 85, 247, .95), rgba(124, 58, 237, .35) 35%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
/* 안쪽 은은한 빛 */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(calc(var(--r) * 1.4) circle at var(--x) var(--y), rgba(124, 58, 237, .10), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.bento.hovering .card::before { opacity: .55; }
.bento.hovering .card:hover::before, .card.is-lit::before { opacity: 1; }
.bento.hovering .card:hover::after, .card.is-lit::after { opacity: 1; }
.card.is-lit { --r: 520px; --x: 50%; --y: 0%; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: auto; padding-bottom: 28px; }
.card-no { font: 500 12px/1 var(--mono); color: var(--dim); }
.card-chip { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--muted); padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h4 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.35; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* 카드 미니 비주얼 (선·면 최소) */
.card-visual { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 170px; margin-bottom: 24px; position: relative; }
.v-persona span {
  position: absolute; width: 110px; height: 140px; border-radius: 56px 56px 18px 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 250, 250, .03), transparent);
}
.v-persona span:nth-child(1) { transform: translateX(-46px) rotate(-8deg); opacity: .5; }
.v-persona span:nth-child(3) { transform: translateX(46px) rotate(8deg); opacity: .5; }
.v-persona span:nth-child(2) { z-index: 1; background: var(--card); border-color: #3F3F46; }
.v-persona span:nth-child(2)::before, .v-persona span:nth-child(2)::after {
  content: ""; position: absolute; top: 58px; width: 14px; height: 4px; border-radius: 4px; background: var(--neon); box-shadow: 0 0 10px var(--neon);
  animation: blink 6s 1s infinite;
}
.v-persona span:nth-child(2)::before { left: 30px; }
.v-persona span:nth-child(2)::after { right: 30px; }

.ratio-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 22px; }
.ratio-row span { display: flex; align-items: flex-end; justify-content: flex-start; padding: 6px 8px; font: 500 10px/1 var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 6px; transition: border-color .4s, color .4s; }
.r916 { width: 34px; height: 60px; }
.r11 { width: 48px; height: 48px; }
.r169 { width: 86px; height: 48px; }
.card:hover .ratio-row span, .card.is-lit .ratio-row span { border-color: #3F3F46; color: var(--muted); }

.film { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 22px; }
.film span { height: 30px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(90deg, transparent, rgba(250, 250, 250, .025), transparent); }
.card:hover .film span, .card.is-lit .film span { animation: frame 1.8s steps(1) infinite; }
.film span:nth-child(2) { animation-delay: .3s !important; } .film span:nth-child(3) { animation-delay: .6s !important; }
.film span:nth-child(4) { animation-delay: .9s !important; } .film span:nth-child(5) { animation-delay: 1.2s !important; }
.film span:nth-child(6) { animation-delay: 1.5s !important; }

.mini-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.mini-flow li { position: relative; font: 500 11px/1 var(--mono); color: var(--muted); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.mini-flow li + li::before { content: "→"; position: absolute; left: -9px; top: 50%; transform: translate(-50%, -50%); font-size: 9px; color: var(--dim); }
.mini-flow li + li { margin-left: 10px; }

.doc-stack { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.doc-stack span { font: 500 11px/1 var(--mono); color: var(--muted); padding: 9px 12px 9px 26px; border: 1px solid var(--line); border-radius: 6px; position: relative; }
.doc-stack span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 10px; margin-top: -5px; border: 1px solid var(--dim); border-radius: 1px; }

/* ---------- 파이프라인 ---------- */
.pipe { position: relative; --top: 22px; }
.pipe-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.step { padding: 0 clamp(10px, 1.6vw, 22px); text-align: center; }
.dot {
  display: block; width: 14px; height: 14px; margin: calc(var(--top) - 7px) auto 30px; border-radius: 50%;
  background: var(--bg); border: 1px solid #3F3F46; position: relative;
  transition: border-color .5s, box-shadow .5s, background .5s;
}
.dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--line); transition: background .5s, box-shadow .5s; }
.step code { display: block; font: 600 clamp(17px, 1.6vw, 21px)/1.2 var(--mono); color: var(--muted); letter-spacing: -0.01em; transition: color .5s; }
.step p { margin: 12px auto 0; max-width: 250px; color: var(--dim); font-size: 14px; transition: color .5s; }
.step.on .dot { border-color: var(--neon); box-shadow: 0 0 0 5px rgba(168, 85, 247, .12), 0 0 22px rgba(168, 85, 247, .65); }
.step.on .dot::after { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.step.on code { color: var(--fg); }
.step.on p, .step.done p { color: var(--muted); }
.step.done .dot { border-color: var(--violet); }
.step.done .dot::after { background: var(--violet); }
.step.done code { color: #D4D4D8; }

.pipe-track { position: absolute; left: 12.5%; right: 12.5%; top: var(--top); height: 1px; background: var(--line); z-index: 0; overflow: visible; }
.pipe-track::after { /* 상시 흐르는 빛줄기 */
  content: ""; position: absolute; top: -1px; height: 3px; width: 120px; left: 0;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .7), transparent); filter: blur(1px);
  animation: streakX 3.2s linear infinite;
}
.pipe-fill { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--violet), var(--neon)); box-shadow: 0 0 10px var(--neon); transition: width 1s var(--ease); }
.pipe-head { position: absolute; top: 0; left: calc(var(--p) * 100%); width: 70px; height: 9px; transform: translate(-100%, -50%); background: radial-gradient(ellipse at right, rgba(216, 180, 254, .9), rgba(168, 85, 247, .3) 40%, transparent 70%); transition: left 1s var(--ease); pointer-events: none; }
.pipe.reset .pipe-fill, .pipe.reset .pipe-head { transition: none; }
.pipe-loop { margin-top: 40px; text-align: center; font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: .06em; }

/* ---------- 워크플로우 프리뷰 ---------- */
.flow-win {
  margin-top: clamp(64px, 8vw, 96px); border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #0D0D11, #0B0B0E); overflow: hidden; position: relative;
  box-shadow: 0 40px 120px -40px rgba(124, 58, 237, .22);
}
.flow-win::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .7), transparent); }
.win-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #27272A; }
.win-title { font: 500 12px/1 var(--mono); color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-state { margin-left: auto; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--dim); padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; transition: color .3s, border-color .3s; }
.win-state.run { color: var(--neon); border-color: rgba(168, 85, 247, .5); }
.win-state.ok { color: var(--fg); border-color: #3F3F46; }
.win-body { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 380px; }
.nodes { list-style: none; padding: 26px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.node {
  position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; background: #111115; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .4s, box-shadow .4s;
}
.node + .node::before { content: ""; position: absolute; left: 28px; top: -15px; width: 1px; height: 14px; background: var(--line); transition: background .4s, box-shadow .4s; }
.n-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); font-size: 13px; transition: color .4s, border-color .4s; }
.node b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.node code { display: block; font: 400 11.5px/1.5 var(--mono); color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-st { font: 500 10.5px/1 var(--mono); color: var(--dim); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.node.run { border-color: rgba(168, 85, 247, .65); box-shadow: 0 0 0 3px rgba(168, 85, 247, .08), 0 0 26px -6px rgba(168, 85, 247, .6); }
.node.run .n-ic { color: var(--neon); border-color: rgba(168, 85, 247, .5); }
.node.run .n-st { color: var(--neon); border-color: rgba(168, 85, 247, .4); }
.node.run .n-st::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 6px var(--neon); animation: pulse 1s infinite; vertical-align: 1px; }
.node.ok .n-ic { color: var(--fg); border-color: #3F3F46; }
.node.ok .n-st { color: var(--fg); }
.node.ok + .node::before, .node.ok + .node.run::before { background: var(--violet); box-shadow: 0 0 6px var(--violet); }

.console { display: flex; flex-direction: column; min-width: 0; }
.console-head { padding: 14px 22px; font: 500 11px/1 var(--mono); color: var(--dim); letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.console pre {
  flex: 1; margin: 0; padding: 20px 22px; font: 400 12.5px/1.85 var(--mono); color: var(--muted);
  white-space: pre-wrap; word-break: break-all; overflow: hidden;
}
.console pre .c-cmd { color: var(--fg); }
.console pre .c-tag { color: var(--neon); }
.console pre .c-ok { color: #E4E4E7; }
.console pre .caret { display: inline-block; width: 7px; height: 14px; background: var(--neon); vertical-align: -2px; animation: caret 1s steps(1) infinite; box-shadow: 0 0 6px var(--neon); }
.win-note { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }

/* ---------- 철학 ---------- */
.manifest { margin-bottom: clamp(48px, 6vw, 80px); }
.manifest .ko { font-size: clamp(24px, 3.2vw, 42px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.45; }
.manifest .en { margin-top: 16px; font-size: clamp(15px, 1.4vw, 19px); color: var(--dim); font-style: italic; letter-spacing: 0; }

.bento-name { grid-template-columns: 1fr 1fr; }
.name-card { min-height: 280px; justify-content: flex-end; }
.name-word { font-size: clamp(44px, 6vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: auto; padding-bottom: 40px; }
.name-word.purple {
  background: linear-gradient(90deg, var(--fg) 30%, #C084FC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.spectrum { position: absolute; right: 28px; top: 34px; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #3F3F46, #52525B 50%, var(--violet) 85%, var(--neon)); box-shadow: 8px 0 14px -2px var(--neon); }
.eyes-mini { position: absolute; right: 30px; top: 36px; display: flex; gap: 14px; }
.eyes-mini i { width: 18px; height: 5px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: blink 5s 1.5s infinite; }

.persona { margin-top: clamp(64px, 8vw, 104px); padding-top: 40px; border-top: 1px solid var(--line); }
.persona-label { font: 500 11.5px/1 var(--mono); letter-spacing: .16em; color: var(--dim); margin-bottom: 18px; }
.persona-text { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 820px; line-height: 1.7; }
.persona-text strong { color: var(--fg); font-weight: 600; }
.declare { margin-top: 36px; font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.3; }
.declare span { position: relative; white-space: nowrap; }
.declare span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: 1px; background: linear-gradient(90deg, var(--violet), var(--neon)); box-shadow: 0 0 12px var(--neon); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .4s; }
.declare.in span::after, .persona.in .declare span::after { transform: scaleX(1); }

.venture { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.venture p:last-child { font-size: clamp(16px, 1.3vw, 18px); color: #D4D4D8; max-width: 760px; }

.principles { margin-top: clamp(64px, 8vw, 104px); }
.principles ol { list-style: none; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: clamp(28px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); position: relative; }
.principles li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: linear-gradient(90deg, var(--neon), transparent); transition: width 1.2s var(--ease); }
.principles li:hover::before, .principles li.lit::before { width: 40%; }
.p-no { font: 500 13px/1.6 var(--mono); color: var(--neon); }
.principles h4 { font-size: clamp(18px, 1.7vw, 23px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.45; margin-bottom: 10px; }
.principles p { color: var(--muted); max-width: 720px; }

.founder { margin-top: clamp(72px, 9vw, 120px); padding: clamp(32px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); position: relative; overflow: hidden; }
.founder::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(180deg, transparent, var(--neon), transparent); box-shadow: 0 0 12px var(--neon); }
.founder blockquote { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.75; letter-spacing: -0.02em; color: #E4E4E7; }
.founder figcaption { margin-top: 22px; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--dim); }

/* ---------- 문의 ---------- */
.contact { padding-bottom: var(--sec-y); }
.contact::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70vw; height: 40vw; transform: translateX(-50%); background: radial-gradient(ellipse at bottom, rgba(124, 58, 237, .12), transparent 65%); pointer-events: none; z-index: -1; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact .sec-head { margin-bottom: 0; }
.contact-title { font-size: clamp(28px, 3.4vw, 44px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--fg);
  font: 400 16px/1.6 var(--font); padding: 14px 16px; resize: vertical; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #52525B; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(168, 85, 247, .12), 0 0 24px -8px var(--neon); }
.field.invalid input, .field.invalid textarea { border-color: #7F1D1D; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-msg { font-size: 13.5px; color: var(--muted); }
.form-msg.err { color: #FCA5A5; }

/* ---------- 푸터 ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: #07070A; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot-logo { height: 56px; width: auto; }
.foot-slogan { font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: .06em; }
.biz { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; padding: 28px 0; font-size: 13px; }
.biz div { display: flex; gap: 10px; }
.biz dt { color: var(--dim); white-space: nowrap; }
.biz dd { color: var(--muted); }
.biz .biz-full { grid-column: 1 / -1; }
.copy { font-size: 12px; color: #52525B; letter-spacing: .04em; }

/* ---------- 스크롤 등장 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero-symbol.reveal { transition-delay: .2s; }

/* ---------- 키프레임 ---------- */
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes eyesOn { 0% { opacity: 0; } 30% { opacity: .9; } 40% { opacity: .2; } 60%, 100% { opacity: 1; } }
@keyframes earGlow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes markIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); filter: blur(8px) drop-shadow(0 18px 40px rgba(124, 58, 237, 0)); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes glowBreath { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes sheenSweep { 0%, 15% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes streakX { from { left: -120px; } to { left: 100%; } }
@keyframes streakY { from { top: -120px; } to { top: 100%; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes frame { 0% { border-color: #3F3F46; } 16% { border-color: var(--line); } }
@keyframes drift1 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(10vw, -5vh, 0) scale(.9); } }
@keyframes drift3 { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(6vw, -8vh, 0); } }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 0.8fr; }
  .venture, .principles li { grid-template-columns: 140px 1fr; }
  .biz { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 860px) {
  .gnb-nav { display: none; }
  .burger { display: block; }
  .gnb-inner { height: 64px; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 100px; gap: 12px; }
  .hero-symbol { order: -1; justify-self: start; width: min(220px, 52vw); margin-left: -12px; }

  .bento, .bento-name { grid-template-columns: 1fr; }
  .bento-a .card-tall, .bento-a .card-wide, .bento-b .card-wide { grid-column: auto; grid-row: auto; }
  .card { min-height: 0; }
  .card-visual { min-height: 150px; }

  .win-body { grid-template-columns: 1fr; }
  .nodes { border-right: 0; border-bottom: 1px solid var(--line); }
  .console pre { min-height: 230px; }

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

/* 모바일 — 파이프라인 세로 타임라인 */
@media (max-width: 720px) {
  .pipe { --top: 26px; }
  .pipe-steps { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
  .step { display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; text-align: left; padding: 0 0 0 0; }
  .dot { grid-row: span 2; margin: calc(var(--top) - 7px) 8px 0; }
  .step code { padding-top: calc(var(--top) - 11px); }
  .step p { margin: 8px 0 0; max-width: none; padding-bottom: 28px; }
  .pipe-track { left: 15px; right: auto; width: 1px; height: auto; top: var(--top); bottom: calc(25% - var(--top)); }
  .pipe-track::after { left: -1px; top: 0; width: 3px; height: 120px; background: linear-gradient(180deg, transparent, rgba(168, 85, 247, .7), transparent); animation-name: streakY; }
  .pipe-fill { width: 1px; height: calc(var(--p) * 100%); background: linear-gradient(180deg, var(--violet), var(--neon)); transition: height 1s var(--ease); }
  .pipe-head { left: 0; top: calc(var(--p) * 100%); width: 9px; height: 70px; transform: translate(-50%, -100%); background: radial-gradient(ellipse at bottom, rgba(216, 180, 254, .9), rgba(168, 85, 247, .3) 40%, transparent 70%); transition: top 1s var(--ease); }
  .pipe-loop { text-align: left; margin-top: 8px; }
}

@media (max-width: 640px) {
  :root { --blur: 40px; --radius: 18px; }
  .m-br { display: inline; }
  .d-br { display: none; }
  .hero-title .ko { font-size: clamp(31px, 9vw, 44px); line-height: 1.22; }
  .hero-title .en { font-size: clamp(17px, 5vw, 22px); line-height: 1.4; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 22px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .sec-title span { display: block; margin: 10px 0 0; font-size: .5em; }
  .axis-head { grid-template-columns: 1fr; }
  .axis-tag { grid-row: auto; justify-self: start; margin: 0 0 6px; }
  .axis-head h3 span { display: block; margin: 4px 0 0; }
  .venture, .principles li { grid-template-columns: 1fr; gap: 10px; }
  .form { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .biz { grid-template-columns: 1fr; gap: 10px; }
  .biz div { flex-direction: column; gap: 2px; }
  .nodes { padding: 18px; }
  .node { grid-template-columns: 28px 1fr auto; gap: 10px; padding: 10px 12px; }
  .node + .node::before { left: 26px; }
  .b1 { width: 90vw; height: 90vw; right: -30%; top: 0; }
  .b2 { width: 70vw; height: 70vw; right: 10%; top: 40%; }
  .b3 { width: 80vw; height: 80vw; }
  .spectrum, .eyes-mini { right: 22px; top: 28px; }
}

/* 터치 기기 — 마우스 대신 자동 호흡(Ambient Drift) */
@media (hover: none), (pointer: coarse) {
  .b1 { animation: drift1 16s ease-in-out infinite; }
  .b2 { animation: drift2 19s ease-in-out infinite; }
  .b3 { animation: drift3 23s ease-in-out infinite; }
  .gnb.scrolled { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* 움직임 줄이기 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
