/* =========================================
   DigiQuench — Global Design System
   Dark Glassmorphism + Neural Neon Theme
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-void: #04040e;
  --bg-deep: #07071a;
  --bg-surface: #0c0c24;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  --neon-cyan: #00f5ff;
  --neon-blue: #3b82f6;
  --neon-violet: #8b5cf6;
  --neon-pink: #ec4899;
  --neon-green: #10b981;
  --accent-primary: #00f5ff;
  --accent-secondary: #7c3aed;
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 40px rgba(0,245,255,0.15);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-height: 80px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Canvas Background ── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Page Wrapper ── */
.page-wrapper { position: relative; z-index: 1; }

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Grid Lines Background ── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Gradient Orbs ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,245,255,0.12) 0%, transparent 70%); top: -10%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%); top: 30%; right: -5%; animation-delay: 3s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%); bottom: 10%; left: 30%; animation-delay: 6s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
.display-xl { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; }
.display-md { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.01em; }
.display-sm { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; }
.body-lg { font-size: 1.125rem; line-height: 1.75; }
.body-md { font-size: 1rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 50%, var(--neon-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-warm {
  background: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Tag ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 24px;
}
.section-tag .dot {
  width: 6px; height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(4,4,14,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 44px; height: 44px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text span {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--neon-cyan);
  border-radius: 50%;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}
.dropdown-trigger:hover { color: var(--text-primary); background: var(--glass-bg); }
.dropdown-trigger svg { transition: transform 0.2s; }
.nav-dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(7,7,26,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s ease;
  pointer-events: none;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--glass-hover); color: var(--neon-cyan); }
.dropdown-menu a .dm-icon { font-size: 1rem; }

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(4,4,14,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 24px clamp(20px, 4vw, 40px);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a, .mobile-menu .mob-section-title {
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: block;
}
.mobile-menu a:hover { color: var(--neon-cyan); background: var(--glass-bg); }
.mob-section-title { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.mobile-menu .mob-cta { margin-top: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #000;
  box-shadow: 0 0 20px rgba(0,245,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0,245,255,0.5);
}
.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: rgba(0,245,255,0.3);
  color: var(--neon-cyan);
}
.btn-ghost {
  color: var(--neon-cyan);
  border: 1px solid rgba(0,245,255,0.3);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(0,245,255,0.08);
  box-shadow: 0 0 20px rgba(0,245,255,0.15);
}
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }

/* ── Glass Cards ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(0,245,255,0.2);
  box-shadow: 0 0 30px rgba(0,245,255,0.08), var(--shadow-card);
  transform: translateY(-4px);
}
.glass-card-sm {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

/* ── Sections ── */
section { position: relative; }
.section-pad { padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 60px); }
.section-pad-sm { padding: clamp(60px, 7vw, 100px) clamp(20px, 4vw, 60px); }
.container { max-width: 1280px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }

/* ── Feature Grid ── */
.feature-grid { display: grid; gap: 24px; }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Feature Card */
.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.feature-icon-cyan { background: rgba(0,245,255,0.1); border: 1px solid rgba(0,245,255,0.2); }
.feature-icon-violet { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2); }
.feature-icon-blue { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); }
.feature-icon-green { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); }
.feature-icon-pink { background: rgba(236,72,153,0.1); border: 1px solid rgba(236,72,153,0.2); }

.feature-card h3 { font-size: 1.125rem; font-weight: 700; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Hero Sections ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) clamp(20px, 4vw, 60px) 80px;
  position: relative;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }

/* ── Page Hero (non-home) ── */
.page-hero {
  padding: calc(var(--nav-height) + 60px) clamp(20px, 4vw, 60px) 80px;
  position: relative;
  overflow: hidden;
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.stat-divider { width: 1px; height: 48px; background: var(--glass-border); }

/* ── Neon Divider ── */
.neon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ── Badge / Pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-cyan { background: rgba(0,245,255,0.1); color: var(--neon-cyan); border: 1px solid rgba(0,245,255,0.2); }
.badge-violet { background: rgba(139,92,246,0.1); color: var(--neon-violet); border: 1px solid rgba(139,92,246,0.2); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--neon-green); border: 1px solid rgba(16,185,129,0.2); }
.badge-pink { background: rgba(236,72,153,0.1); color: var(--neon-pink); border: 1px solid rgba(236,72,153,0.2); }
.badge-blue { background: rgba(59,130,246,0.1); color: var(--neon-blue); border: 1px solid rgba(59,130,246,0.2); }

