:root {
  color-scheme: dark;
  --bg: #020617; /* Very dark slate for enterprise feel */
  --panel: rgba(15, 23, 42, 0.65); /* Slate 900 */
  --panel-hover: rgba(30, 41, 59, 0.75); /* Slate 800 */
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --brand: #3b82f6; /* Trustworthy enterprise blue */
  --brand-dark: #2563eb;
  --accent: #6366f1; /* Deep indigo for gradients */
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --soft-good: rgba(16, 185, 129, 0.15);
  --soft-warn: rgba(245, 158, 11, 0.15);
  --soft-bad: rgba(239, 68, 68, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* Background glows - more subtle and professional */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.35;
  animation: pulseGlow 12s infinite alternate;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.bg-glow-1 {
  width: 700px;
  height: 700px;
  background: var(--brand);
  top: -300px;
  left: -200px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: 10%;
  right: -200px;
  animation-delay: -6s;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translateZ(0); opacity: 0.25; }
  100% { transform: scale(1.1) translateZ(0); opacity: 0.45; }
}

.hero {
  padding: 40px max(20px, calc((100vw - 1180px) / 2)) 60px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 60px;
  padding: 12px 24px 12px 12px;
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  color: var(--ink) !important;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
}

img.brand-mark, .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: var(--panel);
  border: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: #93c5fd; /* Light blue */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
}

h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  line-height: 1.05;
  margin: 0 0 24px 0;
  letter-spacing: -0.03em;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.audit-card,
.panel,
.section-card,
.action-card,
.prompt-card {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.audit-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.audit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.1rem;
}

.input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ink);
  border-radius: 12px;
  padding: 16px 20px;
  font: inherit;
  font-size: 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

input::placeholder {
  color: var(--muted);
}

button {
  border: 0;
  border-radius: 12px;
  padding: 16px 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover { 
  background: var(--brand-dark);
  transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

button:disabled { 
  opacity: 0.65; 
  cursor: wait; 
  transform: none; 
  filter: grayscale(1);
}

.form-note { color: var(--muted); line-height: 1.5; font-size: 0.95rem; margin: 0; }

main {
  width: min(1180px, calc(100vw - 36px));
  margin: 20px auto 80px;
  position: relative;
  z-index: 10;
}

.hidden { display: none !important; }

.status-panel {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--ink);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-weight: 500;
  animation: pulseBorder 3s infinite;
}

@keyframes pulseBorder {
  0% { box-shadow: 0 0 0px rgba(59, 130, 246, 0); }
  50% { box-shadow: 0 0 16px rgba(59, 130, 246, 0.2); }
  100% { box-shadow: 0 0 0px rgba(59, 130, 246, 0); }
}

.report { display: grid; gap: 32px; animation: slideUpFade 0.6s ease-out; }

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.score-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px;
}

.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  /* Use the --score variable which now includes % unit */
  background: conic-gradient(
    var(--brand) 0%, 
    var(--accent) var(--score), 
    rgba(255, 255, 255, 0.1) var(--score), 
    rgba(255, 255, 255, 0.1) 100%
  );
  margin: auto;
  position: relative;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
  transition: transform 0.3s ease;
}

.score-circle::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    var(--brand) 0%, 
    var(--accent) var(--score), 
    transparent var(--score), 
    transparent 100%
  );
  filter: blur(15px);
  z-index: -1;
  opacity: 0.8;
  animation: pulseGlow 4s infinite alternate;
}

.score-circle::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--bg);
}

.score-circle strong {
  position: relative;
  z-index: 1;
  font-size: 3.8rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.score-circle span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 1.2rem;
}

.score-copy h2 { 
  margin: 0 0 16px; 
  font-size: 2.4rem; 
  letter-spacing: -0.02em; 
  font-weight: 700;
}
.score-copy p { color: var(--muted); line-height: 1.7; font-size: 1.15rem; }

.fact-grid,
.section-grid,
.actions-grid,
.prompt-grid,
.benchmark-grid {
  display: grid;
  gap: 20px;
}

.fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benchmark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.fact {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.fact:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}

