/* ============================================================
   Fixident Design System — Premium Enterprise Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  --bg:             #080B10;
  --surface:        #0C1018;
  --surface-2:      #131923;
  --accent:         #00D48E;
  --accent-dim:     rgba(0,212,142,0.12);
  --accent-glow:    rgba(0,212,142,0.25);
  --info:           #3D7FFF;
  --info-dim:       rgba(61,127,255,0.12);
  --warning:        #F59E0B;
  --warning-dim:    rgba(245,158,11,0.12);
  --error:          #F06060;
  --error-dim:      rgba(240,96,96,0.12);
  --purple:         #A78BFA;
  --purple-dim:     rgba(167,139,250,0.12);
  --text-primary:   #EEF1F5;
  --text-secondary: #7A8FA8;
  --text-muted:     #344559;
  --border:         rgba(255,255,255,0.07);
  --border-accent:  rgba(0,212,142,0.25);
  --font-heading:   'Syne', sans-serif;
  --font-body:      'DM Sans', sans-serif;
  --font-mono:      'DM Mono', monospace;
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --radius-sm:   6px;
  --radius-md:   7px;
  --radius-lg:   10px;
  --radius-xl:   12px;
  --radius-full: 9999px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(0,212,142,0.15);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --max-width: 1280px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: #33e0a5; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: 3.25rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }
p { color: var(--text-secondary); line-height: 1.7; }

.text-accent { color: var(--accent); }
.text-info { color: var(--info); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-mono { font-family: var(--font-mono); }
.font-heading { font-family: var(--font-heading); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-4xl) 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex; align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.nav-logo .o { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: var(--space-xl); list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: color var(--transition-fast); }
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 10px 22px; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  border: none; border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition-base); white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #080B10; }
.btn-primary:hover { background: #00e89a; box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: #1a2333; border-color: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-dim); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-lg);
  transition: all var(--transition-base);
}
.card:hover { border-color: rgba(255,255,255,0.12); box-shadow: var(--shadow-md); }
.card-surface-2 { background: var(--surface-2); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
  border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-info { background: var(--info-dim); color: var(--info); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-error { background: var(--error-dim); color: var(--error); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-muted { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

/* Code Blocks */
.code-block {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-md); font-family: var(--font-mono); font-size: 0.8125rem;
  line-height: 1.6; color: var(--text-primary); overflow-x: auto; position: relative;
}
.code-block .copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 4px 10px; font-size: 0.6875rem;
  font-family: var(--font-mono); border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition-fast);
}
.code-block .copy-btn:hover { color: var(--text-primary); background: #1a2333; }

/* Form Elements */
.input, .textarea, .select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px;
  font-family: var(--font-body); font-size: 0.875rem; color: var(--text-primary);
  transition: border-color var(--transition-fast); outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.textarea { font-family: var(--font-mono); resize: vertical; min-height: 200px; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }

/* Tabs */
.tabs { display: flex; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 3px; }
.tab {
  flex: 1; padding: 8px 16px; font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary); background: transparent; border: none;
  border-radius: 5px; cursor: pointer; transition: all var(--transition-fast); text-align: center;
}
.tab.active { background: var(--surface-2); color: var(--text-primary); }
.tab:hover:not(.active) { color: var(--text-primary); }

/* Progress Steps */
.progress-steps { display: flex; align-items: center; gap: var(--space-sm); }
.progress-step {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.8125rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition-base);
}
.progress-step.active { color: var(--accent); }
.progress-step.completed { color: var(--text-secondary); }
.progress-step .step-number {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; border: 2px solid var(--text-muted);
  transition: all var(--transition-base);
}
.progress-step.active .step-number { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.progress-step.completed .step-number { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.progress-connector { width: 40px; height: 2px; background: var(--text-muted); border-radius: 1px; transition: background var(--transition-base); }
.progress-connector.active { background: var(--accent); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 14px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); font-size: 0.875rem; color: var(--text-primary);
  box-shadow: var(--shadow-lg); z-index: 9999;
  display: flex; align-items: center; gap: var(--space-sm);
  transform: translateY(100px); opacity: 0; transition: all var(--transition-base);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-color: var(--accent); }
.toast-error { border-color: var(--error); }
.toast-warning { border-color: var(--warning); }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
.spinner-sm { width: 14px; height: 14px; }
.spinner-lg { width: 24px; height: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Progress Bar */
.progress-bar { width: 100%; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width var(--transition-slow); }
.progress-bar-indeterminate .progress-bar-fill { width: 30%; animation: indeterminate 1.5s ease-in-out infinite; }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

/* Severity */
.severity-critical { border-left: 3px solid var(--error); }
.severity-high { border-left: 3px solid var(--warning); }
.severity-medium { border-left: 3px solid var(--info); }
.severity-low { border-left: 3px solid var(--accent); }

/* Trust Bar */
.trust-bar { display: flex; align-items: center; gap: var(--space-sm); padding: 10px 16px; border-radius: var(--radius-md); font-size: 0.8125rem; font-weight: 500; transition: all var(--transition-base); }
.trust-bar-info { background: var(--info-dim); color: var(--info); border: 1px solid rgba(61,127,255,0.2); }
.trust-bar-success { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,212,142,0.2); }

/* Sidebar */
.sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-lg); }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-lg); }
.sidebar-card h4 { font-size: 0.875rem; margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }

/* Page Layout */
.page-content { margin-top: var(--nav-height); min-height: calc(100vh - var(--nav-height)); }
.two-col-layout { display: flex; gap: var(--space-xl); max-width: var(--max-width); margin: 0 auto; padding: var(--space-xl) var(--space-lg); }
.two-col-layout .main-col { flex: 1; min-width: 0; }
.three-col-layout { display: flex; gap: var(--space-xl); max-width: 1440px; margin: 0 auto; padding: var(--space-xl) var(--space-lg); }
.three-col-layout .left-nav { width: 200px; flex-shrink: 0; }
.three-col-layout .center-col { flex: 1; min-width: 0; }
.three-col-layout .right-panel { width: 260px; flex-shrink: 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: var(--space-2xl) 0; margin-top: var(--space-4xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); }
.footer-brand p { font-size: 0.875rem; margin-top: var(--space-sm); }
.footer-links h4 { font-size: 0.8125rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-md); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: var(--text-muted); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.3s ease forwards; }
.animate-slideRight { animation: slideInRight 0.4s ease forwards; }
.animate-slideDown { animation: slideInDown 0.3s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }

/* Terminal Mockup */
.terminal { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal-header { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #F06060; }
.terminal-dot.yellow { background: #F59E0B; }
.terminal-dot.green { background: #00D48E; }
.terminal-body { padding: 20px; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.8; color: var(--text-secondary); min-height: 200px; }
.terminal-body .line { display: block; opacity: 0; animation: fadeIn 0.3s ease forwards; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .cmd { color: var(--text-primary); }
.terminal-body .output { color: var(--text-secondary); }
.terminal-body .highlight { color: var(--accent); }
.terminal-body .error-code { color: var(--error); }
.terminal-body .warning-text { color: var(--warning); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .two-col-layout { flex-direction: column; }
  .two-col-layout .sidebar { width: 100%; }
  .three-col-layout { flex-direction: column; }
  .three-col-layout .left-nav, .three-col-layout .right-panel { width: 100%; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section { padding: var(--space-3xl) 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .container { padding: 0 var(--space-md); }
  .btn-lg { padding: 12px 24px; font-size: 0.875rem; }
}
