@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Colors - Enterprise Light Mode */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC; /* Slate 50 */
  --bg-tertiary: #F1F5F9; /* Slate 100 */
  
  --text-primary: #0F172A; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748B; /* Slate 500 */
  
  --accent-primary: #0284C7; /* Light Blue 600 */
  --accent-secondary: #2563EB; /* Blue 600 */
  --accent-badge: #0D9488; /* Teal 600 */
  --accent-alert: #E11D48; /* Rose 600 */
  --accent-warning: #D97706; /* Amber 600 */
  
  --border-light: #E2E8F0; /* Slate 200 */
  --border-medium: #CBD5E1; /* Slate 300 */
  
  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Shadows & Elevation */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
  
  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  
  /* Layout */
  --container-max: 1280px;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Transitions */
  --trans-fast: 150ms ease-in-out;
  --trans-normal: 300ms ease-in-out;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: var(--accent-primary);
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.text-mono { font-family: var(--font-mono); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.py-12 { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }
.py-24 { padding-top: var(--sp-24); padding-bottom: var(--sp-24); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-8 { margin-top: var(--sp-8); }

/* --- COMPONENTS --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--trans-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.btn-accent {
  background-color: var(--accent-secondary);
  color: #fff;
}
.btn-accent:hover {
  background-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-teal { background-color: rgba(13, 148, 136, 0.1); color: var(--accent-badge); border: 1px solid rgba(13, 148, 136, 0.2); }
.badge-blue { background-color: rgba(2, 132, 199, 0.1); color: var(--accent-primary); border: 1px solid rgba(2, 132, 199, 0.2); }
.badge-red { background-color: rgba(225, 29, 72, 0.1); color: var(--accent-alert); border: 1px solid rgba(225, 29, 72, 0.2); }
.badge-yellow { background-color: rgba(217, 119, 6, 0.1); color: var(--accent-warning); border: 1px solid rgba(217, 119, 6, 0.2); }

/* Global Alert Ribbon */
.alert-ribbon {
  background-color: var(--accent-alert);
  color: white;
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
}
.alert-ribbon a {
  color: white;
  text-decoration: underline;
}

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.logo i {
  color: var(--accent-secondary);
  font-size: 1.75rem;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-secondary);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--trans-fast);
  padding: var(--sp-2) 0;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
}

.dropdown-menu a:hover {
  background-color: var(--bg-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: var(--sp-24) 0 var(--sp-12) 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  max-width: 900px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: var(--sp-8);
}

.trust-ribbon {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all var(--trans-normal);
}

.trust-ribbon:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.trust-ribbon img {
  height: 30px;
  object-fit: contain;
}

/* Telemetry Bar */
.telemetry-bar {
  background-color: var(--text-primary);
  color: white;
  padding: var(--sp-8) 0;
  border-top: 4px solid var(--accent-secondary);
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--sp-2);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card-icon {
  font-size: 2rem;
  color: var(--accent-secondary);
  margin-bottom: var(--sp-4);
  background: var(--bg-secondary);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--sp-3);
}

/* Cyber Readiness Calculator Widget */
.calculator-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  margin-top: var(--sp-12);
}
.calc-form select, .calc-form input {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  margin-bottom: var(--sp-4);
}
.calc-result {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: white;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent-badge);
  display: none;
}
.calc-result.active { display: block; }
.calc-score {
  font-family: var(--font-mono);
  font-size: 3rem;
  color: var(--accent-badge);
  line-height: 1;
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--sp-16) 0 var(--sp-8) 0;
}
.footer-title {
  font-size: 1.125rem;
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent-secondary); }

.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-badge);
  background: rgba(13, 148, 136, 0.1);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 99px;
  margin-top: var(--sp-6);
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-badge);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-badge);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-menu-btn { display: block; }
  .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
  .telemetry-bar .grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  
  .hero h1 { font-size: 2.5rem; }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: var(--sp-4);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
}

/* Insights Filter & Search */
.filter-bar {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
.filter-pill {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-medium);
  border-radius: 99px;
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--trans-fast);
}
.filter-pill.active, .filter-pill:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}
.search-box {
  flex-grow: 1;
  max-width: 300px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-medium);
  border-radius: 99px;
}

/* Accordions for FAQ */
.accordion {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  background: white;
}
.accordion-header {
  padding: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}
.accordion-content {
  padding: 0 var(--sp-4);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.accordion.active .accordion-content {
  padding: var(--sp-4);
  border-top: 1px solid var(--border-light);
  max-height: 500px; /* arbitrary max for animation */
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion.active .accordion-icon {
  transform: rotate(45deg);
}

/* Table styling */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th, td {
  padding: var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}
tr:last-child td { border-bottom: none; }

/* Timeline Framework */
.timeline {
  position: relative;
  padding-left: var(--sp-8);
  border-left: 2px solid var(--border-light);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--sp-8);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(var(--sp-8) * -1 - 9px);
  top: 0;
  width: 16px;
  height: 16px;
  background: white;
  border: 4px solid var(--accent-secondary);
  border-radius: 50%;
}

/* Executive Leadership / Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.team-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-secondary);
}

.team-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.team-card p.text-accent {
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
}

.team-card p.text-secondary {
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.team-card .text-muted {
  transition: color var(--trans-fast), transform var(--trans-fast);
  display: inline-block;
}

.team-card:hover .text-muted {
  color: #0a66c2; /* LinkedIn Color */
  transform: scale(1.1);
}

/* Optional Glass Card specific if user adds the class later */
.glass-card {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.team-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-medium) 100%);
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-md);
}