/* ── Progress Bar ── */
.progress-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; }
.progress-label span { color: var(--text-secondary); }
.progress-label strong { color: var(--neon-cyan); }
.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

/* ── Number Ticker ── */
.ticker { display: inline-block; }

/* ── Trusted Logos ── */
.trusted-strip {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0.4;
  filter: grayscale(1);
}
.trusted-strip .trust-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 8px; }
.timeline-item p { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Accordion ── */
.accordion-item {
  border-bottom: 1px solid var(--glass-border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.accordion-trigger:hover { color: var(--neon-cyan); }
.accordion-trigger .acc-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1rem;
}
.accordion-trigger.open .acc-icon { background: rgba(0,245,255,0.1); border-color: var(--neon-cyan); color: var(--neon-cyan); transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.75;
}
.accordion-body.open { display: block; }

/* ── Pricing Cards ── */
.pricing-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.pricing-card.featured {
  border-color: rgba(0,245,255,0.4);
  background: linear-gradient(135deg, rgba(0,245,255,0.06), rgba(124,58,237,0.06));
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 20px; right: -28px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 40px;
  transform: rotate(45deg);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.price-amount sup { font-size: 1.5rem; vertical-align: top; margin-top: 8px; }
.price-amount .period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-features { display: flex; flex-direction: column; gap: 12px; }
.price-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.price-feature .check { color: var(--neon-cyan); font-size: 1rem; flex-shrink: 0; }
.price-feature .cross { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; }

/* ── Contact Form ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(0,245,255,0.4);
  background: rgba(0,245,255,0.03);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.08);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Footer ── */
.footer {
  background: rgba(4,4,14,0.8);
  border-top: 1px solid var(--glass-border);
  padding: 80px clamp(20px, 4vw, 60px) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { border-color: rgba(0,245,255,0.3); color: var(--neon-cyan); background: rgba(0,245,255,0.05); }
.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--neon-cyan); }
.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); transition: var(--transition); }
.footer-legal a:hover { color: var(--neon-cyan); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Glow Line ── */
.glow-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--neon-cyan) 50%, transparent 100%);
  opacity: 0.2;
}

/* ── Industry Icon Badge ── */
.industry-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}
.industry-badge:hover {
  border-color: rgba(0,245,255,0.3);
  color: var(--neon-cyan);
  background: rgba(0,245,255,0.04);
  transform: translateY(-2px);
}
.industry-badge .ib-icon { font-size: 1.25rem; }

/* ── Checklist ── */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.checklist li::before {
  content: '✦';
  color: var(--neon-cyan);
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Tag Row ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.tag:hover { border-color: rgba(0,245,255,0.3); color: var(--neon-cyan); }

/* ── Glowing CTA Block ── */
.cta-block {
  position: relative;
  padding: 80px 60px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,245,255,0.05), rgba(124,58,237,0.05));
  border: 1px solid rgba(0,245,255,0.1);
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,245,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block h2 { margin-bottom: 16px; }
.cta-block p { color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-block .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Tooltip ── */
.tooltip-wrap { position: relative; display: inline-block; }
.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12,12,36,0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tooltip-wrap:hover .tooltip { opacity: 1; }

/* ── Process Steps ── */
.process-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--glass-border);
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0,245,255,0.15);
  line-height: 1;
  flex-shrink: 0;
}
.step-content h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step-content p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Tab Navigation ── */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 40px;
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(0,245,255,0.15), rgba(59,130,246,0.15));
  color: var(--neon-cyan);
  border: 1px solid rgba(0,245,255,0.2);
}
.tab-btn:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── 2-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── ROI Visual Card ── */
.roi-card {
  background: linear-gradient(135deg, rgba(0,245,255,0.05), rgba(124,58,237,0.05));
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* ── Tech Badge ── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.tech-badge .tb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feature-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .feature-grid-4, .feature-grid-3, .feature-grid-2 { grid-template-columns: 1fr; }
  .stats-bar { gap: 24px; }
  .stat-divider { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 48px 24px; }
  .pricing-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .section-pad { padding: 60px 20px; }
  .page-hero { padding-top: calc(var(--nav-height) + 40px); }
}

