:root {
  color-scheme: dark;
  --ink: #f5f7fb;
  --muted: #9ca4b8;
  --line: rgba(255, 255, 255, 0.1);
  --panel: #131722;
  --panel-soft: #171c28;
  --bg: #090b11;
  --cyan: #3de5e0;
  --cyan-soft: rgba(61, 229, 224, 0.13);
  --lime: #b7f34a;
  --red: #ff776f;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, label:focus-within, summary:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.topbar { height: 80px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(32px, calc((100vw - var(--max)) / 2)); position: sticky; top: 0; z-index: 20; background: rgba(9, 11, 17, 0.86); backdrop-filter: blur(18px); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; border: 1px solid rgba(61, 229, 224, .42); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(61,229,224,.2), transparent 65%); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; display: block; position: absolute; background: var(--cyan); border-radius: 10px; transform-origin: center; }
.brand-mark { position: relative; }
.brand-mark::before { width: 3px; height: 20px; transform: rotate(45deg); }
.brand-mark::after { width: 3px; height: 20px; transform: rotate(-45deg); }
.brand-mark span { width: 5px; height: 5px; box-shadow: 0 0 12px var(--cyan); }
.brand b { letter-spacing: .16em; font-size: 14px; display: block; }
.brand small { color: var(--muted); letter-spacing: .12em; font-size: 8px; display: block; margin-top: 2px; }
.system-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; letter-spacing: .03em; }
.system-state strong { border-left: 1px solid var(--line); padding-left: 12px; color: #d8dce6; font-weight: 500; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(183, 243, 74, .65); }

.shell { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.hero { min-height: 660px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 56px; padding: 56px 0 70px; }
.eyebrow { color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .2em; margin: 0 0 18px; }
.hero-copy h1 { font: 700 clamp(40px, 5vw, 66px)/1.14 Pretendard, "Noto Sans KR", system-ui, sans-serif; letter-spacing: -.055em; margin: 0; }
.hero-copy h1 em { color: var(--cyan); font-style: normal; }
.hero-copy > p:not(.eyebrow):not(.compatibility) { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 26px 0 34px; max-width: 490px; }
.question-controls { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.listen-button { border: 0; min-width: 236px; padding: 15px 22px; border-radius: 5px; background: var(--cyan); color: #061313; display: flex; align-items: center; gap: 15px; cursor: pointer; text-align: left; transition: transform .2s, filter .2s; }
.listen-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.listen-button:disabled { opacity: .7; cursor: wait; transform: none; }
.listen-button b, .listen-button small { display: block; }
.listen-button b { font-size: 15px; }
.listen-button small { font-size: 10px; opacity: .66; margin-top: 2px; }
.mic-icon { width: 17px; height: 24px; border: 2px solid currentColor; border-radius: 9px; position: relative; }
.mic-icon::after { content: ""; position: absolute; width: 25px; height: 14px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 14px 14px; left: -6px; top: 12px; }
.mic-icon::before { content: ""; position: absolute; height: 6px; width: 2px; background: currentColor; left: 6px; top: 25px; }
.upload-button, .stop-button { border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 5px; padding: 0 17px; min-height: 58px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #d9dee9; font-size: 13px; transition: border-color .2s, background .2s; }
.upload-button:hover, .stop-button:hover { border-color: rgba(61,229,224,.5); background: var(--cyan-soft); }
.stop-button { border-color: rgba(255,119,111,.35); color: #ffaaa5; }
.compatibility { color: #829189; font-size: 11px; margin: 15px 0 0; }
.compatibility::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin-right: 7px; vertical-align: 1px; }
.compatibility.unsupported { color: #d6a567; }
.compatibility.unsupported::before { background: #e3a84e; }

.hologram-wrap { position: relative; display: flex; align-items: center; flex-direction: column; }
.stage { width: min(100%, 510px); aspect-ratio: 1; position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 55%, rgba(28, 192, 186, .13), transparent 49%), linear-gradient(rgba(61,229,224,.025), rgba(61,229,224,.025)); }
.stage::before { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(61,229,224,.13); border-radius: 50%; box-shadow: inset 0 0 60px rgba(61,229,224,.04), 0 0 80px rgba(61,229,224,.03); }
.stage::after { content: "HOLOGRAPHIC OUTPUT  •  02D AVATAR  •  SYNC READY"; position: absolute; bottom: 10%; letter-spacing: .18em; font-size: 7px; color: rgba(61,229,224,.48); }
.orbit { position: absolute; border: 1px dashed rgba(61,229,224,.16); border-radius: 50%; }
.orbit-a { inset: 17%; animation: spin 28s linear infinite; }
.orbit-b { inset: 26%; border-style: solid; opacity: .6; animation: spin 18s linear reverse infinite; }
.orbit-a::before, .orbit-b::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); position: absolute; top: 14%; left: 10%; }
.scan-lines { position: absolute; inset: 17%; opacity: .14; background: repeating-linear-gradient(to bottom, transparent 0 5px, var(--cyan) 6px); mask-image: radial-gradient(circle, #000 30%, transparent 72%); animation: scan 8s linear infinite; }
.avatar { width: 190px; height: 272px; position: relative; filter: drop-shadow(0 0 20px rgba(61,229,224,.18)); animation: hover 4s ease-in-out infinite; z-index: 2; }
.antenna { width: 2px; height: 31px; background: linear-gradient(transparent, var(--cyan)); position: absolute; top: 5px; left: 94px; }
.antenna i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); position: absolute; top: -2px; left: -3px; }
.head { width: 145px; height: 126px; background: linear-gradient(145deg, #e6fdfb, #7bb4b5); border: 2px solid #b8fffb; border-radius: 48% 48% 43% 43%; position: absolute; left: 22px; top: 38px; box-shadow: inset 0 -18px 30px rgba(17,67,70,.3); }
.head::after { content: ""; position: absolute; inset: 23px 18px 25px; border-radius: 35px; background: #0b1a22; border: 1px solid rgba(61,229,224,.55); box-shadow: inset 0 0 23px rgba(61,229,224,.12); }
.eye { position: absolute; z-index: 2; width: 10px; height: 15px; border-radius: 50%; background: var(--cyan); top: 54px; box-shadow: 0 0 10px rgba(61,229,224,.8); animation: blink 5s infinite; }
.eye.left { left: 48px; }.eye.right { right: 48px; }
.mouth { position: absolute; z-index: 2; width: 28px; height: 3px; background: var(--cyan); border-radius: 4px; left: 56px; top: 83px; box-shadow: 0 0 8px rgba(61,229,224,.65); }
.neck { position: absolute; width: 48px; height: 29px; border: 2px solid rgba(143,236,232,.65); border-top: 0; left: 71px; top: 161px; }
.body { position: absolute; width: 172px; height: 98px; left: 9px; top: 185px; background: linear-gradient(145deg, rgba(186,252,248,.9), rgba(48,111,115,.7)); clip-path: polygon(22% 0, 78% 0, 100% 42%, 87% 100%, 13% 100%, 0 42%); border-radius: 20px; }
.body::before { content: ""; position: absolute; inset: 16px 25px 0; background: #102830; clip-path: polygon(20% 0, 80% 0, 100% 45%, 87% 100%, 13% 100%, 0 45%); }
.core { position: absolute; z-index: 2; width: 31px; height: 31px; border: 1px solid var(--cyan); transform: rotate(45deg); left: 70px; top: 28px; box-shadow: inset 0 0 15px rgba(61,229,224,.45), 0 0 16px rgba(61,229,224,.25); }
.sound-wave { position: absolute; bottom: 12%; display: flex; gap: 4px; height: 30px; align-items: center; opacity: 0; }
.sound-wave i { display: block; width: 2px; height: 8px; background: var(--cyan); box-shadow: 0 0 5px var(--cyan); }
.stage[data-state="speaking"] .mouth { animation: speak .2s infinite alternate; transform-origin: center; }
.stage[data-state="speaking"] .sound-wave { opacity: 1; }
.stage[data-state="speaking"] .sound-wave i { animation: wave .5s ease-in-out infinite alternate; }
.stage[data-state="speaking"] .sound-wave i:nth-child(2), .stage[data-state="speaking"] .sound-wave i:nth-child(4) { animation-delay: .12s; }
.stage[data-state="speaking"] .sound-wave i:nth-child(3) { animation-delay: .23s; }
.stage[data-state="listening"]::before, .stage[data-state="decoding"]::before { animation: listenPulse 1.4s infinite; }
.stage[data-motion="1"] .avatar { animation-duration: 2.7s; transform-origin: bottom; }
.stage[data-motion="2"] .avatar { animation-name: nod; animation-duration: 2.8s; }
.stage-caption { text-align: center; margin-top: -21px; z-index: 4; min-height: 80px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: #141b22; border: 1px solid rgba(61,229,224,.22); border-radius: 30px; padding: 8px 14px; color: #b8eeea; font-size: 11px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.stage-caption p { max-width: 450px; min-height: 42px; color: #c2c8d4; font-size: 13px; line-height: 1.6; margin: 12px auto 0; }

.quick-section, .result-section, .log-section, .faq-section { padding: 74px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; gap: 30px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .lab-copy h2 { font: 700 28px/1.3 Pretendard, "Noto Sans KR", system-ui, sans-serif; letter-spacing: -.035em; margin: 0; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.quick-grid button { min-height: 150px; padding: 19px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); text-align: left; cursor: pointer; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, background .2s; }
.quick-grid button:hover { border-color: rgba(61,229,224,.42); transform: translateY(-4px); background: #171e28; }
.quick-grid span { color: var(--cyan); font-size: 10px; letter-spacing: .15em; }
.quick-grid b { font: 600 14px/1.55 Pretendard, "Noto Sans KR", system-ui, sans-serif; margin: 15px 0; flex: 1; }
.quick-grid i { font-style: normal; color: var(--muted); align-self: flex-end; transition: transform .2s; }
.quick-grid button:hover i { color: var(--cyan); transform: translateX(3px); }

.result-section { padding-top: 0; border-top: 0; }
.result-card { border: 1px solid var(--line); background: linear-gradient(120deg, #111620, #0e121a); border-radius: 5px; padding: 28px 30px; position: relative; overflow: hidden; }
.result-card::before { content: ""; position: absolute; height: 2px; inset: 0 100% auto 0; background: var(--cyan); transition: inset .5s ease; }
.has-result .result-card::before { inset-right: 0; }
.result-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 19px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.result-state { padding: 5px 9px; border: 1px solid var(--line); border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; }
.result-state.success { color: var(--cyan); border-color: rgba(61,229,224,.3); background: var(--cyan-soft); }
.result-state.rejected { color: #ffaaa5; border-color: rgba(255,119,111,.3); background: rgba(255,119,111,.07); }
.transcript-block { padding: 24px 0; display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: baseline; }
.transcript-block span, .match-block span { color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.transcript-block p { margin: 0; font: 600 20px/1.5 Pretendard, "Noto Sans KR", system-ui, sans-serif; }
.match-block { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.match-block > div { padding: 16px; background: #11151e; min-width: 0; }
.match-block span, .match-block strong { display: block; }
.match-block strong { font-size: 12px; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alternatives { padding-top: 15px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.alternatives i { font-style: normal; border: 1px solid var(--line); border-radius: 15px; padding: 5px 9px; }

.lab-section { margin: 0 calc((var(--max) - 100vw) / 2 - 32px); padding: 86px max(32px, calc((100vw - var(--max)) / 2)); background: #eef0ec; color: #0d1014; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.lab-copy .eyebrow { color: #128984; margin-bottom: 13px; }
.lab-copy h2 { font-size: 35px; }
.lab-copy > p:not(.eyebrow) { color: #626b6d; font: 13px/1.75 Pretendard, "Noto Sans KR", system-ui, sans-serif; max-width: 400px; margin: 19px 0 28px; }
.secondary-button { border: 0; border-radius: 3px; background: #12171b; color: white; padding: 14px 18px; min-width: 185px; display: flex; justify-content: space-between; cursor: pointer; font-size: 12px; }
.secondary-button:hover { background: #1b2c2c; }
.secondary-button:disabled { opacity: .55; cursor: wait; }
.validation-panel { border: 1px solid #cdd3ce; background: rgba(255,255,255,.5); padding: 28px; }
.validation-score { display: flex; gap: 25px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid #d4d9d4; }
.score-ring { --score: 0deg; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(#169f99 var(--score), #d5dbd6 var(--score)); display: grid; place-content: center; text-align: center; position: relative; }
.score-ring::before { content: ""; background: #f5f6f3; border-radius: 50%; position: absolute; inset: 7px; }
.score-ring strong, .score-ring span { z-index: 1; }
.score-ring strong { font-size: 25px; }.score-ring span { font-size: 8px; color: #707977; margin-top: 2px; }
.validation-score > div:last-child p { color: #737c7b; font-size: 10px; margin: 0 0 5px; }.validation-score h3 { font-size: 21px; margin: 0 0 7px; }.validation-score > div:last-child span { color: #737c7b; font-size: 10px; }
.validation-bars { padding-top: 22px; display: grid; gap: 15px; }
.validation-bars > div { display: grid; grid-template-columns: 90px 1fr 55px; gap: 12px; align-items: center; font-size: 10px; }
.validation-bars strong { text-align: right; }
progress { width: 100%; height: 5px; appearance: none; border: 0; background: #d8ded9; }
progress::-webkit-progress-bar { background: #d8ded9; } progress::-webkit-progress-value { background: #159b95; transition: width .2s; } progress::-moz-progress-bar { background: #159b95; }

.log-section { padding-bottom: 40px; }
.text-button { background: transparent; border: 0; color: var(--muted); font-size: 11px; text-decoration: underline; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.log-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 840px; background: #0e1219; font-size: 11px; }
th { padding: 12px 16px; background: #151a23; text-align: left; color: #778093; font-weight: 500; letter-spacing: .04em; }
td { padding: 15px 16px; border-top: 1px solid var(--line); color: #c3c9d5; }
td strong, td small { display: block; } td small { color: #697285; margin-top: 4px; font-size: 9px; } td b { color: #e1e6ee; font-weight: 600; }
.empty-row td { color: #697285; text-align: center; padding: 34px; }
.table-state { display: inline-block; border-radius: 15px; padding: 4px 8px; font-size: 9px; }
.table-state.matched { color: var(--cyan); background: var(--cyan-soft); }.table-state.rejected { color: #ffaaa5; background: rgba(255,119,111,.08); }

.faq-section { padding-bottom: 90px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: grid; grid-template-columns: 55px 1fr 20px; align-items: center; min-height: 66px; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary > span { color: var(--cyan); font-size: 9px; letter-spacing: .06em; }
summary > b { font: 500 13px/1.5 Pretendard, "Noto Sans KR", system-ui, sans-serif; }
summary > i { width: 11px; height: 11px; position: relative; }
summary > i::before, summary > i::after { content: ""; position: absolute; background: #727b8d; }
summary > i::before { height: 1px; width: 11px; left: 0; top: 5px; } summary > i::after { width: 1px; height: 11px; top: 0; left: 5px; transition: transform .2s; }
details[open] summary > i::after { transform: rotate(90deg); }
details > div { padding: 0 25px 21px 55px; }
details > div p { color: #b6bdca; font: 12px/1.7 Pretendard, "Noto Sans KR", system-ui, sans-serif; margin: 0 0 7px; }
details > div small { color: #60697a; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

footer { min-height: 82px; border-top: 1px solid var(--line); padding: 0 max(32px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: #5f6776; font-size: 9px; letter-spacing: .08em; }
footer p { margin: 0; } footer span:last-child { text-align: right; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #f1f2ee; color: #13171c; border-left: 3px solid var(--cyan); box-shadow: 0 12px 35px rgba(0,0,0,.35); padding: 13px 17px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(92vw, 520px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast[data-tone="warn"] { border-color: var(--red); }.toast[data-tone="success"] { border-color: var(--lime); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 50% { transform: translateY(9px); } }
@keyframes hover { 50% { transform: translateY(-8px); } }
@keyframes nod { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-7px) rotate(2deg); } 65% { transform: translateY(-2px) rotate(-1deg); } }
@keyframes blink { 0%, 45%, 49%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.08); } }
@keyframes speak { to { height: 11px; border-radius: 50%; transform: scaleX(.65); } }
@keyframes wave { to { height: 25px; } }
@keyframes listenPulse { 50% { box-shadow: inset 0 0 70px rgba(61,229,224,.15), 0 0 60px rgba(61,229,224,.15); border-color: rgba(61,229,224,.48); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 20px; min-height: 600px; }
  .hero-copy h1 { font-size: 44px; }
  .stage { width: 430px; max-width: 100%; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid button:nth-child(n+4) { min-height: 115px; }
  .match-block { grid-template-columns: 1fr 1fr; }
  .lab-section { gap: 35px; }
}

@media (max-width: 720px) {
  .topbar { height: 66px; padding: 0 20px; }.system-state span:not(.pulse-dot) { display: none; }.system-state strong { border: 0; padding: 0; }
  .shell { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; text-align: center; }
  .hero-copy h1 { font-size: clamp(36px, 10vw, 49px); }.hero-copy > p:not(.eyebrow):not(.compatibility) { margin-left: auto; margin-right: auto; }
  .question-controls { justify-content: center; }.compatibility { text-align: center; }
  .hologram-wrap { margin-top: -25px; }.stage { width: min(100%, 430px); }
  .quick-section, .result-section, .log-section, .faq-section { padding-top: 56px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }.quick-grid button { min-height: 125px; }
  .section-heading { align-items: flex-start; }.section-heading > span { display: none; }
  .transcript-block { grid-template-columns: 1fr; gap: 8px; }.transcript-block p { font-size: 16px; }.result-card { padding: 22px 18px; }
  .lab-section { margin-left: -20px; margin-right: -20px; padding: 64px 20px; grid-template-columns: 1fr; gap: 35px; }
  .faq-grid { grid-template-columns: 1fr; }
  footer { padding: 22px 20px; grid-template-columns: 1fr; text-align: center; gap: 7px; } footer span:last-child { text-align: center; }
}

@media (max-width: 440px) {
  .listen-button { width: 100%; justify-content: center; }.upload-button, .stop-button { flex: 1; justify-content: center; }
  .quick-grid { grid-template-columns: 1fr; }.quick-grid button, .quick-grid button:nth-child(n+4) { min-height: 102px; }
  .quick-grid b { margin: 8px 0; }.match-block { grid-template-columns: 1fr; }
  .result-topline { align-items: flex-start; gap: 12px; }.result-topline > span:last-child { text-align: right; }
  .validation-score { gap: 14px; }.score-ring { width: 92px; height: 92px; }.validation-bars > div { grid-template-columns: 75px 1fr 45px; }
  .stage { overflow: visible; }.stage::after { display: none; }.avatar { transform: scale(.87); }.stage-caption { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
