/* =========================================================
   NimbusOps — Enterprise IT Operations Website
   styles.css
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #0B1220;
  --midnight: #111827;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;

  --blue: #2563EB;
  --blue-2: #3B82F6;
  --cyan: #06B6D4;
  --purple: #8B5CF6;

  --text: #E5E7EB;
  --text-dim: #94A3B8;
  --heading: #FFFFFF;

  --bg: var(--navy);
  --bg-alt: #0E1628;
  --bg-soft: #131C30;

  --card: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --card-hover: rgba(255,255,255,0.07);

  --grad-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --grad-purple: linear-gradient(135deg, #8B5CF6 0%, #2563EB 100%);
  --grad-text: linear-gradient(135deg, #06B6D4 0%, #3B82F6 50%, #8B5CF6 100%);

  --shadow-1: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-2: 0 12px 40px rgba(0,0,0,0.4);
  --glow: 0 0 24px rgba(37,99,235,0.35);
  --glow-cyan: 0 0 24px rgba(6,182,212,0.35);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --container: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

[data-theme="light"] {
  --bg: #F7F9FC;
  --bg-alt: #FFFFFF;
  --bg-soft: #EEF2F8;
  --text: #1F2937;
  --text-dim: #475569;
  --heading: #0B1220;
  --card: #FFFFFF;
  --card-border: #E2E8F0;
  --card-hover: #F8FAFC;
  --shadow-1: 0 6px 24px rgba(15,23,42,0.06);
  --shadow-2: 0 12px 40px rgba(15,23,42,0.10);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: rgba(37,99,235,0.4); color: white; }

h1, h2, h3, h4, h5 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { color: var(--text-dim); }

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

/* ---------- Animated Background Canvas ---------- */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.55;
  pointer-events: none;
}
[data-theme="light"] #bgCanvas { opacity: 0.25; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(37,99,235,0.18) 0%, transparent 60%),
    radial-gradient(50% 40% at 90% 0%, rgba(6,182,212,0.14) 0%, transparent 60%),
    radial-gradient(60% 60% at 50% 110%, rgba(139,92,246,0.10) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(37,99,235,0.10) 0%, transparent 60%),
    radial-gradient(50% 40% at 90% 0%, rgba(6,182,212,0.08) 0%, transparent 60%);
}

/* ---------- Utility ---------- */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head p { font-size: 1.1rem; margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37,99,235,0.5);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #06B6D4 0%, #2563EB 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
  backdrop-filter: blur(10px);
}
[data-theme="light"] .btn-ghost {
  background: white;
  border-color: var(--slate-200);
  color: var(--heading);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--cyan);
  color: var(--heading);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .3s var(--ease);
  background: transparent;
  backdrop-filter: blur(0);
}
.header.scrolled {
  background: rgba(11,18,32,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  box-shadow: var(--shadow-1);
}
[data-theme="light"] .header.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--slate-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.logo-text span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { display: inline-flex; }

.nav ul {
  display: flex;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color .25s var(--ease);
}
.nav a:hover { color: var(--heading); }
.nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
  border-radius: 2px;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  transition: all .3s var(--ease);
}
[data-theme="light"] .theme-toggle {
  background: white;
  border-color: var(--slate-200);
}
.theme-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }

.hamburger {
  width: 38px; height: 38px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  width: 100%; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.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); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}
.glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floaty 10s ease-in-out infinite;
}
.glow-1 { background: var(--blue); top: -10%; left: -10%; }
.glow-2 { background: var(--cyan); bottom: -10%; right: -10%; animation-delay: -5s; }

