:root {
  --deep: #082f27;
  --lime: #d9ff3f;
  --cyan: #12e5e5;
  --green: #1e5a49;
  --paper: #f7f4ea;
  --text: #161c19;
  --gold: #c9a86a;
  --white: #fffef8;
  --muted: #6b756f;
  --line: rgba(8,47,39,.14);
  --risk: #df5c55;
  --warn: #c9852c;
  --ok: #1e7c58;
  --soft: #e7eee8;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(217,255,63,.12), transparent 27rem), radial-gradient(circle at 0 100%, rgba(30,90,73,.1), transparent 25rem);
}
button, select, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--green); }

#app { min-height: 100vh; }
.shell { width: min(100%, 780px); margin: 0 auto; min-height: 100vh; padding: 20px 18px 110px; animation: pageIn .48s cubic-bezier(.22,1,.36,1) both; }
.shell > *:not(.topbar):not(.question-nav) { animation: riseIn .55s cubic-bezier(.22,1,.36,1) both; }
.shell > *:nth-child(3) { animation-delay: .05s; }
.shell > *:nth-child(4) { animation-delay: .1s; }
.shell > *:nth-child(5) { animation-delay: .15s; }
.question-shell, .question-shell > *:not(.topbar):not(.question-nav) { animation: none; }
@keyframes pageIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero {
  position: relative; min-height: calc(100vh - 40px); margin: -20px -18px -110px; padding: 26px 22px 50px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: var(--paper); background: var(--deep);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 320px; height: 320px; right: -175px; top: 80px; border: 1px solid rgba(217,255,63,.35); box-shadow: 0 0 0 42px rgba(217,255,63,.025), 0 0 0 84px rgba(217,255,63,.018); animation: orbit 8s ease-in-out infinite; }
