@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --itlligen-blue-50: #eef2ff;
  --itlligen-blue-100: #dbe4ff;
  --itlligen-blue-200: #bac8ff;
  --itlligen-blue-300: #91a7ff;
  --itlligen-blue-400: #748ffc;
  --itlligen-blue-500: #5c7cfa;
  --itlligen-blue-600: #4c6ef5;
  --itlligen-blue-700: #3b5bdb;
  --itlligen-blue-800: #2b3a8f;
  --itlligen-blue-900: #0a1628;
  --itlligen-blue-950: #060d1a;
  --fortinet-red: #C00000;
  --fortinet-red-dark: #8B0000;
  --fortinet-red-light: #FF3333;
  --accent: #ffbb3c;
  --accent-light: #ffcc66;
  --accent-dark: #e5a530;
  --surface: #f5f6f8;
  --surface-50: #ffffff;
  --surface-100: #f0f1f3;
  --surface-200: #e2e4e8;
  --surface-300: #c8cbd2;
  --font-inter: 'Inter', system-ui, -apple-system, sans-serif;
  --font-poppins: 'Poppins', system-ui, sans-serif;
}

@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slideIn { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(10,22,40,0.35); } 50% { box-shadow: 0 0 0 10px rgba(10,22,40,0); } }
@keyframes pulseGlowFortinet { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,0,0,0.35); } 50% { box-shadow: 0 0 0 10px rgba(192,0,0,0); } }