@keyframes floaty {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  position: relative;
  display: inline-block;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: pulse 1.8s ease-out infinite;
}
.pulse-dot.green { background: #10B981; }
.pulse-dot.green::after { border-color: #10B981; }
.pulse-dot.blue { background: var(--blue); }
.pulse-dot.blue::after { border-color: var(--blue); }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.hero-title { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.18rem;
  margin-bottom: 32px;
  max-width: 560px;
  color: var(--text-dim);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.hero-badges .dot.ok { background: #10B981; box-shadow: 0 0 10px #10B981; }

/* ---------- Hero Dashboard ---------- */
.hero-right { position: relative; }
.dashboard {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-2);
  position: relative;
}
[data-theme="light"] .dashboard {
  background: white;
  border-color: var(--slate-200);
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .dash-head { border-bottom-color: var(--slate-200); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.dash-dots span:nth-child(1) { background: #EF4444; }
.dash-dots span:nth-child(2) { background: #F59E0B; }
.dash-dots span:nth-child(3) { background: #10B981; }
.dash-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #10B981;
  font-weight: 600;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dash-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
}
[data-theme="light"] .dash-card { background: var(--slate-100); border-color: var(--slate-200); }
.dash-card.chart, .dash-card.services { grid-column: span 3; }
@media (min-width: 720px) {
  .dash-card.chart { grid-column: span 2; }
  .dash-card.services { grid-column: span 1; }
}
.kpi-label { font-size: 0.74rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--heading); margin-top: 4px; font-family: 'Manrope', sans-serif; }
.kpi-value .unit { font-size: 0.7rem; color: var(--text-dim); margin-left: 4px; font-weight: 500; }
.kpi-trend { font-size: 0.72rem; margin-top: 4px; }
.kpi-trend.up { color: #10B981; }
.spark { height: 30px; margin-top: 4px; }
.spark svg { width: 100%; height: 100%; }
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.chip {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}
.area-chart { width: 100%; height: 80px; }
.area-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawLine 2s ease-out forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.services .row {
  display: grid;
  grid-template-columns: 1fr 60px 30px;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  padding: 4px 0;
}
.svc-name { color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.svc-bar { display: block; height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.svc-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0);
  background: var(--grad-primary);
  border-radius: 999px;
  animation: barFill 1.4s var(--ease) forwards;
  transform-origin: left;
}
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.svc-val { color: var(--heading); font-weight: 600; text-align: right; }

.dash-alerts { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  color: #10B981;
}
.alert.info { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.2); color: var(--blue-2); }

.float-chip {
  position: absolute;
  background: rgba(11,18,32,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-1);
  animation: floatChip 6s ease-in-out infinite;
}
[data-theme="light"] .float-chip {
  background: white;
  border-color: var(--slate-200);
  color: var(--heading);
}
.chip-1 { top: -16px; left: -20px; }
.chip-2 { top: 30%; right: -28px; animation-delay: -2s; }
.chip-3 { bottom: -16px; left: 20%; animation-delay: -4s; }
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-indicator span {
  width: 3px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-alt) 100%);
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
[data-theme="light"] .stats { background: white; border-color: var(--slate-200); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .stat { border-right-color: var(--slate-200); }
.stat:last-child { border-right: 0; }
.stat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  color: var(--cyan);
  margin-bottom: 14px;
}
.stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ---------- Services ---------- */
.services-section { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all .4s var(--ease);
  backdrop-filter: blur(10px);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6,182,212,0.4);
  background: var(--card-hover);
  box-shadow: 0 20px 60px rgba(6,182,212,0.15);
}
.svc-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(6,182,212,0.15), transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.service-card:hover .svc-bg { opacity: 1; }
.svc-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: white;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.96rem; margin-bottom: 16px; }
.svc-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.svc-points li {
  position: relative;
  padding-left: 22px;
}
.svc-points li::before {
  content: '';
  position: absolute;
  left: 4px; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  transition: gap .25s var(--ease);
}
.learn-link:hover { gap: 10px; }

/* ---------- Solutions ---------- */
.solutions-section { background: var(--bg-alt); }
.solutions-list { display: flex; flex-direction: column; gap: 100px; }
.solution-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.solution-row.reverse { direction: rtl; }
.solution-row.reverse > * { direction: ltr; }
.sol-text h3 { font-size: 1.8rem; margin: 6px 0 16px; }
.sol-text p { margin-bottom: 14px; color: var(--text-dim); }
.sol-text p strong { color: var(--heading); }
.bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
}
.bullets li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.sol-visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,182,212,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="light"] .sol-visual {
  background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(6,182,212,0.03));
  border-color: var(--slate-200);
}
.topology svg { width: 100%; max-width: 400px; }
.cloud-art {
  position: relative;
  width: 100%; height: 240px;
}
.cloud-card {
  position: absolute;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(6,182,212,0.3);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  animation: floatChip 6s ease-in-out infinite;
}
[data-theme="light"] .cloud-card { background: white; }
.cloud-card:nth-child(1) { top: 10%; left: 10%; }
.cloud-card:nth-child(2) { top: 10%; right: 10%; animation-delay: -1.5s; }
.cloud-card:nth-child(3) { bottom: 10%; left: 10%; animation-delay: -3s; }
.cloud-card:nth-child(4) { bottom: 10%; right: 10%; animation-delay: -4.5s; }
.cloud-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 22px;
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(37,99,235,0.4);
}
.cloud-core::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  border: 1px dashed rgba(6,182,212,0.4);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.slo-card {
  width: 100%; max-width: 360px;
  padding: 20px;
  background: rgba(11,18,32,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
[data-theme="light"] .slo-card { background: white; }
.slo-head { font-weight: 700; color: var(--heading); margin-bottom: 16px; }
.slo-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.slo-row b { color: var(--heading); }
.bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--grad-primary); border-radius: 999px; animation: barFill 1.4s var(--ease) forwards; transform-origin: left; }

