:root {
  color-scheme: light;
  --bg: #eef3f1;
  --ink: #12211d;
  --muted: #65756f;
  --line: #d7e0dc;
  --panel: #ffffff;
  --panel-2: #f8fbfa;
  --accent: #0d7c72;
  --accent-dark: #064b46;
  --gold: #b7791f;
  --red: #b42318;
  --green: #147a43;
  --shadow: 0 18px 55px rgba(18, 33, 29, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, .button, input, select, textarea { font: inherit; }
label { display: grid; gap: 7px; color: #31433e; font-size: 13px; font-weight: 750; }
button, .button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 11px 15px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  min-height: 42px;
}
button:hover, .button:hover { background: var(--accent-dark); }
button.secondary, .button.secondary { background: #e8efec; color: var(--ink); }
button.secondary:hover, .button.secondary:hover { background: #dbe5e1; }
button.active { background: #d9f2ee; color: #063b35; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  min-height: 42px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(13, 124, 114, .18); border-color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(28px, 4vw, 48px); letter-spacing: 0; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { line-height: 1.5; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: #d9f2ee; font-weight: 900; }
.eyebrow.dark { color: var(--accent); }

.marketing { min-height: 100vh; background: var(--bg); }
.marketing-nav {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(22px, 6vw, 72px);
  color: #fff;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.nav-brand span, .brand-mark, .side-brand span {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #d9f2ee;
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 950;
}
.nav-brand span { width: 38px; height: 38px; font-size: 13px; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 750; font-size: 14px; }
.nav-links a:hover { color: #fff; }

.marketing-hero {
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 120px clamp(22px, 6vw, 72px) 70px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(7, 45, 41, .92) 0%, rgba(13, 124, 114, .72) 48%, rgba(7, 45, 41, .24) 100%),
    url("https://images.unsplash.com/photo-1573164713714-d95e436ab8d6?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-copy { width: min(830px, 100%); display: grid; gap: 20px; }
.hero-copy h1 { max-width: 820px; font-size: clamp(38px, 6vw, 72px); }
.hero-lede { max-width: 720px; margin: 0; font-size: clamp(17px, 2vw, 22px); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-secondary { background: rgba(255,255,255,.92) !important; color: var(--accent-dark) !important; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats span {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 850;
}
.marketing-band {
  padding: 64px clamp(22px, 6vw, 72px);
  background: var(--panel);
  display: grid;
  gap: 28px;
}
.marketing-band.alt { background: #f4f8f6; }
.section-heading { max-width: 860px; display: grid; gap: 10px; }
.section-heading h2, .access-copy h2 { font-size: clamp(28px, 3.2vw, 44px); }
.section-heading p, .access-copy p { margin: 0; color: var(--muted); font-size: 17px; }
.marketing-grid, .industry-grid, .framework-strip, .workflow-band { max-width: 1180px; width: 100%; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.marketing-grid article {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.marketing-grid article p { margin-bottom: 0; color: var(--muted); }
.use-case-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.use-case-list div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 8px;
}
.use-case-list span { color: var(--muted); line-height: 1.45; }
.faq-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.faq-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.faq-grid p { color: var(--muted); margin-bottom: 0; }
.industry-grid, .framework-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.industry-grid span, .framework-strip span {
  background: #edf4f1;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 850;
}
.compliance { background: linear-gradient(180deg, #fff, #eef5f2); }
.pricing-band { background: #fff; }
.pricing-card {
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbfa, #fff);
  padding: 24px;
  box-shadow: var(--shadow);
}
.pricing-card h3 { margin-top: 12px; font-size: 24px; }
.pricing-card p { color: var(--muted); margin-bottom: 0; }
.pricing-card ul {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 20px;
  columns: 2;
  color: #334740;
  line-height: 1.8;
}
.pricing-card .button { justify-self: start; }
.price {
  color: var(--accent-dark);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 950;
  white-space: nowrap;
}
.price span { color: var(--muted); font-size: 16px; font-weight: 850; }
.workflow-band {
  padding: 36px clamp(22px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}
.workflow-step {
  background: #0f211e;
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 8px;
}
.workflow-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d9f2ee;
  color: var(--accent-dark);
  font-weight: 950;
}
.workflow-step p { margin: 0; color: rgba(255,255,255,.78); }
.access-section {
  padding: 70px clamp(22px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 430px);
  gap: 32px;
  align-items: center;
  background: #eaf2ef;
}
.access-copy { display: grid; gap: 12px; max-width: 640px; }
.auth-panel {
  align-self: center;
  justify-self: center;
  width: min(430px, calc(100% - 36px));
  display: grid;
  gap: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #edf4f1; padding: 5px; border-radius: 8px; }
.tabs button { background: transparent; color: var(--muted); }
.tabs button.active { background: white; color: var(--accent-dark); box-shadow: 0 6px 18px rgba(18, 33, 29, .08); }

.shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
aside { background: #0f211e; color: white; padding: 22px; display: flex; flex-direction: column; gap: 24px; }
.side-brand { display: flex; align-items: center; gap: 12px; }
.side-brand span { width: 38px; height: 38px; font-size: 13px; }
aside nav { display: grid; gap: 7px; }
aside nav button { text-align: left; background: transparent; color: #d9e7e3; border: 1px solid transparent; }
aside nav button:hover { background: rgba(255,255,255,.08); }
aside nav button.active { border-color: rgba(217,242,238,.32); }

.workspace { padding: 28px; display: grid; gap: 20px; align-content: start; }
header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.grid { display: grid; gap: 12px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 13px; }
.panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 25px rgba(18, 33, 29, .05);
}
.compact-toolbar { padding: 12px; }
.compact-toolbar label { max-width: 420px; }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(120deg, #ffffff, #eef8f5);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.dashboard-hero h2 { font-size: clamp(24px, 3vw, 38px); }
.dashboard-hero p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); }
.risk-gauge {
  --risk: 0;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--risk) * 1%), #dfe8e4 0);
  position: relative;
  text-align: center;
}
.risk-gauge::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}
.risk-gauge strong, .risk-gauge span { grid-area: 1 / 1; position: relative; z-index: 1; }
.risk-gauge strong { align-self: center; margin-top: -18px; font-size: 34px; color: var(--accent-dark); line-height: 1; }
.risk-gauge span { align-self: center; margin-top: 38px; color: var(--muted); font-weight: 850; line-height: 1; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.metric {
  background: linear-gradient(180deg, #fff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 112px;
}
.metric strong { display: block; font-size: 30px; margin-top: 10px; color: var(--accent-dark); }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
.chart-panel { min-height: 280px; }
.donut-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 16px;
}
.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.donut::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #fff;
}
.donut span { position: relative; z-index: 1; font-size: 28px; font-weight: 950; color: var(--accent-dark); }
.chart-legend { display: grid; gap: 8px; }
.chart-legend span { display: flex; align-items: center; gap: 8px; color: #344640; font-weight: 800; }
.chart-legend i { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.chart-caption { margin-bottom: 0; }
.bar-chart { display: grid; gap: 12px; margin-top: 14px; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}
.bar-row span { font-weight: 850; color: #31433e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row div { height: 12px; background: #e8efec; border-radius: 999px; overflow: hidden; }
.bar-row i { display: block; height: 100%; border-radius: inherit; }
.bar-row strong { text-align: right; color: var(--accent-dark); }
.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: 0; }
.rank-row > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf4f1;
  color: var(--accent-dark);
  font-weight: 950;
}
.rank-row p { margin: 5px 0 0; color: var(--muted); }
.agent-health-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.agent-health-mini span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfa;
  padding: 7px 10px;
  color: var(--accent-dark);
  font-weight: 900;
}
.list { display: grid; gap: 12px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 8px 24px rgba(18, 33, 29, .05);
}
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.asset-findings {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 33, 29, .05);
}
.asset-findings-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbfa, #eef5f2);
  border-bottom: 1px solid var(--line);
}
.asset-findings-head p { margin: 5px 0 0; color: var(--muted); }
.finding-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.finding-card:last-child { border-bottom: 0; }
.finding-card p { margin: 10px 0; }
.severity-strip { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.severity-strip span {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}
#reportForm { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(180px, 1fr) auto; }
.report-preview {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 33, 29, .05);
}
.row a:not(.button) { color: var(--accent-dark); font-weight: 800; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  margin-right: 4px;
}
.Critical { background: #fee4e2; color: var(--red); }
.High { background: #ffead5; color: #9a3412; }
.Medium { background: #fef3c7; color: #92400e; }
.Low { background: #dbeafe; color: #1d4ed8; }
.Informational { background: #e7f8ee; color: var(--green); }
.check { display: flex; align-items: center; gap: 8px; grid-column: span 2; color: var(--muted); }
.check input { width: auto; min-height: auto; }
#message { min-height: 0; }
.toast { padding: 11px 13px; border-radius: 7px; background: #e7f8ee; border: 1px solid #b7e1c6; color: #105b2b; }
.toast.error { background: #fee4e2; border-color: #f6b8b2; color: var(--red); }
pre { white-space: pre-wrap; overflow: auto; background: #f6f8f7; border: 1px solid var(--line); padding: 12px; border-radius: 7px; }

@media (max-width: 980px) {
  .marketing-nav { position: absolute; padding: 18px 22px; }
  .nav-links { display: none; }
  .marketing-hero { min-height: 760px; padding: 110px 22px 44px; }
  .three-col, .use-case-list, .faq-grid, .workflow-band, .access-section { grid-template-columns: 1fr; }
  .pricing-card { grid-template-columns: 1fr; }
  .pricing-card ul { columns: 1; }
  .marketing-band { padding: 46px 22px; }
  .workflow-band { padding: 28px 22px; }
  .access-section { padding: 48px 22px; }
  .shell { grid-template-columns: 1fr; }
  aside { position: static; }
  aside nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards, .two, .three { grid-template-columns: 1fr; }
  #reportForm { grid-template-columns: 1fr; }
  .dashboard-hero, .donut-wrap, .finding-card { grid-template-columns: 1fr; }
  .risk-gauge { justify-self: start; }
  .check { grid-column: span 1; }
  .row { grid-template-columns: 1fr; }
  header { align-items: flex-start; }
}

@media (max-width: 640px) {
  .workspace { padding: 18px; }
  aside nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .button { width: 100%; }
  .auth-panel { width: 100%; }
}
