
/* ─── CSS Custom Properties ─────────────────────────────────────── */
:root {
  --bg:           #FAF5FF;
  --bg-card:      #FFFFFF;
  --bg-subtle:    #F7F3FD;
  --fg:           #0F172A;
  --fg-muted:     #64748B;
  --fg-soft:      #94A3B8;
  --primary:      #7C3AED;
  --primary-h:    #6D28D9;
  --primary-soft: #EDE9FE;
  --secondary:    #6366F1;
  --accent:       #EC4899;
  --accent-2:     #F472B6;
  --border:       #EFE7FC;
  --border-soft:  #F3F0FF;
  --shadow-sm:    0 1px 3px rgba(124,58,237,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(124,58,237,.10), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:    0 8px 32px rgba(124,58,237,.14), 0 4px 12px rgba(0,0,0,.06);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --transition:   all .2s cubic-bezier(.4,0,.2,1);
  --nav-height:   68px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
}
[data-theme="dark"] {
  --bg:           #09050F;
  --bg-card:      #130D23;
  --bg-subtle:    #1A1035;
  --fg:           #F1F5F9;
  --fg-muted:     #94A3B8;
  --fg-soft:      #64748B;
  --primary:      #A78BFA;
  --primary-h:    #C4B5FD;
  --primary-soft: #2D1B69;
  --secondary:    #818CF8;
  --accent:       #F472B6;
  --accent-2:     #FB7185;
  --border:       #2D1B69;
  --border-soft:  #1E1245;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.6);
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ─── Typography ─────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--fg-muted); line-height: 1.75; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }
.section-label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft); padding: 6px 14px;
  border-radius: 999px; margin-bottom: var(--space-5);
}
.section-header { max-width: 680px; margin-bottom: var(--space-12); }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header p { margin-top: var(--space-4); font-size: 1.1rem; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 600; border-radius: var(--radius-md);
  padding: 13px 28px; transition: var(--transition); cursor: pointer;
  white-space: nowrap; letter-spacing: -.01em;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.btn-primary:hover { background: var(--primary-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.45); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 20px; font-size: .875rem; }

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-soft); }

/* ─── Gradient Text ──────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Badge ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; padding: 4px 12px;
  border-radius: 999px; letter-spacing: .03em;
}
.badge-purple { background: var(--primary-soft); color: var(--primary); }
.badge-pink   { background: #FCE7F3; color: #9D174D; }
[data-theme="dark"] .badge-pink { background: #4C1D3A; color: #F9A8D4; }

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(250,245,255,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
  transition: background .3s ease, box-shadow .3s ease;
}
[data-theme="dark"] #navbar {
  background: rgba(9,5,15,.85);
}
#navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height); gap: var(--space-8);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  color: var(--fg); flex-shrink: 0;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}
[data-theme="dark"] .nav-logo-img {
  filter: invert(1) brightness(1.2);
}
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(124,58,237,.4);
}
.nav-logo-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
.nav-links {
  display: flex; align-items: center; gap: var(--space-6);
}
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--fg-muted);
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px;
  background: var(--primary); border-radius: 2px; transition: width .2s;
}
.nav-links a:hover::after { width: 100%; }
.nav-demo-link {
  color: var(--primary) !important;
  font-weight: 600;
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: .82rem;
}
.nav-demo-link::after { display: none !important; }
.nav-demo-link:hover {
  background: var(--primary);
  color: white !important;
}
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
#theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--fg-muted);
  cursor: pointer;
}
#theme-toggle:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
#theme-toggle svg { width: 18px; height: 18px; }
.nav-mobile-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--fg);
}
.nav-mobile-btn svg { width: 20px; height: 20px; }
#mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: var(--space-6); flex-direction: column; gap: var(--space-4);
  box-shadow: var(--shadow-md); z-index: 999;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--fg-muted);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft);
  transition: color .2s;
}
#mobile-menu a:last-of-type { border-bottom: none; }
#mobile-menu a:hover { color: var(--primary); }
.mobile-demo-link {
  color: var(--primary) !important;
  font-weight: 600;
}
#mobile-menu .btn { width: 100%; justify-content: center; margin-top: var(--space-3); }

/* ═══════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: var(--nav-height); position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #A78BFA 0%, transparent 70%);
  top: -150px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #EC4899 0%, transparent 70%);
  bottom: 0; left: -100px;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
  top: 40%; left: 40%; opacity: .2;
}
[data-theme="dark"] .hero-orb { opacity: .2; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: var(--space-16);
  position: relative; z-index: 1;
  padding: var(--space-20) 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-5);
}
.hero-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}
.hero-title { margin-bottom: var(--space-6); }
.hero-title span { display: block; }
.hero-desc {
  font-size: 1.15rem; max-width: 520px;
  color: var(--fg-muted); margin-bottom: var(--space-8);
}
.hero-cta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-8); padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.hero-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 500; color: var(--fg-muted);
}
.hero-trust-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
}
.hero-trust-icon svg { width: 16px; height: 16px; color: var(--primary); }
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-card-stack { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.hero-main-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-8);
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}
.hero-card-header {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6);
}
.hero-card-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card-avatar svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
.hero-card-title { font-family: var(--font-display); font-size: .95rem; font-weight: 700; }
.hero-card-sub { font-size: .78rem; color: var(--fg-muted); }
.hero-stat-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.hero-stat {
  background: var(--bg-subtle); border-radius: var(--radius-md);
  padding: var(--space-4); text-align: center;
}
.hero-stat-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.hero-stat-lbl { font-size: .72rem; color: var(--fg-muted); margin-top: 2px; }
.hero-progress-label {
  font-size: .8rem; font-weight: 600; color: var(--fg); margin-bottom: 6px;
  display: flex; justify-content: space-between;
}
.hero-progress-bar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.hero-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: fillBar 2s ease-in-out infinite alternate;
}
@keyframes fillBar { from { width: 60%; } to { width: 85%; } }
.hero-float-card {
  position: absolute; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 16px; box-shadow: var(--shadow-md);
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  display: flex; align-items: center; gap: 8px; z-index: 3;
}
.hero-float-1 { top: -18px; right: -20px; color: var(--primary); animation: floatY 3s ease-in-out infinite; }
.hero-float-2 { bottom: -18px; left: -20px; color: #059669; animation: floatY 3.5s ease-in-out infinite reverse; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-dot { width: 8px; height: 8px; border-radius: 50%; }
.float-dot-purple { background: var(--primary); }
.float-dot-green  { background: #10B981; }

/* ─── Scroll indicator ───────────────────────────────────────────── */
.scroll-indicator {
  position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--fg-soft); font-size: .75rem; font-weight: 500; letter-spacing: .05em;
  animation: floatY 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; }

