:root {
  --bg: #090c10;
  --surface: #10151c;
  --surface-2: #151c24;
  --surface-3: #1a232d;
  --line: #27323d;
  --text: #eff7f3;
  --muted: #9caea5;
  --green: #2dd4a3;
  --green-dark: #0a8769;
  --yellow: #ffd166;
  --orange: #ff9f43;
  --red: #ff5964;
  --blue: #65a8ff;
  --max: 1180px;
  --radius: 20px;
  --shadow: 0 22px 70px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at 80% -10%, rgba(45,212,163,.13), transparent 32%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.site-header { height: 76px; max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, var(--green), #74f0c8); color: #06100c; font-size: 12px; box-shadow: 0 0 28px rgba(45,212,163,.2); }
nav { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 14px; }
nav a:hover, nav a.active { color: var(--text); }
.nav-cta { padding: 10px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); }
.mobile-menu { display: none; }

main { min-height: calc(100vh - 150px); }
.hero { max-width: var(--max); margin: 0 auto; padding: 92px 24px 80px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.hero.compact { padding-top: 70px; padding-bottom: 55px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(45,212,163,.25); border-radius: 999px; background: rgba(45,212,163,.07); color: #8df0d0; font-size: 13px; font-weight: 700; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
h1 { margin: 24px 0 20px; max-width: 780px; font-size: clamp(44px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero.compact h1 { font-size: clamp(40px, 6vw, 66px); }
.gradient-text { background: linear-gradient(90deg, #eafff8, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 680px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; transition: transform .18s ease, background .18s ease, border .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--green); color: #05110d; box-shadow: 0 12px 30px rgba(45,212,163,.18); }
.button.primary:hover { background: #5be2bb; }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.02); color: var(--text); }
.button.danger { background: rgba(255,89,100,.12); border-color: rgba(255,89,100,.3); color: #ff9ca4; }
.button.small { min-height: 38px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.button.full { width: 100%; }
.button[disabled] { opacity: .55; cursor: wait; transform: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }

.score-card { position: relative; overflow: hidden; min-height: 370px; padding: 33px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: var(--shadow); }
.score-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; bottom: -110px; border-radius: 50%; background: rgba(45,212,163,.1); filter: blur(5px); }
.score-card > span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .11em; }
.score-card strong { display: block; margin-top: 30px; font-size: 94px; line-height: .9; letter-spacing: -.08em; }
.score-card strong small { margin-left: 8px; color: var(--muted); font-size: 22px; letter-spacing: -.02em; }
.risk-pill { display: inline-flex; padding: 7px 11px; margin-top: 19px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.risk-pill.low { color: #78eac8; background: rgba(45,212,163,.12); }
.risk-pill.moderate { color: var(--yellow); background: rgba(255,209,102,.12); }
.risk-pill.high { color: var(--orange); background: rgba(255,159,67,.12); }
.risk-pill.critical { color: #ff8991; background: rgba(255,89,100,.12); }
.mini-findings { margin: 29px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: #c4d0ca; font-size: 14px; }
.mini-findings li { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mini-findings b { color: var(--orange); }

.logo-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.012); }
.logo-strip-inner { max-width: var(--max); margin: auto; padding: 19px 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 36px; color: #75867e; font-size: 13px; letter-spacing: .03em; }
.content-section { max-width: var(--max); margin: 0 auto; padding: 88px 24px; }
.content-section.narrow { max-width: 900px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 36px; }
.section-heading h2, .content-section > h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.feature-grid article, .panel, .pricing-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-grid article { padding: 25px; }
.feature-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(45,212,163,.09); color: var(--green); font-weight: 800; }
.feature-grid h3 { margin: 27px 0 10px; font-size: 17px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.dark-band { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)); }
.type-links { display: flex; flex-wrap: wrap; gap: 10px; }
.type-links a { padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 14px; }
.type-links a:hover { border-color: rgba(45,212,163,.4); color: var(--text); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pricing-card { position: relative; padding: 27px; }
.pricing-card.featured { border-color: rgba(45,212,163,.45); box-shadow: 0 20px 65px rgba(45,212,163,.08); }
.pricing-card .badge { position: absolute; right: 20px; top: 20px; color: var(--green); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.pricing-card h3 { margin: 0 0 8px; font-size: 20px; }
.pricing-card .price { margin: 23px 0 4px; font-size: 42px; font-weight: 850; letter-spacing: -.05em; }
.pricing-card .price small { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.pricing-card > p { min-height: 42px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.check-list { min-height: 190px; padding: 0; margin: 24px 0; list-style: none; display: grid; align-content: start; gap: 12px; color: #c9d4ce; font-size: 14px; }
.check-list li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }

.app-shell { max-width: 1040px; margin: 0 auto; padding: 54px 24px 90px; }
.app-shell.wide { max-width: var(--max); }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { margin: 10px 0; font-size: clamp(38px, 6vw, 60px); }
.page-heading p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.6; }
.panel { padding: 28px; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.panel + .panel { margin-top: 18px; }
.panel h2, .panel h3 { margin-top: 0; }
.muted { color: var(--muted); }
.notice { padding: 14px 16px; border: 1px solid rgba(101,168,255,.25); border-radius: 12px; background: rgba(101,168,255,.06); color: #bcd8ff; font-size: 14px; line-height: 1.5; }
.notice.demo { border-color: rgba(255,209,102,.28); background: rgba(255,209,102,.07); color: #ffe4a5; }
.error-box { display: none; margin: 15px 0; padding: 13px 15px; border: 1px solid rgba(255,89,100,.35); border-radius: 11px; color: #ffb3b9; background: rgba(255,89,100,.08); }
.error-box.show { display: block; }
.success-box { padding: 13px 15px; border: 1px solid rgba(45,212,163,.35); border-radius: 11px; color: #a5f2db; background: rgba(45,212,163,.08); }

.progress-wrap { margin: 28px 0 12px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 13px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.progress-bar { width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-dark), var(--green)); transition: width .25s ease; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 750; }
.field input, .field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #0d1218; color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,212,163,.08); }
.question-list { display: grid; gap: 17px; margin-top: 22px; }
.question-card { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.question-card h3 { margin: 0 0 7px; font-size: 17px; }
.question-card > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option { position: relative; display: flex; align-items: center; min-height: 52px; padding: 12px 13px 12px 40px; border: 1px solid var(--line); border-radius: 11px; color: #c7d3cd; font-size: 14px; cursor: pointer; }
.option:hover { border-color: #3b4a57; }
.option input { position: absolute; left: 13px; accent-color: var(--green); }
.option:has(input:checked) { border-color: rgba(45,212,163,.55); background: rgba(45,212,163,.055); color: var(--text); }
.sticky-actions { position: sticky; bottom: 15px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(16,21,28,.94); backdrop-filter: blur(12px); box-shadow: var(--shadow); }

.result-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.result-score { position: sticky; top: 22px; text-align: center; }
.score-ring { --score: 50; --score-color: var(--yellow); width: 210px; height: 210px; margin: 12px auto 22px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #25303a 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--surface); }
.score-ring strong { position: relative; font-size: 58px; letter-spacing: -.06em; }
.score-ring strong small { font-size: 16px; color: var(--muted); }
.finding-list, .recommendation-list, .assessment-list { display: grid; gap: 11px; }
.finding { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015); }
.finding-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.finding h4 { margin: 0; font-size: 15px; }
.severity { padding: 4px 7px; border-radius: 7px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.severity.critical { color: #ffadb3; background: rgba(255,89,100,.13); }
.severity.high { color: #ffc28a; background: rgba(255,159,67,.13); }
.severity.medium { color: #ffe69d; background: rgba(255,209,102,.13); }
.severity.low { color: #91efd2; background: rgba(45,212,163,.13); }
.finding p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.locked { position: relative; overflow: hidden; max-height: 265px; }
.locked::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, var(--surface) 60%); }
.unlock-box { position: relative; z-index: 2; margin: -40px 20px 10px; padding: 22px; border: 1px solid rgba(45,212,163,.3); border-radius: 15px; background: #121a20; text-align: center; box-shadow: var(--shadow); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.control { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.control.pass::before { content: "PASS"; color: var(--green); font-size: 10px; font-weight: 900; margin-right: 8px; }
.control.action::before { content: "ACTION"; color: var(--orange); font-size: 10px; font-weight: 900; margin-right: 8px; }
.share-box { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-box input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #0c1117; color: var(--muted); }

.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 10px; font-size: 32px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.assessment-row { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.assessment-row:last-child { border-bottom: 0; }
.assessment-row h4 { margin: 0 0 6px; }
.assessment-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.score-badge { min-width: 66px; padding: 9px 10px; border-radius: 10px; text-align: center; font-weight: 850; background: var(--surface-3); }
.subscription-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.015); }
.subscription-card strong { display: block; margin-bottom: 6px; }

.auth-wrap { max-width: 500px; margin: 0 auto; padding: 70px 24px 100px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #0c1117; }
.auth-tab { height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 750; }
.auth-tab.active { background: var(--surface-3); color: var(--text); }
.auth-form { display: grid; gap: 15px; }
.auth-form[hidden] { display: none; }

.empty-state { padding: 42px 20px; text-align: center; color: var(--muted); }
.loading { padding: 50px; text-align: center; color: var(--muted); }
.spinner { width: 27px; height: 27px; margin: 0 auto 13px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { max-width: var(--max); margin: 0 auto; min-height: 74px; padding: 22px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #73837b; font-size: 12px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 35px; }
  .score-card { min-height: 320px; }
  .feature-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .result-score { position: relative; top: 0; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  nav a:not(.nav-cta) { display: none; }
  .site-header { height: 68px; padding-inline: 17px; }
  .brand { font-size: 14px; }
  .hero { padding: 62px 18px; }
  h1 { font-size: 47px; }
  .content-section, .app-shell { padding: 62px 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .feature-grid, .pricing-grid, .form-grid, .option-grid, .control-grid { grid-template-columns: 1fr; }
  .pricing-card > p, .check-list { min-height: auto; }
  .panel { padding: 20px; }
  .question-card { padding: 18px; }
  .sticky-actions { align-items: stretch; flex-direction: column; }
  .sticky-actions .button { width: 100%; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .score-card strong { font-size: 78px; }
  footer { flex-direction: column; }
}

/* Launch-hardening UI */
.text-link { color: var(--green); text-decoration: none; font-size: 13px; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.center { text-align: center; }
.small-copy { font-size: 12px; line-height: 1.55; }
.microcopy { margin: 10px 0 0; color: #718078; font-size: 11px; line-height: 1.5; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; color: #b9c6bf; font-size: 12px; line-height: 1.5; }
.consent-row input { margin-top: 3px; accent-color: var(--green); }
.consent-row a { color: var(--green); }
.compact-heading { margin-bottom: 12px; }
.compact-heading h2 { margin: 0; font-size: 28px; }
.section-gap { margin-top: 28px !important; }
.mini-pill { margin: 0; padding: 3px 7px; }
.row-actions { display: grid; gap: 7px; justify-items: end; }
.icon-button { width: 31px; height: 31px; border: 1px solid rgba(255,89,100,.28); border-radius: 9px; background: rgba(255,89,100,.06); color: #ff9ca4; cursor: pointer; font-size: 18px; }
.icon-button:hover { background: rgba(255,89,100,.12); }
.account-settings { margin-top: 18px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.settings-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015); }
.settings-card h3 { margin: 0; }
.danger-zone { border-color: rgba(255,89,100,.25); }
.result-headline { margin-top: 18px; font-size: 42px; }
.button.danger.small { padding: 8px 11px; }
.subscription-card .button + .button { margin-top: 8px; }
.money-stat { font-size: 25px !important; }
.readiness-banner { margin-bottom: 12px; padding: 12px; border-radius: 10px; text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.readiness-banner.ready { color: #a5f2db; background: rgba(45,212,163,.1); border: 1px solid rgba(45,212,163,.3); }
.readiness-banner.blocked { color: #ffb3b9; background: rgba(255,89,100,.08); border: 1px solid rgba(255,89,100,.3); }
.readiness-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.readiness-row:last-child { border-bottom: 0; }
.pass-text { color: var(--green); }
.fail-text { color: var(--red); }
.legal-copy { line-height: 1.72; }
.legal-copy h2 { margin-top: 30px; }
.legal-copy ul { color: #c4d0ca; }

@media (max-width: 680px) {
  .settings-grid { grid-template-columns: 1fr; }
  .result-headline { font-size: 34px; }
  .assessment-row { align-items: start; }
}
