/* ==========================================================================
   LUPION AI - DESIGN SYSTEM & MODERN STYLESHEET
   Tagline: "Where Data Learns to Think"
   Registration: UDYAM-WB-18-0207291
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & THEME TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Cyber Dark & Electric Neon */
  --bg-dark: #07090e;
  --bg-surface: #0e121c;
  --bg-surface-elevated: #151b2a;
  --bg-glass: rgba(14, 18, 28, 0.75);
  --bg-glass-card: rgba(21, 27, 42, 0.65);
  --bg-glass-hover: rgba(30, 41, 59, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 242, 254, 0.3);
  --border-glow: rgba(0, 242, 254, 0.6);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f53ac;
  --accent-magenta: #f355da;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-glow: #e2e8f0;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-purple: linear-gradient(135deg, #647ecb 0%, #7f53ac 100%);
  --grad-dark-mesh: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.12) 0%, rgba(127, 83, 172, 0.05) 50%, transparent 100%);
  --grad-card-border: linear-gradient(135deg, rgba(0, 242, 254, 0.4), rgba(255, 255, 255, 0.05));

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Shadows & Glows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --glow-purple: 0 0 25px rgba(127, 83, 172, 0.35);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse at 20% -10%, rgba(0, 242, 254, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(127, 83, 172, 0.1) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-purple-gradient {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: var(--shadow-sm);
}

.badge-purple {
  background: rgba(127, 83, 172, 0.15);
  color: #c084fc;
  border-color: rgba(127, 83, 172, 0.3);
}

/* Glassmorphism Card Base */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(0, 242, 254, 0.15);
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-normal);
}

.header.scrolled {
  background: rgba(7, 9, 14, 0.92);
  border-bottom-color: rgba(0, 242, 254, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
  transition: transform var(--transition-fast);
}

.logo-img:hover {
  transform: scale(1.03);
}

.logo-subtext {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 860px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  z-index: 100;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-cat-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.mega-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mega-menu-item a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.mega-menu-item a:hover {
  color: var(--text-main);
  background: rgba(0, 242, 254, 0.1);
  padding-left: 0.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-primary);
  color: #07090e;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-accent);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

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

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.registration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.registration-pill strong {
  color: var(--accent-cyan);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-cyan);
}

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

/* Hero Visual Canvas Box */
.hero-visual-card {
  height: 480px;
  position: relative;
  background: rgba(14, 18, 28, 0.8);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  display: flex;
  flex-direction: column;
}

.visual-header {
  padding: 0.75rem 1rem;
  background: rgba(7, 9, 14, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.visual-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

#hero-canvas {
  flex: 1;
  width: 100%;
  height: 100%;
}

.canvas-overlay-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   5. INTERACTIVE SANDBOX DEMOS SECTION
   -------------------------------------------------------------------------- */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

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

.sandbox-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.sandbox-stage {
  min-height: 480px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.sandbox-panel {
  display: none;
}

.sandbox-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Panel 1: LiDAR 3D Visualizer */
.lidar-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  height: 420px;
}

.lidar-viewport {
  position: relative;
  background: #020306;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: inset 0 0 30px rgba(0, 242, 254, 0.15);
  min-height: 380px;
}

#lidar-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.lidar-controls {
  background: rgba(14, 18, 28, 0.9);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid var(--border-subtle);
}

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

.control-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Panel 2: Computer Vision Annotation Sandbox */
.cv-sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.cv-image-stage {
  position: relative;
  height: 420px;
  background: #030509;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-mock-scene {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.bounding-box {
  position: absolute;
  border: 2px solid var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  border-radius: 4px;
  transition: all var(--transition-normal);
}

.bounding-box-tag {
  position: absolute;
  top: -24px;
  left: -2px;
  background: var(--accent-cyan);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.polygon-shape {
  position: absolute;
  background: rgba(127, 83, 172, 0.3);
  border: 2px dashed #c084fc;
  clip-path: polygon(20% 0%, 80% 10%, 100% 70%, 50% 100%, 0% 80%);
  width: 200px;
  height: 150px;
}

.cv-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Panel 3: LLM & SFT Arena */
.llm-arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.llm-card {
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.llm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.prompt-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.response-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Panel 4: Document AI OCR Scanner */
.doc-scanner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.doc-paper {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-md);
  padding: 2rem;
  min-height: 380px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.doc-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  animation: scanDoc 3s infinite linear;
}

@keyframes scanDoc {
  0% { top: 0; }
  50% { top: 98%; }
  100% { top: 0; }
}

.json-output-box {
  background: #030407;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  overflow-x: auto;
}

/* --------------------------------------------------------------------------
   6. ALL 15 SERVICE PILLARS DIRECTORY
   -------------------------------------------------------------------------- */
.services-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.service-search-input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem 0.65rem 2.5rem;
  color: var(--text-main);
  width: 320px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.service-search-input:focus {
  border-color: var(--accent-cyan);
}

.service-search-wrapper {
  position: relative;
}

.service-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -10px rgba(0, 242, 254, 0.2);
}

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

.service-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.service-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
}

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

.sub-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sub-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.sub-tag:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   7. INTERACTIVE SCOPE & COST ESTIMATOR
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

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

.range-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.slider-val {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: var(--radius-full);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: var(--glow-cyan);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-output-box {
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.75rem;
}

.output-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.output-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.total-estimate-box {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
}

.total-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   8. QUALITY & WORKFORCE WORKFLOW SECTION
   -------------------------------------------------------------------------- */
.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3rem;
}

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.workflow-step-num {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Compliance Banner */
.compliance-banner {
  margin-top: 4rem;
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.9) 0%, rgba(21, 27, 42, 0.9) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.compliance-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   9. DEDICATED CONTACT PAGE & QUOTE BUILDER
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 100%, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

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

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

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

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

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

/* Service Multi-Select Checkboxes Grid */
.service-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.75rem;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-item input {
  accent-color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   10. MODAL & CONFIRMATION TOAST
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.modal-success-icon {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #030407;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .lidar-container, .cv-sandbox-grid, .doc-scanner-grid, .calculator-card, .contact-grid {
    grid-template-columns: 1fr;
  }

  .workflow-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .mega-menu {
    display: none; /* Mobile menu handles this */
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .workflow-timeline {
    grid-template-columns: 1fr;
  }

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

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