/* ─── Hero AI Demo Callout ─────────────────────────────────────────── */
.ai-demo-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .85rem;
  color: var(--fg-muted);
  max-width: 520px;
}
.ai-demo-callout em {
  font-style: normal;
  color: var(--primary);
  font-weight: 500;
}
[data-theme="dark"] .ai-demo-callout {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}
.ai-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ai-demo-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   AI DEMO SECTION
═══════════════════════════════════════════════════════════════════ */
#ai-demo {
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
}
#ai-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(124,58,237,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(236,72,153,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.ai-demo-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .ai-demo-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.ai-demo-content {
  text-align: center;
}
@media (min-width: 900px) {
  .ai-demo-content { text-align: left; }
}
.ai-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
.ai-demo-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ai-demo-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}
@media (min-width: 900px) {
  .ai-demo-desc { margin-left: 0; margin-right: auto; }
}
.ai-demo-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .ai-demo-features { margin-left: 0; }
}
.ai-demo-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--fg);
  transition: all .2s ease;
}
.ai-demo-feature:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.ai-demo-feature svg {
  color: var(--accent-2);
  flex-shrink: 0;
}
.ai-demo-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 900px) {
  .ai-demo-actions { align-items: flex-start; }
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 14px;
}
@media (min-width: 768px) {
  .btn-lg { padding: 18px 36px; font-size: 1.05rem; }
}
.ai-demo-hint {
  font-size: .78rem;
  color: var(--fg-soft);
}

/* AI Demo Preview Card */
.ai-demo-preview {
  position: relative;
  display: flex;
  justify-content: center;
}
.ai-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .ai-demo-card { padding: 36px; }
}
.ai-demo-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: left;
}
.ai-demo-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.ai-demo-card-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.ai-demo-card-sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Steps progress */
.ai-demo-card-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}
.ai-demo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ai-demo-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--fg-muted);
  transition: all .3s ease;
}
.ai-demo-step.active .ai-demo-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 16px rgba(124,58,237,0.3);
}
.ai-demo-step span {
  font-size: .7rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.ai-demo-step.active span {
  color: var(--primary);
}
.ai-demo-step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  transition: background .3s ease;
}
.ai-demo-step-line.active {
  background: linear-gradient(90deg, var(--accent-2), var(--primary));
}

/* Industry grid */
.ai-demo-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.ai-demo-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s ease;
  font-size: 1.25rem;
}
.ai-demo-card-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.ai-demo-card-item.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 20px rgba(124,58,237,0.2);
}
.ai-demo-card-item small {
  font-size: .65rem;
  font-weight: 600;
  color: var(--fg-muted);
}

/* Metrics */
.ai-demo-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ai-demo-metric {
  text-align: center;
}
.ai-demo-metric strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 2px;
}
.ai-demo-metric small {
  font-size: .68rem;
  color: var(--fg-muted);
}

/* Floating labels */
.ai-demo-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.ai-demo-float-1 {
  top: -16px;
  right: -16px;
  color: var(--primary);
  animation: floatY 3s ease-in-out infinite;
}
.ai-demo-float-2 {
  bottom: -16px;
  left: -16px;
  color: #059669;
  animation: floatY 3.5s ease-in-out infinite reverse;
}
@media (max-width: 640px) {
  .ai-demo-float { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   CLIENTS / LOGOS
═══════════════════════════════════════════════════════════════════ */
#clients { padding: var(--space-12) 0; border-top: 1px solid var(--border-soft); }
.clients-label { text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: var(--space-8); }
.clients-scroll-wrapper { overflow: hidden; position: relative; }
.clients-scroll-wrapper::before, .clients-scroll-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.clients-scroll-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.clients-scroll-wrapper::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.clients-track {
  display: flex; gap: var(--space-10); align-items: center;
  animation: scrollTrack 35s linear infinite;
  width: max-content;
}
.clients-track:hover, .clients-track:focus-within { animation-play-state: paused; }
@keyframes scrollTrack { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  color: var(--fg-soft); white-space: nowrap; opacity: .55; transition: opacity .2s;
  padding: 10px 20px; border-radius: var(--radius-md);
}
.client-logo:hover { opacity: 1; }
.client-logo-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.client-logo img {
  height: 34px; width: auto; max-width: 150px;
  object-fit: contain; filter: grayscale(1);
  transition: filter .25s ease;
}
.client-logo:hover img { filter: grayscale(0); }
[data-theme="dark"] .client-logo {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
  opacity: .94;
}
[data-theme="dark"] .client-logo:hover { opacity: 1; }
[data-theme="dark"] .client-logo img { filter: none; }

/* ═══════════════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════════════ */
#services { background: var(--bg-subtle); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5); transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.service-title { font-size: 1.15rem; margin-bottom: var(--space-3); }
.service-desc { font-size: .9rem; line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-5); }
.service-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-subtle); color: var(--fg-muted); border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════
   HOW WE WORK
