/* Gavel-Class Audit Group — Unified Design v1.0 */
/* Dark forensic / Tuxedo Standard aesthetic */

:root {
  --bg: #0B0E14;
  --surface: #111827;
  --surface-2: #1a2332;
  --border: #223044;
  --text: #f0f1f3;
  --muted: #94a3b8;
  --gold: #c9a227;
  --gold-dim: #9a7b1a;
  --steel: #38bdf8;
  --steel-dim: #0ea5e9;
  --red: #ef4444;
  --amber: #f59e0b;
  --green: #10b981;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier Prime', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-decoration: none;
}
.logo span { color: var(--white); font-weight: 500; }
header a.logo { display: inline-block; }
header a.logo:hover { text-decoration: none; }
nav a {
  color: var(--muted);
  margin-left: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
nav a:hover { color: var(--white); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,14,20,0.85) 0%, rgba(17,24,39,0.7) 50%, rgba(11,14,20,0.95) 100%),
              url('../images/hero_courtroom_classic_flux_1344x768.png') center/cover no-repeat;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 840px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--white);
}
.hero p.lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  margin: 0 0 36px;
  font-weight: 300;
}
.cta {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cta:hover { background: var(--white); text-decoration: none; }
.cta.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  margin-left: 16px;
}
.cta.secondary:hover { background: var(--white); color: var(--bg); }

/* Sections */
section { padding: 96px 0; position: relative; }
section.alt { background: var(--surface); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 16px;
  color: var(--white);
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Problem section */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.problem-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 20px;
  color: var(--white);
}
.problem-text p { color: var(--muted); margin: 0 0 18px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  border-radius: 2px;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  margin: 0;
}
.stat-card .label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* 10-point grid */
.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.point-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: default;
}
.point-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.point-card .num {
  width: 40px; height: 40px;
  line-height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 0 auto 16px;
}
.point-card h4 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--white);
  font-weight: 600;
}
.point-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Assessment flow */
#assessment { padding-top: 120px; }
.audit-panel {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px;
}
.progress-wrap {
  margin-bottom: 36px;
}
.progress-bar-bg {
  background: var(--surface-2);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--steel), var(--gold));
  transition: width 0.4s ease;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.question-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--white);
}
.question-card .context {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
  color: var(--text);
}
.option:hover { border-color: var(--steel); }
.option.selected {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.option .radio {
  width: 18px; height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
}
.option.selected .radio { border-color: var(--gold); background: var(--gold); }
.audit-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}
.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 24px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}
.nav-btn:hover { border-color: var(--white); color: var(--white); }
.nav-btn.primary { background: var(--gold); color: #000; border-color: var(--gold); }
.nav-btn.primary:hover { background: var(--white); border-color: var(--white); }
.nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Terminal scan */
.terminal {
  background: #05070a;
  border: 1px solid #1e293b;
  border-radius: 2px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  min-height: 220px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.terminal::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 12px 2px var(--steel);
  animation: scanLine 2.2s linear infinite;
}
.terminal-line { margin: 4px 0; opacity: 0; animation: lineFadeIn 0.25s forwards; }
@keyframes scanLine { 0% { top: 0%; } 50% { top: 100%; } 100% { top: 0%; } }
@keyframes lineFadeIn { to { opacity: 1; } }

/* Email gate */
.email-gate {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.lock-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.email-gate h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 12px;
}
.email-gate p { color: var(--muted); margin: 0 0 24px; }
.email-input {
  background: #05070a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 16px;
  border-radius: 2px;
}
.email-input:focus { outline: none; border-color: var(--gold); }

/* Results */
.results-dashboard { text-align: center; }
.score-ring {
  width: 200px; height: 200px;
  margin: 0 auto 32px;
  position: relative;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.score-ring .fill { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-center .big {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--white);
}
.score-center .small { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.status-badge {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 28px;
}
.gaps-list {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: left;
}
.gap-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 2px;
}
.gap-item h4 { margin: 0 0 6px; font-size: 1rem; color: var(--white); }
.gap-item p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Solution section */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.solution-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 20px;
}
.solution-text p { color: var(--muted); margin: 0 0 18px; }
.features { list-style: none; padding: 0; margin: 28px 0; }
.features li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
}
.features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Footer */
footer {
  background: #07090d;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; }
.footer-col a { display: block; color: var(--muted); margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.disclaimer {
  max-width: 800px;
  margin: 24px auto 0;
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .problem-grid, .solution-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .cta.secondary { margin-left: 0; margin-top: 12px; }
}
@media (max-width: 640px) {
  nav { display: none; }
  .audit-panel { padding: 28px; }
  .points-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { display: block; width: 100%; }
}