/* ── Glowing Border Animation ── */
@keyframes glow-border {
  0%, 100% { border-color: rgba(0,245,255,0.1); box-shadow: 0 0 10px rgba(0,245,255,0.05); }
  50% { border-color: rgba(0,245,255,0.3); box-shadow: 0 0 25px rgba(0,245,255,0.1); }
}
.glow-animate { animation: glow-border 3s ease-in-out infinite; }

/* ── Spinner ── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(0,245,255,0.1);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Notification Toast ── */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  padding: 16px 24px;
  background: rgba(7,7,26,0.95);
  border: 1px solid rgba(0,245,255,0.3);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  font-size: 0.875rem;
  color: var(--text-primary);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 30px rgba(0,245,255,0.1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Chat Bot Button ── */
.chatbot-btn {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 30px rgba(0,245,255,0.4);
  z-index: 500;
  cursor: pointer;
  transition: var(--transition);
  animation: pulse-chat 3s ease-in-out infinite;
}
.chatbot-btn:hover { transform: scale(1.1); box-shadow: 0 0 50px rgba(0,245,255,0.6); }
@keyframes pulse-chat {
  0%, 100% { box-shadow: 0 0 30px rgba(0,245,255,0.4); }
  50% { box-shadow: 0 0 50px rgba(0,245,255,0.7); }
}

/* ── Marquee ── */
.marquee-track { overflow: hidden; }
.marquee-inner {
  display: flex;
  gap: 40px;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-inner:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   DIGIQUENCH — MOBILE-FIRST RESPONSIVE SYSTEM
   Appended to style.css — never overwrites desktop rules.
   Breakpoints: 360px | 480px | 640px | 768px | 1024px
   ============================================================ */

/* ── 1. BASE MOBILE DEFAULTS (applied to all screens, overridden upward) ── */

/* Typography scaling */
.display-xl { font-size: clamp(2.2rem, 9vw, 6rem); }
.display-lg { font-size: clamp(2rem, 7.5vw, 4.5rem); }
.display-md { font-size: clamp(1.75rem, 6vw, 3.5rem); }
.display-sm { font-size: clamp(1.35rem, 5vw, 2.5rem); }
.body-lg    { font-size: clamp(1rem, 4vw, 1.125rem); }

/* Sections — tighter vertical on mobile */
.section-pad    { padding: clamp(56px, 10vw, 140px) clamp(16px, 5vw, 60px); }
.section-pad-sm { padding: clamp(40px, 8vw, 100px) clamp(16px, 5vw, 60px); }
.container      { padding-left: clamp(16px, 5vw, 60px); padding-right: clamp(16px, 5vw, 60px); }

/* Page hero */
.page-hero {
  padding-top: calc(var(--nav-height) + clamp(32px, 6vw, 60px));
  padding-bottom: clamp(48px, 8vw, 80px);
  padding-left: clamp(16px, 5vw, 60px);
  padding-right: clamp(16px, 5vw, 60px);
}

/* CTA block */
.cta-block { padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px); }
.cta-block p { margin-bottom: clamp(20px, 4vw, 32px); }

/* Buttons */
.btn-lg { padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px); font-size: clamp(0.875rem, 3.5vw, 1rem); }
.btn    { padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 24px); }

/* Glass cards */
.glass-card { border-radius: clamp(12px, 2.5vw, 24px); }

/* Feature cards */
.feature-card { padding: clamp(20px, 4vw, 32px); gap: clamp(12px, 2.5vw, 16px); }

/* Section header spacing */
.section-header { margin-bottom: clamp(36px, 7vw, 64px); }

/* Footer */
.footer { padding: clamp(48px, 8vw, 80px) clamp(16px, 5vw, 60px) clamp(28px, 5vw, 40px); }

/* Industry badge */
.industry-badge { padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 20px); font-size: 0.82rem; }

