/* ==========================================================================
   iSolution India — Design System & Core Styles
   Based on Google Stitch "Vanguard Cyan Agency / Salient" Design Specs
   ========================================================================== */

:root {
  /* Dark Mode Palette (Default) */
  --bg-floor: #070d17;
  --bg-surface: #0d141e;
  --bg-surface-low: #161c26;
  --bg-surface-container: #1a202a;
  --bg-surface-high: #242a35;
  --bg-surface-highest: #2f3540;
  --bg-surface-bright: #333945;
  
  --text-pure: #f8fafc;
  --text-primary: #dde2f1;
  --text-muted: #bbc9cc;
  --text-subtle: #859396;
  --text-on-accent: #070d17;
  
  --primary: #47dffa;
  --primary-container: #05c3dd;
  --on-primary-container: #004c57;
  --primary-bright: #29d5ec;
  --primary-hover: #34e2fa;
  --primary-dark: #004c57;
  --primary-light: rgba(5, 195, 221, 0.15);
  --secondary: #45e5fc;
  --tertiary: #71ddec;
  
  --outline-variant: #3c494c;
  --outline-subtle: rgba(133, 147, 150, 0.3);
  --border-glass: rgba(226, 232, 240, 0.08);
  --border-soft: rgba(226, 232, 240, 0.08);
  --border-card: rgba(226, 232, 240, 0.14);
  --border-accent: rgba(5, 195, 221, 0.35);
  
  --glow-cyan: rgba(5, 195, 221, 0.45);
  --glow-ambient: rgba(5, 195, 221, 0.08);
  --glow-ambient-2: rgba(69, 229, 252, 0.06);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.8), 0 0 24px -4px rgba(5, 195, 221, 0.12);
  --shadow-modal: 0 32px 64px -16px rgba(0, 0, 0, 0.9), 0 0 40px 0 rgba(5, 195, 221, 0.2);
  --shadow-button: 0 0 24px rgba(5, 195, 221, 0.45);
  --shadow-button-hover: 0 0 36px rgba(5, 195, 221, 0.7);

  /* Typography */
  --font-heading: 'Ubuntu', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Sizing & Spacing - 100% Edge-to-Edge Full Width */
  --header-height: 80px;
  --container-max: 100%;
  --gutter: 1.5rem;
  --margin: clamp(1rem, 2vw, 2.5rem);
  --margin-mobile: 1rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Corner Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Light Mode Theme Variables
   ========================================================================== */
html.light {
  color-scheme: light;
  /* Floor canvas: A clean cool tinted slate (#f0f4f8) ensures white cards (#ffffff) pop with distinct elevation */
  --bg-floor: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-surface-low: #f8fafc;
  --bg-surface-container: #ffffff;
  --bg-surface-high: #e2e8f0;
  --bg-surface-highest: #cbd5e1;
  --bg-surface-bright: #ffffff;
  
  --text-pure: #090f1d;
  --text-primary: #1e293b;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-on-accent: #ffffff;
  
  --primary: #0284a2;
  --primary-container: #0284a2;
  --on-primary-container: #ffffff;
  --primary-bright: #007791;
  --primary-hover: #00687f;
  --primary-dark: #005f73;
  --primary-light: rgba(2, 132, 162, 0.10);
  --secondary: #006877;
  --tertiary: #0284c7;
  --accent: #059669;
  
  /* High-contrast crisp border tokens that prevent light mode from looking flat */
  --outline-variant: #cbd5e1;
  --outline-subtle: rgba(15, 23, 42, 0.16);
  --border-glass: rgba(15, 23, 42, 0.10);
  --border-soft: rgba(15, 23, 42, 0.10);
  --border-card: rgba(15, 23, 42, 0.12);
  --border-accent: rgba(2, 132, 162, 0.50);
  
  --glow-cyan: rgba(2, 132, 162, 0.20);
  --glow-ambient: rgba(2, 132, 162, 0.06);
  --glow-ambient-2: rgba(2, 132, 162, 0.05);
  
  /* Multi-layered tactile shadows with ambient occlusion and subtle brand radiance */
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 6px 16px -4px rgba(15, 23, 42, 0.05), 0 0 24px -2px rgba(2, 132, 162, 0.12);
  --shadow-modal: 0 30px 60px -12px rgba(15, 23, 42, 0.22), 0 0 32px 0 rgba(2, 132, 162, 0.14);
  --shadow-button: 0 4px 14px rgba(2, 132, 162, 0.28);
  --shadow-button-hover: 0 8px 22px rgba(2, 132, 162, 0.40);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-floor);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Site-wide Text Selection Highlight (Universal across Dark & Light Modes) */
::selection {
  background-color: #05c3dd !important;
  color: #041217 !important;
  -webkit-text-fill-color: #041217 !important;
}

::-moz-selection {
  background-color: #05c3dd !important;
  color: #041217 !important;
}

*::selection {
  background-color: #05c3dd !important;
  color: #041217 !important;
  -webkit-text-fill-color: #041217 !important;
}

*::-moz-selection {
  background-color: #05c3dd !important;
  color: #041217 !important;
}

input::selection,
textarea::selection {
  background-color: #05c3dd !important;
  color: #041217 !important;
  -webkit-text-fill-color: #041217 !important;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-pure);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-sm);
}

.display-hero {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.headline-xl {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.headline-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.headline-sm {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.title-lg {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.title-md {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.stat-value,
.stat-number,
.metric-value,
.bento-stat-num,
.process-step-num,
.process-num {
  font-family: var(--font-heading);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.body-md {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.label-lg {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.label-caps {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Links & Media */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Layout Containers - 100% Full Width Architecture */
.container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--margin) !important;
  padding-right: var(--margin) !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--margin-mobile) !important;
    padding-right: var(--margin-mobile) !important;
  }
}

/* Gradient Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary-container) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

html.light .gradient-text {
  background: linear-gradient(135deg, #0284a2 0%, #007791 50%, #005f73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

html.light .gradient-text-alt {
  background: linear-gradient(135deg, #0f172a 0%, #0284a2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Gradient Overlay */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-floor) 0%, rgba(7, 13, 23, 0.75) 45%, rgba(7, 13, 23, 0.1) 100%);
  pointer-events: none;
}

html.light .hero-gradient-overlay {
  background: linear-gradient(to top, var(--bg-floor) 0%, rgba(240, 244, 248, 0.88) 45%, rgba(240, 244, 248, 0.15) 100%);
}

/* Hero Floating Metric Pill */
.hero-stat-pill {
  background: rgba(13, 20, 30, 0.9);
  border: 1px solid var(--border-accent);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  text-align: right;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.light .hero-stat-pill {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 0 20px rgba(2, 132, 162, 0.10);
  color: #0f172a;
}

/* Process Step Numbers */
.process-step-num {
  color: rgba(133, 147, 150, 0.25);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-md);
}

html.light .process-step-num {
  color: rgba(2, 132, 162, 0.22);
}

/* Ambient Radial Glow Containers */
.ambient-glow-wrapper {
  position: relative;
  overflow: hidden;
}

.ambient-glow-orb {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
}

.ambient-glow-top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 500px;
  background: var(--glow-ambient);
}

.ambient-glow-right {
  top: 30%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--glow-ambient-2);
  filter: blur(160px);
}

/* Skip link for Accessibility */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary-container);
  color: var(--text-on-accent);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 20px;
}

/* Core Utility Helpers */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

