/* LOFTRONIX v2 — loftronix.com 원본(검정 + 초록)을 유지하고 연출을 올린 판.
   색: 원본·기업소개서 측정값 #47d45a. 바탕은 원본의 순흑 대신 아주 약하게 초록을 섞은 검정.
   대비(contrast_check.py, 2026-11-24): 본문 #eef3f0 17:1 · 보조 #a3b3ab 8.8:1 · 초록 9.9:1 — 모두 #07110d 기준. */
:root {
  --bg: #050806;
  --bg-2: #0b120e;
  --line: #1b2620;
  --text: #eef3f0;
  --muted: #a3b3ab;
  --dim: #6f7f77;          /* 장식 라벨 전용 — 본문에 쓰지 않음 */
  --green: #47d45a;
  --green-deep: #0f3a1c;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.g { color: var(--green); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.section { padding: clamp(96px, 13vw, 176px) 0; position: relative; }
.kicker { font-size: 14px; font-weight: 600; color: var(--green); letter-spacing: 0.02em; }
.h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 700; margin-top: 18px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; margin-top: 24px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn-green { background: var(--green); color: #04140a; }
.btn-line { border-color: var(--line); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: scale(1.02); } .btn-line:hover { background: var(--bg-2); } .btn-green:hover { box-shadow: 0 0 0 6px rgba(71,212,90,.12), 0 8px 28px -8px rgba(71,212,90,.55); } }
.btn:active { transform: scale(0.98); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background-color .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 8, 6, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 15px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 12px 0; transition: color .2s var(--ease); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
@media (max-width: 960px) { .nav-links { display: none; } }

/* ---------- HERO: 소리 고리 ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grille { position: absolute; inset: auto 0 0; height: 45%; background: url("assets/grille.webp") center bottom / cover no-repeat; opacity: .22;
  mask-image: linear-gradient(transparent, #000 70%); -webkit-mask-image: linear-gradient(transparent, #000 70%); }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gutter); }
.hero h1 { font-size: clamp(44px, 7.6vw, 112px); font-weight: 700; letter-spacing: -0.045em; }
.hero-sub { font-size: clamp(17px, 1.7vw, 22px); color: var(--muted); margin-top: 22px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; z-index: 2; width: 1px; height: 56px; margin-left: -.5px; overflow: hidden; background: linear-gradient(rgba(238,243,240,0), rgba(238,243,240,.22)); transition: opacity .5s var(--ease); }
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: linear-gradient(rgba(71,212,90,0), var(--green)); animation: cue 2.4s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes cue { 0% { transform: translateY(-16px); } 70%, 100% { transform: translateY(56px); } }
.scroll-cue.gone { opacity: 0; }

/* ---------- STATEMENT: 스크롤 따라 켜지는 문장 ---------- */
.statement .big { font-size: clamp(36px, 6vw, 84px); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; max-width: 16ch; }
.statement .big span { opacity: .16; transition: opacity .35s var(--ease); }
.statement .big span.on { opacity: 1; }
.statement .big span.g { color: var(--green); }
.statement-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(56px, 7vw, 96px); align-items: end; }
.statement-body p { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.statement-body p + p { margin-top: 16px; }
.statement-body strong { color: var(--text); }
.facts { display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--green); font-weight: 600; }
.facts dd { margin: 0; text-align: right; }

/* ---------- FOUR MEANINGS ---------- */
.meanings .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.quote { font-size: clamp(56px, 8vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.meanings .lead strong { color: var(--green); font-weight: 600; }
.demo { border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: clamp(20px, 3vw, 36px); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tabs button {
  min-height: 48px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tabs button[aria-selected="true"] { background: var(--green); color: #04140a; border-color: var(--green); }
@media (hover: hover) and (pointer: fine) { .tabs button:not([aria-selected="true"]):hover { color: var(--text); border-color: #2c3b33; } }
.plot { margin-top: 24px; }
.plot svg { width: 100%; height: auto; display: block; }
.plot .lanes line { stroke: var(--line); }
.plot .lanes text { fill: var(--dim); font-size: 10px; letter-spacing: .12em; font-family: var(--font); font-weight: 600; }
#wave-dim rect { fill: #1e2a24; }
#wave-on rect { fill: var(--green); }
#pitch-dim path { fill: none; stroke: #2c3b33; stroke-width: 3; stroke-linecap: round; }
#pitch-on path { fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(71, 212, 90, .55)); }
#pitch-on circle { fill: var(--bg); stroke: var(--green); stroke-width: 2.5; }
#playhead { stroke: rgba(238, 243, 240, .55); stroke-width: 1.5; }
#marks path { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
#marks text { fill: var(--muted); font-size: 11px; font-family: var(--font); text-anchor: middle; }
#syl text { fill: var(--muted); font-size: 14px; font-family: var(--font); text-anchor: middle; }
#syl text.hot { fill: var(--text); font-weight: 700; }
.meters { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.meters li { font-size: 12.5px; color: var(--muted); }
.meters .seg { display: flex; gap: 3px; margin-top: 7px; }
.meters .seg i { flex: 1; height: 6px; border-radius: 2px; background: #1e2a24; transition: background-color .3s var(--ease); }
.meters .seg i.on { background: var(--green); }
.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.readout dt { font-size: 13px; color: var(--muted); }
.readout dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.readout .act { color: var(--green); }

/* ---------- PINNED DIAGRAM (세코어식) ---------- */
.pin { height: 320vh; position: relative; }
.pin-stage { position: sticky; top: 0; height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.pin-stage .wrap { width: 100%; }
.pin-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.build-tag { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.build-tag b { color: var(--green); }
.build-tag i { font-style: normal; font-weight: 700; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.pin-body { display: grid; grid-template-columns: 2.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(32px, 5vh, 64px); }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow .node rect { fill: var(--bg-2); stroke: #2a3831; stroke-width: 1.5; }
.flow .node.ek rect { fill: var(--green-deep); stroke: var(--green); }
.flow .node.out rect { fill: var(--green); stroke: var(--green); }
.flow .node text { fill: var(--text); font-family: var(--font); font-size: 26px; font-weight: 700; text-anchor: middle; }
.flow .node text.s { font-size: 17px; font-weight: 400; fill: var(--muted); }
.flow .node.ek text.s { fill: #bfe9c6; }
.flow .node.out text, .flow .node.out text.s { fill: #04140a; }
.flow .node { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transform-box: fill-box; }
.flow .node.on { opacity: 1; transform: none; }
.flow .wire { fill: none; stroke: #3a4a42; stroke-width: 2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.flow .wire.gw { stroke: var(--green); }
.flow .pulse { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 10 22; opacity: 0; }
.flow.done .pulse { opacity: 1; animation: run 1.2s linear infinite; }
@keyframes run { to { stroke-dashoffset: -64; } }
.flow .plus { fill: var(--dim); font-size: 26px; text-anchor: middle; font-family: var(--font); }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 22px 0; border-top: 1px solid var(--line); opacity: .28; transition: opacity .5s var(--ease); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li.on { opacity: 1; }
.points h3 { font-size: 21px; display: flex; gap: 12px; }
.points h3 span { color: var(--green); font-size: 15px; padding-top: 4px; }
.points p { color: var(--muted); margin-top: 8px; font-size: 16px; padding-left: 32px; }
.progress { height: 2px; background: var(--line); margin-top: clamp(32px, 5vh, 56px); }
.progress div { height: 100%; width: 0; background: var(--green); }

/* ---------- TECHNOLOGY ---------- */
.tech .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); }
.tech { padding-top: clamp(40px, 5vw, 72px); } /* 위 섹션과의 빈 공간 축소 */
.tech-photo { margin: 0; position: sticky; top: 104px; align-self: start; overflow: hidden; --tp: 0;
  -webkit-mask-image: linear-gradient(transparent 0, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 16%, #000 82%, transparent 100%); }
/* 스크롤 진행(--tp 0→1)에 따라 어둠에서 밝아지고 살짝 줌아웃 — 무대 조명이 켜지듯 */
.tech-photo img { width: 100%; transform: scale(calc(1.14 - .14 * var(--tp))); transform-origin: 50% 40%;
  filter: grayscale(1) contrast(1.08) brightness(calc(.25 + .75 * var(--tp))); will-change: transform, filter; }
.tech-list { margin-top: 48px; }
.tech-list div { padding: 26px 0; border-top: 1px solid var(--line); }
.tech-list h3 { font-size: 21px; color: var(--green); }
.tech-list p { color: var(--muted); margin-top: 8px; }
.score { margin-top: 56px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.score h3 { font-size: clamp(24px, 2.6vw, 34px); }
.bars { display: grid; gap: 22px; margin-top: 28px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.bar-row span { color: var(--muted); font-size: 15px; }
.bar-row strong { font-size: 26px; font-weight: 700; }
.bar-row .track { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: #16201b; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 99px; background: #4c5c54; width: 0; transition: width 1.2s var(--ease); }
.bar-row.ours .fill { background: var(--green); }
.bar-row.ours strong { color: var(--green); }
.score.on .fill { width: var(--w); }
.foot { font-size: 13px; color: var(--muted); margin-top: 22px; line-height: 1.55; }

/* ---------- WHERE IT WORKS: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(220px, auto) minmax(220px, auto); grid-auto-rows: auto; gap: 14px; margin-top: clamp(48px, 6vw, 80px); }
.bento article { border: 1px solid var(--line); border-radius: 20px; padding: 62px 28px 28px; background: var(--bg-2); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; transition: border-color .35s var(--ease); }

/* 위 여백 62px = 번호 자리 — 카드가 내용 높이로 줄어도(태블릿·모바일) 제목과 겹치지 않음 */
.bento article .n { position: absolute; top: 24px; left: 28px; color: var(--dim); font-weight: 600; font-size: 14px; }
.bento h3 { font-size: 22px; }
.bento p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.bento .core { grid-row: span 2; background: radial-gradient(circle at 70% 30%, rgba(71, 212, 90, .16), transparent 55%), var(--bg-2); border-color: #23412b; }
.bento .core h3 { font-size: clamp(28px, 3vw, 40px); }
.bento .core .tag { position: absolute; top: 20px; right: 20px; background: var(--green); color: #04140a; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; letter-spacing: .04em; }
.bento .wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: end; padding-top: 56px; }
.bento .wide p { margin-top: 0; }
.bento .core svg { position: absolute; top: 56px; left: 28px; right: 28px; width: calc(100% - 56px); opacity: .9; }

/* ---------- DEPLOYMENT: cloud → device 축 ---------- */
.axis { margin-top: clamp(56px, 7vw, 96px); position: relative; }
.axis-line { position: relative; height: 2px; background: linear-gradient(90deg, var(--green), #2a3831 55%, var(--green)); margin: 0 0 0; }
.axis-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.axis ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.axis li { position: relative; padding-top: 36px; }
.axis li::before { content: ""; position: absolute; top: -7px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.axis h3 { font-size: 22px; }
.axis p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.axis .for { color: var(--text); font-size: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- COLLAB ---------- */
.collab { padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collab .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.collab p { color: var(--muted); max-width: 34ch; }
.collab img { width: min(560px, 100%); opacity: .75; transition: opacity .3s var(--ease); }
@media (hover: hover) { .collab img:hover { opacity: 1; } }

/* ---------- CONTACT ---------- */
.contact { overflow: hidden; text-align: center; padding: clamp(56px, 6vw, 72px) 0 clamp(28px, 3vw, 36px); }
/* 마지막 장면: 어둠 속 스피커 그릴. 「Let's talk.」가 말해지면 음압이 구멍들을 지나간다 (main.js grille) */
#grille { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact > .wrap { position: relative; z-index: 1; }
.contact-stage { position: relative; }
.talk-actions { height: clamp(130px, 11vw, 150px); margin-top: 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.contact h2 { font-size: clamp(34px, 4.8vw, 70px); font-weight: 700; letter-spacing: -0.04em; max-width: 15ch; margin: 18px auto 0; }
.contact h2 .g { display: inline-block; font-size: 1.5em; margin-top: 8px; }
.btn-xl { min-height: 60px; padding: 0 34px; font-size: 18px; }
.contact .hero-actions { margin-top: 44px; }
.addr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; margin-top: clamp(28px, 3vw, 40px); padding-top: 32px; border-top: 1px solid var(--line); }
.addr dt { color: var(--green); font-weight: 600; font-size: 14px; }
.addr dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.addr a { color: var(--text); text-decoration: none; background: linear-gradient(var(--green), var(--green)) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s var(--ease); }
.addr a:hover, .addr a:focus-visible { background-size: 100% 1px; color: var(--green); }
.addr a.map { color: var(--muted); }
.addr a.map::after { content: " ↗"; opacity: 0; transition: opacity .25s var(--ease); }
.addr a.map:hover { color: var(--text); }
.addr a.map:hover::after { opacity: 1; }
footer { border-top: 1px solid var(--line); }
footer .foot-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .statement-body, .meanings .wrap, .tech .wrap, .pin-body { grid-template-columns: 1fr; }
  .pin { height: auto; }
  .pin-stage { position: static; height: auto; padding: clamp(96px, 13vw, 176px) 0; }
  .progress { display: none; }
  .tech-photo { position: static; max-height: 480px; }
  .tech-photo img { height: 480px; object-fit: cover; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(200px, auto); }
  .bento .wide { grid-auto-rows: auto; }
  /* 도입 방식: 가로 축 → 세로 타임라인(Cloud 위 → Device 아래, 점이 선에 꿰임). 2열·1열로 쌓이면 점이 선 없이 떠서 */
  .axis { padding-bottom: 34px; }
  .axis-line { display: none; }
  .axis-ends { display: block; margin-bottom: 14px; }
  .axis-ends span:last-child { position: absolute; left: 0; bottom: 0; }
  .axis ol { grid-template-columns: 1fr; row-gap: 0; position: relative; padding-left: 38px; }
  .axis ol::before { content: ""; position: absolute; left: 6px; top: 0; bottom: -10px; width: 2px; background: linear-gradient(180deg, var(--green), #2a3831 50%, var(--green)); }
  .axis li { padding: 0 0 40px; }
  .axis li:last-child { padding-bottom: 8px; }
  .axis li::before { top: 7px; left: -38px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .bento, .addr { grid-template-columns: 1fr; }
  .bento .core { grid-row: auto; min-height: 340px; }
  .bento .wide { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .meters { grid-template-columns: 1fr 1fr; row-gap: 14px; }

}
@media (prefers-reduced-motion: reduce) {
  .tech-photo { --tp: 1 !important; }
  .statement .big span { opacity: 1; }
  .plot.draw .contour, .flow.done .pulse { animation: none; }
  .flow .node, .points li { transition: none; }
  .bar-row .fill { transition: none; }
}

/* ---------- API: 콘솔 + 대화 카드 (번호 나열 반복 제거, 2026-11-28) ---------- */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.api-grid .sub { font-size: clamp(20px, 2vw, 26px); font-weight: 600; margin-top: 20px; }
.api-grid .lead { font-size: 17px; }
.why-t { font-size: 15px; color: var(--green); font-weight: 600; margin-top: 48px; }
.why2 { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.why2 li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.why2 svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.why2 h4 { margin: 0; font-size: 17px; }
.why2 p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.console { position: sticky; top: 110px; border: 1px solid var(--line); border-radius: 18px; background: #070b09; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(71, 212, 90, .25); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #1f2b25; }
.console-bar b { margin-left: 10px; font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.log { list-style: none; margin: 0; padding: 14px 22px 22px; }
.log li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px dashed #18231d; opacity: .3; transition: opacity .5s var(--ease); }
.log li:last-child { border-bottom: 0; }
.log .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #2c3b33; transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.log .lt { font-size: 18px; font-weight: 600; }
.log em { font-style: normal; font-size: 13px; color: var(--muted); }
.console.on .log li { opacity: 1; }
.console.on .log .dot { background: var(--green); border-color: var(--green); }
.console.on .log li.fin .dot { box-shadow: 0 0 0 6px rgba(71, 212, 90, .18); }
.console.on .log li.fin .lt { color: var(--green); }
.console .log li:nth-child(2) { transition-delay: .5s; } .console .log li:nth-child(2) .dot { transition-delay: .5s; }
.console .log li:nth-child(3) { transition-delay: 1.2s; } .console .log li:nth-child(3) .dot { transition-delay: 1.2s; }
.console .log li:nth-child(4) { transition-delay: 1.7s; } .console .log li:nth-child(4) .dot, .console .log li:nth-child(4) .lt { transition-delay: 1.7s; }
.mini-wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.mini-wave i, .vw i { display: block; width: 3px; border-radius: 2px; background: var(--green); height: 30%; }
.mini-wave i:nth-child(3n) { height: 70%; } .mini-wave i:nth-child(4n+1) { height: 45%; } .mini-wave i:nth-child(5n+2) { height: 95%; }
.console.on .mini-wave i { animation: eq .9s ease-in-out infinite alternate; }
.mini-wave i:nth-child(2n) { animation-delay: -.3s !important; } .mini-wave i:nth-child(3n) { animation-delay: -.6s !important; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.shows2 { margin-top: clamp(80px, 10vw, 140px); }
.shows2-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.shows2-head .why-t { margin-top: 0; }
.ex { font-size: 13px; color: var(--muted); }
.chats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.chat { border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--bg-2); display: flex; flex-direction: column; }
.chat h4 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.chat .d { color: var(--muted); font-size: 15px; margin-top: 8px; }
.convo { margin-top: auto; padding-top: 26px; display: grid; gap: 10px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.msg.you { justify-self: start; background: #16201b; border-bottom-left-radius: 4px; display: flex; gap: 12px; align-items: center; }
.msg.ai { justify-self: end; background: var(--green); color: #04140a; font-weight: 500; border-bottom-right-radius: 4px; }
.vw { display: inline-flex; align-items: center; gap: 2px; height: 18px; flex: none; }
.vw i:nth-child(odd) { height: 60%; } .vw i:nth-child(3n) { height: 100%; } .vw i:nth-child(4n) { height: 35%; }
.emo { justify-self: start; margin-left: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--green); border: 1px solid rgba(71, 212, 90, .45); border-radius: 99px; padding: 3px 10px; opacity: 0; transform: scale(.9); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.emo::before { content: "● "; font-size: 9px; vertical-align: 1px; }
.emo.warn { color: #f0c46a; border-color: rgba(240, 196, 106, .5); }
.chat.on .msg.you { opacity: 1; transform: none; }
.chat.on .emo { opacity: 1; transform: none; transition-delay: .6s; }
.chat.on .msg.ai { opacity: 1; transform: none; transition-delay: 1.1s; }
.chat.on .vw i { animation: eq .5s ease-in-out 3 alternate; }
.fx-touch .chat.on .emo { transition-delay: .3s; }  /* 휴대폰·태블릿: 말풍선 → 태그 → 답장 간격을 짧게(PC .6s/1.1s) */
.fx-touch .chat.on .msg.ai { transition-delay: .6s; }

@media (max-width: 1000px) {
  .api-grid { grid-template-columns: 1fr; }
  .console { position: static; }
}
@media (max-width: 640px) {
  .why2, .chats { grid-template-columns: 1fr; }
  .log .lt { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .emo, .log li, .log .dot { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mini-wave i, .vw i { animation: none !important; }
}

/* ---------- 등장 애니메이션 (전 구간) + 강조 구절 (2026-11-28) ---------- */
[data-fx] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
[data-fx="title"] { transform: translate3d(0, 24px, 0); transition-duration: .9s, .9s; }
[data-fx="media"] { transform: scale(.97); }
[data-fx].in { opacity: 1; transform: none; }

/* 꼭 읽어야 할 구절: 회색 → 왼쪽부터 초록으로 칠해지고 한 번 빛남 */
.hl {
  background-image: linear-gradient(90deg, var(--green) 0 50%, #33433b 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-position 1.3s var(--ease) var(--hl-d, .45s);
}
.in .hl, .hl.in { background-position: 0 0; animation: hl-glow 1.6s ease var(--hl-g, 1.4s) 1 both; }
@keyframes hl-glow { 0%, 100% { filter: none; } 45% { filter: drop-shadow(0 0 16px rgba(71, 212, 90, .6)); } }
/* 휴대폰·태블릿(main.js가 html에 .fx-touch): 화면 가장자리에 닿는 순간 시작, 짧고 작게(12px·0.6초). 강조 구절은 부모가 아니라 구절 자신이 보일 때(.hl.in) 칠함. PC 무관 */
.fx-touch [data-fx], .fx-touch [data-fx="title"] { transform: translate3d(0, 12px, 0); transition-duration: .6s, .6s; }
.fx-touch [data-fx="media"] { transform: scale(.985); }
.fx-touch [data-fx].in { transform: none; }
.fx-touch .in .hl { background-position: 100% 0; animation: none; }
.fx-touch .hl { --hl-d: .1s; --hl-g: .8s; transition-duration: .9s; } /* 휴대폰·태블릿: 칠함 1.3초 → 0.9초(칠하는 동안 글자가 위로 많이 올라가지 않게) */
.fx-touch .hl.in { background-position: 0 0; animation: hl-glow 1.6s ease var(--hl-g, 1s) 1 both; }

@media (prefers-reduced-motion: reduce) {
  [data-fx] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hl { background-position: 0 0 !important; transition: none !important; animation: none !important; }
}

/* 소리 파문 커서 (2026-11-28) — 기본 커서는 그대로, 지나간 자리에 옅은 파문 */
#ripples { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; }
@media (hover: none), (prefers-reduced-motion: reduce) { #ripples { display: none; } .scroll-cue span { animation: none; } }

@media (max-width: 640px) { .talk-actions { height: auto; padding: 36px 0; } }

/* 도입 방식만 초점 호버 (2026-11-28 사용자 범위): 올린 항목은 그대로, 나머지는 살짝만 물러남 */
.axis li { transition: opacity .35s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .axis ol:has(li:hover) li:not(:hover) { opacity: .6; }
  .axis li:hover::before { background: var(--green); box-shadow: 0 0 0 6px rgba(71,212,90,.15), 0 0 18px rgba(71,212,90,.55); }
}
/* 적용 분야 카드: 테두리만 옅은 초록 (이전 효과 복원) */
@media (hover: hover) { .bento article:hover { border-color: rgba(71,212,90,.4); } }

/* 흐름도: 휴대폰(≤640)은 같은 상자·곡선을 세로로 — 그림이 덜 줄어 글자가 읽힘(PC 가로형 그대로) */
.flow-v { display: none; }
@media (max-width: 640px) {
  .flow-h { display: none; }
  .flow-v { display: block; max-width: 420px; margin: 0 auto; }
  .flow-v .node text { font-size: 19px; }
  .flow-v .node text.s { font-size: 15px; }
  .flow-v .plus { font-size: 20px; }
  .flow-v .node text.m { font-size: 15px; }
}

/* 흐름도 색 보정: Voice input 상자 테두리에 초록 기운, 회색 선·STT 테두리를 한 단계 밝힘. Emotion Kore(주인공) 대비는 유지 */
.flow .node[data-n="voice"] rect:first-of-type { fill: #0c1811; stroke: #3d6b4a; }
.flow .node[data-n="voice"] rect:not(:first-of-type), .flow .node[data-n="voice"] path { stroke: var(--text); filter: none; } /* 마이크 = 흰색 한 가지(윗부분·받침대 같게) */
.flow .node[data-n="stt"] rect { stroke: #3e4f46; }
.flow .wire { stroke: #5a6b62; }
.flow .wire.gw { stroke: var(--green); }

/* 맨 아래 줄 「Company info」: 누르면 이메일·본사·연구소 주소가 펼쳐짐(연락처에서 주소 칸을 뺀 대신) */
footer img { height: 12px; width: auto; }
.foot-r { display: flex; align-items: center; gap: 20px; }
/* 휴대폰: 맨 아래 로고는 뺌(위 메뉴가 고정이라 로고가 늘 보이고, 넣으면 로고 혼자 윗줄 + 버튼·저작권 양끝으로 ㄴ자) → 버튼 왼쪽 · 저작권 오른쪽 한 줄. PC는 로고 유지(사용자 2026-11-28 「비율이 맞다」) */
@media (max-width: 640px) { footer .foot-line > img { display: none; } .foot-r { flex: 1; justify-content: space-between; gap: 16px; } }
/* 회사 정보: 테두리 버튼 → 글자 링크 모양(사용자 2026-11-28 「버튼 없는 링크」). 저작권과 같은 14px·회색, 마우스 닿으면 밝아지며 밑줄. 펼침 표시 꺾쇠만 작게. 요소는 펼침 단추(button) 그대로(화면 낭독기에 「펼침」으로 읽힘) */
.info-btn { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 0; min-height: 36px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: underline 1px transparent; text-underline-offset: 4px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
.info-btn::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.info-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.info-btn[aria-expanded="true"] { color: var(--text); }
@media (hover: hover) { .info-btn:hover { color: var(--text); text-decoration-color: currentColor; } }
footer .company { padding-bottom: 32px; }
footer .company .addr { margin-top: 0; padding-top: 24px; }
@media (max-width: 640px) { .info-btn { min-height: 44px; } }
/* 마지막 장면: 맨 아래로 내렸을 때 연락처 + 맨 아래 줄이 화면을 꽉 채움(앞 구간이 끼지 않게). 내용은 세로 가운데 */
.contact { min-height: calc(100dvh - var(--foot-h, 80px)); display: flex; flex-direction: column; justify-content: center; }
.contact > .wrap { width: 100%; }
.contact { padding-top: 96px; padding-bottom: 32px; } /* 위 72px은 메뉴가 덮으므로 위 여백을 더 줘서 눈에 보이는 영역 가운데에 오게 */

/* 언어 전환(EN·KO·中文): PC·휴대폰 공통 펼침 메뉴. 메뉴 글이 숨는 960px 이하에서도 버튼 옆에 남음 */
.nav-r { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .02em; cursor: pointer; border-radius: 99px; transition: color .2s var(--ease); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.lang[open] summary { color: var(--text); }
.lang[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) { .lang summary:hover { color: var(--text); } .lang a:hover { background: #121b16; color: var(--text); } }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 156px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); }
.lang a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 15px; }
.lang a[aria-current] { color: var(--text); }
.lang a[aria-current]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
@media (max-width: 400px) { .nav-logo img { height: 13px; } .nav-r { gap: 4px; } .nav .btn { padding: 0 16px; } }

/* 중국어(간체) 판: 한자는 Pretendard에 없어 PingFang SC·Microsoft YaHei로, 제목의 좁힌 자간은 0(한자가 붙어 보임) */
html:lang(zh) { --font: "Pretendard Variable", Pretendard, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:lang(zh) :is(body, h1, h2, h3, .hero h1, .statement .big, .quote, .contact h2) { letter-spacing: 0; }
/* 중국어는 띄어쓰기가 없어 keep-all이면 문장부호에서만 줄이 바뀌어 화면 밖으로 넘침 → 글자 단위 줄바꿈(문장부호 금칙은 strict) */
html:lang(zh) body { word-break: normal; line-break: strict; }

/* 낮은 노트북(높이 880 이하, 1366×768·1280×720·1536×864 등): 작동 방식 고정 구간의 제목이 위 메뉴에 가림 → 제목 크기는 그대로, 메뉴 높이만큼 위를 비우고 흐름도 그림·항목 간격만 줄임. 높이 640 이하는 고정을 풂 */
@media (min-width: 1001px) and (max-height: 880px) {
  .pin-stage { padding-top: 72px; }
  .pin-body { margin-top: clamp(16px, 3vh, 40px); }
  .flow .flow-h { max-height: calc(100dvh - 400px); }
  .points li { padding: 10px 0; }
  .points p { margin-top: 4px; }
}
@media (min-width: 1001px) and (max-height: 640px) {
  .pin { height: auto; }
  .pin-stage { position: static; height: auto; padding: 120px 0 96px; }
}

/* 큰 인용문 「“Okay, got it.”」: 둘째 줄은 오른쪽 끝 = 이 블록 글(제목·본문 줄)의 가장 오른쪽 끝(main.js가 padding-right로 맞춤, 사용자 2026-11-28) */
.quote .q2 { display: block; text-align: right; } /* 둘째 줄만(첫 줄 「“Okay,」는 왼쪽) */
/* PC: 120px 덩어리가 빠른 곡선으로 한꺼번에 뜨던 것 → 고르게 1.2초. 휴대폰·태블릿(.fx-touch)은 그대로 */
html:not(.fx-touch) .quote[data-fx] { transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s); }

/* 보조 버튼(첫 화면 「See how it works」): 테두리 #1b2620은 바탕 대비 1.29:1로 묻힘 → #5a6b62(3.56:1, 흐름도 연결선과 같은 색). 마디아 COL-C130(주 버튼 옆 보조 버튼도 누를 수 있게 보여야) */
.btn-line { border-color: #5a6b62; }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { border-color: #7d8e86; } }

/* 첫 화면 제목 — 한국어·중국어(두 줄이 span.l1·l2): PC·태블릿에서 첫 줄 왼쪽·둘째 줄 오른쪽으로 엇갈려, 두 줄 전체 폭 = 영어 제목 폭(6.6em)
   → 영어처럼 원을 살짝 넘음. 글자 크기·버튼 위치 그대로(사용자 2026-11-28). 휴대폰은 가운데 그대로 */
.hero h1 .l1, .hero h1 .l2 { display: block; }
@media (min-width: 641px) { /* PC·태블릿: 한국어·중국어만(영어 PC는 가운데 그대로) */
  html:not(:lang(en)) .hero h1 { width: 6.6em; max-width: 100%; margin-left: auto; margin-right: auto; }
  html:not(:lang(en)) .hero h1 .l1 { text-align: left; }
  html:not(:lang(en)) .hero h1 .l2 { text-align: right; }
}
@media (max-width: 640px) { /* 휴대폰: 세 언어 모두 엇갈림, 폭 = 화면 안쪽 전체(사용자 2026-11-28) */
  .hero h1 { width: calc(100vw - 2 * var(--gutter)); }
  .hero h1 .l1 { text-align: left; }
  .hero h1 .l2 { text-align: right; }
}
/* 휴대폰 첫 화면: 원 = 제목 + 설명을 감쌈, 버튼만 원 아래(main.js heroCenter가 원 중심·버튼 자리를 잼) — 원 선이 버튼·설명을 가로지르던 것(사용자 2026-11-28).
   설명은 「Emotion Kore」 / 설명 두 줄(콜론 숨김) — 원 안에 들어가게 폭을 좁힘 */
@media (max-width: 640px) {
  .hero .hero-sub strong { display: block; }
  .hero .hero-sub .sep { display: none; }
  .hero .hero-sub { max-width: 15em; margin-left: auto; margin-right: auto; }
}
/* 작은 휴대폰(≤400): 첫 화면 두 버튼이 한 줄에 안 들어가 위아래로 쌓이던 것(360에서 127+12+181=320 = 안쪽 폭 딱 맞아 넘침) → 좌우 여백만 28→22px. 높이·글자 그대로 */
@media (max-width: 400px) { .hero .hero-actions .btn { padding: 0 22px; } }

/* ---------- 부드러운 전환(사용자 2026-11-28 「거슬리지 않게」) ---------- */
/* 메뉴로 이동해 도착한 구역은 초점만 받고 테두리는 안 그림 */
main section[tabindex="-1"]:focus { outline: none; }
/* PC 작동 방식(고정 구간): 이동하면 고정 화면 맨 위에 정확히 도착(위 80px 비움을 빼서 앞 구역이 안 비침) */
@media (min-width: 1001px) { .pin { scroll-margin-top: -80px; } }
@media (prefers-reduced-motion: no-preference) {
  /* 언어 메뉴: 0.18초 살짝 내려오며 나타남 */
  .lang[open] ul { animation: soft-drop .18s var(--ease) both; }
  /* 회사 정보: 펼칠 때 0.35초 흐리게→또렷 */
  #company-info:not([hidden]) { animation: soft-fade .35s var(--ease) both; }
  /* 언어 바꿀 때(EN·KO·中文 다른 페이지): 화면이 깜빡 넘어가지 않고 짧게 겹쳐 바뀜(지원 브라우저만, 나머지는 그대로) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
}
@keyframes soft-drop { from { opacity: 0; transform: translateY(-4px); } }
@keyframes soft-fade { from { opacity: 0; transform: translateY(6px); } }
