/* ==========================================================================
   Qodarix Enterprise Software House — Clean Minimalistic White Design System
   "Authentic Executive Trust, Bespoke Interactivity & Precision Engineering"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  /* Clean White & Slate Background Palette */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCFDFC;

  /* High-Contrast Corporate Typography Palette */
  --text-main: #0F172A;
  /* Deep slate/charcoal for absolute clarity */
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Trust-Focused Accents (Sapphire & Clean Cobalt) */
  --accent-primary: #1E40AF;
  /* Royal Sapphire */
  --accent-hover: #1D4ED8;
  /* Bright Sapphire */
  --accent-dark: #0A2540;
  /* Deep Executive Navy */
  --accent-subtle: #EFF6FF;
  /* Light Blue Tint */
  --accent-teal: #0D9488;
  /* Clean Teal for Metrics */
  --accent-green: #10B981;
  /* Verified Status */
  --accent-purple: #6366F1;
  /* Clean Code Highlight */

  /* Crisp Structural Borders */
  --border-light: #F1F5F9;
  --border-main: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-focus: #3B82F6;

  /* Subtle Authentic Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.12);

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

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Clean Sticky Corporate Navigation & Real Logo
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-main);
  z-index: 1000;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  height: 72px;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.99);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.9;
}

.navbar-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

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

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

/* ==========================================================================
   Buttons & Bespoke Magnetic Micro-Interactions
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Magnetic physics target */
.btn-magnetic {
  will-change: transform;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: #94A3B8;
}

.btn-dark {
  background-color: var(--accent-dark);
  color: #FFFFFF;
}

.btn-dark:hover {
  background-color: #1A365D;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-trust {
  background-color: var(--bg-secondary);
  color: var(--accent-dark);
  border: 1px solid var(--border-main);
}

.badge-blue {
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
}

.badge-verified {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* ==========================================================================
   Hero Section (Executive Authority Portal)
   ========================================================================== */
.hero {
  padding: 80px 0 70px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-main);
}