═══════════════════════════════════════════════════════════════════ */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); position: relative; }
.process-grid::before {
  content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; }
.process-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-5); position: relative;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--primary); transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.process-step:hover .process-num {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 6px var(--primary-soft);
}
.process-step h4 { margin-bottom: var(--space-2); }
.process-step p { font-size: .88rem; }

/* ═══════════════════════════════════════════════════════════════════
   WHY CHOOSE US
═══════════════════════════════════════════════════════════════════ */
#why { background: var(--bg-subtle); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.why-visual { position: relative; }
.why-big-card {
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 50%, var(--accent) 100%);
  border-radius: var(--radius-xl); padding: var(--space-10); color: #fff; position: relative; overflow: hidden;
}
.why-big-card::before {
  content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08); top: -80px; right: -80px;
}
.why-big-card::after {
  content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.06); bottom: -60px; left: -40px;
}
.why-big-title { font-size: clamp(2rem,4vw,3rem); font-weight: 700; margin-bottom: var(--space-3); position: relative; z-index: 1; }
.why-big-sub { opacity: .85; font-size: 1rem; position: relative; z-index: 1; }
.why-metric-row { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-4); margin-top: var(--space-8); position: relative; z-index: 1; }
.why-metric {
  background: rgba(255,255,255,.15); border-radius: var(--radius-md);
  padding: var(--space-5); backdrop-filter: blur(10px);
}
.why-metric-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.why-metric-lbl { font-size: .8rem; opacity: .85; margin-top: 2px; }
.why-float {
  position: absolute; right: -24px; top: 40%;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-size: .82rem; font-weight: 600; color: var(--fg);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  animation: floatY 3s ease-in-out infinite;
}
.why-list { display: flex; flex-direction: column; gap: var(--space-5); }
.why-item { display: flex; gap: var(--space-5); }
.why-item-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.why-item:hover .why-item-icon { background: var(--primary); }
.why-item:hover .why-item-icon svg { stroke: #fff; }
.why-item-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.8; transition: stroke .2s; }
.why-item-body h4 { margin-bottom: 4px; }
.why-item-body p { font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════════════
   TECH STACK
═══════════════════════════════════════════════════════════════════ */
.tech-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: var(--space-4); }
.tech-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-5) var(--space-4);
  text-align: center; transition: var(--transition);
}
.tech-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tech-item-icon { font-size: 1.8rem; margin-bottom: 6px; line-height: 1; }
.tech-item-name { font-size: .75rem; font-weight: 600; color: var(--fg-muted); }

/* ═══════════════════════════════════════════════════════════════════
   CASE STUDIES
═══════════════════════════════════════════════════════════════════ */
#case-studies { background: var(--bg-subtle); }
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.case-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.case-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.case-body { padding: var(--space-6); }
.case-industry { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: var(--space-3); }
.case-title { font-size: 1.1rem; margin-bottom: var(--space-3); }
.case-desc { font-size: .88rem; margin-bottom: var(--space-5); }
.case-result {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; color: #059669;
  background: #ECFDF5; padding: 6px 12px; border-radius: 999px;
  width: fit-content;
}
[data-theme="dark"] .case-result { background: #064E3B; color: #34D399; }
.case-result svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: var(--space-4); }
.testimonial-stars svg { width: 16px; height: 16px; fill: #F59E0B; stroke: none; }
.testimonial-text { font-size: .93rem; color: var(--fg-muted); line-height: 1.75; flex: 1; font-style: italic; margin-bottom: var(--space-6); }
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  color: #fff; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .92rem; }
.testimonial-role { font-size: .78rem; color: var(--fg-muted); }

/* ═══════════════════════════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════════════════════════ */
#cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 60%, var(--accent) 100%);
  padding: var(--space-20) 0; text-align: center; position: relative; overflow: hidden;
}
#cta-band::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  border-radius: 50%; background: rgba(255,255,255,.06);
  top: -200px; left: -100px; pointer-events: none;
}
#cta-band::after {
  content: ''; position: absolute; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(255,255,255,.05);
  bottom: -150px; right: -50px; pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band-title { color: #fff; margin-bottom: var(--space-4); }
.cta-band-sub { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto var(--space-8); }
.cta-band-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.btn-white:hover { background: #F5F3FF; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-item-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.contact-item-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-soft); margin-bottom: 4px; }
.contact-item-val { font-weight: 600; color: var(--fg); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--fg); }
.form-input, .form-select, .form-textarea {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: .92rem; color: var(--fg); transition: var(--transition);
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-soft); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
footer {
  background: var(--bg-subtle); border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-10); }