html { scroll-behavior: smooth; }
* { font-family: var(--font-inter); }
body { background: linear-gradient(160deg, #f0f2f8 0%, #e8ecf5 40%, #dde3f0 100%); min-height: 100vh; margin: 0; }

.apple-card { background: var(--surface-50); border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.03); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.apple-card:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 8px 28px rgba(0,0,0,0.06); transform: translateY(-1px); }
.apple-card-subtle { background: var(--surface-50); border: 0.5px solid rgba(0,0,0,0.04); border-radius: 12px; box-shadow: 0 0.5px 2px rgba(0,0,0,0.03); transition: all 0.2s ease; }
.apple-card-subtle:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.screen { display: none; }
.screen.active { display: block; animation: slideIn 0.4s ease-out; }
.screen.hidden { display: none; }

.btn-primary { background: linear-gradient(135deg, var(--itlligen-blue-900) 0%, var(--itlligen-blue-600) 100%); color: var(--surface-50); font-family: var(--font-poppins); font-weight: 600; padding: 13px 34px; border: none; border-radius: 12px; font-size: 15px; transition: all 0.25s ease; cursor: pointer; letter-spacing: 0.01em; }
.btn-primary:hover { background: linear-gradient(135deg, var(--itlligen-blue-600) 0%, #2563eb 100%); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(10,22,40,0.25); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary.accent { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); color: var(--itlligen-blue-900); }
.btn-primary.accent:hover { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); box-shadow: 0 6px 24px rgba(255,187,60,0.3); }

.btn-secondary { background: transparent; color: var(--itlligen-blue-900); border: 1px solid rgba(10,22,40,0.12); border-radius: 12px; font-weight: 500; padding: 12px 26px; font-size: 15px; transition: all 0.2s ease; cursor: pointer; }
.btn-secondary:hover { background: rgba(10,22,40,0.04); border-color: rgba(10,22,40,0.25); }

.btn-pulse { animation: pulseGlow 2.5s ease-in-out infinite; }

.btn-fortinet { background: var(--fortinet-red); color: var(--surface-50); font-family: var(--font-poppins); font-weight: 600; padding: 13px 34px; border: none; border-radius: 12px; font-size: 15px; transition: all 0.25s ease; cursor: pointer; letter-spacing: 0.01em; }
.btn-fortinet:hover { background: var(--fortinet-red-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(192,0,0,0.25); }
.btn-fortinet.pulse { animation: pulseGlowFortinet 2.5s ease-in-out infinite; }

.radio-card { transition: all 0.25s ease; }
.radio-card:has(input:checked) { border-color: var(--itlligen-blue-600); background: rgba(30,58,138,0.04); }
.radio-card:has(input:checked) .radio-dot { background: var(--itlligen-blue-600); border-color: var(--itlligen-blue-600); }
.radio-card:has(input:checked) .radio-dot::after { content: ''; position: absolute; width: 8px; height: 8px; background: white; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }

.input-light { background: #fafafa; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; color: #1a1a1a; padding: 13px 16px; font-size: 15px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input-light:focus { border-color: var(--itlligen-blue-600); outline: none; box-shadow: 0 0 0 3px rgba(30,58,138,0.1); }
.input-light::placeholder { color: #a3a3a3; }

.progress-track { background: #e5e5e5; }
.progress-fill { background: linear-gradient(90deg, var(--itlligen-blue-900), var(--itlligen-blue-600), #2563eb); box-shadow: 0 0 8px rgba(30,58,138,0.2); }

.severity-high { border-left: 3px solid #ef4444; }
.severity-medium { border-left: 3px solid #f59e0b; }
.severity-low { border-left: 3px solid #22c55e; }

.text-gradient { background: linear-gradient(135deg, var(--itlligen-blue-900), var(--itlligen-blue-600), #2563eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }

.org-button.selected { border-color: var(--itlligen-blue-600) !important; background: rgba(30,58,138,0.05) !important; box-shadow: 0 2px 12px rgba(30,58,138,0.1); }

.brand-accent-line { height: 3px; background: linear-gradient(90deg, var(--accent), var(--itlligen-blue-600), var(--accent)); border-radius: 2px; }

*:focus-visible { outline: 2px solid var(--itlligen-blue-600); outline-offset: 2px; }

@media print { body { background: white !important; } .btn-primary, .btn-secondary, button { display: none !important; } .apple-card { box-shadow: none !important; border: 1px solid #ddd !important; } }

.input-error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important; }
.error-text { color: #ef4444; font-size: 12px; margin-top: 4px; display: none; }
.error-text.visible { display: block; }

.validation-banner { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: 10px; color: #dc2626; font-size: 14px; padding: 10px 16px; display: none; margin-bottom: 16px; text-align: center; font-weight: 500; }
.validation-banner.visible { display: block; }

.honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.mitre-card { background: linear-gradient(135deg, #1a0a0a, #2d1515); border: 1px solid rgba(239,68,68,0.15); }
.mitre-tactic-badge { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; }
.mitre-tech-id { font-family: 'Courier New', monospace; background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 4px; font-size: 11px; color: #fca5a5; }

.domain-card-opt { border-left: 3px solid #22c55e; }
.domain-card-imp { border-left: 3px solid #f59e0b; }
.domain-card-crit { border-left: 3px solid #ef4444; }

.opt-badge { background: rgba(34,197,94,0.08); color: #16a34a; border: 1px solid rgba(34,197,94,0.15); }
.imp-badge { background: rgba(245,158,11,0.08); color: #d97706; border: 1px solid rgba(245,158,11,0.15); }
.crit-badge { background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.15); }

.inventory-toggle { cursor: pointer; transition: all 0.2s ease; }
.inventory-toggle:hover { background: rgba(30,58,138,0.04); }

.dashboard-metric { transition: all 0.3s ease; }
.dashboard-metric:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.domain-expand-btn { cursor: pointer; transition: all 0.2s ease; }
.domain-expand-btn:hover { background: rgba(30,58,138,0.06); }

.domain-detail { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; }
.domain-detail.open { max-height: 600px; opacity: 1; }

.exec-summary-card { background: linear-gradient(135deg, #f8fafc, #eef2ff); border: 1px solid rgba(30,58,138,0.08); }

.risk-simple { border-left: 3px solid #ef4444; }
.risk-moderate { border-left: 3px solid #f59e0b; }
.risk-low { border-left: 3px solid #22c55e; }

.tooltip-natural { position: relative; }
.tooltip-natural::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--itlligen-blue-900); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.tooltip-natural:hover::after { opacity: 1; }

.fortinet-badge { background: var(--fortinet-red); color: white; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

.footer-legal { background: #fefce8; border: 1px solid #fde68a; border-radius: 12px; padding: 16px; }

/* Stepper */
.stepper-container { position: relative; }
.stepper-line { position: absolute; left: 20px; top: 40px; width: 2px; height: calc(100% - 80px); background: var(--surface-200); z-index: 0; }
.stepper-item { position: relative; z-index: 1; }
.stepper-icon { transition: all 0.3s ease; }
.stepper-icon.active { background: var(--itlligen-blue-100) !important; }
.stepper-icon.active i { color: var(--itlligen-blue-600) !important; }
.stepper-icon.completed { background: var(--itlligen-blue-50) !important; }
.stepper-icon.completed i { color: var(--itlligen-blue-400) !important; }
.stepper-content h3 { transition: color 0.3s ease; }
.stepper-content p { transition: color 0.3s ease; }

@media (max-width:640px) { .domain-detail.open { max-height: 800px; } }

/* Toast Notifications */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 12px; color: white; font-size: 14px; font-weight: 500; box-shadow: 0 8px 32px rgba(0,0,0,0.12); animation: slideInRight 0.3s ease-out; min-width: 300px; }
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
.toast.info { background: #3b82f6; }
.toast.warning { background: #f59e0b; }
.toast i { flex-shrink: 0; }

@keyframes slideInRight { 0% { opacity: 0; transform: translateX(100px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } }

/* Progress Bar */
.progress-bar-container { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: rgba(0,0,0,0.05); z-index: 9998; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--itlligen-blue-900), var(--itlligen-blue-600), var(--fortinet-red)); transition: width 0.4s ease; width: 0%; }

/* Lucide icons */
[data-lucide] { width: 1.25rem; height: 1.25rem; display: inline-block; }
[data-lucide="loader-2"] { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Step Navigation */
.step-navigation { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); }
.btn-anterior { background: transparent; color: var(--itlligen-blue-600); border: 1px solid var(--itlligen-blue-200); border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.btn-anterior:hover { background: var(--itlligen-blue-50); border-color: var(--itlligen-blue-400); }
.btn-anterior:disabled { opacity: 0.3; cursor: not-allowed; }

/* Question Validation */
.question-card { transition: all 0.3s ease; }
.question-card.unanswered { border-color: #fca5a5 !important; background: rgba(239,68,68,0.02) !important; }
.question-card.answered { border-color: #86efac !important; background: rgba(34,197,94,0.02) !important; }

/* Success Screen */
.success-icon { animation: scaleIn 0.5s ease-out; }
@keyframes scaleIn { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