/* ── 2. ≤1024px — Tablet adjustments ── */
@media (max-width: 1024px) {
  .section-pad    { padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
  .container      { padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
  .two-col        { gap: clamp(28px, 5vw, 40px); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* All 3-col grids → 2-col */
  .feature-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── 3. ≤768px — Mobile landscape / large phone ── */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Typography */
  h1, h2, h3 { word-break: break-word; }

  /* Grids → single column */
  .feature-grid-4, .feature-grid-3, .feature-grid-2 { grid-template-columns: 1fr; }
  .two-col        { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 28px; }

  /* Stats bar */
  .stats-bar      { gap: 16px; flex-direction: column; align-items: flex-start; }
  .stat-divider   { display: none; }

  /* Footer */
  .footer-bottom  { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal   { flex-wrap: wrap; gap: 16px; }
  .footer-brand   { max-width: 100%; }

  /* Forms */
  .form-grid      { grid-template-columns: 1fr; }

  /* CTA */
  .cta-block      { padding: clamp(36px, 7vw, 48px) clamp(16px, 4vw, 24px); }
  .cta-block .btn-group { flex-direction: column; align-items: center; gap: 12px; }
  .cta-block .btn-group .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Pricing cards */
  .pricing-card   { padding: clamp(24px, 5vw, 32px); }

  /* Trusted strip */
  .trusted-strip  { gap: clamp(20px, 5vw, 40px); }
}

/* ── 4. ≤640px — Small phone ── */
@media (max-width: 640px) {
  /* Reduce heading sizes further */
  .display-xl { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .display-lg { font-size: clamp(1.75rem, 7.5vw, 2.3rem); }
  .display-md { font-size: clamp(1.5rem, 6.5vw, 2rem); }

  /* Section tag wrapping */
  .section-tag { font-size: 0.68rem; padding: 5px 12px; }

  /* Feature card icons */
  .feature-icon { width: 48px; height: 48px; font-size: 1.25rem; }

  /* Checklist */
  .checklist li { font-size: 0.85rem; }

  /* Tag row */
  .tag { font-size: 0.74rem; padding: 5px 10px; }

  /* Badge */
  .badge { font-size: 0.68rem; padding: 3px 9px; }

  /* Progress bar label */
  .progress-label { font-size: 0.78rem; }

  /* Tech badge */
  .tech-badge { font-size: 0.74rem; padding: 6px 10px; }
}

/* ── 5. ≤480px — Compact phone ── */
@media (max-width: 480px) {
  .section-pad    { padding: clamp(44px, 9vw, 60px) 16px; }
  .section-pad-sm { padding: clamp(32px, 7vw, 48px) 16px; }
  .container      { padding-left: 16px; padding-right: 16px; }
  .page-hero      { padding-left: 16px; padding-right: 16px; padding-top: calc(var(--nav-height) + 28px); }
  .footer         { padding: 40px 16px 24px; }

  /* Typography */
  .display-xl { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .display-lg { font-size: clamp(1.6rem, 7vw, 2rem); }
  .display-md { font-size: clamp(1.4rem, 6vw, 1.8rem); }

  /* Cards */
  .glass-card { border-radius: 12px; }
  .feature-card { padding: 18px; }
  .pricing-card { padding: 20px; }

  /* Buttons full-width stacked */
  .hero-ctas, .btn-group { flex-direction: column; gap: 10px; }
  .hero-ctas .btn, .btn-group .btn { width: 100%; justify-content: center; }

  /* Footer legal links */
  .footer-legal { flex-direction: column; gap: 10px; }
}

/* ── 6. ≤360px — Very small phones (SE, older Android) ── */
@media (max-width: 360px) {
  .section-pad { padding: 40px 12px; }
  .container   { padding-left: 12px; padding-right: 12px; }
  .display-xl  { font-size: 1.65rem; }
  .display-lg  { font-size: 1.5rem; }
  .display-md  { font-size: 1.3rem; }
  .btn-lg      { font-size: 0.82rem; padding: 11px 16px; }
  .glass-card  { border-radius: 10px; }
}

/* ── 7. TOUCH INTERACTION IMPROVEMENTS ── */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover-lift on touch (prevents sticky hover state) */
  .glass-card:hover      { transform: none; }
  .industry-badge:hover  { transform: none; }
  .btn-primary:hover     { transform: none; }
  .btn-secondary:hover   { transform: none; }
  /* Larger tap targets */
  .nav-links a, .dropdown-menu a { min-height: 44px; display: flex; align-items: center; }
  .mobile-menu a         { min-height: 48px; display: flex; align-items: center; }
  .social-link           { width: 44px; height: 44px; }
  .hamburger             { width: 44px; height: 44px; justify-content: center; align-items: center; }
}

/* ── 8. PAGE-SPECIFIC MOBILE FIXES ── */

/* ── index.html ── */
/* Command panel collapses cleanly */
@media (max-width: 768px) {
  .home-hero    { padding-top: calc(var(--nav-height) + 40px); gap: 28px; }
  .hero-text    { max-width: 100%; }
  .hero-command { border-radius: 12px; }
  .cmd-body     { grid-template-columns: 1fr; }
  .cmd-agents   { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .cmd-topbar   { flex-wrap: wrap; gap: 8px; }
  .cmd-statusbar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
}
@media (max-width: 480px) {
  .home-hero    { padding-top: calc(var(--nav-height) + 24px); gap: 20px; }
  .hero-body    { font-size: 0.95rem; }
  .hero-industries { gap: 8px; }
  .industry-badge { padding: 8px 14px; font-size: 0.78rem; }
  .cmd-topbar   { padding: 10px 14px; }
  .cmd-agents, .cmd-metrics { padding: 14px; }
  .cmd-kpi-row  { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cmd-kpi-val  { font-size: 1rem; }
  .cmd-kpi-lbl  { font-size: 0.55rem; }
  .cmd-statusbar { padding: 10px 14px; }
  /* Healthcare wide card in industries */
  a.feature-card[style*="grid-template-columns:auto 1fr auto"] {
    grid-template-columns: auto 1fr !important;
  }
  a.feature-card[style*="grid-template-columns:auto 1fr auto"] > span:last-child {
    display: none;
  }
}

/* ── ROI section — always stack on mobile ── */
.roi-section-grid { gap: clamp(28px, 5vw, 60px); }
@media (max-width: 768px) {
  .roi-section-grid { grid-template-columns: 1fr; }
  .roi-card  { padding: clamp(20px, 4vw, 40px); }
  .roi-stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .roi-stat-num  { font-size: clamp(1.6rem, 5vw, 2.4rem); }
}

/* ── about.html ── */
.mission-grid { gap: clamp(16px, 3vw, 24px); }
@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr !important; }
  .mission-card { padding: clamp(24px, 5vw, 40px); }
  .cta-block[style*="text-align:left"] { text-align: center !important; padding: 32px 20px !important; }
}
@media (max-width: 480px) {
  .value-grid { grid-template-columns: 1fr !important; }
  .value-card { padding: 20px; }
}

/* ── contact.html ── */
.contact-grid { gap: clamp(24px, 4vw, 48px); }
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr !important; }
  .form-row     { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  /* Audit 3-col strip → 1-col */
  .audit-strip > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  /* Industry links 5-col → 2-col */
  .contact-industry-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .contact-info-item { padding: 14px; }
  .step-row { gap: 12px; }
}
@media (max-width: 480px) {
  .contact-industry-grid {
    grid-template-columns: 1fr !important;
  }
  /* Form submit button full-width */
  .form-submit-btn { font-size: 0.9rem; }
}

/* ── fintech.html / retail.html / ecommerce.html / digital-marketing.html ── */
/* Hero right-col results card — 1fr 1fr grid inside → stack on mobile */
@media (max-width: 640px) {
  /* 1fr 1fr result grids inside hero cards */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* digital-marketing 4-col KPI → 2-col */
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  /* agent flow horizontal → vertical */
  .agent-flow { flex-direction: column !important; align-items: stretch; }
  .af-arrow   { transform: rotate(90deg); text-align: center; }
  .af-step    { min-width: auto !important; }
  /* Hero CTA buttons stack */
  div[style*="display:flex;gap:12px;flex-wrap:wrap"] { gap: 10px; }
}

/* ── services.html ── */
.sdc-body { gap: clamp(20px, 4vw, 32px); }
@media (max-width: 768px) {
  .sdc-body               { grid-template-columns: 1fr !important; }
  .service-detailed-card  { padding: clamp(20px, 4vw, 24px) !important; }
  .sdc-header             { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .sdc-body { gap: 16px; }
}

/* ── healthcare.html ── */
.use-case-grid, .uc-grid {
  gap: clamp(14px, 3vw, 20px);
}
@media (max-width: 1024px) {
  .use-case-grid, .uc-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .wf-step:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .use-case-grid, .uc-grid { grid-template-columns: 1fr !important; }
  .workflow-steps { grid-template-columns: 1fr !important; gap: 10px; }
  .hipaa-strip    { flex-direction: column; padding: 20px; }
  .hipaa-badges   { width: 100%; }
  .use-case-card  { padding: clamp(18px, 4vw, 28px); }
}

/* ── pricing.html ── */
.pricing-grid { gap: clamp(16px, 3vw, 24px); }
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .plan-card.featured { margin-top: 0 !important; }
  .roi-strip    { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr !important; }
  .roi-strip    { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .billing-row  { gap: 10px; flex-wrap: wrap; justify-content: center; }
  /* Comparison table scroll hint */
  .tbl-wrap, .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl-wrap::after, .compare-wrap::after {
    content: '← scroll →';
    display: block;
    text-align: center;
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 8px;
    letter-spacing: 0.06em;
  }
}
@media (max-width: 480px) {
  .roi-strip    { grid-template-columns: 1fr !important; }
  .roi-box      { padding: clamp(20px, 5vw, 32px) 16px; }
  .roi-big      { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .plan-card    { padding: 20px 16px; }
  .plan-tag     { min-height: auto !important; }
  .faq-wrap     { max-width: 100%; }
  /* Calculator layout */
  .calc-shell   { grid-template-columns: 1fr !important; }
  .calc-inputs  { border-right: none !important; border-bottom: 1px solid var(--glass-border); padding: 20px !important; }
  .calc-results { padding: 20px !important; }
  .calc-metrics-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .calc-rec     { flex-direction: column; gap: 12px; }
  .calc-rec > a { width: 100%; justify-content: center; }
}

/* ── Mobile menu polish ── */
@media (max-width: 768px) {
  .mobile-menu {
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu a      { font-size: 1rem; padding: 14px 16px; }
  .mob-section-title  { padding: 16px 16px 6px; }
  .mobile-menu .mob-cta { margin-top: 12px; padding: 14px; text-align: center; }
}

/* ── Utility: prevent any element from overflowing viewport ── */
img, svg, canvas, iframe, video { max-width: 100%; }
.page-wrapper { overflow-x: hidden; }

/* ── Touch scrollable tables ── */
table { width: 100%; }
.compare-table th:first-child,
.ctbl th:first-child { min-width: 140px; }

/* ── Additional targeted fixes for classes added via Python patches ── */

/* contact.html audit 3-col */
@media (max-width: 768px) {
  .audit-3col { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* digital-marketing 4-col KPI */
@media (max-width: 640px) {
  .dm-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; max-width: 100% !important; }
}
@media (max-width: 360px) {
  .dm-kpi-grid { grid-template-columns: 1fr !important; }
}

/* about.html left-aligned CTA */
.cta-left { text-align: left; padding: 48px; }
@media (max-width: 768px) {
  .cta-left { text-align: center !important; padding: clamp(28px,6vw,48px) clamp(16px,5vw,40px) !important; }
  .cta-left .btn-group { justify-content: center !important; }
}

/* ── index.html — healthcare wide card stacks on mobile ── */
@media (max-width: 640px) {
  a.feature-card[href="healthcare.html"] {
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto;
  }
  a.feature-card[href="healthcare.html"] > span:last-child {
    grid-column: 2;
    display: block !important;
  }
}
@media (max-width: 480px) {
  a.feature-card[href="healthcare.html"] {
    display: flex !important;
    flex-direction: column;
  }
  a.feature-card[href="healthcare.html"] > span:last-child { display: block !important; }
}

/* ── All page hero two-col → stack on mobile ── */
@media (max-width: 768px) {
  .page-hero .two-col { grid-template-columns: 1fr !important; gap: 28px; }
  .page-hero .two-col > div:nth-child(2) { display: none; } /* hide metric card on small screens */
}
@media (max-width: 1024px) {
  .page-hero .two-col { grid-template-columns: 1fr; }
  .page-hero .two-col > div:nth-child(2) { display: block; }
}

/* Restore metric card on ≥768px */
@media (min-width: 769px) {
  .page-hero .two-col { grid-template-columns: 1fr 1fr; }
  .page-hero .two-col > div:nth-child(2) { display: block !important; }
}

/* ── Prevent horizontal scroll from orbs ── */
.orb { max-width: 100vw; overflow: hidden; }

/* ── Mobile nav height adjustment ── */
@media (max-width: 480px) {
  :root { --nav-height: 70px; }
  .navbar { height: 70px; }
}