.footer-brand .nav-logo { margin-bottom: var(--space-4); }
.footer-brand p { font-size: .88rem; max-width: 280px; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted); transition: var(--transition);
}
.social-btn:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.social-btn svg { width: 16px; height: 16px; }
.footer-col-title { font-size: .85rem; font-weight: 700; margin-bottom: var(--space-4); color: var(--fg); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { font-size: .85rem; color: var(--fg-muted); transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-links-title { font-size: .78rem; font-weight: 700; color: var(--fg-muted); margin-top: var(--space-4); text-transform: uppercase; letter-spacing: .05em; }
.footer-bottom {
  padding-top: var(--space-8); border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4);
}
.footer-bottom p { font-size: .82rem; color: var(--fg-soft); }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2,1fr); }
  .process-grid   { grid-template-columns: repeat(2,1fr); }
  .process-grid::before { display: none; }
  .tech-grid      { grid-template-columns: repeat(4,1fr); }
  .case-grid      { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .why-float      { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn  { display: none; }
  .nav-mobile-btn { display: flex; }
  .hero-grid  { grid-template-columns: 1fr; text-align: center; gap: var(--space-10); }
  .hero-title span { display: inline; }
  .hero-desc  { margin: 0 auto var(--space-8); }
  .hero-cta   { justify-content: center; }
  .hero-trust { flex-wrap: wrap; justify-content: center; }
  .hero-visual { order: -1; }
  .hero-float-1, .hero-float-2 { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid   { grid-template-columns: 1fr; }
  .case-grid  { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tech-grid  { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
  .hero-stat-row { grid-template-columns: repeat(3,1fr); }
  .tech-grid { grid-template-columns: repeat(2,1fr); }
  .why-metric-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-16) 0; }
  .section-sm { padding: var(--space-10) 0; }
  .hero-main-card { padding: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   ANCHOR OFFSET & ADDITIONAL SECTIONS
═══════════════════════════════════════════════════════════════════ */
section[id], div[id="faq"], footer[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* FAQ accordion */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-4); }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary-soft); }
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); text-align: left;
  font-size: .97rem; font-weight: 600; color: var(--fg); transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700; line-height: 1;
  transition: var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.4,0,.2,1); }
.faq-a-inner { padding: 0 var(--space-6) var(--space-5); font-size: .92rem; color: var(--fg-muted); line-height: 1.75; }