.hero-content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.14;
  margin: 22px 0;
  color: var(--accent-dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 38px;
  line-height: 1.7;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

/* Institutional Trust Proof Bar (No SOC-2/ISO Claims) */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 22px 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.trust-item i {
  color: var(--accent-primary);
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Section Headers & Bento Grids
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header .section-tag {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.section-padding {
  padding: 96px 0;
}

/* ==========================================================================
   Interactive Engineering Blueprint Builder ("The Engineering Playground")
   ========================================================================== */
.blueprint-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-main);
}

.blueprint-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.blueprint-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blueprint-toggle {
  background: #FFFFFF;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blueprint-toggle:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.blueprint-toggle.active {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

.blueprint-toggle-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blueprint-toggle-left i {
  color: var(--accent-primary);
  width: 22px;
  height: 22px;
}

.blueprint-toggle-left strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
}

.blueprint-toggle-left span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border-radius: 12px;
  position: relative;
  transition: background 0.25s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.blueprint-toggle.active .toggle-switch {
  background: var(--accent-primary);
}

.blueprint-toggle.active .toggle-switch::after {
  transform: translateX(20px);
}

.blueprint-canvas-box {
  background: #FFFFFF;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blueprint-metrics-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.metric-pill {
  display: flex;
  flex-direction: column;
}

.metric-pill span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-pill strong {
  font-size: 1.25rem;
  color: var(--accent-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.canvas-visual-mesh {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

/* Nodes and animated SVG lines inside blueprint */
.node-box {
  position: absolute;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-box.active {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
  color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.18);
  transform: scale(1.05);
}

.node-center {
  z-index: 5;
  background: var(--accent-dark);
  color: #FFFFFF;
  border-color: var(--accent-dark);
  font-size: 0.95rem;
  padding: 14px 22px;
}

.node-top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.node-left {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.node-right {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.node-bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.packet-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.packet-particle.active {
  opacity: 1;
}

/* ==========================================================================
   Interactive Code Sandbox & Performance Benchmark
   ========================================================================== */
.sandbox-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-main);
}

.sandbox-container {
  background: #0F172A;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sandbox-controls {
  padding: 36px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sandbox-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
}

.sandbox-tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.sandbox-tab-btn:hover,
.sandbox-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.code-viewport {
  padding: 32px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #F8FAFC;
  line-height: 1.7;
  overflow-x: auto;
  background: #0B1120;
  position: relative;
}

.code-line {
  display: flex;
  gap: 16px;
}

.line-num {
  color: #475569;
  user-select: none;
  width: 28px;
  text-align: right;
}

.syntax-key {
  color: #60A5FA;
}

.syntax-str {
  color: #34D399;
}

.syntax-num {
  color: #FBBF24;
}

.syntax-fn {
  color: #A78BFA;
}

.syntax-comment {
  color: #64748B;
  font-style: italic;
}

.slider-dark-group {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Before/After Architecture Comparison Slider
   ========================================================================== */
.comparison-container {
  max-width: 900px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  height: 420px;
  user-select: none;
}

.comparison-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comparison-legacy {
  background: #FEF2F2;
  color: #991B1B;
}

.comparison-qodarix {
  background: #EFF6FF;
  color: #1E40AF;
  width: 50%;
  /* Controlled via slider */
  overflow: hidden;
  border-right: 2px solid var(--accent-primary);
}

.slider-drag-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 100%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-button {
  width: 44px;
  height: 44px;
  background: var(--accent-primary);
  color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFFFFF;
}

/* ==========================================================================
   The 4 Engineering Practices Bento Hub
   ========================================================================== */
.practice-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.practice-tab-btn {
  padding: 14px 28px;
  background: var(--bg-primary);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xs);
}

.practice-tab-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.practice-tab-btn.active {
  background: var(--accent-dark);
  color: #FFFFFF;
  border-color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.practice-pane {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.practice-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.practice-info h3 {
  font-size: 2rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.practice-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.practice-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.practice-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.practice-feature-item i {
  color: var(--accent-primary);
}

.practice-preview-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Sub-module Table */
.data-table-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.sub-module-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 12px;
}

.sub-module-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.sub-module-btn:hover,
.sub-module-btn.active {
  background: #FFFFFF;
  color: var(--accent-primary);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Engineering Methodology ("How We Build")
   ========================================================================== */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.method-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
}

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

.method-step-number {
  width: 44px;
  height: 44px;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.method-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--accent-dark);
}

.method-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Verified Case Studies Grid & Modal
   ========================================================================== */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.cs-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-main);
}

.cs-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cs-card-body h4 {
  font-size: 1.35rem;
  color: var(--accent-dark);
  margin: 12px 0 10px;
}

.cs-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.cs-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.cs-metric strong {
  display: block;
  font-size: 1.3rem;
  color: var(--accent-primary);
  font-weight: 800;
}

.cs-metric span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}

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

.modal-box {
  background: #FFFFFF;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--text-main);
  color: #FFFFFF;
}

/* ==========================================================================
   Estimator Page (`estimator.html`) Bento Layout
   ========================================================================== */
.estimator-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.estimator-controls {
  background: #FFFFFF;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.domain-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 36px;
}

.domain-option-card {
  border: 2px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-primary);
}

.domain-option-card:hover {
  border-color: var(--border-strong);
}

.domain-option-card.active {
  border-color: var(--accent-primary);
  background: var(--accent-subtle);
}

.domain-option-card h5 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.domain-option-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-group {
  margin-bottom: 36px;
}

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

.scale-badge {
  background: var(--accent-dark);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.range-slider {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.4);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-label:hover {
  background: var(--bg-secondary);
}

.checkbox-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkbox-price {
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.estimator-summary-card {
  position: sticky;
  top: 110px;
  background: var(--accent-dark);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.estimator-summary-card h3 {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.summary-price-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.summary-price-box .price-number {
  font-size: 3rem;
  font-weight: 800;
  color: #60A5FA;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.1;
}

.summary-price-box .time-number {
  font-size: 1.1rem;
  color: #CBD5E1;
  margin-top: 6px;
  display: block;
}

.tech-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 32px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   Contact & Discovery Portal
   ========================================================================== */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-main);
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-md);
  max-width: 840px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  padding: 14px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
  background: var(--bg-primary);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.sla-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  color: #1E40AF;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 32px;
}

/* ==========================================================================
   Clean Corporate Footer
   ========================================================================== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-main);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h5 {
  font-size: 0.95rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {

  .practice-showcase,
  .estimator-layout,
  .methodology-grid,
  .case-studies-grid,
  .blueprint-card,
  .sandbox-container {
    grid-template-columns: 1fr;
  }

  .estimator-summary-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}