.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pipeline .step {
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
[data-theme="light"] .pipeline .step { background: white; }
.pipeline .step.active {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.pipeline .line {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  position: relative;
}
.pipeline .line::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  width: 0; height: 0;
  border-left: 6px solid var(--blue);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* =========================================================
   Tech Section — Stack Layers (v2)
   ========================================================= */
.tech-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Ambient layered background */
.tech-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.tech-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, black 25%, transparent 80%);
  animation: gridMove 40s linear infinite;
}
.tech-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}
.tg-1 { background: var(--blue); top: 10%; left: -8%; }
.tg-2 { background: var(--cyan); bottom: 5%; right: -8%; }

.tech-section .container { position: relative; z-index: 1; }

/* The Stack — container */
.tech-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
}

/* Connection lines overlay */
.tech-connections {
  position: absolute;
  inset: -20px 0 -20px 0;
  width: 100%;
  height: calc(100% + 40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}
.tech-connections .conn-lines path {
  stroke-dasharray: 6 6;
  animation: dashFlow 6s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -120; } }

/* Each layer */
.tech-layer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%),
    linear-gradient(90deg, rgba(6,182,212,0.06), rgba(37,99,235,0.02) 60%, transparent);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.tech-layer::before {
  /* left neon edge */
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--cyan), var(--blue), transparent);
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(6,182,212,0.6);
}
.tech-layer::after {
  /* sweeping shimmer */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.tech-layer:hover {
  transform: translateY(-3px);
  border-color: rgba(6,182,212,0.35);
  box-shadow: 0 18px 50px rgba(6,182,212,0.12), 0 0 0 1px rgba(6,182,212,0.2);
}
.tech-layer:hover::after { transform: translateX(100%); }

[data-theme="light"] .tech-layer {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85)),
    linear-gradient(90deg, rgba(6,182,212,0.04), transparent);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-1);
}

/* Layer meta (left column) */
.layer-meta {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
}
.layer-icon {
  grid-row: span 2;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6,182,212,0.18), rgba(37,99,235,0.12));
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(6,182,212,0.18);
}
.layer-name {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.layer-tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}
.layer-prof {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.22);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
}
.layer-prof::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* Horizontal rail under tools */
.layer-rail {
  display: none;
}

/* Tools row */
.layer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Individual tool tile */
.tech-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: rgba(11,18,32,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .3s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
}
[data-theme="light"] .tech-tool {
  background: white;
  border-color: var(--slate-200);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.tech-tool:hover, .tech-tool:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: rgba(6,182,212,0.08);
  box-shadow: 0 10px 24px rgba(6,182,212,0.22), 0 0 0 1px rgba(6,182,212,0.25);
  color: var(--cyan);
}
[data-theme="light"] .tech-tool:hover { background: white; }