/* Case study gradient covers */
.case-img { background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-card) 100%); }
[data-theme="dark"] .case-img { background: linear-gradient(135deg, #2D1B69 0%, #130D23 100%); }

/* Tech stack chips */
.tech-item-icon {
  width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--primary);
}

/* Testimonial avatar gradients */
.avatar-a { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.avatar-b { background: linear-gradient(135deg, #6366F1, #06B6D4); }
.avatar-c { background: linear-gradient(135deg, #059669, #10B981); }
.avatar-d { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.avatar-e { background: linear-gradient(135deg, #0EA5E9, #6366F1); }

/* Guarantee / checklist rows inside contact & why */
.check-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--fg-muted); }
.check-row svg { width: 18px; height: 18px; color: #10B981; flex-shrink: 0; }
.contact-note { display: flex; flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--border); }

/* Form status toast + error states */
.form-status {
  display: none; padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; line-height: 1.5;
}
.form-status.visible { display: block; animation: fadeInUp .3s ease; }
.form-status.success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.form-status.error   { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
[data-theme="dark"] .form-status.success { background: #064E3B; color: #6EE7B7; border-color: #065F46; }
[data-theme="dark"] .form-status.error   { background: #7F1D1D; color: #FECACA; border-color: #991B1B; }
.input-error { border-color: #EF4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Email/WhatsApp fallback surfaced only when the form POST fails */
.form-fallback {
  display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-subtle); border: 1px solid var(--border);
  font-size: .88rem; line-height: 1.6;
}
.form-fallback.visible { display: block; animation: fadeInUp .3s ease; }
.form-fallback a { font-weight: 600; }

/* reCAPTCHA Enterprise legal note (Google requirement) */
.grecaptcha-note {
  margin-top: 10px; font-size: .72rem; line-height: 1.5; color: var(--fg-muted); opacity: .85;
}
.form-submit-wrap { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.form-submit-note { font-size: .78rem; color: var(--fg-soft); }

/* Honeypot (invisible to humans) */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Sticky bottom CTA bar */
#sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  transform: translateY(110%); transition: transform .45s cubic-bezier(.16,1,.3,1);
  visibility: hidden;
}
#sticky-cta.show { transform: translateY(0); visibility: visible; }
.sticky-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  padding: 12px 24px; max-width: 1200px; margin: 0 auto;
}
.sticky-cta-bar {
  background: rgba(15,10,30,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
[data-theme="dark"] .sticky-cta-bar { background: rgba(24,15,46,.95); }
.sticky-cta-title { color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.sticky-cta-sub { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 1px; }
.sticky-cta-actions { display: flex; align-items: center; gap: var(--space-3); }
.sticky-cta-actions .btn { padding: 10px 22px; font-size: .88rem; }
.btn-sticky-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-sticky-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* WhatsApp floating button */
#whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 950;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: transform .2s ease, box-shadow .2s ease, bottom .45s cubic-bezier(.16,1,.3,1);
}
#whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
#whatsapp-float svg { width: 30px; height: 30px; }
body.sticky-active #whatsapp-float { bottom: 96px; }
#whatsapp-float::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45); animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(.9); opacity: 1; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}
@media (max-width: 560px) {
  .sticky-cta-inner { padding: 10px 16px; justify-content: center; text-align: center; }
  .sticky-cta-sub { display: none; }
  #whatsapp-float { bottom: 82px; }
  body.sticky-active #whatsapp-float { bottom: 128px; }
}

/* Service card CTA link */
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-5); font-size: .86rem; font-weight: 600;
  color: var(--primary); transition: gap .2s ease, color .2s;
}
.service-link:hover { gap: 10px; color: var(--accent); }

/* Tech chip pastel variants */
.chip-violet { background: #EDE9FE; color: #6D28D9; }
.chip-pink    { background: #FCE7F3; color: #BE185D; }
.chip-blue    { background: #DBEAFE; color: #1D4ED8; }
.chip-green   { background: #D1FAE5; color: #047857; }
.chip-amber   { background: #FEF3C7; color: #B45309; }
.chip-cyan    { background: #CFFAFE; color: #0E7490; }
[data-theme="dark"] .chip-violet { background: #2D1B69; color: #C4B5FD; }
[data-theme="dark"] .chip-pink    { background: #4C1D3A; color: #F9A8D4; }
[data-theme="dark"] .chip-blue    { background: #1E3A5F; color: #93C5FD; }
[data-theme="dark"] .chip-green   { background: #064E3B; color: #6EE7B7; }
[data-theme="dark"] .chip-amber   { background: #452F0B; color: #FCD34D; }
[data-theme="dark"] .chip-cyan    { background: #164E63; color: #67E8F9; }

/* Testimonials + FAQ shared spacing */
.quote-mark { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--primary); opacity: .35; margin-bottom: -6px; }

/* Contact info links */
.contact-item a:hover { color: var(--primary); }

/* Section top padding for CTA band */
#cta-band { scroll-margin-top: 0; }

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM BACKGROUND EFFECTS
═══════════════════════════════════════════════════════════════════ */

/* Grid Pattern Overlay */
.premium-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
[data-theme="dark"] .premium-grid {
  background-image: 
    linear-gradient(rgba(167,139,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.04) 1px, transparent 1px);
}

/* Floating Shapes */
.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  opacity: 0.6;
}
.shape-1 {
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  top: -15%;
  left: -20%;
  animation: floatShape1 25s infinite ease-in-out;
}
.shape-2 {
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, transparent 70%);
  bottom: -10%;
  right: -15%;
  animation: floatShape2 30s infinite ease-in-out;
}
.shape-3 {
  width: min(350px, 50vw);
  height: min(350px, 50vw);
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: floatShape3 20s infinite ease-in-out;
}
[data-theme="dark"] .shape { opacity: 0.5; }
[data-theme="dark"] .shape-1 { background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%); }
[data-theme="dark"] .shape-2 { background: radial-gradient(circle, rgba(236,72,153,0.18) 0%, transparent 70%); }
[data-theme="dark"] .shape-3 { background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%); }

@keyframes floatShape1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(40px, -50px) rotate(5deg); }
  50% { transform: translate(20px, -80px) rotate(0deg); }
  75% { transform: translate(-30px, -40px) rotate(-5deg); }
}
@keyframes floatShape2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-40px, 40px) rotate(-5deg); }
  66% { transform: translate(30px, -30px) rotate(3deg); }
}
@keyframes floatShape3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

/* Hero Background Gradient Overlay */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(124,58,237,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 30%, rgba(99,102,241,0.05) 0%, transparent 40%),
    radial-gradient(ellipse 60% 50% at 10% 70%, rgba(236,72,153,0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
[data-theme="dark"] .hero-gradient-overlay {
  background: 
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(124,58,237,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 30%, rgba(99,102,241,0.1) 0%, transparent 40%),
    radial-gradient(ellipse 60% 50% at 10% 70%, rgba(236,72,153,0.08) 0%, transparent 40%);
}

/* Ensure sections have proper z-index stacking */
#hero, #clients, #services, #process, #why, #case-studies, #contact {
  position: relative;
  z-index: 1;
}

/* Subtle glow effect on generic cards on hover */
.card:hover::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.1;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.3s ease;
}
[data-theme="dark"] .card:hover::after {
  opacity: 0.2;
}

/* Premium button shine effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transition: left 0.5s ease;
}
.btn-primary:hover::before {
  left: 100%;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .shape, .hero-orb, .hero-float-card, .scroll-indicator, .hero-progress-fill {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM ENHANCEMENTS v2
═══════════════════════════════════════════════════════════════════ */

/* ── Noise texture overlay (adds tactility to flat surfaces) ── */
.noise-overlay {
  position: relative;
}
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: .4;
  mix-blend-mode: overlay;
}

/* ── Hero enhancements ── */
#hero { background: var(--bg); }

.hero-eyebrow {
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.08));
  border: 1px solid rgba(124,58,237,.2);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: .78rem;
  letter-spacing: .1em;
}
[data-theme="dark"] .hero-eyebrow {
  background: linear-gradient(135deg, rgba(167,139,250,.15), rgba(244,114,182,.1));
  border-color: rgba(167,139,250,.25);
}

.hero-title {
  letter-spacing: -.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero card — elevated glass effect */
.hero-main-card {
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,.18);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 1px 0 rgba(255,255,255,.1) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
[data-theme="dark"] .hero-main-card {
  background: rgba(19,13,35,.8);
  border-color: rgba(167,139,250,.2);
  box-shadow:
    0 8px 40px rgba(0,0,0,.6),
    0 0 0 1px rgba(167,139,250,.08) inset,
    0 1px 0 rgba(255,255,255,.05) inset;
}

.hero-stat {
  background: linear-gradient(135deg, var(--bg-subtle), var(--bg-card));
  border: 1px solid var(--border-soft);
  transition: var(--transition);
}
.hero-stat:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 4px 12px rgba(124,58,237,.12);
  transform: translateY(-2px);
}
.hero-stat-val {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
}

/* Floating cards — glassmorphism */
.hero-float-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(124,58,237,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.1), 0 2px 8px rgba(124,58,237,.12);
  font-size: .8rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}
[data-theme="dark"] .hero-float-card {
  background: rgba(30,18,70,.85);
  border-color: rgba(167,139,250,.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 1px rgba(167,139,250,.1) inset;
}

/* Trust bar */
.hero-trust {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-6);
}
.hero-trust-icon {
  background: linear-gradient(135deg, var(--primary-soft), rgba(236,72,153,.08));
  border: 1px solid rgba(124,58,237,.15);
}

/* ── Buttons — premium ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6D28D9 100%);
  box-shadow: 0 4px 14px rgba(124,58,237,.4), 0 1px 0 rgba(255,255,255,.15) inset;
  letter-spacing: -.01em;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%);
  box-shadow: 0 6px 24px rgba(124,58,237,.55), 0 1px 0 rgba(255,255,255,.15) inset;
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: rgba(167,139,250,.2);
  color: var(--fg);
}
[data-theme="dark"] .btn-ghost:hover {
  background: rgba(167,139,250,.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Services — bento-style ── */
#services {
  background: var(--bg-subtle);
  position: relative;
}
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(124,58,237,.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(236,72,153,.04) 0%, transparent 60%);
  pointer-events: none;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.25);
}
.service-card:hover::after { opacity: 1; }

[data-theme="dark"] .service-card {
  background: linear-gradient(135deg, rgba(19,13,35,.9) 0%, rgba(26,16,53,.7) 100%);
  border-color: rgba(167,139,250,.12);
}
[data-theme="dark"] .service-card:hover {
  border-color: rgba(167,139,250,.3);
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(167,139,250,.15);
}

.service-icon {
  background: linear-gradient(135deg, var(--primary-soft), rgba(236,72,153,.08));
  border: 1px solid rgba(124,58,237,.12);
  box-shadow: 0 2px 8px rgba(124,58,237,.1);
}
[data-theme="dark"] .service-icon {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(236,72,153,.1));
  border-color: rgba(167,139,250,.2);
}

.service-title { letter-spacing: -.02em; }

.service-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  transition: all .2s ease;
  font-size: .7rem;
}
.service-card:hover .service-tag {
  border-color: rgba(124,58,237,.2);
  color: var(--primary);
}

/* ── Process steps — enhanced ── */
.process-num {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border);
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.process-num::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.15), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.process-step:hover .process-num::before { opacity: 1; }
.process-step:hover .process-num {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 8px rgba(124,58,237,.12), 0 8px 24px rgba(124,58,237,.3);
}

/* ── Why big card — more dramatic ── */
.why-big-card {
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 45%, #EC4899 100%);
  box-shadow: 0 24px 60px rgba(124,58,237,.35), 0 8px 24px rgba(0,0,0,.12);
  position: relative;
  overflow: hidden;
}
.why-big-card::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -120px; right: -100px;
}
.why-big-card::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -80px; left: -50px;
}
.why-metric {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  backdrop-filter: blur(10px);
  transition: background .2s ease;
}
.why-metric:hover { background: rgba(255,255,255,.18); }
.why-metric-val { font-size: 2.2rem; letter-spacing: -.03em; }

