/* ML Model Health Check — Dark theme stylesheet */
:root {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-card: #1c2128;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
code { background: #21262d; padding: 2px 6px; border-radius: 4px; font-size: .85em; color: #79c0ff; }

/* ── Nav ── */
nav { display:flex; align-items:center; justify-content:space-between; padding:16px 40px; border-bottom:1px solid var(--border); position:sticky; top:0; background:rgba(13,17,23,.95); backdrop-filter:blur(8px); z-index:10; }
.nav-logo { font-weight:700; font-size:1.2rem; color:var(--text); }
.nav-logo span { color:var(--brand); }
.nav-links { display:flex; gap:24px; align-items:center; font-size:.9rem; color:var(--text-muted); }
.nav-links a:hover { color:var(--text); }

/* ── Buttons ── */
.btn { display:inline-block; padding:10px 22px; border-radius:var(--radius); font-size:.9rem; font-weight:600; cursor:pointer; border:none; transition:.15s; }
.btn-primary { background:var(--brand); color:#fff; }
.btn-primary:hover { background:var(--brand-dark); }
.btn-outline { border:1.5px solid var(--brand); color:var(--brand); background:transparent; }
.btn-outline:hover { background:var(--brand); color:#fff; }
.btn-full { width:100%; text-align:center; margin-top:8px; }
.btn-large { padding:14px 32px; font-size:1rem; }

/* ── Hero ── */
.hero { text-align:center; padding:96px 24px 72px; max-width:800px; margin:0 auto; }
.hero h1 { font-size:3rem; font-weight:800; line-height:1.15; margin-bottom:20px; letter-spacing:-0.02em; }
.hero h1 em { color:var(--brand); font-style:normal; }
.hero p { font-size:1.15rem; color:var(--text-muted); margin-bottom:36px; max-width:600px; margin-left:auto; margin-right:auto; }
.hero-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:32px; }
.hero-trust { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; font-size:.82rem; color:var(--text-muted); }
.hero-trust span::before { content:''; }
.badge { display:inline-block; padding:4px 14px; border-radius:99px; font-size:.78rem; font-weight:600; background:rgba(99,102,241,.15); color:var(--brand); border:1px solid rgba(99,102,241,.3); margin-bottom:20px; }

/* ── Problem ── */
.problem { background:var(--bg-alt); padding:80px 24px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.container { max-width:1000px; margin:0 auto; }
.problem-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.problem h2 { font-size:1.9rem; font-weight:700; line-height:1.2; margin-bottom:16px; }
.problem p { color:var(--text-muted); margin-bottom:24px; }
.problem-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.problem-list li { font-size:.95rem; color:var(--text-muted); }
.problem-quote { background:var(--bg-card); border-left:3px solid var(--brand); border-radius:0 var(--radius) var(--radius) 0; padding:28px; }
.problem-quote blockquote { font-size:1.1rem; font-style:italic; color:var(--text); margin-bottom:12px; line-height:1.5; }
.problem-quote cite { font-size:.82rem; color:var(--text-muted); }

/* ── Audit sections ── */
.features { padding:80px 24px; }
.section-title { text-align:center; font-size:1.8rem; font-weight:700; margin-bottom:8px; }
.section-sub { text-align:center; color:var(--text-muted); margin-bottom:48px; }
.grid-audit { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:20px; max-width:1080px; margin:0 auto; }
.audit-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:24px; }
.audit-card--highlight { border-color:rgba(99,102,241,.4); background:rgba(99,102,241,.06); }
.audit-num { font-size:.78rem; font-weight:700; color:var(--brand); letter-spacing:.08em; margin-bottom:8px; }
.audit-card h3 { font-size:1rem; font-weight:700; margin-bottom:8px; }
.audit-card p { font-size:.88rem; color:var(--text-muted); }

/* ── How it works ── */
.how-it-works { background:var(--bg-alt); padding:80px 24px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.steps { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:32px; margin-top:40px; max-width:960px; margin-left:auto; margin-right:auto; }
.step { text-align:center; }
.step-num { width:44px; height:44px; border-radius:50%; background:rgba(99,102,241,.15); border:2px solid rgba(99,102,241,.3); color:var(--brand); font-weight:700; font-size:1.1rem; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.step h3 { font-size:1rem; font-weight:700; margin-bottom:8px; }
.step p { font-size:.9rem; color:var(--text-muted); }

/* ── Pricing ── */
.pricing-section { padding:80px 24px; }
.pricing-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:24px; max-width:960px; margin:0 auto; }
.pricing-card { background:var(--bg-card); border:1px solid var(--border); border-radius:14px; padding:32px; position:relative; }
.pricing-card--featured { border-color:rgba(99,102,241,.5); background:rgba(99,102,241,.04); }
.plan-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--brand); color:#fff; font-size:.72rem; font-weight:700; padding:4px 14px; border-radius:99px; white-space:nowrap; }
.plan-label { font-size:.82rem; font-weight:600; color:var(--text-muted); letter-spacing:.06em; text-transform:uppercase; margin-bottom:8px; }
.plan-price { font-size:2.4rem; font-weight:800; margin-bottom:6px; }
.plan-desc { font-size:.88rem; color:var(--text-muted); margin-bottom:24px; }
.plan-features { list-style:none; display:flex; flex-direction:column; gap:10px; margin-bottom:28px; font-size:.88rem; color:var(--text-muted); }
.guarantee { text-align:center; font-size:.78rem; color:var(--text-muted); margin-top:10px; }

/* ── FAQ ── */
.faq { background:var(--bg-alt); padding:80px 24px; border-top:1px solid var(--border); }
.faq-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:28px; margin-top:40px; }
.faq-item h3 { font-size:.95rem; font-weight:700; margin-bottom:8px; }
.faq-item p { font-size:.88rem; color:var(--text-muted); }

/* ── CTA ── */
.cta-section { padding:80px 24px; text-align:center; }
.cta-section h2 { font-size:2rem; font-weight:700; margin-bottom:12px; }
.cta-section p { color:var(--text-muted); margin-bottom:28px; }

/* ── Footer ── */
footer { border-top:1px solid var(--border); padding:32px 40px; }
.footer-inner { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.footer-links { display:flex; gap:20px; font-size:.88rem; color:var(--text-muted); }
.footer-copy { font-size:.8rem; color:var(--text-muted); }

/* ── App tool ── */
.app-wrap { max-width:1200px; margin:0 auto; padding:40px 24px; }
.app-header { text-align:center; margin-bottom:36px; }
.app-header h1 { font-size:1.8rem; font-weight:700; margin-bottom:8px; }
.app-header p { color:var(--text-muted); }
.app-columns { display:grid; grid-template-columns:420px 1fr; gap:24px; align-items:start; }
.app-panel { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:28px; }
.app-panel h2 { font-size:1rem; font-weight:700; margin-bottom:20px; color:var(--text); }
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; color:var(--text); }
.form-group label small { font-weight:400; color:var(--text-muted); display:block; margin-top:2px; }
.form-group input, .form-group textarea, .form-group select {
  width:100%; padding:10px 12px; border:1px solid var(--border);
  border-radius:var(--radius); font-size:.88rem; background:#21262d;
  color:var(--text); font-family:inherit; resize:vertical;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline:none; border-color:var(--brand);
}
.btn-sample { font-size:.78rem; color:var(--brand); background:transparent; border:1px solid rgba(99,102,241,.3); border-radius:6px; padding:5px 10px; cursor:pointer; margin-bottom:16px; }
.btn-sample:hover { background:rgba(99,102,241,.1); }
.loading { display:none; align-items:center; gap:10px; color:var(--text-muted); font-size:.88rem; margin-top:14px; }
.spinner { width:18px; height:18px; border:2px solid var(--border); border-top-color:var(--brand); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.error-box { display:none; margin-top:14px; background:#2d0a0a; border:1px solid #ef444440; border-radius:var(--radius); padding:12px 16px; font-size:.85rem; color:#ef4444; }

/* ── Score hero ── */
.score-hero { margin-bottom:20px; }
.score-card { border:1px solid; border-radius:14px; padding:28px; }
.score-meta { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.score-model { font-size:1.1rem; font-weight:700; }
.score-usecase { font-size:.82rem; color:var(--text-muted); margin-top:4px; }
.score-badge { border:1.5px solid; border-radius:99px; padding:4px 14px; font-size:.82rem; font-weight:700; }
.score-display { display:flex; align-items:baseline; gap:8px; margin-bottom:16px; }
.score-number { font-size:4rem; font-weight:800; line-height:1; }
.score-label { font-size:1.2rem; color:var(--text-muted); }
.score-bar-wrap { height:8px; background:#21262d; border-radius:99px; overflow:hidden; }
.score-bar { height:100%; border-radius:99px; transition:width .6s ease; }

/* ── Dimension grid ── */
.dim-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:16px; }
.dim-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.dim-header { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.dim-status-icon { font-size:1rem; font-weight:700; }
.dim-name { flex:1; font-size:.9rem; font-weight:700; }
.dim-score { font-size:.9rem; font-weight:700; }
.dim-bar-wrap { height:4px; background:#21262d; border-radius:99px; overflow:hidden; margin-bottom:10px; }
.dim-bar { height:100%; border-radius:99px; }
.dim-summary { font-size:.8rem; color:var(--text-muted); margin-bottom:10px; }
.dim-findings { display:flex; flex-direction:column; gap:4px; }
.finding { font-size:.78rem; color:var(--text-muted); }

/* ── Action plan ── */
.action-list { display:flex; flex-direction:column; gap:12px; }
.action-item { display:flex; align-items:flex-start; gap:12px; background:#161b22; border-radius:8px; padding:14px; border:1px solid var(--border); }
.action-priority { font-size:.72rem; font-weight:700; padding:3px 8px; border-radius:4px; white-space:nowrap; }
.action-body { flex:1; }
.action-title { font-size:.88rem; font-weight:600; margin-bottom:2px; }
.action-desc { font-size:.8rem; color:var(--text-muted); }
.action-effort { font-size:.72rem; color:var(--text-muted); white-space:nowrap; margin-top:2px; }

/* ── Export bar ── */
.export-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }

/* ── Result section ── */
.result-section { min-width:0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns:1fr; }
  .app-columns { grid-template-columns:1fr; }
  nav { padding:12px 20px; }
  .nav-links { display:none; }
  .hero h1 { font-size:2rem; }
}
