/* ===========================================
   AI Readiness Platform
   Holographic Minimalism / AI-Forward UI
   =========================================== */

/* CSS Variables */
:root {
  /* Base Colors - Dark Theme */
  --bg-deep: #0a0a0f;
  --bg-base: #12121a;
  --bg-elevated: #1a1a24;
  --bg-surface: #22222e;

  /* Brand Colors - Used Sparingly */
  --accent-orange: #f57f20;
  --accent-blue: #02547a;
  --accent-cyan: #0891b2;

  /* Holographic Gradients */
  --gradient-holo: linear-gradient(135deg, rgba(2, 84, 122, 0.1), rgba(245, 127, 32, 0.05));
  --gradient-glow-blue: radial-gradient(ellipse at center, rgba(2, 84, 122, 0.15), transparent 70%);
  --gradient-glow-orange: radial-gradient(ellipse at center, rgba(245, 127, 32, 0.1), transparent 70%);

  /* Text Colors */
  --text-primary: #e8e8ed;
  --text-secondary: #9898a6;
  --text-muted: #5a5a6e;

  /* Glass Effects */
  --glass-bg: rgba(26, 26, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shine: rgba(255, 255, 255, 0.03);

  /* Shadows & Glows */
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow-blue: 0 0 30px rgba(2, 84, 122, 0.2);
  --shadow-glow-orange: 0 0 30px rgba(245, 127, 32, 0.15);

  /* Spacing */
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Transitions - Slow & Confident */
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px; /* Account for fixed header */
}

/* Subtle Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(2, 84, 122, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245, 127, 32, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.02em;
}
h1 { font-size: 3rem; font-weight: 600; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover {
  color: var(--accent-orange);
}

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; color: var(--text-secondary); }

strong { color: var(--text-primary); font-weight: 500; }

/* Selection */
::selection {
  background: rgba(2, 84, 122, 0.4);
  color: var(--text-primary);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 1rem 0;
  position: relative;
}

/* ===========================================
   HEADER - Floating Glass Bar
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 36px;
  width: auto;
  transition: opacity var(--transition-base);
}
.logo:hover {
  text-decoration: none;
}
.logo:hover img {
  opacity: 0.85;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-orange);
  transition: width var(--transition-slow);
}

.nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.btn {
  padding: 0.75rem 2rem;
}

.nav a.btn::after {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  margin: 5px 0;
  transition: var(--transition-base);
}

/* ===========================================
   BUTTONS - Subtle Glow Effects
   =========================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #034d6e);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(2, 84, 122, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(2, 84, 122, 0.5), 0 0 60px rgba(245, 127, 32, 0.2);
  transform: translateY(-2px);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(245, 127, 32, 0.3);
  box-shadow: 0 0 30px rgba(245, 127, 32, 0.1);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ===========================================
   CARDS - Glass Panels
   =========================================== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}

.card-hover:hover {
  border-color: rgba(2, 84, 122, 0.3);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-4px);
}

/* ===========================================
   HERO
   =========================================== */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  background: url('/assets/images/hero.webp') center center / cover no-repeat;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.85) 0%,
    rgba(10, 10, 15, 0.75) 50%,
    rgba(10, 10, 15, 0.9) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow-blue);
  pointer-events: none;
  z-index: 0;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

/* ===========================================
   FEATURE CARDS
   =========================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.feature-card:hover {
  border-color: rgba(245, 127, 32, 0.2);
  box-shadow: var(--shadow-glow-orange);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* Learn Cards */
.learn-card {
  display: block;
  color: inherit;
}
.learn-card:hover { text-decoration: none; }
.learn-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color var(--transition-base);
}
.learn-card:hover h3 { color: var(--accent-cyan); }

/* ===========================================
   AUDIT FORM
   =========================================== */
.audit-form {
  max-width: 600px;
  margin: 0 auto;
}

.audit-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.audit-input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.audit-input::placeholder {
  color: var(--text-muted);
}

.audit-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 84, 122, 0.2), var(--shadow-glow-blue);
}

/* ===========================================
   RESULTS
   =========================================== */