.tool-icon {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  padding: 3px;
  transition: all .3s var(--ease);
  flex-shrink: 0;
}
[data-theme="light"] .tool-icon { background: var(--slate-100); }
.tool-icon img {
  width: 20px;
  height: 20px;
  filter: grayscale(0.1) brightness(1.05);
  transition: filter .3s var(--ease), transform .3s var(--ease);
}
[data-theme="light"] .tool-icon img { filter: none; }
.tech-tool:hover .tool-icon img,
.tech-tool:focus-visible .tool-icon img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(6,182,212,0.6));
}
.tool-name { white-space: nowrap; }

/* Tool hover popover */
.tool-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  max-width: 260px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0F172A 0%, #111827 100%);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4), 0 0 24px rgba(6,182,212,0.15);
  z-index: 10;
}
[data-theme="light"] .tool-pop {
  background: white;
  color: var(--heading);
  border-color: var(--slate-200);
  box-shadow: 0 14px 36px rgba(15,23,42,0.12);
}
.tool-pop::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(6,182,212,0.3);
}
.tech-tool:hover .tool-pop,
.tech-tool:focus-visible .tool-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Live Metrics Ticker
   ========================================================= */
.tech-ticker {
  margin-top: 50px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(11,18,32,0.7), rgba(11,18,32,0.4));
  border: 1px solid rgba(6,182,212,0.18);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="light"] .tech-ticker {
  background: linear-gradient(90deg, white, var(--slate-100));
  border-color: var(--slate-200);
}
.ticker-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 0; bottom: 0; left: 0;
  padding: 0 20px;
  background: linear-gradient(90deg, rgba(11,18,32,0.95), rgba(11,18,32,0.6) 80%, transparent);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  white-space: nowrap;
}
[data-theme="light"] .ticker-head {
  background: linear-gradient(90deg, white, rgba(255,255,255,0.6) 80%, transparent);
}
.ticker-track {
  overflow: hidden;
  padding: 16px 0 16px 230px;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, black 230px, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 230px, black 90%, transparent);
}
.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
}
.tech-ticker:hover .ticker-content { animation-play-state: paused; }
.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.tick b {
  color: var(--heading);
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
}
.tick i {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.tick-sep {
  color: var(--cyan);
  font-size: 0.6rem;
  opacity: 0.6;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Foot */
.tech-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}
.tech-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all .3s var(--ease);
}
.tech-cta:hover {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,0.35);
}
.tech-cta:hover svg { transform: translateX(3px); }
.tech-cta svg { transition: transform .3s var(--ease); }
.tech-tm {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .tech-layer { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .tech-connections { display: none; }
  .layer-meta { grid-template-columns: 44px 1fr auto; }
  .layer-prof { grid-column: auto; grid-row: 1; justify-self: end; margin-top: 0; }
}
@media (max-width: 600px) {
  .layer-meta { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .layer-prof { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .tech-tool { font-size: 0.82rem; padding: 8px 12px 8px 10px; }
  .tool-icon { width: 22px; height: 22px; }
  .tool-icon img { width: 16px; height: 16px; }
  .tool-pop { min-width: 180px; max-width: 220px; font-size: 0.74rem; }
  .ticker-head { font-size: 0.7rem; padding: 0 12px; }
  .ticker-track { padding-left: 170px; }
}

/* ---------- Workflow ---------- */
.workflow-section { background: var(--bg-alt); position: relative; overflow: hidden; }
.workflow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
  animation: gridMove 30s linear infinite;
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 50px 50px; } }
.workflow { position: relative; padding: 40px 0; }
.wf-line {
  position: absolute;
  left: 0; right: 0; top: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--blue) 50%, var(--purple) 80%, transparent);
  opacity: 0.5;
}
.wf-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative;
}
.wf-steps li {
  text-align: center;
  position: relative;
}
.wf-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(6,182,212,0.3);
  transition: all .35s var(--ease);
}
.wf-steps li.in-view .wf-dot {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
}
.wf-steps h4 { font-size: 1.05rem; margin-bottom: 6px; }
.wf-steps p { font-size: 0.86rem; color: var(--text-dim); padding: 0 8px; }

