/* ===================================================================
   Discovery Solutions International Inc. — Brand Design System
   Exact Visual Alignment with discovery-solutions.com
   =================================================================== */

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

:root {
  /* Discovery Solutions Core Brand Colors */
  --ds-blue: #0c4a96;
  --ds-blue-hover: #083875;
  --ds-blue-light: #0084ff;
  --ds-blue-glow: rgba(12, 74, 150, 0.25);
  --ds-blue-tint: #ebf3ff;
  --ds-navy: #081e3d;
  --ds-navy-dark: #051429;
  --ds-brown: #8b5a2b;
  --ds-cyan: #00b4d8;
  --ds-emerald: #10b981;
  --ds-amber: #f59e0b;
  
  /* Typography - Official Montserrat */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme Defaults (Dark Theme with Discovery Blue Atmosphere) */
  --bg-app: #060e1a;
  --bg-surface-0: #0a172a;
  --bg-surface-1: #0e2038;
  --bg-surface-2: #162c4d;
  --bg-surface-3: #1f3d6b;
  --bg-glass: rgba(10, 23, 42, 0.88);
  --bg-glass-card: rgba(14, 32, 56, 0.75);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --bg-glass-border-hover: rgba(0, 132, 255, 0.5);
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-blue: #38bdf8;
  --blue-highlight: #38bdf8;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: #0084ff;
  
  /* Transitions & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* Official Discovery Light Theme */
[data-theme="light"] {
  --bg-app: #ffffff;
  --bg-surface-0: #ffffff;
  --bg-surface-1: #f8fafc;
  --bg-surface-2: #edf2f7;
  --bg-surface-3: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-glass-card: rgba(255, 255, 255, 0.98);
  --bg-glass-border: rgba(12, 74, 150, 0.12);
  --bg-glass-border-hover: rgba(12, 74, 150, 0.4);
  
  --text-main: #0c1c2e;
  --text-muted: #4a5568;
  --text-dim: #718096;
  --text-blue: #0c4a96;
  --blue-highlight: #0c4a96;
  
  --border-subtle: rgba(12, 74, 150, 0.1);
  --border-focus: #0c4a96;
  
  --shadow-sm: 0 2px 10px rgba(12, 74, 150, 0.06);
  --shadow-md: 0 10px 30px rgba(12, 74, 150, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 74, 150, 0.12);
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.blue-highlight {
  color: var(--blue-highlight) !important;
  font-weight: 800;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

/* ===================================================================
   Discovery Solutions Decorative Squares Formation
   =================================================================== */

.square-group {
  display: grid;
  grid-gap: 4px;
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.square-group._3x3 { grid-template-columns: repeat(3, 14px); grid-template-rows: repeat(3, 14px); }
.square-group._5x2 { grid-template-columns: repeat(5, 14px); grid-template-rows: repeat(2, 14px); }
.square-group._8x2 { grid-template-columns: repeat(8, 14px); grid-template-rows: repeat(2, 14px); }
.square-group._2x3 { grid-template-columns: repeat(2, 14px); grid-template-rows: repeat(3, 14px); }
.square-group._2x2 { grid-template-columns: repeat(2, 14px); grid-template-rows: repeat(2, 14px); }

.square {
  width: 14px;
  height: 14px;
  border-radius: 1px;
}

.square.blue { background-color: var(--ds-blue); }
.square.grey { background-color: #cbd5e1; opacity: 0.6; }
.square.transparent { background-color: transparent; }

/* Discovery Buttons */
.button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.button.primary, .btn-primary {
  background-color: var(--ds-blue);
  color: #ffffff;
  border: 1px solid var(--ds-blue);
}

.button.primary:hover, .btn-primary:hover {
  background-color: var(--ds-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(12, 74, 150, 0.4);
}

.button.dark-button, .btn-secondary {
  background-color: var(--ds-navy);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .button.dark-button, [data-theme="light"] .btn-secondary {
  background-color: #0c1c2e;
}

.button.dark-button:hover, .btn-secondary:hover {
  background-color: #122847;
  transform: translateY(-2px);
}

.button.light-button {
  background-color: #ffffff;
  color: var(--ds-blue);
  border: 1px solid #ffffff;
}

.button.light-button:hover {
  background-color: var(--ds-blue-tint);
  transform: translateY(-2px);
}

.button.brown-button {
  background-color: var(--ds-brown);
  color: #ffffff;
}

.button.brown-button:hover {
  background-color: #724921;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.95rem 2.25rem;
  font-size: 1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bg-surface-2);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.badge-glow {
  background: rgba(12, 74, 150, 0.15);
  color: var(--text-blue);
  border-color: rgba(0, 132, 255, 0.35);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ds-emerald);
  border-color: rgba(16, 185, 129, 0.35);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ds-emerald);
  box-shadow: 0 0 8px var(--ds-emerald);
  animation: pulse-glow 2s infinite;
}

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

/* ===================================================================
   Header & Navigation
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--ds-blue-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

/* ===================================================================
   Discovery Hero Section with Signature Rotating Text
   =================================================================== */

.hero-section {
  position: relative;
  padding: 5.5rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-surface-0) 0%, var(--bg-app) 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-heading-block {
  margin-bottom: 1.75rem;
}

.hero-headline-static {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

/* Rotating Text Frame */
.rotate-wrap {
  height: 72px;
  overflow: hidden;
  position: relative;
  display: block;
}

.rotatingtext {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--ds-blue-light);
  line-height: 72px;
  height: 72px;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 90px, 0);
  animation: discovery-rotate 10s infinite cubic-bezier(0.2, 0.5, 0.3, 1);
}

[data-theme="light"] .rotatingtext {
  color: var(--ds-blue);
}

.rotatingtext:nth-of-type(1) { animation-delay: 0s; }
.rotatingtext:nth-of-type(2) { animation-delay: 2.5s; }
.rotatingtext:nth-of-type(3) { animation-delay: 5s; }
.rotatingtext:nth-of-type(4) { animation-delay: 7.5s; }

@keyframes discovery-rotate {
  0% { transform: translate3d(0, 90px, 0); }
  2.5% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(0, 0, 0); }
  27.5% { transform: translate3d(0, -90px, 0); }
  99.999% { transform: translate3d(0, -90px, 0); }
  100% { transform: translate3d(0, 90px, 0); }
}

.hero-subhead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-button-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-hq-img {
  max-width: 90%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 2;
}

.floating-feature {
  position: absolute;
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.floating-feature.stat-float-1 {
  bottom: 10%;
  left: -20px;
}

.floating-feature.stat-float-2 {
  top: 15%;
  right: -10px;
}

.callout-big {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--ds-blue-light);
  line-height: 1;
}

[data-theme="light"] .callout-big {
  color: var(--ds-blue);
}

.callout-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================================================
   Live Product Demos Hub (4 Flagship Cards)
   =================================================================== */

.section {
  padding: 5.5rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--ds-blue);
}

.product-card:hover {
  border-color: var(--bg-glass-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.product-tagline {
  font-size: 0.875rem;
  color: var(--ds-blue-light);
  font-weight: 700;
  margin-bottom: 1rem;
}

[data-theme="light"] .product-tagline {
  color: var(--ds-blue);
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.product-feature-item {
  font-size: 0.875rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-feature-item svg {
  flex-shrink: 0;
  color: var(--ds-emerald);
  margin-top: 0.2rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-surface-2);
  color: var(--text-dim);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* ===================================================================
   Official DMS ERP 5 Interconnected Modules Section
   =================================================================== */

.dms-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.dms-module-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.dms-module-card:hover {
  transform: translateY(-6px);
}

.dms-module-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dms-module-card:hover .dms-module-img {
  transform: scale(1.06);
}

.dms-module-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 74, 150, 0.2) 0%, rgba(5, 20, 41, 0.92) 80%);
}

.dms-module-content {
  position: relative;
  z-index: 2;
}

.dms-module-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.dms-module-desc {
  font-size: 0.875rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ===================================================================
   Implementation 4-Stage Timeline Section
   =================================================================== */

.timeline-stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.timeline-stage-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.timeline-stage-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.timeline-stage-content {
  padding: 1.5rem;
}

.timeline-stage-num {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ds-blue-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .timeline-stage-num {
  color: var(--ds-blue);
}

.timeline-stage-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

/* ===================================================================
   Challenges We Solve (By Operations & By Role)
   =================================================================== */

.challenges-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.challenge-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.challenge-tile {
  position: relative;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  transition: transform 0.25s ease;
}

.challenge-tile:hover {
  transform: translateY(-4px);
}

.challenge-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.challenge-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 74, 150, 0.3) 0%, rgba(8, 30, 61, 0.85) 100%);
}

.challenge-tile-text {
  position: relative;
  z-index: 2;
  font-size: 1.125rem;
  font-weight: 800;
}

/* ===================================================================
   Mountain Banner Section
   =================================================================== */

.mountain-banner-section {
  position: relative;
  background-image: url('https://cdn.prod.website-files.com/64beb83bd1d2a85f3f97658b/64eb750ab7f9f26521a99bfb_Mountain-BG.jpg');
  background-size: cover;
  background-position: center center;
  padding: 7rem 0;
  text-align: center;
  color: #ffffff;
}

.mountain-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 61, 0.75);
}