.score-display {
  text-align: center;
  padding: 3rem 2rem;
}

.score-value {
  font-size: 5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.score-excellent {
  color: #22c55e;
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
}
.score-good {
  color: #84cc16;
  text-shadow: 0 0 40px rgba(132, 204, 22, 0.4);
}
.score-fair {
  color: var(--accent-orange);
  text-shadow: 0 0 40px rgba(245, 127, 32, 0.4);
}
.score-poor {
  color: #f97316;
  text-shadow: 0 0 40px rgba(249, 115, 22, 0.4);
}
.score-critical {
  color: #ef4444;
  text-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}

.score-label {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Category Scores */
.category-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.category-score:last-child { border-bottom: none; }

.category-name { font-weight: 500; color: var(--text-primary); }

.category-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  margin: 0 1.5rem;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px currentColor;
}

.category-value {
  font-weight: 600;
  min-width: 3rem;
  text-align: right;
  color: var(--text-primary);
}

/* Findings */
.finding {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--glass-border);
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: all var(--transition-base);
}

.finding:hover {
  background: var(--bg-surface);
}

.finding-critical { border-left-color: #ef4444; }
.finding-warning { border-left-color: var(--accent-orange); }
.finding-info { border-left-color: var(--accent-blue); }
.finding-pass { border-left-color: #22c55e; }

.finding-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* ===========================================
   LOADING
   =========================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  flex-direction: column;
  gap: 1.5rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 2px solid var(--bg-surface);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(2, 84, 122, 0.3);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Alerts */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.2);
}

/* ===========================================
   PROSE / CONTENT
   =========================================== */
.prose { max-width: 75ch; }
.prose h2 { margin: 3rem 0 1.5rem; }
.prose h3 { margin: 2rem 0 1rem; }
.prose p { margin-bottom: 1.5rem; }
.prose ul, .prose ol { margin-bottom: 1.5rem; }