/* ---------- Industries ---------- */
.industries-section { background: var(--bg); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: var(--bg) center/cover no-repeat;
  background-image: var(--bg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s var(--ease);
  box-shadow: var(--shadow-1);
}
.industry-card:hover { transform: translateY(-6px) scale(1.02); }
.ind-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.2) 0%, rgba(11,18,32,0.95) 100%);
  transition: background .4s var(--ease);
}
.industry-card:hover .ind-overlay {
  background: linear-gradient(180deg, rgba(37,99,235,0.2) 0%, rgba(11,18,32,0.95) 100%);
}
.ind-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  color: white;
}
.ind-body h4 { color: white; margin-bottom: 6px; }
.ind-body p { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin-bottom: 12px; }
.ind-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(6,182,212,0.18);
  border: 1px solid rgba(6,182,212,0.4);
  border-radius: 999px;
  font-size: 0.74rem;
  color: #67E8F9;
  font-weight: 600;
}

/* ---------- Showcase ---------- */
.showcase-section { background: var(--bg-alt); }
.showcase { max-width: 1000px; margin: 0 auto; }
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
  padding: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
[data-theme="light"] .showcase-tabs { background: white; border-color: var(--slate-200); }
.tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: all .25s var(--ease);
}
.tab:hover { color: var(--heading); }
.tab.active {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.showcase-panel { position: relative; }
.panel { display: none; animation: fadeUp .5s var(--ease); }
.panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.glass {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
}
[data-theme="light"] .glass { background: white; border-color: var(--slate-200); box-shadow: var(--shadow-1); }
.glass h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.kpi-tile .big {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--heading);
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
}
.muted { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }
.heat {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.heat span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(6, 182, 212, var(--v));
  border: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Why Choose Us ---------- */
.why-section { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: all .35s var(--ease);
  position: relative;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 14px 40px rgba(6,182,212,0.15);
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.why-card h4 { margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; }

/* ---------- Case Studies ---------- */
.cases-section { background: var(--bg-alt); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all .35s var(--ease);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.case-img {
  height: 200px;
  background: var(--bg-soft) center/cover no-repeat;
  position: relative;
}
.case-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,18,32,0.4));
}
.case-body { padding: 24px; }
.case-body h4 { margin: 6px 0 12px; line-height: 1.3; }
.case-body p { font-size: 0.92rem; margin-bottom: 10px; }
.case-body p strong { color: var(--heading); }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .case-metrics { border-top-color: var(--slate-200); }
.case-metrics > div { text-align: center; }
.case-metrics b {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case-metrics span { font-size: 0.75rem; color: var(--text-dim); }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--bg); }
.testi-carousel { max-width: 900px; margin: 0 auto; position: relative; }
.testi-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.testi {
  flex: 0 0 100%;
  padding: 40px;
  text-align: center;
}
.testi blockquote {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--heading);
  font-weight: 500;
  margin-bottom: 24px;
  position: relative;
}
.testi blockquote::before, .testi blockquote::after {
  content: '"';
  font-size: 3rem;
  color: var(--cyan);
  opacity: 0.5;
  font-family: serif;
  line-height: 0;
  vertical-align: middle;
  margin: 0 4px;
}
.testi figcaption b { color: var(--heading); display: block; }
.testi figcaption span { font-size: 0.88rem; color: var(--text-dim); }
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.t-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--heading);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}
[data-theme="light"] .t-btn { background: white; border-color: var(--slate-200); }
.t-btn:hover { background: var(--grad-primary); border-color: transparent; color: white; }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all .25s var(--ease);
  cursor: pointer;
}
.testi-dots button.active { background: var(--cyan); width: 24px; border-radius: 999px; }

/* ---------- Careers ---------- */
.careers-section {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.benefits { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; color: var(--text-dim); }
.careers-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.role-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: all .3s var(--ease);
}
.role-card b { display: block; color: var(--heading); font-size: 1.05rem; margin-bottom: 6px; }
.role-card span { color: var(--text-dim); font-size: 0.86rem; }
.role-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(6,182,212,0.15);
}

