/* ==========================================================================
   Echo — Software Architecture Resilience & Blast Radius Simulator
   Typography: Arimo (Strictly Logo Brand Mark Only) & Manrope (Slim Thickness for all UI)
   Aesthetics: Deep Obsidian Slate, Razor 1px Borders, Balanced Proportions, Restrained Glow
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@700;800&family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@200;300;400;500;600&display=swap');

:root {
  --bg-base: #06080d;
  --bg-surface: rgba(12, 16, 23, 0.76);
  --bg-surface-elevated: rgba(16, 22, 33, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(56, 189, 248, 0.45);
  --accent-cyan: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

/* Base reset & layout guards */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-base);
  color: #e2e8f0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300; /* Manrope with slim thickness for the entire site */
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arimo ONLY for logo */
.font-logo {
  font-family: 'Arimo', sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.035em;
}

/* Manrope for all headings and text */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--text-primary);
}

.font-slim {
  font-weight: 200;
}

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.015em;
}

/* High-end Metallic Text Gradient */
.text-gradient-silver {
  background: linear-gradient(180deg, #ffffff 15%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Crisp minimal scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #06080d;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Clean glass surfaces (Subtle & Restrained) */
.liquid-glass {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.liquid-glass-interactive {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.liquid-glass-interactive:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px -4px rgba(0, 0, 0, 0.55), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.liquid-glass-pill {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.liquid-glass-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
}

/* Subtle architectural radial backdrop glow */
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 420px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(129, 140, 248, 0.03) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Background Subtle Grid Texture (Engineering precision) */
.grid-overlay {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
}

/* Metric Cards with Severity Top Highlight */
.card-metric {
  position: relative;
  overflow: hidden;
  background: rgba(10, 14, 21, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.card-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.4;
}

/* Markdown styling inside executive briefing */
.executive-summary-content p {
  margin-bottom: 0.65rem;
  line-height: 1.65;
  font-weight: 300;
}

.executive-summary-content p:last-child {
  margin-bottom: 0;
}

.executive-summary-content strong {
  color: #f8fafc;
  font-weight: 500;
}

.executive-summary-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #38bdf8;
}