.why-item-icon {
  background: linear-gradient(135deg, var(--primary-soft), rgba(236,72,153,.06));
  border: 1px solid rgba(124,58,237,.12);
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.why-item:hover .why-item-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
  transform: scale(1.05);
}
.why-item:hover .why-item-icon svg { stroke: #fff; }

/* ── Testimonials — premium glass cards ── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .3s ease;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.06), transparent 70%);
  pointer-events: none;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.2);
}
.testimonial-card:hover::before { opacity: 1; }

[data-theme="dark"] .testimonial-card {
  background: linear-gradient(135deg, rgba(19,13,35,.9), rgba(30,18,70,.6));
  border-color: rgba(167,139,250,.12);
}
[data-theme="dark"] .testimonial-card:hover {
  border-color: rgba(167,139,250,.3);
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(167,139,250,.15);
}

.testimonial-stars svg { width: 17px; height: 17px; }
.quote-mark {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .5;
}
.testimonial-text {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--fg-muted);
}
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px rgba(124,58,237,.2);
  font-size: .92rem;
}

/* ── CTA band — showstopper ── */
#cta-band {
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 30%, #6366F1 60%, #EC4899 100%);
  background-size: 300% 300%;
  animation: ctaGradient 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
#cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 35%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,.04) 0%, transparent 30%);
  pointer-events: none;
}
#cta-band::after {
  content: '';
  position: absolute;
  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.75' 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");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cta-band-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.cta-band-sub {
  font-size: 1.15rem;
  opacity: .9;
  text-shadow: 0 1px 8px rgba(0,0,0,.1);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.5) inset;
  letter-spacing: -.01em;
}
.btn-white:hover {
  background: #F5F3FF;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
  font-weight: 600;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
}

/* ── Navbar — premium glass ── */
#navbar {
  background: rgba(250,245,255,.8);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(124,58,237,.08);
}
[data-theme="dark"] #navbar {
  background: rgba(9,5,15,.8);
  border-bottom-color: rgba(167,139,250,.08);
}
#navbar.scrolled {
  background: rgba(250,245,255,.92);
  box-shadow: 0 2px 20px rgba(124,58,237,.08), 0 1px 0 rgba(124,58,237,.06);
}
[data-theme="dark"] #navbar.scrolled {
  background: rgba(9,5,15,.92);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* ── FAQ enhancements ── */