.fact span { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.fact strong { overflow-wrap: anywhere; font-size: 1.15rem; font-weight: 500; }

.panel { padding: 32px; }
.panel h3 { margin: 0 0 24px; font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 600; display: flex; align-items: center; gap: 10px; }

.action-card,
.prompt-card,
.section-card { padding: 24px; }

.action-card { 
  border-left: 4px solid var(--brand); 
}
.action-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.action-card h4,
.prompt-card h4,
.section-card h3 { margin: 0 0 12px; font-weight: 600; font-size: 1.25rem; }
.action-card p,
.prompt-card p { color: var(--muted); line-height: 1.6; }
.action-card ol { padding-left: 20px; color: var(--muted); line-height: 1.6; }
.action-card li { margin-bottom: 8px; }

.section-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.section-score {
  min-width: 64px;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand);
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.checks { display: grid; gap: 16px; }
.check { 
  padding: 16px; 
  border: 1px solid var(--line); 
  border-radius: 12px; 
  background: rgba(0,0,0,0.2);
  transition: border-color 0.2s ease;
}
.check:hover {
  border-color: rgba(255,255,255,0.15);
}
.check-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.check h4 { margin: 0; font-size: 1.1rem; font-weight: 500; }
.evidence { color: var(--muted); line-height: 1.6; margin: 0 0 12px 0; font-size: 0.95rem; }
details { 
  color: var(--ink); 
  line-height: 1.6; 
  background: rgba(255,255,255,0.03); 
  border-radius: 8px; 
  padding: 12px; 
  font-size: 0.95rem;
}
details p { margin: 8px 0 0 0; color: var(--muted); }
summary { cursor: pointer; font-weight: 500; color: var(--brand); user-select: none; }
summary:hover { color: var(--brand-dark); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pill.pass { color: var(--good); background: var(--soft-good); border: 1px solid rgba(52,211,153,0.3); }
.pill.warn { color: var(--warn); background: var(--soft-warn); border: 1px solid rgba(251,191,36,0.3); }
.pill.fail { color: var(--bad); background: var(--soft-bad); border: 1px solid rgba(248,113,113,0.3); }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.meta-row span { 
  border: 1px solid var(--line); 
  border-radius: 6px; 
  padding: 6px 12px; 
  color: var(--muted); 
  font-size: 0.85rem; 
  background: rgba(255,255,255,0.03);
}

@media (max-width: 960px) {
  .hero-grid,
  .score-hero,
  .section-grid,
  .actions-grid,
  .prompt-grid,
  .benchmark-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .input-row { flex-direction: column; }

  .hero-grid > div:first-child {
    text-align: left;
  }

  .hero-grid > div:first-child .eyebrow {
    display: block;
    width: min(90vw, 680px);
    margin-left: 0;
    margin-right: 0;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    max-width: 90vw;
  }

  .hero-grid > div:first-child h1,
  .hero-grid > div:first-child .hero-copy {
    text-align: left;
  }
}

.content-section {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 40px;
}

.content-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-section > p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 860px;
}

.content-section a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.content-section a:hover {
  color: #93c5fd;
}

.content-section code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dimension-card {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.dimension-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.dimension-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}

.dimension-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.dimension-card a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dimension-card code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.faq-item {
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.site-footer {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: #93c5fd;
}

.footer-note {
  font-size: 0.82rem;
  opacity: 0.7;
}

@media (max-width: 960px) {
  .dimension-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .fact-grid { grid-template-columns: 1fr; }
  main { width: min(100vw - 24px, 1180px); }
  .hero { padding-inline: 16px; padding-top: 20px; }
  .nav { 
    padding: 12px 20px; 
    gap: 8px; 
    margin-bottom: 40px;
    align-items: center;
  }
  .nav-links { gap: 10px; }
  .brand-text { font-size: 1.05rem; }
  .nav-links a { 
    font-size: 0.9rem;
    padding: 4px 0; /* Add vertical space for descenders */
  }
  .score-circle { width: 160px; height: 160px; }
  .score-circle strong { font-size: 3rem; }
  .content-section { width: min(100vw - 24px, 1180px); }
  .site-footer { width: min(100vw - 24px, 1180px); }
}