.prose code {
  background: var(--bg-surface);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.prose pre {
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

.prose blockquote {
  border-left: 2px solid var(--accent-orange);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.table th, .table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.table th {
  background: var(--bg-elevated);
  font-weight: 500;
  color: var(--text-primary);
}

.table td {
  color: var(--text-secondary);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer h4 {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

.footer a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===========================================
   UTILITY
   =========================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }

/* Modal Overlay Styles */
.modal-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 1rem;
}

/* Section with subtle glow */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: var(--gradient-glow-blue);
  pointer-events: none;
  z-index: 0;
}

/* ===========================================
   PRINT & PDF EXPORT
   =========================================== */
@media print {
  body { background: white; color: black; }
  body::before { display: none; }
  .header, .footer, .btn, .nav { display: none; }
  .card {
    background: white;
    border: 1px solid #ddd;
    backdrop-filter: none;
  }
}

/* PDF Export Mode - light backgrounds for html2canvas */
.pdf-capture-mode,
.pdf-capture-mode * {
  background-image: none !important;
}

.pdf-capture-mode {
  background: #ffffff !important;
  color: #1a1a2e !important;
}

.pdf-capture-mode .card {
  background: #ffffff !important;
  border: 2px solid #e5e7eb !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.pdf-capture-mode .card-score {
  border-width: 4px !important;
}

.pdf-capture-mode .card-score-excellent {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
}

.pdf-capture-mode .card-score-good {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
}

.pdf-capture-mode .card-score-fair {
  background: #fff7ed !important;
  border-color: #f97316 !important;
}

.pdf-capture-mode .card-score-poor {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
}

.pdf-capture-mode .score-card-blue {
  border-top: 4px solid #3b82f6 !important;
}

.pdf-capture-mode .score-card-green {
  border-top: 4px solid #22c55e !important;
}

.pdf-capture-mode .score-card-purple {
  border-top: 4px solid #a855f7 !important;
}

.pdf-capture-mode .card-insights {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important;
  border-color: #3b82f6 !important;
}

.pdf-capture-mode .card-recommendations {
  border-top: 4px solid #f97316 !important;
}

.pdf-capture-mode .text-primary,
.pdf-capture-mode h1,
.pdf-capture-mode h2,
.pdf-capture-mode h3,
.pdf-capture-mode h4 {
  color: #111827 !important;
}

.pdf-capture-mode .text-secondary,
.pdf-capture-mode p {
  color: #374151 !important;
}

.pdf-capture-mode .text-muted {
  color: #4b5563 !important;
}

.pdf-capture-mode .score-suffix {
  color: #6b7280 !important;
}

.pdf-capture-mode .score-max {
  color: #6b7280 !important;
}

.pdf-capture-mode .score-card-desc {
  color: #374151 !important;
}

.pdf-capture-mode .score-card-header h3 {
  color: #111827 !important;
}

.pdf-capture-mode .score-title {
  color: #4b5563 !important;
}

.pdf-capture-mode .breakdown-value {
  font-weight: 700 !important;
}

.pdf-capture-mode .score-card-blue .breakdown-value {
  color: #2563eb !important;
}

.pdf-capture-mode .score-card-green .breakdown-value {
  color: #16a34a !important;
}

.pdf-capture-mode .score-card-purple .breakdown-value {
  color: #9333ea !important;
}

.pdf-capture-mode .result-header {
  background: #ffffff !important;
  border-left: 4px solid #22c55e !important;
}

.pdf-capture-mode .result-check {
  color: #22c55e !important;
}

.pdf-capture-mode .score-ring-bg {
  stroke: #e5e7eb !important;
}

.pdf-capture-mode .bg-surface,
.pdf-capture-mode .result-header-right {
  background: #f3f4f6 !important;
}

.pdf-capture-mode .insight-card,
.pdf-capture-mode .assessment-card {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
}

.pdf-capture-mode .insight-title {
  color: #111827 !important;
  font-weight: 600 !important;
}

.pdf-capture-mode .insight-reasoning {
  color: #374151 !important;
}

.pdf-capture-mode .breakdown-bar {
  background: #e5e7eb !important;
}

.pdf-capture-mode .breakdown-fill {
  background-image: none !important;
}

.pdf-capture-mode .breakdown-fill-blue {
  background: #3b82f6 !important;
}

.pdf-capture-mode .breakdown-fill-green {
  background: #22c55e !important;
}

.pdf-capture-mode .breakdown-fill-purple {
  background: #a855f7 !important;
}

.pdf-capture-mode .breakdown-header span,
.pdf-capture-mode .breakdown-item span {
  color: #374151 !important;
}

.pdf-capture-mode .schema-types-present {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}

.pdf-capture-mode .schema-types-missing {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.pdf-capture-mode .ai-services-success {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

.pdf-capture-mode .ai-services-warning {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
}

.pdf-capture-mode .ai-services-error {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.pdf-capture-mode .recommendation-card {
  background: #ffffff !important;
}

.pdf-capture-mode .recommendation-error {
  background: #fef2f2 !important;
}

.pdf-capture-mode .recommendation-warning {
  background: #fff7ed !important;
}

.pdf-capture-mode .recommendation-info {
  background: #eff6ff !important;
}

.pdf-capture-mode .recommendation-body > div {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
}

.pdf-capture-mode .recommendation-action {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important;
  border-color: #c7d2fe !important;
}

.pdf-capture-mode .card-recommendations .card-title-row {
  background: #fff7ed !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  border-left: 4px solid #f97316 !important;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
  body { padding-top: 70px; }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 8rem 0 4rem; }
  .section { padding: 3rem 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: black;
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    gap: 0;
  }

  .nav.active { display: flex; }

  .nav a {
    padding: 0.875rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }

  .nav-toggle { display: block; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .audit-input-group { flex-direction: column; }

  .header .container {
    padding: 0.5rem 1rem;
  }

  .score-value { font-size: 4rem; }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================================
   AUDIT RESULTS - Enhanced Display
   =========================================== */

/* Result Header */
.result-header {
  border-left: 4px solid #22c55e;
}

.result-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.result-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.result-check {
  font-size: 2.5rem;
  color: #22c55e;
  line-height: 1;
}

.result-header-left h2 {
  margin-bottom: 0.25rem;
}

.result-header-right {
  text-align: right;
  background: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
}

.load-time-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.load-time-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Overall Score Card */
.card-score {
  text-align: center;
  padding: 3rem;
  border-width: 4px;
}

.card-score-excellent {
  background: rgba(34, 197, 94, 0.05);
  border-color: #22c55e;
}

.card-score-good {
  background: rgba(59, 130, 246, 0.05);
  border-color: #3b82f6;
}

.card-score-fair {
  background: rgba(245, 127, 32, 0.05);
  border-color: var(--accent-orange);
}

.card-score-poor {
  background: rgba(239, 68, 68, 0.05);
  border-color: #ef4444;
}

.score-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.score-circle {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.score-ring {
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--bg-surface);
  stroke-width: 12;
}

.score-ring-progress {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.score-ring-progress.score-excellent { stroke: #22c55e; }
.score-ring-progress.score-good { stroke: #3b82f6; }
.score-ring-progress.score-fair { stroke: var(--accent-orange); }
.score-ring-progress.score-poor { stroke: #ef4444; }

.score-circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-circle-inner .score-value {
  display: block;
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0;
}

.score-max {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.score-level {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: capitalize;
  background: var(--bg-surface);
}

.score-level.score-excellent { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.score-level.score-good { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.score-level.score-fair { background: rgba(245, 127, 32, 0.15); color: var(--accent-orange); }
.score-level.score-poor { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Scores Grid */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Score Cards */
.score-card {
  border-top-width: 4px;
  border-top-style: solid;
}

.score-card-blue { border-top-color: #3b82f6; }
.score-card-green { border-top-color: #22c55e; }
.score-card-purple { border-top-color: #a855f7; }

.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.score-card-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.score-card-icon {
  font-size: 2.5rem;
}

.score-card-value {
  margin-bottom: 1rem;
}

.big-score {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.score-card-blue .big-score { color: #3b82f6; }
.score-card-green .big-score { color: #22c55e; }
.score-card-purple .big-score { color: #a855f7; }

.score-suffix {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.score-card-level {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.score-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

/* Breakdown bars */
.breakdown-list {
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.breakdown-item {
  margin-bottom: 1rem;
}

.breakdown-item:last-child {
  margin-bottom: 0;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.breakdown-header span:first-child {
  color: var(--text-secondary);
}

.breakdown-value {
  font-weight: 600;
}

.score-card-blue .breakdown-value { color: #3b82f6; }
.score-card-green .breakdown-value { color: #22c55e; }
.score-card-purple .breakdown-value { color: #a855f7; }

.breakdown-bar {
  height: 8px;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

.breakdown-fill-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.breakdown-fill-green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.breakdown-fill-purple { background: linear-gradient(90deg, #a855f7, #c084fc); }

/* Card Title Row */
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-title-row h2 {
  margin: 0;
}

.card-icon {
  font-size: 2rem;
}

/* Insights Grid */
.card-insights {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(168, 85, 247, 0.05));
  border-color: rgba(59, 130, 246, 0.2);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.insight-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.insight-icon {
  font-size: 1.25rem;
}

.insight-title {
  font-weight: 600;
  flex: 1;
  color: var(--text-primary);
}

.insight-score {
  font-size: 1.5rem;
  font-weight: 700;
}

.insight-score-blue { color: #3b82f6; }
.insight-score-purple { color: #a855f7; }
.insight-score-green { color: #22c55e; }
.insight-score-orange { color: var(--accent-orange); }

.insight-reasoning {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Schema Section */
.schema-score-badge {
  margin-left: auto;
  text-align: right;
}

.schema-score-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #818cf8;
}

.schema-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* AI Services Check */
.ai-services-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
}

.ai-services-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.ai-services-warning {
  background: rgba(245, 127, 32, 0.1);
  border-color: rgba(245, 127, 32, 0.3);
}

.ai-services-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.ai-services-icon {
  font-size: 1.75rem;
}

.ai-services-success .ai-services-icon { color: #22c55e; }
.ai-services-warning .ai-services-icon { color: var(--accent-orange); }
.ai-services-error .ai-services-icon { color: #ef4444; }

.ai-services-content h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.ai-services-answer {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ai-services-success .ai-services-answer { color: #22c55e; }
.ai-services-warning .ai-services-answer { color: var(--accent-orange); }
.ai-services-error .ai-services-answer { color: #ef4444; }

.ai-services-answer .confidence {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.ai-services-reasoning {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Schema Types Grid */
.schema-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.schema-types-present,
.schema-types-missing {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
}

.schema-types-present {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}

.schema-types-missing {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
}

.schema-types-present h4 {
  color: #22c55e;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.schema-types-missing h4 {
  color: #ef4444;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.schema-types-present h4 span,
.schema-types-missing h4 span {
  margin-right: 0.5rem;
}

.schema-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid;
}

.tag-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.tag-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.tag-warning {
  background: rgba(245, 127, 32, 0.1);
  color: var(--accent-orange);
  border-color: rgba(245, 127, 32, 0.3);
}

.tag-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.tag-neutral {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--glass-border);
}

/* Schema Assessments */
.schema-assessments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.assessment-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.assessment-header h4 {
  margin: 0;
  font-size: 1rem;
}

.assessment-score {
  font-size: 1.25rem;
  font-weight: 700;
}

.assessment-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.assessment-card p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.text-success { color: #22c55e; }
.text-error { color: #ef4444; }

/* Improvements */
.improvement-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border-left: 3px solid;
}

.improvement-high {
  background: rgba(239, 68, 68, 0.05);
  border-left-color: #ef4444;
}

.improvement-medium {
  background: rgba(245, 127, 32, 0.05);
  border-left-color: var(--accent-orange);
}

.improvement-low {
  background: rgba(59, 130, 246, 0.05);
  border-left-color: #3b82f6;
}

.improvement-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  height: fit-content;
}

.improvement-high .improvement-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.improvement-medium .improvement-badge {
  background: rgba(245, 127, 32, 0.2);
  color: var(--accent-orange);
}

.improvement-low .improvement-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.improvement-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.improvement-item p {
  font-size: 0.875rem;
  margin: 0;
}

/* Recommendations */
.card-recommendations {
  border-top: 4px solid var(--accent-orange);
}

.recommendation-card {
  border-left: 4px solid;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.recommendation-error {
  background: rgba(239, 68, 68, 0.05);
  border-left-color: #ef4444;
}

.recommendation-warning {
  background: rgba(245, 127, 32, 0.05);
  border-left-color: var(--accent-orange);
}

.recommendation-info {
  background: rgba(59, 130, 246, 0.05);
  border-left-color: #3b82f6;
}

.recommendation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.recommendation-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recommendation-icon {
  font-size: 1.25rem;
}

.recommendation-title-row h4 {
  margin: 0;
  font-size: 1.1rem;
}

.recommendation-points {
  text-align: right;
}

.points-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #22c55e;
}

.points-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.recommendation-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.recommendation-body > div {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}

.recommendation-body > div:last-child {
  margin-bottom: 0;
}

.recommendation-impact strong,
.recommendation-action strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.recommendation-difficulty {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recommendation-difficulty > span {
  font-size: 0.875rem;
}

.recommendation-difficulty p {
  font-size: 0.875rem;
  margin: 0;
}

.recommendation-action {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(168, 85, 247, 0.05)) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
}

.recommendation-score-info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Responsive for audit results */
@media (max-width: 1024px) {
  .scores-grid {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .schema-types-grid {
    grid-template-columns: 1fr;
  }

  .schema-assessments {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .result-header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .result-header-right {
    width: 100%;
    text-align: center;
  }

  .score-circle {
    transform: scale(0.8);
  }

  .big-score {
    font-size: 3rem;
  }

  .card-title-row {
    flex-wrap: wrap;
  }

  .schema-score-badge {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    text-align: left;
  }

  .recommendation-header {
    flex-direction: column;
    gap: 1rem;
  }

  .recommendation-points {
    text-align: left;
  }
}
