/* ==========================================================================
   DYNAMIC BYTE - MODERN DESIGN SYSTEM & RESPONSIVE STYLESHEET
   Enterprise Salesforce Architecture & Autonomous AI Engineering
   ========================================================================== */

:root {
  --bg-dark: #070A12;
  --bg-surface: #0E1424;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(26, 38, 68, 0.88);
  --bg-glass: rgba(13, 19, 36, 0.72);
  
  --primary-purple: #8B5CF6;
  --primary-cyan: #06B6D4;
  --primary-sf: #00A1E0;
  --primary-emerald: #10B981;
  --primary-amber: #F59E0B;
  
  --gradient-main: linear-gradient(135deg, #00A1E0 0%, #8B5CF6 50%, #06B6D4 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 161, 224, 0.4) 0%, rgba(139, 92, 246, 0.4) 50%, rgba(6, 182, 212, 0.4) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-sf-ai: linear-gradient(90deg, #00A1E0, #8B5CF6);

  --text-main: #FFFFFF;
  --text-body: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #38BDF8;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);
  --border-sf: rgba(0, 161, 224, 0.35);

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.22);
  --shadow-sf: 0 0 35px rgba(0, 161, 224, 0.22);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* ----------------- Interactive Particle Canvas ----------------- */
#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particles-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Background Atmosphere Glows */
.bg-ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.ambient-blob-1 {
  position: fixed;
  top: -120px;
  left: 15%;
  width: min(650px, 90vw);
  height: min(650px, 90vw);
  background: radial-gradient(circle, rgba(0, 161, 224, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: pulseBlob 12s infinite alternate ease-in-out;
}

.ambient-blob-2 {
  position: fixed;
  top: 45%;
  right: -80px;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: pulseBlob 14s infinite alternate-reverse ease-in-out;
}

@keyframes pulseBlob {
  0% { transform: scale(1) translate(0, 0); opacity: 0.65; }
  100% { transform: scale(1.12) translate(25px, 35px); opacity: 0.95; }
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  position: relative;
  z-index: 1;
}

/* ----------------- Typography (Fluid Clamp Scaling) ----------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  word-break: break-word;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-sf {
  background: var(--gradient-sf-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p {
  color: var(--text-body);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ----------------- Buttons & Badges ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.45);
}

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

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

.btn-sf {
  background: linear-gradient(135deg, #00A1E0 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 161, 224, 0.35);
}

.btn-sf:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 161, 224, 0.5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #C4B5FD;
}

.badge-live {
  background: rgba(0, 161, 224, 0.12);
  border-color: rgba(0, 161, 224, 0.35);
  color: #38BDF8;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--primary-cyan); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ----------------- Header & Navigation Bar ----------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 900;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(8, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  height: 68px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 902;
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--text-body);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 902;
}

/* ----------------- Hero Section ----------------- */
.hero-section {
  padding: clamp(110px, 14vw, 150px) 0 clamp(60px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-title {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-body);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.hero-badges-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #FFFFFF;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------- Live AI Simulator Terminal ----------------- */
.simulator-wrapper {
  position: relative;
  width: 100%;
}

.simulator-card {
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.simulator-header {
  background: rgba(20, 28, 50, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-body);
  text-align: center;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simulator-tabs {
  display: flex;
  background: rgba(12, 18, 34, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.simulator-tabs::-webkit-scrollbar {
  display: none;
}

.sim-tab-btn {
  flex: 1;
  min-width: 130px;
  padding: 11px 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.sim-tab-btn.active {
  color: #FFFFFF;
  border-bottom-color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.simulator-body {
  padding: clamp(16px, 3vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-log-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 155px;
}

.sim-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.5;
  animation: fadeInLog 0.3s ease;
  word-break: break-word;
}

@keyframes fadeInLog {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
  font-weight: 700;
}

.badge-inbound { background: rgba(0, 161, 224, 0.2); color: #38BDF8; }
.badge-rag { background: rgba(139, 92, 246, 0.2); color: #C4B5FD; }
.badge-agent { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; }
.badge-action { background: rgba(245, 158, 11, 0.2); color: #FCD34D; }

.sim-record-preview {
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #A7F3D0;
  max-height: 160px;
  overflow-y: auto;
}

.sim-record-preview pre {
  white-space: pre-wrap;
  word-break: break-all;
}

.sim-footer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.sim-run-btn {
  background: rgba(0, 161, 224, 0.15);
  border: 1px solid rgba(0, 161, 224, 0.4);
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.sim-run-btn:hover {
  background: rgba(0, 161, 224, 0.25);
  border-color: #38BDF8;
}

.sim-latency-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #10B981;
}

/* ----------------- Security & Compliance Banner ----------------- */
.security-banner {
  padding: 28px 0;
  background: rgba(12, 17, 30, 0.8);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.security-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  color: #E2E8F0;
}

.sec-icon {
  font-size: 1.3rem;
}

/* ----------------- Core Capabilities Grid ----------------- */
.services-section {
  padding: clamp(70px, 10vw, 110px) 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(36px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-body);
  max-width: 660px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 28px);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 161, 224, 0.12);
  border: 1px solid rgba(0, 161, 224, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.service-title {
  font-size: 1.25rem;
  color: #FFFFFF;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '✓';
  color: var(--primary-emerald);
  font-weight: 700;
}

/* ----------------- Architecture Matrix ----------------- */
.matrix-section {
  padding: clamp(70px, 10vw, 110px) 0;
  background: rgba(10, 14, 26, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(30px, 5vw, 45px);
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.matrix-nav-tabs::-webkit-scrollbar {
  display: none;
}

.matrix-tab-btn {
  padding: 11px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.matrix-tab-btn.active {
  background: var(--gradient-main);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.matrix-content-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 44px);
  backdrop-filter: blur(16px);
}

.matrix-content-pane.active {
  display: grid;
  animation: fadeInMatrix 0.35s ease;
}

@keyframes fadeInMatrix {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.matrix-info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.matrix-visual-col {
  background: #070B16;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow-glow);
}

.flow-step-box {
  background: rgba(18, 26, 48, 0.7);
  border: 1px solid rgba(0, 161, 224, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.flow-step-box:last-child {
  margin-bottom: 0;
}

.flow-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 161, 224, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ----------------- Interactive ROI Calculator ----------------- */
.roi-section {
  padding: clamp(70px, 10vw, 110px) 0;
}

.roi-card-wrapper {
  background: linear-gradient(135deg, rgba(18, 25, 48, 0.88) 0%, rgba(12, 17, 34, 0.94) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow-glow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
  backdrop-filter: blur(16px);
}

.roi-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.94rem;
}

.slider-val-badge {
  font-family: var(--font-mono);
  color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.15);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

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

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-main);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.roi-results-panel {
  background: #060914;
  border: 1px solid var(--border-sf);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roi-metric-highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roi-big-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary-emerald);
  line-height: 1;
}

.roi-submetrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.roi-submetric-val {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #FFFFFF;
}

/* ----------------- Case Studies / Track Record ----------------- */
.cases-section {
  padding: clamp(70px, 10vw, 100px) 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 28px);
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.case-card:hover {
  border-color: rgba(0, 161, 224, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sf);
}

.case-industry-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.case-metric-box {
  background: rgba(0, 161, 224, 0.1);
  border: 1px solid rgba(0, 161, 224, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.case-metric-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #38BDF8;
}

/* ----------------- Interactive Assessment Modal ----------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeInModal 0.28s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-dialog {
  background: #0C1222;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 660px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 40px);
  position: relative;
  box-shadow: var(--shadow-glow);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #FFFFFF;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.form-step.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.option-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.opt-card-label {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
}

.opt-card-label:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary-purple);
}

.opt-card-label input[type="radio"],
.opt-card-label input[type="checkbox"] {
  display: none;
}

.opt-card-label.selected {
  background: rgba(0, 161, 224, 0.15);
  border-color: var(--primary-cyan);
}

/* ----------------- Footer ----------------- */
.site-footer {
  background: #04060C;
  border-top: 1px solid var(--border-subtle);
  padding: clamp(50px, 8vw, 80px) 0 36px;
  position: relative;
  z-index: 1;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(36px, 6vw, 60px);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--text-body);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: var(--primary-cyan);
}

.footer-bottom-bar {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ----------------- Comprehensive Responsive Breakpoints ----------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .matrix-content-pane.active {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .roi-card-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 100;
  }

  .nav-links.mobile-open {
    display: flex !important;
    animation: slideDownMobile 0.25s ease-out;
  }

  @keyframes slideDownMobile {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 6px 0;
    display: block;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-actions .btn-primary {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    cursor: pointer;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-badges-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .roi-submetrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-badges-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sim-log-entry {
    font-size: 0.78rem;
  }

  .security-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}
