:root {
  --ink: #121b2e;
  --muted: #657086;
  --line: #dfe4ec;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --navy: #14233f;
  --blue: #275be8;
  --blue-dark: #1743bd;
  --mint: #25b890;
  --amber: #e4a72d;
  --red: #d94d55;
  --shadow: 0 22px 70px rgba(17, 31, 61, .10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f9fc 0, #fff 32rem, #f6f8fb 100%);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: -.015em;
}
button, textarea, input { font: inherit; }
button { cursor: pointer; }
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .045; z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  width: min(1220px, calc(100% - 40px)); height: 74px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(20,35,63,.09);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--navy); border-radius: 11px; font-size: 12px; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.provider-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #cfe5dc; border-radius: 99px; background: #f1fbf7; color: #117256; font-size: 12px; font-weight: 800; }
.provider-pill.is-sample { border-color: #eedda9; background: #fffaeb; color: #8a6515; }
.provider-pill.is-loading { border-color: var(--line); background: #f5f6f8; color: var(--muted); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent); }
.ghost-link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }

.hero { display: grid; grid-template-columns: 1.45fr .7fr; gap: 72px; align-items: center; min-height: 560px; padding: 82px 0 70px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(42px, 5.2vw, 68px); line-height: 1.1; letter-spacing: -.055em; }
.hero h1 span { color: var(--blue); }
.hero-lead { max-width: 720px; margin: 28px 0 25px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: #465168; background: rgba(255,255,255,.75); font-size: 12px; font-weight: 750; }
.proof-card { position: relative; overflow: hidden; padding: 30px; color: #fff; background: var(--navy); border-radius: 28px; box-shadow: var(--shadow); }
.proof-card::after { content: ""; position: absolute; right: -65px; top: -75px; width: 210px; height: 210px; border: 38px solid rgba(71,117,255,.17); border-radius: 50%; }
.proof-label { margin: 0; color: #9fb5df; font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.proof-score { margin: 8px 0 26px; font-size: 42px; font-weight: 950; letter-spacing: -.05em; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; background: rgba(255,255,255,.11); border-radius: 15px; }
.proof-grid div { padding: 15px; background: rgba(15,31,58,.92); }
.proof-grid strong { display: block; font-size: 21px; }
.proof-grid span { color: #b9c7df; font-size: 11px; }
.proof-note { margin: 19px 0 0; color: #9fb0ce; font-size: 11px; }

.demo-shell { padding: 42px; background: #fff; border: 1px solid #e6eaf1; border-radius: 32px; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.section-heading.compact { margin-bottom: 34px; }
.demo-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; }
.panel { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.input-panel { background: #f8fafc; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: #e8eefc; color: var(--blue); font-size: 11px; font-weight: 900; }
.panel-head h3 { margin: 0; font-size: 17px; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
textarea { width: 100%; min-height: 218px; padding: 17px; resize: vertical; border: 1px solid #d5dce7; border-radius: 14px; outline: none; background: #fff; color: #263047; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.7; transition: border .2s, box-shadow .2s; }
textarea:focus { border-color: #8aa6f8; box-shadow: 0 0 0 4px rgba(39,91,232,.09); }
.fault-fieldset { display: grid; gap: 8px; margin: 18px 0; padding: 0; border: 0; }
.fault-fieldset legend { margin-bottom: 8px; color: #3c4659; font-size: 12px; font-weight: 800; }
.fault-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; background: #fff; cursor: pointer; }
.fault-option:has(input:checked) { border-color: #9db2f1; background: #f5f7ff; }
.fault-option input { accent-color: var(--blue); }
.fault-option strong { display: block; font-size: 12px; }
.fault-option small { display: block; color: var(--muted); font-size: 10px; }
.primary-button, .approve-button, .secondary-button { border: 0; font-weight: 850; transition: transform .15s, background .15s, opacity .15s; }
.primary-button { width: 100%; display: flex; justify-content: space-between; padding: 15px 17px; color: #fff; background: var(--blue); border-radius: 13px; }
.primary-button:hover, .approve-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .55; transform: none !important; }
.button-arrow { font-size: 19px; line-height: 1; }
.mode-notice { min-height: 18px; margin: 10px 2px 0; color: var(--muted); font-size: 10px; text-align: center; }

.result-panel { min-height: 590px; }
.empty-state { display: grid; place-items: center; align-content: center; min-height: 460px; color: var(--muted); text-align: center; }
.empty-state strong { margin-top: 18px; color: #39445a; }
.empty-state p { max-width: 320px; margin: 7px 0 0; font-size: 12px; }
.empty-orbit { display: grid; place-items: center; width: 74px; height: 74px; border: 1px dashed #aebbd1; border-radius: 50%; animation: spin 8s linear infinite; }
.empty-orbit span { width: 27px; height: 27px; border-radius: 9px; background: #dfe8fc; box-shadow: 25px -12px 0 -7px #9fb7ed; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-hidden { display: none !important; }
.result-content { display: grid; gap: 16px; }
.state-banner { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 13px; background: var(--soft); }
.state-banner span { display: block; color: var(--muted); font-size: 10px; }
.state-banner strong { display: block; margin-top: 1px; font-size: 16px; }
.state-badge { padding: 6px 9px; border-radius: 8px; background: #fff; color: var(--blue) !important; font-size: 10px !important; font-weight: 900; }
.workflow-track { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; padding: 8px 5px 3px; }
.workflow-track div { display: grid; place-items: center; gap: 5px; min-width: 56px; color: #a0a8b8; text-align: center; }
.workflow-track div span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d7dce5; border-radius: 50%; font-size: 10px; font-weight: 900; }
.workflow-track div small { font-size: 9px; white-space: nowrap; }
.workflow-track i { height: 1px; background: #dfe3e9; }
.workflow-track div.is-done { color: var(--blue); }
.workflow-track div.is-done span { border-color: var(--blue); background: var(--blue); color: #fff; }
.workflow-track div.is-done + i { background: var(--blue); }
.result-section { padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.result-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.result-section-title h4 { margin: 0; font-size: 12px; }
.mini-tag { padding: 4px 7px; border-radius: 6px; background: #edf2ff; color: var(--blue); font-size: 9px; font-weight: 850; }
.extraction-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0; }
.extraction-grid div { min-width: 0; padding: 9px 10px; background: #f7f8fb; border-radius: 9px; }
.extraction-grid dt { color: var(--muted); font-size: 9px; }
.extraction-grid dd { overflow: hidden; margin: 2px 0 0; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.risk-box { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.risk-box span { padding: 5px 7px; border-radius: 6px; background: #fff6e4; color: #8c6412; font-size: 9px; font-weight: 800; }
.risk-box span.is-clear { background: #edf9f5; color: #14765a; }
.approval-box { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 15px; border: 1px solid #efdcad; border-radius: 14px; background: #fffaec; }
.approval-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #f4d787; color: #76520a; font-weight: 900; }
.approval-box strong { font-size: 12px; }
.approval-box p { margin: 2px 0 0; color: #776b50; font-size: 10px; }
.approve-button { grid-column: 1 / -1; padding: 11px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 11px; }
.completion-box { padding: 15px; border: 1px solid #cde9df; border-radius: 14px; background: #f2fbf8; }
.metric-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.metric-row div { padding: 8px 5px; border-radius: 8px; background: rgba(255,255,255,.8); text-align: center; }
.metric-row span { display: block; color: #11775b; font-size: 18px; font-weight: 900; }
.metric-row small { display: block; color: #62756e; font-size: 8px; }
.secondary-button { width: 100%; margin-top: 10px; padding: 10px; border: 1px solid #abd8c8; border-radius: 9px; background: #fff; color: #11775b; font-size: 10px; }
.secondary-button:hover { background: #e6f7f1; }
.completion-box > p { margin: 6px 0 0; color: #668178; font-size: 9px; text-align: center; }
.log-details { border-top: 1px solid var(--line); }
.log-details summary { padding: 13px 2px 2px; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 750; }
.log-details summary span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; border-radius: 6px; background: var(--soft); }
.event-log { max-height: 190px; overflow: auto; margin: 10px 0 0; padding: 0; list-style: none; }
.event-log li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 7px 2px; border-bottom: 1px solid #edf0f4; font-size: 9px; }
.event-log b { color: #33405a; }
.event-log span { color: var(--muted); }

.architecture, .evidence { padding: 105px 0 30px; }
.architecture-flow { display: grid; grid-template-columns: repeat(7, auto); align-items: stretch; gap: 12px; }
.architecture-flow article { width: 100%; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.architecture-flow article span, .evidence-index { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.architecture-flow h3, .evidence-grid h3 { margin: 25px 0 7px; font-size: 15px; }
.architecture-flow p, .evidence-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.architecture-flow b { display: grid; place-items: center; color: #a3aec1; font-weight: 400; }
.evidence-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.evidence-grid article { min-height: 235px; padding: 24px; border-radius: 18px; background: var(--navy); color: #fff; }
.evidence-grid article:nth-child(even) { background: #20345a; }
.evidence-grid .evidence-index { color: #8ba9fa; }
.evidence-grid h3 { margin-top: 45px; }
.evidence-grid p { color: #b9c5da; }
.evidence-grid strong { display: block; margin-top: 20px; color: #8fb1ff; font-size: 11px; }
.limits { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; margin-top: 70px; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.limits h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.limits ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.limits li { position: relative; padding-left: 20px; color: var(--muted); font-size: 12px; }
.limits li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: #aab4c5; }
.footer { display: flex; align-items: center; justify-content: space-between; margin-top: 100px; padding: 35px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer strong { color: var(--ink); font-size: 13px; }
.footer p { margin: 2px 0 0; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); padding: 11px 15px; border-radius: 10px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transition: .22s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { background: #9e3038; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 60px; }
  .proof-card { max-width: 520px; }
  .demo-grid { grid-template-columns: 1fr; }
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-flow b { transform: rotate(90deg); }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .shell, .topbar { width: min(100% - 24px, 1180px); }
  .topbar { height: 64px; }
  .brand > span:last-child, .ghost-link { display: none; }
  .hero { min-height: auto; padding: 50px 0; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 15px; }
  .demo-shell { width: 100%; padding: 24px 12px; border-radius: 0; border-left: 0; border-right: 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; text-align: left; }
  .panel { padding: 18px; }
  .workflow-track div small { font-size: 8px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .architecture, .evidence { padding-top: 76px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr; gap: 25px; margin-top: 55px; padding: 28px 22px; }
  .footer { display: block; margin-top: 70px; }
  .footer > span { display: block; margin-top: 12px; }
}

