:root {
  --bg: radial-gradient(120% 120% at 20% 20%, #dbeafe 0%, #eef5ff 45%, #f3f8ff 100%);
  --card: rgba(255, 255, 255, 0.8);
  --ink: #0f172a;
  --accent: #0ea5e9;
  --accent-2: #f59e0b;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  --mono: "IBM Plex Mono", monospace;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --brand-bg: #0d1b2a;
  --brand-bg2: #1b263b;
  --brand-text: #ffffff;
}
*
{ box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  padding: 32px 18px 64px;
  overflow-x: hidden;
}
.shell {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--brand-bg), var(--brand-bg2));
  color: var(--brand-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}
.brandbar img {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  display: block;
}
.brandbar .brand-name {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--brand-text);
}
.brandbar a { color: inherit; }
.brand-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 58vw;
  padding: 2px 2px;
}
.lang-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 10px;
  padding: 4px 6px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.12); }
.lang-btn.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.28);
}
.brand-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 6px;
  border-radius: 10px;
}
.brand-github:hover { text-decoration: none; }
.brand-github-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
@media (max-width: 420px) {
  .brandbar .brand-name { font-size: 18px; }
}
.hero {
  background: linear-gradient(125deg, rgba(14,165,233,0.12), rgba(245,158,11,0.12));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px at 85% 20%, rgba(14,165,233,0.15), transparent),
              radial-gradient(260px at 15% 80%, rgba(245,158,11,0.12), transparent);
  pointer-events: none;
}
.hero h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.01em; }
.hero p { margin: 6px 0 0; max-width: 720px; line-height: 1.6; }
.flex {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .flex { grid-template-columns: 1fr; align-items: stretch; }
}
.card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  min-width: 0;
}
.card h2, .card h3 { margin-top: 0; letter-spacing: -0.01em; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 12px;
}
.pill.alt { background: rgba(245, 158, 11, 0.14); color: #92400e; }
form { display: grid; gap: 12px; margin-top: 12px; }
label { font-weight: 600; font-size: 14px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-family: var(--sans);
  font-size: 15px;
  background: #fff;
}
button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  color: #0b1b2c;
  background: linear-gradient(120deg, #22d3ee, #0ea5e9);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}
button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18); }
.grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.05);
  line-height: 1.5;
}
.tagline { font-size: 15px; color: #334155; margin: 0; }
.mono {
  font-family: var(--mono);
  font-size: 14px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  overflow-x: auto;
}
.code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--ink);
  white-space: nowrap;
}
.footnote { font-size: 13px; color: #475569; margin-top: 10px; }
.tiny { font-size: 12px; color: #475569; }
.hero form p.tiny {
  margin: 0;
  text-align: left;
  line-height: 1.45;
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
}
.mini-title { font-weight: 700; margin: 12px 0 6px; letter-spacing: -0.01em; }
.steps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.step {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.step strong { display: block; margin-bottom: 6px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.14);
  color: #0f172a;
  font-weight: 700;
  margin-left: 8px;
  font-size: 13px;
}
.report { margin-top: 12px; display: grid; gap: 10px; }
.report a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}
.score-left { display: grid; gap: 2px; }
.score-title { font-weight: 900; letter-spacing: -0.01em; }
.score-sub { font-size: 13px; color: #475569; }
.score-number {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.22);
  min-width: 118px;
  text-align: center;
}
.score-number.bad { background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.22); }
.score-number.warn { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.24); }
.score-number.good { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.24); }
.score-breakdown { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.score-chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}
.finding { border-left: 4px solid #0ea5e9; padding-left: 12px; }
.finding.high { border-color: #ef4444; }
.finding.med { border-color: #f59e0b; }
.finding.low { border-color: #22c55e; }
.muted { color: #475569; }

/* Utility classes to replace inline styles */
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.m-0 { margin: 0; }
.m-0-0-6 { margin: 0 0 6px; }
.m-0-0-8 { margin: 0 0 8px; }
.m-8-0-0 { margin: 8px 0 0; }
.p-16 { padding: 16px; }
.w-auto { width: auto; }
.z-1 { position: relative; z-index: 1; }

/* Flexbox utilities */
.flex-center-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.flex-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
}
.flex-space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* BIMI logo styles */
.bimi-logo {
  max-width: 160px;
  height: auto;
  display: block;
  margin-top: 10px;
}

/* Mono span for inline code */
.mono-inline {
  font-size: 12px;
  padding: 2px 6px;
}

/* Button gradient */
.btn-gradient {
  background: linear-gradient(120deg, #22d3ee, #0ea5e9);
}