.mountain-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.mountain-banner-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

/* ===================================================================
   Interactive FastMCP AI Terminal & Simulator
   =================================================================== */

.mcp-hub-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  align-items: start;
}

.domain-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
}

.domain-card.active {
  background: rgba(12, 74, 150, 0.15);
  border-color: var(--ds-blue-light);
}

.mcp-terminal-window {
  background: #040914;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.terminal-header {
  background: #08152b;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #e2e8f0;
}

.terminal-input-group {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.terminal-input {
  flex: 1;
  background: #08152b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  color: #ffffff;
  font-family: var(--font-mono);
  outline: none;
}

.terminal-output {
  background: #060e1c;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.sql-highlight {
  color: #38bdf8;
  margin: 0.5rem 0;
  display: block;
}

.json-output {
  color: #a7f3d0;
}

/* ===================================================================
   SOC 2 Compliance Scorecard
   =================================================================== */

.soc2-dashboard-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-top: 2.5rem;
}

.soc2-header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.soc2-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.soc2-table th {
  padding: 0.85rem 1rem;
  background: var(--bg-surface-2);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.soc2-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ===================================================================
   Testimonials & Logo Cloud
   =================================================================== */

.logo-cloud-section {
  padding: 3rem 0;
  background: var(--bg-surface-0);
  border-bottom: 1px solid var(--border-subtle);
}

.logo-carousel-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.client-logo-img {
  max-height: 42px;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-logo-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-logo-img {
  max-height: 36px;
  max-width: 90px;
  object-fit: contain;
}

/* ===================================================================
   ROI Calculator
   =================================================================== */

.calculator-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.range-input {
  width: 100%;
  height: 6px;
  background: var(--bg-surface-3);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ds-blue);
  cursor: pointer;
}

.calc-results-box {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-result-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ds-emerald);
}

/* ===================================================================
   Footer Alignment with discovery-solutions.com
   =================================================================== */

.site-footer {
  background: var(--ds-navy-dark);
  color: #e2e8f0;
  padding: 5rem 0 2rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

.footer-link {
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open { display: flex; }

.modal-dialog {
  background: var(--bg-surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 2.25rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-primary);
  outline: none;
}

.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--ds-blue);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .home-hero-grid, .mcp-hub-layout, .calculator-card, .challenges-columns {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .challenge-sub-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