.hero::after { width: 220px; height: 220px; left: -130px; bottom: 85px; background: radial-gradient(circle, rgba(217,255,63,.18), transparent 67%); animation: float 6s ease-in-out infinite; }
@keyframes orbit { 50% { transform: translate(-22px,18px) scale(1.04); } }
@keyframes float { 50% { transform: translate(18px,-16px); } }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: var(--lime); font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: var(--deep); background: var(--lime); border-radius: 10px; box-shadow: 0 0 30px rgba(217,255,63,.3); }
.eyebrow { position: relative; z-index: 1; margin: 65px 0 14px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .21em; text-transform: uppercase; }
h1 { position: relative; z-index: 1; max-width: 620px; margin: 0; color: var(--paper); font-size: clamp(48px, 13vw, 84px); line-height: 1.02; letter-spacing: -.07em; }
h1 em { color: var(--lime); font-style: normal; }
.hero-title { font-size: clamp(36px, 10vw, 72px); line-height: 1.08; letter-spacing: -.065em; }
h2 { margin: 0; color: var(--deep); font-size: clamp(30px, 8vw, 46px); line-height: 1.12; letter-spacing: -.045em; }
h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
p { line-height: 1.75; }
.lead { max-width: 620px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.hero .lead { position: relative; z-index: 1; max-width: 500px; color: rgba(247,244,234,.72); }
.credibility { position: relative; z-index: 1; display: grid; gap: 4px; margin-top: 22px; padding: 14px 15px; background: rgba(18,229,229,.06); border: 1px solid rgba(18,229,229,.2); border-radius: 14px; }
.credibility b { color: var(--cyan); font-size: 10px; letter-spacing: .16em; }
.credibility span { color: var(--paper); font-size: 13px; font-weight: 720; }
.credibility em { color: rgba(247,244,234,.48); font-size: 10px; font-style: normal; }
.pain { position: relative; z-index: 1; margin: 28px 0; padding: 18px 18px 18px 20px; border-left: 2px solid var(--lime); background: linear-gradient(90deg, rgba(217,255,63,.1), transparent); }
.pain p { margin: 0; color: rgba(247,244,234,.78); line-height: 1.6; }
.pain strong { color: var(--paper); }
.tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 24px; }
.tag { padding: 7px 10px; color: var(--green); background: var(--soft); border-radius: 999px; font-size: 11px; font-weight: 750; }
.hero .tag { color: var(--lime); background: rgba(217,255,63,.08); border: 1px solid rgba(217,255,63,.2); }
.actions { position: relative; z-index: 1; display: grid; gap: 10px; }
.btn { width: 100%; min-height: 52px; padding: 13px 18px; border: 1px solid transparent; border-radius: 13px; font-weight: 780; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:active { transform: scale(.975); }
.btn.primary { color: var(--deep); background: linear-gradient(105deg,var(--cyan),var(--lime)); box-shadow: 0 13px 34px rgba(18,229,229,.16); }
.btn.primary:hover { box-shadow: 0 15px 38px rgba(217,255,63,.28); }
.btn.secondary { color: var(--deep); background: transparent; border-color: var(--green); }
.hero .btn.secondary { color: var(--paper); border-color: rgba(247,244,234,.3); }
.btn.ghost { color: var(--deep); background: var(--soft); }
.btn:disabled { opacity: .36; cursor: not-allowed; }
.fineprint { position: relative; z-index: 1; margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }
.hero .fineprint, .hero .fineprint a { color: rgba(247,244,234,.48); }

.topbar { position: sticky; top: 0; z-index: 10; margin: -20px -18px 26px; padding: 14px 18px; background: rgba(247,244,234,.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 12px; }
.flow-tabs span { padding: 6px; color: var(--muted); border-bottom: 2px solid rgba(8,47,39,.08); text-align: center; font-size: 10px; font-weight: 760; }
.flow-tabs .active { color: var(--deep); border-color: var(--lime); text-shadow: 0 0 14px rgba(217,255,63,.6); }
.flow-tabs .done { color: var(--green); border-color: var(--green); }
.flow-tabs .locked { opacity: .45; }
.back { padding: 8px 0; border: 0; color: var(--green); background: transparent; font-weight: 760; text-decoration: none; }
.step { color: var(--muted); font-size: 11px; }
.progress { height: 4px; margin-top: 11px; overflow: hidden; background: rgba(8,47,39,.1); border-radius: 99px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg,var(--green),var(--lime)); border-radius: inherit; box-shadow: 0 0 12px rgba(217,255,63,.8); transition: width .35s cubic-bezier(.22,1,.36,1); }

.card { margin: 14px 0; padding: 20px; background: rgba(255,254,248,.84); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 13px 38px rgba(8,47,39,.055); }
.card.soft { background: var(--soft); border-color: transparent; }
.card.dark { color: var(--paper); background: var(--deep); border-color: var(--deep); }
.card.dark h2, .card.dark h3 { color: var(--paper); }
.notice-list { display: grid; gap: 10px; margin: 24px 0; }
.notice-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px; background: rgba(255,254,248,.72); border: 1px solid var(--line); border-radius: 15px; }
.notice-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--deep); background: var(--lime); border-radius: 9px; font-size: 12px; font-weight: 850; }
.notice-item p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.form-grid { display: grid; gap: 16px; margin-top: 24px; }
.field label { display: block; margin-bottom: 8px; color: var(--deep); font-size: 12px; font-weight: 780; }
.field select, .field input, .field textarea { width: 100%; min-height: 52px; padding: 0 14px; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 13px; outline: none; transition: border .2s, box-shadow .2s; }
.field textarea { min-height: 110px; padding-top: 14px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(217,255,63,.25); }

