/* ==========================================================================
   VANGUARD AI ENTERPRISE - DESIGN SYSTEM & MODERN CSS ARCHITECTURE
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-dark: #070A11;
  --bg-navy: #0B111E;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(26, 38, 66, 0.75);
  --bg-glass: rgba(11, 17, 30, 0.75);
  
  /* Accents */
  --accent-cyan: #00F0FF;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-purple: #8B5CF6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-blue: #3B82F6;

  /* Text & Borders */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 240, 255, 0.25);
  --border-emerald: rgba(16, 185, 129, 0.3);

  /* Elevation & Shadows */
  --shadow-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.2);
  --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background: radial-gradient(circle at 50% -20%, #131d36 0%, var(--bg-dark) 70%);
  background-attachment: fixed;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border-bright);
  background: rgba(0, 240, 255, 0.05);
  color: var(--accent-cyan);
  backdrop-filter: blur(8px);
}

.badge-emerald {
  border-color: var(--border-emerald);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-emerald);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0088FF 100%);
  color: #040914;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5);
  background: linear-gradient(135deg, #33F3FF 0%, #1A94FF 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #040914;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 10, 17, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  box-shadow: var(--shadow-glow-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Layout Containers */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.5rem;
  margin: 16px 0;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  padding-top: 170px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.6rem;
  margin: 20px 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent-cyan);
}

.hero-visual {
  position: relative;
}

.hero-img-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.15);
}

.hero-img-container img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-emerald);
  padding: 18px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.floating-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.floating-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Metric Ticker Banner */
.metrics-ticker {
  background: rgba(15, 23, 42, 0.5);
  border-y: 1px solid var(--border-subtle);
  padding: 24px 0;
  backdrop-filter: blur(12px);
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.ticker-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ticker-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ROI Calculator Section */
.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 28px;
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.input-group {
  margin-bottom: 32px;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.input-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.input-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 15px var(--accent-cyan);
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi-output-box {
  background: rgba(7, 10, 17, 0.7);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--border-emerald);
  position: relative;
  overflow: hidden;
}

.roi-metric-highlight {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.roi-big-number {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--accent-emerald);
  line-height: 1;
  margin: 10px 0;
}

.roi-submetrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.submetric-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.submetric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Interactive Sandbox Simulator */
.sandbox-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.sandbox-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.sandbox-tab {
  flex: 1;
  padding: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.sandbox-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.sandbox-tab:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.sandbox-content {
  padding: 36px;
  min-height: 380px;
}

.sim-pane {
  display: none;
}

.sim-pane.active {
  display: block;
}

.chat-simulator {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.chat-bubble {
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 0.95rem;
  max-width: 80%;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.chat-bubble.lead {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
  color: var(--text-secondary);
}

.chat-bubble.ai {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid var(--border-bright);
  border-bottom-right-radius: 4px;
  color: var(--text-primary);
}

.chat-status {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Service Matrix */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-metrics {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.svc-metric-val {
  font-weight: 700;
  color: var(--accent-emerald);
}

/* Security & Compliance Vault */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  border-radius: 16px;
}

.security-icon {
  color: var(--accent-emerald);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Case Studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-company {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.case-stat {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin: 16px 0;
}

/* Executive Dashboard Preview */
.dashboard-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(20px);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.dash-box {
  background: rgba(7, 10, 17, 0.6);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-navy);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  width: 90%;
  max-width: 650px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  background: #04070D;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-grid, .roi-grid, .security-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid, .case-grid, .ticker-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .services-grid, .case-grid, .ticker-grid, .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  section {
    padding: 60px 0;
  }
  .roi-card {
    padding: 24px;
  }
}