.faq-item {
  border: 1px solid var(--border);
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.faq-item:hover { border-color: rgba(124,58,237,.25); box-shadow: 0 4px 16px rgba(124,58,237,.06); }
.faq-item.open {
  border-color: rgba(124,58,237,.35);
  box-shadow: 0 4px 24px rgba(124,58,237,.1);
}
[data-theme="dark"] .faq-item.open {
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

/* ── Cards — global glow-on-hover ── */
.card {
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(124,58,237,.08);
  border-color: rgba(124,58,237,.2);
}

/* ── Section label — refined ── */
.section-label {
  background: linear-gradient(135deg, var(--primary-soft), rgba(236,72,153,.06));
  border: 1px solid rgba(124,58,237,.15);
  color: var(--primary);
  font-size: .75rem;
  letter-spacing: .1em;
}
[data-theme="dark"] .section-label {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(236,72,153,.08));
  border-color: rgba(167,139,250,.2);
}

/* ── Footer ── */
footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-soft);
}
[data-theme="dark"] footer {
  background: rgba(9,5,15,.8);
  border-top-color: rgba(167,139,250,.08);
}
.social-btn {
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.social-btn:hover {
  background: linear-gradient(135deg, var(--primary-soft), rgba(236,72,153,.06));
  border-color: rgba(124,58,237,.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124,58,237,.12);
}

/* ── Stagger entrance animations ── */
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: .06s; }
.services-grid .service-card:nth-child(3) { transition-delay: .12s; }
.services-grid .service-card:nth-child(4) { transition-delay: .18s; }
.services-grid .service-card:nth-child(5) { transition-delay: .24s; }
.services-grid .service-card:nth-child(6) { transition-delay: .30s; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: .08s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: .16s; }

/* ── Scroll indicator ── */
.scroll-indicator {
  color: var(--fg-soft);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scroll-indicator svg {
  opacity: .5;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ── Tech items ── */
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.tech-item:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 6px 20px rgba(124,58,237,.12);
  transform: translateY(-3px);
}
[data-theme="dark"] .tech-item {
  background: rgba(19,13,35,.7);
  border-color: rgba(167,139,250,.1);
}
[data-theme="dark"] .tech-item:hover {
  background: rgba(26,16,53,.8);
  border-color: rgba(167,139,250,.3);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

/* ── Case study cards ── */
.case-card {
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.2);
}
[data-theme="dark"] .case-card {
  background: rgba(19,13,35,.9);
  border-color: rgba(167,139,250,.12);
}
[data-theme="dark"] .case-card:hover {
  border-color: rgba(167,139,250,.3);
}

/* ── AI demo card ── */
.ai-demo-card {
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,.15);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05) inset;
}
[data-theme="dark"] .ai-demo-card {
  background: rgba(19,13,35,.85);
  border-color: rgba(167,139,250,.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(167,139,250,.08) inset;
}

/* ── Sticky CTA bar ── */
.sticky-cta-bar {
  background: rgba(10,6,20,.94);
  border-top: 1px solid rgba(167,139,250,.12);
  box-shadow: 0 -8px 40px rgba(0,0,0,.3);
}
[data-theme="dark"] .sticky-cta-bar {
  background: rgba(9,5,15,.97);
}

/* ── Contact form card ── */
#enquiry-form.card {
  border: 1px solid var(--border);
  background: var(--bg-card);
}
[data-theme="dark"] #enquiry-form.card {
  background: rgba(19,13,35,.8);
  border-color: rgba(167,139,250,.15);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: rgba(9,5,15,.5);
  border-color: rgba(167,139,250,.15);
  color: var(--fg);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(167,139,250,.15);
}


/* ═══════════════════════════════════════════════════════════════════
   INNER PAGES  (shared by all subpages / service pages / case studies)
═══════════════════════════════════════════════════════════════════ */

/* Alias old v3 variables so ported inline styles resolve to the theme */
:root {
  --cyan: var(--primary);
  --muted2: var(--fg-muted);
  --white: var(--fg);
  --card: var(--bg-card);
  --surface: var(--bg-subtle);
  --text: var(--fg);
  --muted: var(--fg-soft);
  --border-bright: var(--primary);
  --border-hover: var(--primary);
}

/* ── Page hero (ported .case-hero) ─────────────────────────────── */
.case-hero {
  padding: calc(var(--nav-height) + var(--space-20)) var(--space-6) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.case-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(124,58,237,.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 88% 12%, rgba(236,72,153,.06) 0%, transparent 50%);
  pointer-events: none;
}
.case-hero > * { position: relative; z-index: 1; }
.case-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 820px;
  margin: 0 auto var(--space-5);
}
.case-hero .hook {
  font-size: 1.12rem;
  color: var(--fg-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
  transition: color .2s;
}
.case-back:hover { color: var(--primary); }

/* ── Page tag / industry tag ───────────────────────────────────── */
.industry-tag, .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-5);
}

/* ── Article body (ported .case-body) ───────────────────────────── */
.case-body {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-24);
}
.case-body section { margin-bottom: var(--space-16); }
.case-body section > h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-soft);
  position: relative;
}
.case-body section > h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.case-body p { margin-bottom: var(--space-4); font-size: .97rem; }
.case-body p strong { color: var(--fg); }
.case-body ul, .case-body ol {
  margin: 0 0 var(--space-5) var(--space-5);
  list-style: disc;
}
.case-body li { margin-bottom: var(--space-2); color: var(--fg-muted); font-size: .95rem; }
.case-body a { color: var(--primary); font-weight: 500; }
.case-body a:hover { text-decoration: underline; }