.question-meta { display: inline-flex; padding: 7px 10px; color: var(--deep); background: var(--cyan); border-radius: 999px; font-size: 11px; font-weight: 800; box-shadow: 0 0 20px rgba(18,229,229,.18); }
.dd-workbench { position: relative; }
.dd-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 10px 12px; color: var(--paper); background: var(--deep); border-radius: 12px; }
.dd-status span { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.dd-status b { color: var(--gold); font-size: 10px; }
.question-card { position: relative; overflow: hidden; }
.question-card::after { content: "INVESTOR VIEW"; position: absolute; right: -8px; top: 18px; color: rgba(8,47,39,.035); font-size: 38px; font-weight: 900; transform: rotate(90deg); pointer-events: none; }
.question-title { margin: 18px 0 24px; color: var(--deep); font-size: clamp(22px,6vw,30px); line-height: 1.4; letter-spacing: -.035em; }
.options { display: grid; gap: 10px; }
.option { position: relative; width: 100%; padding: 16px 46px 16px 16px; text-align: left; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 14px; line-height: 1.5; transition: transform .18s, border .18s, background .18s; }
.option::after { content: ""; position: absolute; right: 17px; top: 50%; width: 10px; height: 10px; border: 1px solid rgba(8,47,39,.28); border-radius: 50%; transform: translateY(-50%); }
.option:active { transform: scale(.985); }
.option.selected { color: var(--deep); background: rgba(217,255,63,.25); border-color: var(--lime); font-weight: 750; }
.option.selected::after { border: 4px solid var(--deep); background: var(--lime); }
.option:disabled { cursor: default; opacity: .58; }
.option.selected:disabled { opacity: 1; transform: scale(.985); box-shadow: 0 0 0 3px rgba(217,255,63,.15); }
.question-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 12; padding: 12px max(18px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: rgba(247,244,234,.92); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
.question-nav-inner { width: min(100%, 744px); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.5fr; gap: 10px; }
.question-nav-inner.auto-nav { grid-template-columns: .75fr 1.5fr; align-items: center; }
.auto-next-note { color: var(--muted); font-size: 11px; font-weight: 650; text-align: center; }
.recording-strip { display: flex; align-items: center; gap: 8px; min-height: 42px; margin-top: 10px; padding: 10px 13px; color: rgba(247,244,234,.48); background: var(--deep); border: 1px solid rgba(18,229,229,.15); border-radius: 14px; font-size: 10px; }
.recording-dot { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px rgba(18,229,229,.5); }
.evidence-prompt { position: relative; z-index: 2; margin: -5px 8px 12px; padding: 17px; color: var(--paper); background: linear-gradient(135deg,#153f37,var(--deep)); border: 1px solid var(--gold); border-radius: 16px; box-shadow: 0 16px 42px rgba(8,47,39,.22); animation: evidenceIn .38s cubic-bezier(.22,1,.36,1) both; }
.evidence-prompt.leaving { opacity: 0; transform: translateY(7px); transition: .24s; }
@keyframes evidenceIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.evidence-prompt .ai-label { color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.evidence-prompt h3 { margin-top: 8px; color: var(--paper); font-size: 17px; }
.evidence-prompt p { margin: 7px 0 13px; color: rgba(247,244,234,.55); font-size: 10px; line-height: 1.55; }
.evidence-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.evidence-options button { padding: 10px 4px; color: var(--paper); background: rgba(255,255,255,.05); border: 1px solid rgba(217,255,63,.22); border-radius: 9px; font-size: 10px; font-weight: 700; }
.evidence-options button:active { color: var(--deep); background: var(--lime); }

.loading { min-height: 84vh; display: grid; place-items: center; text-align: center; }
.pulse { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin: 0 auto 28px; color: var(--deep); background: var(--lime); border-radius: 32px; font-weight: 900; font-size: 26px; animation: pulse 1.3s infinite; }
.pulse::before { content: ""; position: absolute; inset: -12px; border: 1px solid var(--gold); border-radius: 40px; animation: spin 4s linear infinite; }
@keyframes pulse { 50% { transform: scale(1.05) rotate(2deg); box-shadow: 0 0 0 20px rgba(217,255,63,.1); } }
@keyframes spin { to { transform: rotate(360deg); } }

.result-head { position: relative; padding: 26px; overflow: hidden; }
.result-head::before { content: "INVESTOR VIEW"; position: absolute; right: -30px; top: 42px; color: rgba(217,255,63,.08); font-size: 48px; font-weight: 900; transform: rotate(90deg); }
.result-head::after { content: ""; position: absolute; width: 180px; height: 180px; right: -90px; bottom: -100px; border: 1px solid rgba(217,255,63,.35); border-radius: 50%; box-shadow: 0 0 0 32px rgba(217,255,63,.025), 0 0 0 64px rgba(217,255,63,.018); }
.result-head .tag { color: var(--deep); background: var(--lime); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0 22px; }
.metric-grid div { padding: 15px 8px; text-align: center; background: var(--deep); border: 1px solid rgba(217,255,63,.2); border-radius: 14px; }
.metric-grid strong, .metric-grid span { display: block; }
.metric-grid strong { color: var(--lime); font-size: 25px; line-height: 1; }
.metric-grid span { margin-top: 7px; color: rgba(247,244,234,.55); font-size: 10px; }
.result-filters { position: sticky; top: 112px; z-index: 8; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 15px 0 22px; padding: 6px; background: rgba(247,244,234,.9); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px); }
.result-filters button { padding: 9px 5px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 11px; font-weight: 750; transition: .2s; }
.result-filters button.active { color: var(--deep); background: linear-gradient(105deg,var(--cyan),var(--lime)); box-shadow: 0 6px 18px rgba(18,229,229,.18); }
.result-group[hidden] { display: none; }
.score-row { position: relative; z-index: 1; display: flex; align-items: end; gap: 10px; margin: 22px 0 14px; }
.score { color: var(--lime); font-size: clamp(78px,22vw,118px); font-weight: 880; line-height: .82; letter-spacing: -.08em; }
.score-unit { padding-bottom: 8px; color: rgba(247,244,234,.5); }
.result-state { position: relative; z-index: 1; max-width: 540px; color: rgba(247,244,234,.68); }
.risk-count { color: var(--gold); }
.section-title { margin: 30px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--lime); border: 2px solid var(--deep); border-radius: 50%; }
.section-title small { color: var(--muted); font-weight: 500; }
.dimension { display: grid; grid-template-columns: 92px 1fr 36px; gap: 10px; align-items: center; margin: 16px 0; font-size: 12px; }
.bar { height: 8px; overflow: hidden; background: rgba(8,47,39,.1); border-radius: 99px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--green),var(--lime)); border-radius: inherit; animation: barGrow .9s cubic-bezier(.22,1,.36,1) both; transform-origin: left; }
@keyframes barGrow { from { transform: scaleX(0); } }
.risk-list, .clean-list, .priority-list { margin: 10px 0 0; padding: 0; list-style: none; }
.risk-list li, .clean-list li { position: relative; padding: 12px 0 12px 25px; border-bottom: 1px solid var(--line); line-height: 1.58; font-size: 13px; }
.risk-list li::before, .clean-list li::before { position: absolute; left: 0; top: 14px; font-weight: 850; }
.risk-list li::before { content: "🚩"; top: 11px; font-size: 15px; }
.clean-list li::before { content: "↗"; color: var(--green); }
.risk-list li:last-child, .clean-list li:last-child { border-bottom: 0; }
.priority-list { counter-reset: priority; display: grid; gap: 10px; }
.priority-list li { counter-increment: priority; position: relative; padding: 16px 14px 16px 52px; color: var(--paper); background: var(--deep); border-radius: 14px; line-height: 1.5; font-size: 13px; }
.priority-list li::after { content: "+"; position: absolute; right: 15px; top: 15px; color: var(--lime); font-size: 18px; font-weight: 500; transition: transform .25s; }
.priority-list li.open::after { transform: rotate(45deg); }
.priority-list li::before { content: "0" counter(priority); position: absolute; left: 15px; top: 16px; color: var(--lime); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.priority-list strong { display: block; margin-bottom: 4px; color: var(--lime); font-size: 14px; }
.priority-list span { color: rgba(247,244,234,.65); }
.expand-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .36s cubic-bezier(.22,1,.36,1), opacity .25s, margin .25s; }
.expand-item.open .expand-detail { max-height: 240px; margin-top: 13px; opacity: 1; }
.expand-detail b { display: block; margin-bottom: 7px; color: var(--gold); font-size: 11px; }
.expand-detail em { display: block; padding: 7px 0; color: rgba(247,244,234,.72); border-top: 1px solid rgba(217,255,63,.1); font-size: 11px; font-style: normal; }
.empty { padding: 16px; color: var(--deep); background: rgba(217,255,63,.25); border: 1px solid rgba(217,255,63,.8); border-radius: 13px; font-size: 13px; }
.copy-btn { border: 0; color: var(--green); background: transparent; font-size: 11px; font-weight: 780; }
.service-grid { display: grid; gap: 10px; margin-top: 15px; }
.service { padding: 16px; text-align: left; color: var(--paper); background: rgba(255,255,255,.06); border: 1px solid rgba(217,255,63,.18); border-radius: 13px; }
.service strong, .service span { display: block; }
.service span { margin-top: 5px; color: rgba(247,244,234,.5); font-size: 11px; }
.consent { display: flex; gap: 8px; align-items: start; margin: 16px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.consent input { margin-top: 2px; accent-color: var(--lime); }
.contact-box { margin: 18px 0; padding: 18px; color: var(--paper); background: var(--deep); border-radius: 20px; }
.contact-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(217,255,63,.12); }
.contact-line:last-child { border-bottom: 0; }
.contact-line span, .contact-line strong { display: block; }
.contact-line span { color: rgba(247,244,234,.5); font-size: 11px; }
.contact-line strong { margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.mini-btn { flex: 0 0 auto; padding: 8px 12px; color: var(--deep); background: var(--lime); border: 0; border-radius: 9px; font-size: 11px; font-weight: 800; text-decoration: none; }
.status-box { display: none; margin-top: 14px; padding: 13px; color: var(--deep); background: rgba(217,255,63,.25); border-radius: 10px; font-size: 13px; line-height: 1.6; }
.status-box.show { display: block; }
.poster-wrap { text-align: center; }
.poster-stage { margin: -20px -18px -110px; padding: 20px 18px 110px; min-height: 100vh; color: var(--paper); background: var(--deep); }
.poster-stage .topbar { background: rgba(8,47,39,.9); border-color: rgba(217,255,63,.16); }
.poster-stage .topline, .poster-stage .back, .poster-stage .step { color: var(--paper); }
.poster-stage .poster-tip { color: rgba(247,244,234,.5); }
#poster { width: 100%; max-width: 420px; border-radius: 20px; box-shadow: 0 22px 60px rgba(8,47,39,.2); }
#posterPreview { display: none; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 20px; box-shadow: 0 22px 60px rgba(8,47,39,.2); -webkit-touch-callout: default; user-select: auto; }
#posterPreview.show { display: block; }
.poster-tip { color: var(--muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 18px 0; }
.dashboard-metric { padding: 16px; color: var(--paper); background: var(--deep); border-radius: 15px; }
.dashboard-metric strong, .dashboard-metric span { display: block; }
.dashboard-metric strong { color: var(--lime); font-size: 28px; }
.dashboard-metric span { margin-top: 6px; color: rgba(247,244,234,.55); font-size: 11px; }
.analytics-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.analytics-table th, .analytics-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.analytics-table th { color: var(--muted); font-size: 10px; }
.analytics-bar { display: grid; grid-template-columns: minmax(110px,1fr) 2fr 34px; gap: 8px; align-items: center; margin: 11px 0; font-size: 11px; }
.analytics-bar i { display: block; height: 8px; background: linear-gradient(90deg,var(--green),var(--lime)); border-radius: 99px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 99; max-width: calc(100% - 36px); padding: 11px 17px; color: var(--deep); background: var(--lime); border-radius: 999px; opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: .22s; font-size: 12px; font-weight: 750; box-shadow: 0 10px 30px rgba(8,47,39,.18); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .shell { padding-top: 34px; }
  .hero { margin-top: -34px; }
  .actions { grid-template-columns: 1.4fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field:last-child { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
