/* ==========================================================================
   CloudDBOptimize - Modern Enterprise Design System & Stylesheet
   ========================================================================== */

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

:root {
  /* Color Palette - Sophisticated Ocean & Slate */
  --color-brand-primary: #0284c7;        /* Sky 600 */
  --color-brand-primary-hover: #0369a1;  /* Sky 700 */
  --color-brand-primary-light: #e0f2fe;  /* Sky 100 */
  --color-brand-secondary: #0d9488;      /* Teal 600 */
  --color-brand-secondary-light: #ccfbf1;
  --color-brand-accent: #06b6d4;         /* Cyan 500 */
  --color-brand-emerald: #10b981;        /* Emerald 500 */
  --color-brand-indigo: #6366f1;         /* Indigo 500 */
  
  /* Dark / Background Tones */
  --color-slate-950: #070d18;
  --color-slate-900: #0f172a;
  --color-slate-850: #141f36;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  --color-white:     #ffffff;

  /* Semantic UI */
  --bg-primary: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark-section: #0a1120;
  --bg-dark-card: #111d33;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #f8fafc;
  --text-inverse-muted: #94a3b8;

  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-dark: #1e293b;
  --border-focus: #0284c7;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.2);
  --shadow-dark-card: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text-main);
  background-color: var(--bg-primary);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography System
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-muted);
  line-height: 1.7;
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-primary);
  margin-bottom: 0.75rem;
}

.eyebrow.light {
  color: var(--color-brand-accent);
}

/* ==========================================================================
   Layout & Container System
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 880px;
}

.container-wide {
  max-width: 1360px;
}

.section {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  position: relative;
}

.section-sm {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-dark {
  background-color: var(--bg-dark-section);
  color: var(--text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-inverse);
}

.section-dark p {
  color: var(--text-inverse-muted);
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0275b0 0%, #0b7c72 100%);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-slate-800);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-slate-50);
  border-color: var(--color-slate-300);
  color: var(--color-slate-900);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-dark:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-white);
}

.btn-lg {
  padding: 0.9375rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.badge-primary {
  background-color: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
}

.badge-teal {
  background-color: var(--color-brand-secondary-light);
  color: var(--color-brand-secondary);
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-neutral {
  background-color: var(--color-slate-100);
  color: var(--color-slate-700);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Navigation Bar & Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.brand-logo .brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-slate-900);
}

.brand-logo .brand-text span {
  color: var(--color-brand-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-slate-700);
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-brand-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-brand-primary);
  border-radius: var(--radius-full);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-slate-800);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.06) 0%, transparent 50%),
              var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--color-slate-900);
}

.hero-content h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p.lead {
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

/* ==========================================================================
   Hero Interactive Architecture Diagram
   ========================================================================== */
.hero-visual-card {
  background: var(--bg-dark-section);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  color: var(--text-inverse);
  box-shadow: var(--shadow-dark-card), 0 0 40px rgba(2, 132, 199, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.875rem;
}

.diagram-header .status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #38bdf8;
  font-family: var(--font-mono);
}

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

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.diagram-flow {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diagram-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-normal);
}

.diagram-node.current-state {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.04);
}

.diagram-node.analysis-engine {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
  position: relative;
}

.diagram-node-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.diagram-node-desc {
  font-size: 0.875rem;
  color: var(--color-slate-300);
}

.diagram-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-accent);
  font-size: 1.1rem;
  margin: -0.25rem 0;
}

.path-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.path-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--color-slate-300);
  padding: 0.625rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.path-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.path-tab-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(13, 148, 136, 0.3) 100%);
  border-color: var(--color-brand-accent);
  color: var(--color-white);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.path-detail-box {
  margin-top: 0.875rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  border-left: 3px solid var(--color-brand-accent);
}

.path-detail-box h5 {
  font-size: 0.875rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.path-detail-box p {
  font-size: 0.8125rem;
  color: var(--color-slate-300);
  line-height: 1.45;
}

/* ==========================================================================
   Problem Section - Managed Database Cost Inefficiencies
   ========================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-slate-300);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.card-icon.teal {
  background-color: var(--color-brand-secondary-light);
  color: var(--color-brand-secondary);
}

.card-icon.amber {
  background-color: #fef3c7;
  color: #d97706;
}

.card-icon.indigo {
  background-color: #e0e7ff;
  color: var(--color-brand-indigo);
}

.card-icon.rose {
  background-color: #ffe4e6;
  color: #e11d48;
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   Three Outcomes Section (Decision Framework)
   ========================================================================== */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.outcome-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.outcome-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.outcome-card .badge {
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.outcome-card h3 {
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 0.875rem;
}

.outcome-card p {
  font-size: 0.9375rem;
  color: var(--color-slate-300);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.outcome-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.outcome-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-200);
}

.outcome-list-item svg {
  color: var(--color-brand-emerald);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.trust-banner {
  margin-top: 3.5rem;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.trust-banner-icon {
  font-size: 2rem;
  color: #38bdf8;
  flex-shrink: 0;
}

.trust-banner-text p {
  color: var(--color-slate-100);
  font-size: 1.05rem;
  line-height: 1.6;
}

.trust-banner-text strong {
  color: var(--color-white);
}

/* ==========================================================================
   How It Works (4 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand-primary);
}

.step-number {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-slate-200);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-card:hover .step-number {
  color: var(--color-brand-primary);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-brand-primary);
}

.service-card.featured {
  border-color: var(--color-brand-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.service-card.featured::before {
  content: 'PRIMARY ENTRY SERVICE';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--color-brand-primary);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.875rem;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.service-tag {
  font-size: 0.75rem;
  background-color: var(--color-slate-100);
  color: var(--color-slate-700);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.service-card-link {
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.service-card-link svg {
  transition: transform var(--transition-fast);
}

.service-card-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Differentiators & Why Us Grid
   ========================================================================== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.diff-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}

.diff-card:hover {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.diff-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diff-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ==========================================================================
   Tech Ecosystem Logos & Badges
   ========================================================================== */
.ecosystem-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-slate-800);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.tech-chip:hover {
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.section-dark .tech-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-slate-200);
}

.section-dark .tech-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-brand-accent);
  color: var(--color-white);
}