/* ── Detail / feature cards ────────────────────────────────────── */
.details-grid, .feature-grid, .rag-grid, .architecture-grid, .cost-comparison, .cost-calculator {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: var(--space-8) 0;
}
@media (min-width: 640px) {
  .details-grid, .feature-grid, .rag-grid { grid-template-columns: 1fr 1fr; }
  .architecture-grid { grid-template-columns: repeat(3, 1fr); }
  .cost-comparison, .cost-calculator { grid-template-columns: 1fr 1fr; }
}
.detail-box, .feature-box, .rag-card, .arch-card, .pitfall-card, .cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.detail-box:hover, .feature-box:hover, .rag-card:hover, .arch-card:hover, .pitfall-card:hover, .cost-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-soft);
}
.detail-title, .feature-title, .rag-title, .arch-title, .pitfall-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-3);
}
.detail-icon, .arch-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.feature-icon { font-size: 1.8rem; margin-bottom: var(--space-3); line-height: 1; }
.detail-desc, .feature-box p, .rag-card p, .arch-card p, .pitfall-card p, .cost-card p {
  font-size: .9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.good-bot { border-left: 3px solid #10B981; }
.bad-bot  { border-left: 3px solid #EF4444; }
.solution-tag {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #047857;
  background: #ECFDF5;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
[data-theme="dark"] .solution-tag { background: #064E3B; color: #34D399; }

/* ── Metric cards ──────────────────────────────────────────────── */
.mobile-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: var(--space-8) 0;
}
@media (min-width: 640px) {
  .mobile-metrics-grid { grid-template-columns: repeat(3, 1fr); }
}
.metric-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition);
}
.metric-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.metric-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: var(--space-2);
}
.metric-label { font-size: .82rem; color: var(--fg-muted); line-height: 1.65; }
.metric-label strong { color: var(--fg); display: block; font-family: var(--font-display); font-size: .95rem; }

/* ── Flow diagram (ERP pipeline) ───────────────────────────────── */
.flow-diagram {
  border: 1.5px dashed var(--primary-soft);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  margin: var(--space-8) 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 600;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.flow-arrow { color: var(--primary); font-weight: 800; }

/* ── Comparison tables ─────────────────────────────────────────── */
.comparison-table-wrap, .vs-table-wrap {
  overflow-x: auto;
  margin: var(--space-8) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.comparison-table, .vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 560px;
}
.comparison-table th, .vs-table th {
  background: var(--bg-subtle);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table td, .vs-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg-muted);
}
.comparison-table tr:last-child td, .vs-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td, .vs-table tr:hover td { background: var(--bg-subtle); }
.highlight-col { background: var(--primary-soft) !important; }
.manual { color: #B91C1C; font-weight: 500; }
.ai { color: #047857; font-weight: 600; }
[data-theme="dark"] .manual { color: #FCA5A5; }
[data-theme="dark"] .ai { color: #6EE7B7; }

/* ── Cost calculator (n8n vs Zapier) ───────────────────────────── */
.cost-card.zapier { border-color: #F59E0B; }
.cost-card.n8n { border-color: var(--primary); }
.price-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-2);
}
.price-num.zapier-price { color: #F59E0B; }
.price-num.n8n-price { color: var(--primary); }
.cost-card h4 { margin-bottom: var(--space-2); }
.calc-header { text-align: center; margin-bottom: var(--space-8); }
.citation-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  font-size: .85rem;
  color: var(--fg-muted);
  margin: var(--space-6) 0;
}

/* ── Leadership card (about page) ──────────────────────────────── */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

/* ── FAQ (ported v3 markup reuses the theme accordion) ─────────── */
.faq-section { margin-top: var(--space-20); }
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-wrap .faq-item { margin-bottom: var(--space-4); }
.faq-q .arr { transition: transform .2s; }
.faq-item.open .arr { transform: rotate(180deg); color: var(--primary); }
.faq-a p { padding: 0 var(--space-6) var(--space-5); font-size: .92rem; color: var(--fg-muted); line-height: 1.75; }

/* ── CTA (ported .case-cta) ────────────────────────────────────── */
.case-cta {
  margin-top: var(--space-20);
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 60%, var(--accent) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-8);
  position: relative;
  overflow: hidden;
}
.case-cta::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  top: -100px;
  right: -60px;
  pointer-events: none;
}
.case-cta a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: var(--transition);
}
.case-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.24); }

/* ── Case studies index list ───────────────────────────────────── */
.list-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-20)) var(--space-6) var(--space-24);
  position: relative;
  z-index: 1;
}
.list-inner h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-3);
}
.list-inner .sub { color: var(--fg-muted); margin-bottom: var(--space-12); }
.list-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 900px) { .list-grid { grid-template-columns: 1fr 1fr; gap: 0 3rem; } }
.industry-block { padding: var(--space-6) 0; border-bottom: 1px solid var(--border-soft); }
.industry-block:last-child { border-bottom: none; }
.industry-block h2 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.case-list li { margin-bottom: .85rem; }
.case-list a {
  color: var(--fg);
  font-weight: 500;
  font-size: .98rem;
  line-height: 1.5;
  display: inline-block;
  transition: color .2s;
}
.case-list a:hover { color: var(--primary); }
