:root {
  --bg: #080b16;
  --surface: #111626;
  --surface-2: #171d31;
  --line: rgba(190, 211, 255, 0.13);
  --text: #f5f7ff;
  --muted: #a2acc5;
  --cyan: #49d8ff;
  --violet: #9e7bff;
  --gold: #f4c36d;
  --success: #66e6a5;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 85% -10%, #1d1b51 0, transparent 32%), var(--bg); }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
.ambient { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(110px); opacity: .25; z-index: -1; }
.ambient-one { width: 300px; height: 300px; top: 35%; left: -220px; background: var(--cyan); }
.ambient-two { width: 290px; height: 290px; top: 5%; right: -180px; background: var(--violet); }

.shell { width: min(100%, 480px); min-height: 100vh; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 20px max(100px, env(safe-area-inset-bottom)); position: relative; }
.wide { width: min(100%, 1120px); }
.brand { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.brand-mark { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #09101e; font-family: "DM Mono"; font-weight: 700; }
.eyebrow, .mono { font-family: "DM Mono", monospace; }
.eyebrow { color: var(--cyan); font-size: 11px; letter-spacing: 1.1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(30px, 8.5vw, 45px); line-height: 1.18; margin-bottom: 17px; letter-spacing: 0; }
h2 { font-size: 23px; line-height: 1.35; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 7px; }
p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero { padding-top: 54px; min-height: 510px; background: linear-gradient(90deg, rgba(8,11,22,.95) 2%, rgba(8,11,22,.70) 64%, rgba(8,11,22,.28)), url("assets/ai-ecosystem-hero.png") 60% center / cover; border-bottom: 1px solid var(--line); }
.hero .shell { padding-top: 0; }
.hero-copy { max-width: 390px; }
.hero h1 { margin-top: 20px; text-shadow: 0 4px 20px #080b16; }
.metal { background: linear-gradient(110deg, #fff 18%, #beeaff 47%, #b69cff 70%, #ffe3a2); -webkit-background-clip: text; color: transparent; }
.hero-actions { margin-top: 30px; }
.cta, .secondary, .ghost, .icon-btn { min-height: 52px; border-radius: 8px; transition: transform .2s, background .2s; }
.cta { width: 100%; color: #06101d; font-weight: 800; background: linear-gradient(100deg, var(--cyan), #a0a7ff); box-shadow: 0 10px 30px rgba(73,216,255,.2); }
.cta:hover, .option:hover { transform: translateY(-1px); }
.secondary { width: 100%; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--line); font-weight: 700; }
.ghost { color: var(--muted); background: transparent; min-height: 40px; font-size: 13px; }
.trust { margin: 18px 0 0; display: flex; gap: 16px; align-items: center; color: #c2cae0; font-size: 12px; }
.trust span::before { content: "•"; color: var(--success); margin-right: 5px; }

.section { padding: 36px 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.section-title h2 { margin: 6px 0 0; }
.paths { display: grid; gap: 12px; }
.role-grid { grid-template-columns: 1fr; }
.path-card, .glass, .analysis-card, .stat, .ability, .report-block { border: 1px solid var(--line); background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); backdrop-filter: blur(10px); }
.path-card { position: relative; overflow: hidden; padding: 19px; border-radius: 8px; }
.path-card:after { content: ""; position: absolute; inset: auto -35px -35px auto; width: 90px; height: 90px; border: 1px solid rgba(125,180,255,.16); border-radius: 50%; }
.path-card .amount { margin: 15px 0 0; color: var(--gold); font-family: "DM Mono"; font-size: 13px; }
.path-label { font-family: "DM Mono"; color: var(--cyan); font-size: 11px; }

.topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.back { color: var(--muted); padding: 8px 0; background: none; }
.agent-orb { width: 116px; height: 116px; margin: 55px auto 26px; border-radius: 50%; background: conic-gradient(from 20deg, var(--cyan), var(--violet), #f4c36d, var(--cyan)); padding: 2px; box-shadow: 0 0 50px rgba(86,194,255,.25); animation: turn 8s linear infinite; }
.agent-inner { width: 100%; height: 100%; border-radius: 50%; background: #10172a; display: grid; place-items: center; font-size: 40px; animation: turn 8s linear infinite reverse; }
.agent-inner:after { content: "AI"; font-family: "DM Mono"; color: var(--cyan); font-size: 28px; }
.chat-intro { text-align: center; }
.chat-intro p { max-width: 380px; margin: 0 auto 35px; }

.question-head { margin: 26px 0 28px; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.progress { height: 5px; background: rgba(255,255,255,.09); border-radius: 99px; overflow: hidden; }
.progress b { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: inherit; transition: width .45s ease; }
.question-number { color: var(--cyan); font-family: "DM Mono"; font-size: 12px; margin-bottom: 14px; }
.question { font-size: 25px; line-height: 1.42; margin-bottom: 26px; }
.options { display: grid; gap: 10px; }
.option { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.045); }
.option-letter { flex: none; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(128,220,255,.32); border-radius: 6px; color: var(--cyan); font-family: "DM Mono"; font-size: 12px; }
.option.selected { border-color: var(--cyan); background: rgba(73,216,255,.1); }
.micro-feedback { min-height: 25px; margin: 17px 0 0; color: var(--success); font-size: 13px; }
.analysis-card { margin-top: 43px; padding: 24px; border-radius: 8px; position: relative; overflow: hidden; }
.analysis-card:before { content: "AI ANALYSIS"; position: absolute; color: rgba(112,221,255,.08); font: 500 34px "DM Mono"; top: 10px; right: -30px; transform: rotate(-8deg); }
.analysis-card h2 { max-width: 300px; font-size: 21px; position: relative; }
.analysis-card .scan { display: flex; gap: 6px; align-items: center; color: var(--cyan); font: 11px "DM Mono"; margin-bottom: 18px; }
.scan i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); animation: blink 1s infinite; }

.form-card { margin-top: 20px; padding: 22px; border-radius: 8px; }
.field { display: grid; gap: 8px; margin-bottom: 15px; }
.field label { color: #dce4f7; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--text); background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 6px; outline: none; }
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); }
.form-note { font-size: 12px; margin-top: 14px; }
.brief-score { margin: 26px 0; padding: 18px; border-radius: 8px; background: rgba(73,216,255,.07); border: 1px solid rgba(73,216,255,.2); }
.brief-score strong { font: 700 38px "DM Mono"; color: var(--cyan); }

.generating { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.generator { width: 150px; height: 150px; margin: 0 auto 34px; position: relative; border: 1px solid rgba(73,216,255,.45); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.generator:before, .generator:after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(158,123,255,.5); border-radius: 50%; animation: turn 4s linear infinite; }
.generator:after { inset: 43px; border-color: var(--gold); animation-direction: reverse; }
.generator span { height: 100%; display: grid; place-items: center; font: 17px "DM Mono"; color: var(--cyan); }

.report-header { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.report-id { margin-top: 19px; color: var(--muted); font: 11px "DM Mono"; }
.score-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; margin-top: 23px; }
.score-ring { width: 125px; height: 125px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) calc(var(--value) * 1%), rgba(255,255,255,.08) 0); }
.score-ring > div { width: 108px; height: 108px; background: #0d1221; border-radius: 50%; display: grid; place-content: center; text-align: center; }
.score-ring strong { font: 700 34px "DM Mono"; }
.score-ring small { color: var(--muted); font-size: 10px; }
.result-level { color: var(--cyan); font-family: "DM Mono"; font-size: 12px; margin-bottom: 7px; }
.result-title { font-size: 18px; font-weight: 800; line-height: 1.45; }
.report-block { margin: 18px 0; padding: 19px; border-radius: 8px; }
.report-block h3 { color: var(--cyan); font-family: "DM Mono"; font-size: 12px; letter-spacing: .6px; }
.ability { padding: 15px 0; border-width: 0 0 1px; border-radius: 0; background: none; }
.ability:last-child { border-bottom: none; }
.ability-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 9px; }
.ability-top b { color: var(--cyan); font-family: "DM Mono"; font-weight: 500; }
.ability-bar { height: 8px; overflow: hidden; background: rgba(255,255,255,.07); border-radius: 10px; }
.ability-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: inherit; }
.insights { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.path-highlight { padding: 23px; background: linear-gradient(135deg, rgba(73,216,255,.13), rgba(158,123,255,.12)); border: 1px solid rgba(105,203,255,.35); border-radius: 8px; }
.path-highlight .amount { color: var(--gold); font: 500 13px "DM Mono"; }
.steps { counter-reset: steps; display: grid; gap: 12px; }
.step { display: flex; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.step:before { counter-increment: steps; content: counter(steps); color: var(--cyan); font: 12px "DM Mono"; border: 1px solid rgba(73,216,255,.35); width: 23px; height: 23px; display: grid; place-items: center; flex: none; border-radius: 5px; }
.fixed-actions { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: rgba(8,11,22,.87); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 5; }
.fixed-actions > div { width: min(100%, 480px); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fixed-actions .cta, .fixed-actions .secondary { min-height: 48px; font-size: 13px; }
.fixed-actions.three-actions > div { grid-template-columns: 1fr 1fr 1fr; }
.fixed-actions.three-actions .cta, .fixed-actions.three-actions .secondary { padding: 0 6px; font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; background: rgba(0,0,0,.63); padding: 16px; }
.modal { width: min(100%, 480px); max-height: 90vh; overflow: auto; margin: auto; padding: 22px; background: #151a2a; border: 1px solid var(--line); border-radius: 12px 12px 8px 8px; }
.modal-title { display: flex; justify-content: space-between; align-items: center; }
.close { color: var(--muted); font-size: 24px; background: none; }
.qr-wrap { width: 200px; height: 200px; margin: 18px auto; padding: 8px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }

.admin-shell { max-width: 1120px; width: min(100%, 1120px); }
.admin-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-tabs { display: flex; gap: 8px; overflow: auto; margin: 24px 0; }
.tab { padding: 10px 14px; border-radius: 6px; color: var(--muted); background: transparent; white-space: nowrap; }
.tab.active { background: rgba(73,216,255,.11); color: var(--cyan); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { border-radius: 8px; padding: 17px; }
.stat b { display: block; color: var(--cyan); font: 700 27px "DM Mono"; margin-top: 7px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 15px; }
.admin-filters { grid-template-columns: 1fr 1fr; }
.filter-row input, .filter-row select { min-height: 42px; padding: 8px; color: var(--text); border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 13px; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 11px; font-weight: 500; }
.link-btn { color: var(--cyan); background: none; padding: 0; }
.login { max-width: 390px; margin: 10vh auto; }
.empty { padding: 45px 20px; text-align: center; color: var(--muted); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; padding: 10px 14px; color: white; font-size: 13px; background: #29334c; border: 1px solid var(--line); border-radius: 6px; transition: .25s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 50% { box-shadow: 0 0 40px rgba(73,216,255,.42); } }
@media (min-width: 720px) {
  .hero { min-height: 570px; }
  .paths { grid-template-columns: repeat(3, 1fr); }
  .role-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .admin-filters { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 8px; }
}

/* Promo Banner */
.promo-banner { font-size: 13px; color: rgba(230,235,250,0.75); margin: 0 0 6px; padding: 10px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; line-height: 1.8; letter-spacing: 0.3px; }
.promo-banner s { color: rgba(230,235,250,0.35); text-decoration: line-through; }
.promo-banner strong { color: #00e5ff; font-weight: 700; }
.promo-banner + .promo-banner { margin-top: -2px; }