/* ==========================================================================
   Interactive Cost Assessment Estimator / Calculator Widget
   ========================================================================== */
.calculator-card {
  background: var(--bg-dark-section);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--text-inverse);
  box-shadow: var(--shadow-dark-card);
  margin-top: 3rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-200);
  margin-bottom: 0.5rem;
}

.calc-group .slider-val {
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 700;
}

.calc-slider {
  width: 100%;
  height: 6px;
  background: #334155;
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.calc-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--color-white);
  outline: none;
}

.calc-select option {
  background: #0f172a;
  color: #ffffff;
}

.calc-results-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.calc-savings-badge {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  font-weight: 700;
}

.calc-savings-number {
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--color-brand-emerald);
  line-height: 1.1;
  font-family: var(--font-mono);
}

.calc-results-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: left;
}

.calc-metric-item .metric-label {
  font-size: 0.75rem;
  color: var(--color-slate-400);
}

.calc-metric-item .metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--color-slate-400);
  font-style: italic;
}

/* ==========================================================================
   Closing CTA Section
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #0a1628 0%, #0f2744 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--color-slate-300);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   Forms & Contact Page Styles
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-800);
}

.form-label .required {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--color-slate-900);
  background-color: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-help {
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

/* Hidden honeypot field */
.honeypot-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Alert Banners */
.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.9375rem;
}

.form-alert.success {
  background-color: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-alert.error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Deep Dive Pages (Cost Assessment, Modernization, About, Insights)
   ========================================================================== */
.page-hero {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}

.page-hero-dark {
  background: linear-gradient(180deg, #070d18 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
}

.page-hero-dark h1 {
  color: var(--color-white);
}

.page-hero-dark p.lead {
  color: var(--color-slate-300);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.deliverable-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition-fast);
}

.deliverable-card:hover {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-md);
}

.deliverable-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-primary-light);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.deliverable-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.deliverable-content p {
  font-size: 0.875rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background-color: var(--color-slate-50);
  font-weight: 700;
  color: var(--color-slate-800);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: #f8fafc;
}

/* Insight Article Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand-primary);
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.insight-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-slate-900);
}

.insight-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.insight-takeaways {
  background: var(--color-slate-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.insight-takeaways h5 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--color-slate-700);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.insight-takeaways ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.insight-takeaways li {
  font-size: 0.8125rem;
  color: var(--color-slate-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insight-takeaways li::before {
  content: '•';
  color: var(--color-brand-primary);
  font-weight: bold;
}

/* Full Technical Article Styling */
.article-container {
  max-width: 860px;
  margin: 0 auto 5rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.article-header h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.25;
  color: var(--color-slate-900);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-slate-500);
}

.article-body h3 {
  font-size: 1.35rem;
  color: var(--color-slate-900);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.article-body h4 {
  font-size: 1.1rem;
  color: var(--color-slate-800);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-slate-700);
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-slate-700);
}

.article-callout {
  background: var(--bg-subtle);
  border-left: 4px solid var(--color-brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.article-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--color-slate-800);
  font-style: italic;
}

.article-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

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

.article-table th {
  background: var(--color-slate-100);
  color: var(--color-slate-900);
  font-weight: 600;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--border-light);
}

.article-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--color-slate-700);
  line-height: 1.5;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:nth-child(even) {
  background: var(--color-slate-50);
}

.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.article-toc h4 {
  font-size: 0.95rem;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-toc-link {
  color: var(--color-brand-primary);
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 500;
}

.article-toc-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-slate-950);
  border-top: 1px solid var(--color-slate-800);
  color: var(--color-slate-400);
  padding-top: clamp(4rem, 6vw, 5rem);
  padding-bottom: 2.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--color-slate-400);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

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

.footer-link {
  font-size: 0.875rem;
  color: var(--color-slate-400);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #38bdf8;
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--color-slate-400);
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .decision-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .header-cta .btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .calc-results-breakdown {
    grid-template-columns: 1fr;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  padding: 2rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--border-light);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