/* ---------- Contact ---------- */
.contact-section { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-meta { display: flex; flex-direction: column; gap: 18px; margin: 30px 0; }
.contact-meta li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ci {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-meta b { display: block; color: var(--heading); margin-bottom: 2px; }
.contact-meta span { color: var(--text-dim); font-size: 0.92rem; }
.map {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-pin {
  position: absolute;
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
  background: rgba(11,18,32,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--cyan);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 24px rgba(6,182,212,0.3);
}
[data-theme="light"] .map-pin { background: white; }

.contact-form {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-1);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-dim);
  font-weight: 500;
}
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--heading);
  transition: all .25s var(--ease);
}
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
  background: white;
  border-color: var(--slate-200);
  color: var(--heading);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(6,182,212,0.05);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.1);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-status { font-size: 0.88rem; color: #10B981; min-height: 18px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(6,182,212,0.08), transparent 40%);
  pointer-events: none;
}
.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 80%);
  animation: gridMove 30s linear infinite;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
}
.footer-brand p { margin: 16px 0 20px; max-width: 320px; font-size: 0.92rem; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all .25s var(--ease);
}
[data-theme="light"] .socials a { background: white; border-color: var(--slate-200); }
.socials a:hover { background: var(--grad-primary); color: white; transform: translateY(-3px); border-color: transparent; }
.footer-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; color: var(--cyan); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Chat & To Top ---------- */
.chat-toggle, .to-top {
  position: fixed;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,99,235,0.4);
  transition: all .3s var(--ease);
  z-index: 90;
}
.chat-toggle { bottom: 24px; right: 24px; }
.to-top {
  bottom: 24px; right: 86px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--heading);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  box-shadow: var(--shadow-1);
  font-size: 1.4rem;
}
[data-theme="light"] .to-top { background: white; border-color: var(--slate-200); }
.to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.chat-toggle:hover, .to-top:hover { transform: translateY(-4px); }

.chat-panel {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 440px;
  background: var(--bg-alt);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  z-index: 95;
  overflow: hidden;
  animation: fadeUp .35s var(--ease);
}
[data-theme="light"] .chat-panel { background: white; border-color: var(--slate-200); }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
  color: var(--heading);
  font-size: 0.92rem;
}
.chat-head span { display: inline-flex; align-items: center; gap: 8px; }
.chat-head button { font-size: 1.4rem; color: var(--text-dim); width: 28px; height: 28px; }
.chat-body { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg, .msg-user {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.msg.bot { background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); color: var(--text); align-self: flex-start; }
.msg.small { font-size: 0.82rem; opacity: 0.85; }
.msg-user { background: var(--grad-primary); color: white; align-self: flex-end; }
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chat-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--heading);
}
[data-theme="light"] .chat-form input { background: white; border-color: var(--slate-200); }
.chat-form input:focus { outline: none; border-color: var(--cyan); }
.chat-form button {
  width: 40px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: white;
  font-size: 1.1rem;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: block;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(11,18,32,0.97);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  [data-theme="light"] .nav.open { background: rgba(255,255,255,0.98); }
  .nav.open ul { flex-direction: column; gap: 4px; }
  .nav.open a { display: block; padding: 12px; }
  .hamburger { display: inline-flex; }
  .hero-grid, .solution-row, .careers-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .solution-row.reverse { direction: ltr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid .stat:nth-child(3) { border-right: 0; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-steps { grid-template-columns: repeat(3, 1fr); gap: 30px; row-gap: 40px; }
  .wf-line { display: none; }
  .panel-grid { grid-template-columns: 1fr; }
  .glass:first-child { grid-column: span 1; }
  .careers-right { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 20px; }
  .industries-grid { grid-template-columns: 1fr; }
  .wf-steps { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .float-chip { display: none; }
  .hero { padding: 110px 0 60px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .nav-actions .btn-sm { display: none; }
  .testi blockquote { font-size: 1.1rem; }
  .testi { padding: 20px; }
  .chat-panel { right: 12px; left: 12px; width: auto; max-width: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
