/* ============================================
   INDUKTIV AI — Design System v2
   Antigravity-Inspired Overhaul
   Dark/light sections, bold typography, premium animations
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  /* Color Palette — Dark */
  --bg-primary: #0c0e14;
  --bg-secondary: #12141c;
  --bg-tertiary: #181a24;
  --bg-card: rgba(18, 20, 30, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* Color Palette — Light Sections */
  --bg-light: #f8f9fc;
  --bg-light-card: #ffffff;
  --bg-light-secondary: #eff1f7;
  --text-light-primary: #12141c;
  --text-light-secondary: #555a6e;
  --text-light-muted: #8b90a0;
  --border-light: rgba(18, 20, 30, 0.08);

  /* Text Colors */
  --text-primary: #eef0f6;
  --text-secondary: rgba(220, 225, 245, 0.65);
  --text-muted: rgba(170, 180, 210, 0.45);

  /* Accent Colors */
  --accent-teal: #2dd4bf;
  --accent-indigo: #6366f1;
  --accent-violet: #a78bfa;
  --accent-blue: #3b82f6;
  --accent-glow: rgba(45, 212, 191, 0.25);
  --accent-gradient: linear-gradient(135deg, #2dd4bf, #6366f1, #a78bfa);
  --accent-gradient-subtle: linear-gradient(135deg, #2dd4bf, #6366f1);
  --accent-gradient-text: linear-gradient(135deg, #2dd4bf, #818cf8);

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(45, 212, 191, 0.2);
  --border-gradient: linear-gradient(135deg, rgba(45,212,191,0.3), rgba(99,102,241,0.3), rgba(167,139,250,0.3));

  /* Typography */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Typography Scale — Antigravity-inspired */
  --text-hero: clamp(3.2rem, 7vw, 6.5rem);
  --text-hero-lh: 1.0;
  --text-hero-ls: -0.035em;
  --text-h2: clamp(2.2rem, 4.5vw, 3.8rem);
  --text-h2-lh: 1.1;
  --text-h2-ls: -0.02em;
  --text-h3: clamp(1.3rem, 2.5vw, 1.75rem);
  --text-body: 1.05rem;
  --text-body-lh: 1.7;
  --text-sm: 0.9rem;
  --text-xs: 0.8rem;

  /* Spacing */
  --section-padding: 140px 0;
  --section-padding-compact: 100px 0;
  --container-width: 1400px;
  --container-padding: 0 40px;

  /* Borders */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Easing — from Antigravity */
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-back: cubic-bezier(0.34, 1.85, 0.64, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --transition-fast: 0.2s var(--ease-out-quint);
  --transition-base: 0.4s var(--ease-out-quint);
  --transition-slow: 0.7s var(--ease-out-expo);
  --transition-spring: 0.6s var(--ease-spring);

  /* Navbar */
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-indigo);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
}

h1 {
  font-size: var(--text-hero);
  line-height: var(--text-hero-lh);
  letter-spacing: var(--text-hero-ls);
  font-weight: 500;
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--text-h2-lh);
  letter-spacing: var(--text-h2-ls);
  font-weight: 500;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.3;
}

.text-gradient {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--text-secondary);
}

/* Section Label — pill badge style */
.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.15);
}

/* Light section variant */
.section-light .section-label {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo);
}

.section-description {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--text-body-lh);
}

.section-light .section-description {
  color: var(--text-light-secondary);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.4s var(--ease-out-quint);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(12, 14, 20, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 24px rgba(0,0,0,0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.navbar-logo img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-xs);
}

.navbar-logo span.logo-highlight {
  color: var(--accent-teal);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-links a {
  font-size: var(--text-sm);
  font-weight: 450;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.navbar-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.navbar-links a.active {
  color: var(--text-primary);
}

/* Remove underline, use pill hover instead */
.navbar-links a::after {
  display: none;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}

.navbar-toggle:hover {
  background: rgba(255,255,255,0.05);
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  color: var(--bg-primary);
}

/* Inverted primary for light sections */
.section-light .btn-primary {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.section-light .btn-secondary {
  background: rgba(0,0,0,0.04);
  color: var(--text-light-primary);
  border-color: var(--border-light);
}

.section-light .btn-secondary:hover {
  background: rgba(0,0,0,0.08);
}

.btn-gradient {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 600;
}

.btn-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px var(--accent-glow);
  color: #000;
}

/* Navbar CTA — high-contrast glowing pill */
.navbar-cta,
a.btn.navbar-cta,
.btn-primary.navbar-cta {
  position: relative;
  background: linear-gradient(135deg, #2dd4bf 0%, #6366f1 55%, #a78bfa 100%) !important;
  color: #06111f !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  padding: 10px 22px !important;
  font-size: 0.82rem !important;
  border: 0 !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 6px 22px -6px rgba(99, 102, 241, 0.55),
    0 2px 10px -2px rgba(45, 212, 191, 0.45) !important;
  isolation: isolate;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.navbar-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out-expo);
  pointer-events: none;
}
.navbar-cta:hover,
a.btn.navbar-cta:hover,
.btn-primary.navbar-cta:hover {
  background: linear-gradient(135deg, #5eead4 0%, #818cf8 55%, #c4b5fd 100%) !important;
  color: #06111f !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 14px 38px -8px rgba(99, 102, 241, 0.9),
    0 6px 22px -4px rgba(45, 212, 191, 0.75) !important;
}
.navbar-cta:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: transparent;
  color: var(--accent-teal);
  padding: 12px 20px;
}

.btn-ghost:hover {
  background: var(--bg-glass);
  color: var(--accent-teal);
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(45,212,191,0.15), rgba(99,102,241,0.15), transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Light section cards */
.section-light .glass-card {
  background: var(--bg-light-card);
  border-color: var(--border-light);
  backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.02);
}

.section-light .glass-card:hover {
  background: var(--bg-light-card);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border-color: rgba(99,102,241,0.15);
}

.section-light .glass-card .card-title {
  color: var(--text-light-primary);
}

.section-light .glass-card .card-description {
  color: var(--text-light-secondary);
}

/* Card icon */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--accent-teal);
  transition: all var(--transition-base);
}

.glass-card:hover .card-icon {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.2);
  transform: scale(1.05);
}

.section-light .card-icon {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--text-body-lh);
}

/* --- Section --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header h2 {
  margin-bottom: 20px;
}

/* Light Section */
.section-light {
  background: var(--bg-light);
  color: var(--text-light-primary);
}

.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--text-light-primary);
}

.section-light p {
  color: var(--text-light-secondary);
}

/* Grid dot pattern for light sections */
.section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}

/* Dark section with subtle noise */
.section-dark {
  background: var(--bg-secondary);
}

/* --- Hero Section --- */
.hero {
  min-height: 0;
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 20px) 24px 64px;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sequential entrance animation */
.hero-content > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-content.loaded > * {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s var(--ease-out-expo);
}

.hero-content.loaded > *:nth-child(1) { transition-delay: 0.1s; }
.hero-content.loaded > *:nth-child(2) { transition-delay: 0.3s; }
.hero-content.loaded > *:nth-child(3) { transition-delay: 0.5s; }
.hero-content.loaded > *:nth-child(4) { transition-delay: 0.7s; }
.hero-content.loaded > *:nth-child(5) { transition-delay: 0.9s; }

.hero-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 36px;
  border-radius: 20px;
  animation: float 8s ease-in-out infinite;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.hero h1 {
  margin-bottom: 28px;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent-teal);
  margin-left: 4px;
  border-radius: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: baseline;
  position: relative;
  top: 0.05em;
  /* Ensure cursor is visible inside text-gradient spans */
  -webkit-text-fill-color: initial;
  background-clip: initial;
  -webkit-background-clip: initial;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Second line / muted text on hero */
.hero-second-line {
  color: var(--text-secondary);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Steps / How it Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all var(--transition-base);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Light section step cards */
.section-light .step-card p {
  color: var(--text-light-secondary);
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.2;
  z-index: 0;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent-teal);
  box-shadow: 0 0 48px rgba(45, 212, 191, 0.12);
  transform: scale(1.03);
}

.pricing-card.featured .pricing-badge {
  display: block;
}

.pricing-badge {
  display: none;
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a78bfa 100%);
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-mono);
  white-space: nowrap;
  z-index: 5;
  box-shadow:
    0 8px 28px rgba(99, 102, 241, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 -2px 0 rgba(0, 0, 0, 0.25) inset;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-teal);
  margin-bottom: 28px;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

/* --- Team Card --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-items: center;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #000;
  font-family: var(--font-display);
  font-weight: 600;
  border: 3px solid rgba(45, 212, 191, 0.25);
  box-shadow: 0 10px 34px var(--accent-glow);
  overflow: hidden;
  position: relative;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  border-radius: 50%;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: var(--text-sm);
  color: var(--accent-teal);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Tabs (Use Cases) --- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 56px;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.tab-btn:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeSlideIn 0.5s var(--ease-out-quint);
}

.tab-content.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.tab-panel-text h3 {
  margin-bottom: 20px;
}

.tab-panel-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tab-panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.use-case-examples {
  list-style: none;
  margin-top: 20px;
}

.use-case-examples li {
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.use-case-examples li::before {
  content: '→ ';
  color: var(--accent-teal);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Integrations / Industry tags --- */
.integrations {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.integration-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  padding: 11px 22px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: var(--radius-pill);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(45, 212, 191, 0.22) 0%, transparent 55%),
    radial-gradient(140% 180% at 100% 100%, rgba(167, 139, 250, 0.22) 0%, transparent 55%),
    rgba(15, 18, 36, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 26px -14px rgba(99, 102, 241, 0.55);
  cursor: default;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  /* no per-tag animation — keeps marquee silky */
}

.integration-tag:hover {
  color: #ffffff;
  border-color: rgba(45, 212, 191, 0.55);
  transform: translate3d(0, -2px, 0);
}

/* --- Futuristic 3D Industries Marquee (GPU-only) --- */
.marquee-wrapper {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  /* Containment helps the browser isolate paint & layout from the rest of the page */
  contain: layout paint;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 42s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(45,212,191,0.1), rgba(99,102,241,0.05), transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: var(--text-body);
}

/* --- Glow Effects --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* animation disabled for perf — static orbs */
}

.glow-teal {
  background: var(--accent-teal);
  opacity: 0.05;
}

.glow-indigo {
  background: var(--accent-indigo);
  opacity: 0.04;
}

/* Legacy names */
.glow-cyan { background: var(--accent-teal); opacity: 0.05; }
.glow-purple { background: var(--accent-violet); opacity: 0.035; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(-20px, 30px); }
  75% { transform: translate(20px, 20px); }
}

/* --- Counter / Stats --- */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.stat-card {
  text-align: center;
  padding: 36px;
}

/* --- Product-specific: Workflow Demo --- */
.workflow-demo {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  overflow: hidden;
  margin-top: 48px;
}

.workflow-demo::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.workflow-steps {
  display: flex;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.workflow-step {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.workflow-step::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-teal);
  font-size: 1.4rem;
  z-index: 1;
  opacity: 0.5;
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  transition: all var(--transition-base);
}

.workflow-step:hover .workflow-icon {
  border-color: var(--accent-teal);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: scale(1.05);
}

.workflow-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.workflow-step p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* --- Product-specific: Code Demo --- */
.code-demo {
  background: #0d1117;
  border: 1px solid rgba(45, 212, 191, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-header span {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-body {
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: #c9d1d9;
}

.code-line {
  opacity: 0;
  animation: typeIn 0.3s var(--ease-out-quint) forwards;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }
.code-line:nth-child(4) { animation-delay: 2s; }
.code-line:nth-child(5) { animation-delay: 2.5s; }
.code-line:nth-child(6) { animation-delay: 3s; }
.code-line:nth-child(7) { animation-delay: 3.5s; }
.code-line:nth-child(8) { animation-delay: 4s; }
.code-line:nth-child(9) { animation-delay: 4.5s; }

@keyframes typeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.code-comment { color: #8b949e; }
.code-keyword { color: #ff7b72; }
.code-string { color: #a5d6ff; }
.code-added { color: #3fb950; background: rgba(63, 185, 80, 0.08); display: inline-block; width: 100%; padding: 0 6px; border-radius: 4px; }
.code-removed { color: #f85149; background: rgba(248, 81, 73, 0.08); display: inline-block; width: 100%; padding: 0 6px; border-radius: 4px; text-decoration: line-through; }

/* --- Product-specific: Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* --- About-specific: Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card { text-align: center; }

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* --- About-specific: Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gradient);
  opacity: 0.25;
}

.timeline-item {
  position: relative;
  margin-bottom: 44px;
  padding-left: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-teal);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 600;
}

.timeline-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- About-specific: Mission Quote --- */
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  padding: 48px 0;
  letter-spacing: -0.01em;
}

.mission-quote span {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Use Cases-specific: Domain Visual --- */
.domain-visual {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.domain-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
  opacity: 0.2;
}

/* --- Use Cases-specific: Tech Tags --- */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  letter-spacing: 0.02em;
}

/* --- Pricing-specific: Demo Options --- */
.demo-options {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.demo-options h5 {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.demo-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding: 4px 0;
}

.demo-option::before {
  content: '◆';
  color: var(--accent-teal);
  font-size: 0.5rem;
  flex-shrink: 0;
}

/* --- Pricing-specific: FAQ --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 28px 0;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-teal);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-teal);
  transition: transform 0.4s var(--ease-out-quint);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-quint), padding 0.5s var(--ease-out-quint);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding-top: 16px;
}

/* --- Parallax Utility --- */
[data-parallax] {
  will-change: transform;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  :root {
    --container-padding: 0 32px;
  }
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 100px 0;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .steps-grid::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tab-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-steps {
    flex-wrap: wrap;
  }

  .workflow-step {
    flex: 1 1 45%;
  }

  .workflow-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 20px;
  }

  .navbar-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
    background:
      radial-gradient(80% 60% at 20% 10%, rgba(45, 212, 191, 0.14), transparent 60%),
      radial-gradient(70% 50% at 90% 90%, rgba(99, 102, 241, 0.18), transparent 60%),
      rgba(8, 10, 22, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 88px 28px 120px;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease-out-expo),
                transform 0.35s var(--ease-out-expo),
                visibility 0s linear 0.35s;
    z-index: 90;
    overflow-y: auto;
  }

  .navbar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  }
  .navbar-links a:hover,
  .navbar-links a.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.45);
  }
  .navbar-links a::before {
    content: "→";
    opacity: 0;
    color: #2dd4bf;
    transition: opacity 0.2s ease, transform 0.2s ease;
    order: 2;
    margin-left: auto;
    transform: translateX(-6px);
  }
  .navbar-links a.active::before,
  .navbar-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
  }
  .navbar-links a.btn.navbar-cta {
    margin-top: 10px;
    justify-content: center;
    font-size: 1rem !important;
    padding: 16px 22px !important;
  }
  .navbar-links a.btn.navbar-cta::before { display: none; }

  .navbar-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.35s var(--ease-out-expo),
                transform 0.35s var(--ease-out-expo),
                visibility 0s linear 0s;
  }

  .navbar-toggle {
    display: flex;
    z-index: 110;
    position: relative;
  }
  /* Hamburger → X when open */
  body.nav-open .navbar-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .navbar-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .navbar-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.nav-open { overflow: hidden; }

  .features-grid,
  .pricing-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }

  .glass-card {
    padding: 32px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .workflow-steps {
    flex-direction: column;
  }

  .workflow-step {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0 16px;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
  }

  .glass-card {
    padding: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   PREMIUM 3D SHOWCASE — for engineering-grade industries
   ================================================================ */
.showcase-3d {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.showcase-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 20% 10%, rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(50% 70% at 85% 90%, rgba(99, 102, 241, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(10, 12, 24, 0) 0%, rgba(10, 12, 24, 0.6) 50%, rgba(10, 12, 24, 0) 100%);
  z-index: -1;
}
.showcase-3d .section-header { margin-bottom: 56px; }

.showcase-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.showcase-stage .hex-core { max-width: 360px; width: 100%; }
.showcase-stage .industry-grid {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  justify-content: center;
}

/* --- Left: rotating 3D hex core --- */
.hex-core {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.hex-core-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: hexSpin 28s linear infinite;
}
.hex-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 40px rgba(45, 212, 191, 0.08) inset,
    0 0 30px rgba(99, 102, 241, 0.10);
}
.hex-ring.r2 {
  inset: 10%;
  border-color: rgba(45, 212, 191, 0.25);
  transform: rotateX(65deg);
  animation: hexTilt 14s ease-in-out infinite alternate;
}
.hex-ring.r3 {
  inset: 22%;
  border-color: rgba(99, 102, 241, 0.32);
  transform: rotateY(65deg);
  animation: hexTilt2 17s ease-in-out infinite alternate;
}
.hex-ring.r4 {
  inset: 34%;
  border-color: rgba(167, 139, 250, 0.38);
  transform: rotateX(65deg) rotateZ(45deg);
}

.hex-core-svg {
  position: absolute;
  inset: 26%;
  filter:
    drop-shadow(0 0 18px rgba(45, 212, 191, 0.45))
    drop-shadow(0 0 40px rgba(99, 102, 241, 0.25));
  animation: hexCorePulse 4.8s ease-in-out infinite;
}

.hex-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #6366f1 45%, #1e1b4b 100%);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.75);
  transform: translate(-50%, -50%);
}
.hex-node.n1 { top: 8%;  left: 50%; }
.hex-node.n2 { top: 50%; left: 92%; }
.hex-node.n3 { top: 92%; left: 50%; }
.hex-node.n4 { top: 50%; left: 8%;  }

@keyframes hexSpin {
  0%   { transform: rotateY(0deg)   rotateX(12deg); }
  100% { transform: rotateY(360deg) rotateX(12deg); }
}
@keyframes hexTilt  { from { transform: rotateX(65deg) rotateZ(0deg); }   to { transform: rotateX(65deg) rotateZ(360deg); } }
@keyframes hexTilt2 { from { transform: rotateY(65deg) rotateZ(0deg); }   to { transform: rotateY(65deg) rotateZ(-360deg); } }
@keyframes hexCorePulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* --- Right: industry cards with 3D hover tilt --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 640px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

.industry-card {
  position: relative;
  padding: 22px 18px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(20, 25, 48, 0.72) 0%, rgba(10, 12, 24, 0.72) 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 14px 40px -22px rgba(0, 0, 0, 0.75);
  transform: translateZ(0);
  transition: transform 0.5s var(--ease-out-expo),
              border-color 0.35s ease,
              box-shadow 0.5s ease;
  overflow: hidden;
}
.industry-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(45, 212, 191, 0.55),
    rgba(99, 102, 241, 0.45),
    rgba(167, 139, 250, 0.55));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.industry-card:hover {
  transform: translateY(-4px) rotateX(4deg) rotateY(-4deg);
  border-color: transparent;
  box-shadow:
    0 22px 60px -22px rgba(99, 102, 241, 0.55),
    0 8px 28px -14px rgba(45, 212, 191, 0.35);
}
.industry-card:hover::before { opacity: 1; }
.industry-card .ic-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(99, 102, 241, 0.18));
  margin-bottom: 14px;
  color: #2dd4bf;
}
.industry-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.industry-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hex-core-inner,
  .hex-ring,
  .hex-core-svg { animation: none !important; }
}

/* ================================================================
   MOBILE BOTTOM TAB BAR — quick navigation
   ================================================================ */
.mobile-tabs {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 95;
  padding: 8px;
  border-radius: 20px;
  background: rgba(10, 12, 24, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 32px -12px rgba(0, 0, 0, 0.9),
    0 4px 14px -6px rgba(99, 102, 241, 0.35);
  gap: 4px;
  justify-content: space-around;
  align-items: stretch;
}
.mobile-tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 14px;
  color: var(--text-secondary);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.mobile-tabs a svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}
.mobile-tabs a.active {
  color: #06111f;
  background: linear-gradient(135deg, #2dd4bf, #6366f1);
  box-shadow: 0 6px 18px -6px rgba(99, 102, 241, 0.6);
  font-weight: 700;
}
.mobile-tabs a:not(.active):active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.96);
}
@media (max-width: 768px) {
  .mobile-tabs { display: flex; }
  body { padding-bottom: 96px; }
  .footer { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-tabs a { transition: none; }
}


/* ============ Constellation Canvas (dark sections) ============ */
canvas.constellation-bg {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}
.showcase-3d,
.cta-section,
section.section:not(.section-light) {
  position: relative;
  overflow: hidden;
}
.showcase-3d > *:not(canvas.constellation-bg),
.cta-section > *:not(canvas.constellation-bg),
section.section:not(.section-light) > *:not(canvas.constellation-bg) {
  position: relative;
  z-index: 1;
}
/* Ensure showcase-3d ::before decorative layer sits above bg canvas but below content */
.showcase-3d::before { z-index: 0; }
/* ============ Use-Cases: domain media cards ============ */
.domain-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  background: linear-gradient(155deg, #0f1730 0%, #0a0f22 100%);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.domain-media:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.35) inset;
}
.domain-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 1.2s ease;
}
.domain-media:hover img { transform: scale(1.05); }
.domain-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(5, 10, 25, 0.85) 100%),
    radial-gradient(130% 80% at 15% 10%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(130% 80% at 90% 95%, rgba(99, 102, 241, 0.25), transparent 60%);
  pointer-events: none;
}
.domain-media figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #e6ecff;
  font-size: 0.85rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.domain-media .dm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 12px #2dd4bf, 0 0 0 4px rgba(45, 212, 191, 0.15);
  flex-shrink: 0;
  animation: dmPulse 1.8s ease-in-out infinite;
}
@keyframes dmPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.7; }
}


/* ============================================================
   V7 ADDITIONS — metrics, cost, industry expand, integrations,
   case studies, product architecture, pricing contact, team
   ============================================================ */

/* Hero metrics row */
.hero-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:38px;max-width:780px}
.hero-metric{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:18px 16px;backdrop-filter:blur(12px);text-align:center}
.hm-num{font-size:2rem;font-weight:800;background:linear-gradient(135deg,#14b8a6,#6366f1);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1.1}
.hm-unit{font-size:1rem;margin-left:2px;color:#94a3b8;-webkit-text-fill-color:#94a3b8}
.hm-lbl{font-size:.78rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.06em;margin-top:6px}
@media(max-width:720px){.hero-metrics{grid-template-columns:repeat(2,1fr)}}

/* Cost comparison */
.cost-compare{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:980px;margin:0 auto 36px}
.cost-card{border-radius:18px;padding:28px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);backdrop-filter:blur(12px)}
.cost-before{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.06)}
.cost-after{border-color:rgba(20,184,166,.4);background:rgba(20,184,166,.07)}
.cost-header{display:flex;align-items:center;gap:10px;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;margin-bottom:14px;font-weight:700}
.cost-dot{width:10px;height:10px;border-radius:50%}
.cost-before .cost-dot{background:#ef4444}
.cost-after .cost-dot{background:#14b8a6}
.cost-amount{font-size:3rem;font-weight:800;color:#fff;line-height:1}
.cost-before .cost-amount{color:#fca5a5}
.cost-after .cost-amount{background:linear-gradient(135deg,#14b8a6,#6366f1);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.cost-suffix{font-size:1rem;color:#94a3b8;margin-left:6px;font-weight:500}
.cost-detail{color:#cbd5e1;margin-top:10px;font-size:.95rem}
.cost-breakdown{margin-top:14px;color:#94a3b8;font-size:.88rem}
.cost-saving{margin:10px auto 0;max-width:980px;text-align:center;padding:14px;border-radius:12px;background:linear-gradient(135deg,rgba(20,184,166,.14),rgba(99,102,241,.14));border:1px solid rgba(20,184,166,.3);color:#e2e8f0;font-weight:600}
@media(max-width:720px){.cost-compare{grid-template-columns:1fr}}

/* Scale table */
.scale-table{max-width:820px;margin:0 auto;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.1)}
.scale-row{display:grid;grid-template-columns:1fr 1fr 1fr;padding:14px 18px;background:rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.06);color:#cbd5e1;font-size:.95rem}
.scale-row:last-child{border-bottom:none}
.scale-row.scale-head{background:rgba(99,102,241,.1);color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:.78rem}
.sr-k{font-weight:600}
.sr-v{font-variant-numeric:tabular-nums;text-align:right;color:#14b8a6;font-weight:700}
.scale-note{margin:14px auto 0;text-align:center;color:#94a3b8;font-size:.88rem;max-width:820px}

/* Industry card — clickable/expandable */
button.industry-card{font:inherit;color:inherit;cursor:pointer;text-align:left;width:100%}
.industry-card .ic-details{max-height:0;overflow:hidden;opacity:0;transition:max-height .4s ease,opacity .3s ease,margin-top .3s ease;margin-top:0}
.industry-card.expanded .ic-details{max-height:480px;opacity:1;margin-top:14px}
.ic-details p{color:#94a3b8;font-size:.92rem;line-height:1.55;margin:0 0 10px}
.ic-link{display:inline-flex;align-items:center;gap:6px;color:#14b8a6;font-weight:600;text-decoration:none;font-size:.9rem;margin-top:4px}
.ic-link:hover{color:#6366f1}

/* Integrations grid */
.integ-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.integ-card{padding:24px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(10px)}
.integ-title{font-weight:700;color:#fff;margin-bottom:12px;font-size:1.05rem;display:flex;align-items:center;gap:8px}
.integ-card ul{list-style:none;padding:0;margin:0}
.integ-card ul li{color:#cbd5e1;padding:5px 0;font-size:.9rem;border-bottom:1px solid rgba(255,255,255,.04)}
.integ-card ul li:last-child{border-bottom:none}

/* Real-world case studies */
.case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px}
.case-card{padding:26px;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(12px);transition:transform .3s,border-color .3s}
.case-card:hover{transform:translateY(-4px);border-color:rgba(20,184,166,.35)}
.case-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}
.case-tag{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#a78bfa;font-weight:700}
.case-save{display:inline-block;padding:4px 10px;border-radius:20px;background:rgba(20,184,166,.15);color:#14b8a6;font-weight:700;font-size:.8rem;border:1px solid rgba(20,184,166,.3)}
.case-card h3{color:#fff;font-size:1.25rem;margin:4px 0 6px}
.case-meta{color:#94a3b8;font-size:.88rem;margin-bottom:14px}
.case-rows{display:grid;gap:8px}
.case-row{display:flex;justify-content:space-between;padding:10px 14px;border-radius:10px;font-size:.9rem}
.case-row.before{background:rgba(239,68,68,.08);color:#fca5a5;border:1px solid rgba(239,68,68,.2)}
.case-row.after{background:rgba(20,184,166,.08);color:#5eead4;border:1px solid rgba(20,184,166,.25)}
.case-row .cr-k{color:#94a3b8;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em}

/* Product page — architecture */
.arch-stack{display:grid;gap:14px;max-width:960px;margin:0 auto}
.arch-layer{padding:20px 24px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(10px);display:grid;grid-template-columns:200px 1fr;gap:20px;align-items:center}
.arch-layer .al-head{display:flex;align-items:center;gap:12px}
.arch-layer .al-num{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#14b8a6,#6366f1);color:#fff;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.arch-layer h4{margin:0;color:#fff;font-size:1.05rem}
.arch-layer p{margin:0;color:#94a3b8;font-size:.93rem}
.arch-layer.l1{border-left:3px solid #14b8a6}
.arch-layer.l2{border-left:3px solid #0ea5e9}
.arch-layer.l3{border-left:3px solid #6366f1}
.arch-layer.l4{border-left:3px solid #a78bfa}
.arch-layer.l5{border-left:3px solid #ec4899}
.arch-layer.l6{border-left:3px solid #f59e0b}
@media(max-width:720px){.arch-layer{grid-template-columns:1fr}}

.flow-inline{text-align:center;margin-top:28px;color:#94a3b8;font-size:.95rem;letter-spacing:.02em;padding:14px;border-radius:10px;background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.2);max-width:900px;margin-left:auto;margin-right:auto}

.provider-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:900px;margin:0 auto}
.provider-card ul{list-style:none;padding:0;margin:0}
.provider-card ul li{padding:8px 0;color:#cbd5e1;border-bottom:1px solid rgba(255,255,255,.05);font-size:.93rem}
.provider-card ul li:last-child{border:none}
.prov-title{font-weight:700;color:#fff;font-size:1.1rem;margin-bottom:12px}
.routing-note{max-width:900px;margin:24px auto 0;text-align:center;padding:18px;border-radius:12px;background:linear-gradient(135deg,rgba(20,184,166,.1),rgba(99,102,241,.1));border:1px solid rgba(99,102,241,.25);color:#cbd5e1}
@media(max-width:720px){.provider-grid{grid-template-columns:1fr}}

.flow-list{display:grid;gap:10px;max-width:920px;margin:0 auto}
.flow-row{display:grid;grid-template-columns:44px 140px 1fr;align-items:center;gap:16px;padding:14px 18px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.flow-row .fr-num{width:32px;height:32px;border-radius:8px;background:rgba(99,102,241,.2);color:#a5b4fc;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.flow-row .fr-k{color:#14b8a6;font-weight:700;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em}
.flow-row .fr-v{color:#cbd5e1;font-size:.94rem}
@media(max-width:720px){.flow-row{grid-template-columns:32px 1fr;gap:10px}.flow-row .fr-k{grid-column:2}.flow-row .fr-v{grid-column:2}}

.deploy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.deploy-card ul{list-style:none;padding:0;margin:0 0 16px}
.deploy-card ul li{padding:7px 0;color:#cbd5e1;border-bottom:1px solid rgba(255,255,255,.05);font-size:.9rem}
.deploy-card ul li:last-child{border:none}
.dep-title{font-weight:700;color:#fff;font-size:1.1rem;margin-bottom:12px}
.dep-badge{display:inline-block;padding:5px 12px;border-radius:20px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.badge-teal{background:rgba(20,184,166,.15);color:#14b8a6;border:1px solid rgba(20,184,166,.3)}
.badge-amber{background:rgba(245,158,11,.15);color:#fbbf24;border:1px solid rgba(245,158,11,.3)}
.badge-green{background:rgba(34,197,94,.15);color:#4ade80;border:1px solid rgba(34,197,94,.3)}
@media(max-width:900px){.deploy-grid{grid-template-columns:1fr}}

/* Pricing — contact placeholder */
.price-contact{font-size:1.4rem;font-weight:700;background:linear-gradient(135deg,#14b8a6,#6366f1);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.pricing-sub{color:#94a3b8;font-size:.85rem;margin-top:6px}
.pricing-tagline{color:#cbd5e1;font-size:.95rem;margin:6px 0 14px}

/* FAQ */
.faq-grid{display:grid;gap:12px;max-width:820px;margin:0 auto}
.faq-item{padding:18px 22px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);cursor:pointer}
.faq-item summary{color:#fff;font-weight:600;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq-item summary::after{content:'+';color:#14b8a6;font-size:1.4rem;font-weight:400;transition:transform .3s}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{margin:12px 0 0;color:#94a3b8;font-size:.93rem;line-height:1.6}

/* About — team */
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px;max-width:900px;margin:0 auto}
.team-card{padding:28px;text-align:center}
.team-photo{width:130px;height:130px;border-radius:50%;overflow:hidden;margin:0 auto 18px;border:3px solid rgba(20,184,166,.4)}
.team-photo img{width:100%;height:100%;object-fit:cover;display:block}
.team-photo-initials{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#14b8a6,#6366f1);color:#fff;font-weight:800;font-size:2.5rem;letter-spacing:.05em}
.team-name{color:#fff;margin:0 0 4px;font-size:1.3rem}
.team-role{color:#14b8a6;font-weight:600;margin:0 0 12px;font-size:.92rem;text-transform:uppercase;letter-spacing:.06em}
.team-bio{color:#cbd5e1;font-size:.92rem;line-height:1.6;margin-bottom:16px}
.team-contact{display:flex;flex-direction:column;gap:4px;color:#94a3b8;font-size:.88rem}
.team-contact a{color:#14b8a6;text-decoration:none}
.team-contact a:hover{color:#6366f1}

/* Company info */
.company-info{max-width:720px;margin:0 auto;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}
.ci-row{display:grid;grid-template-columns:200px 1fr;padding:14px 22px;background:rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.05)}
.ci-row:last-child{border:none}
.ci-k{color:#94a3b8;font-weight:600;text-transform:uppercase;letter-spacing:.05em;font-size:.8rem}
.ci-v{color:#e2e8f0;font-size:.95rem}
.ci-v a{color:#14b8a6;text-decoration:none}
.ci-v a:hover{color:#6366f1}
@media(max-width:720px){.ci-row{grid-template-columns:1fr;gap:4px}}


/* ============================================================
   V8 — Single global background canvas
   Eliminates per-section canvas seams; dark sections become
   transparent so the SAME field shows behind everything.
   ============================================================ */

html, body { background: #0c0e14; }

/* Global fixed canvas (created by particles.js) */
#global-constellation{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none;
  display: block;
  opacity: 0.95;
}

/* Dark sections: transparent so the global canvas shows through */
.hero,
.cta-section,
.showcase-3d,
section.section:not(.section-light){
  background: transparent !important;
  position: relative;
  overflow: visible;
}

/* Hero & section content always sits above the global canvas */
.hero > *,
.cta-section > *,
.showcase-3d > *,
section.section:not(.section-light) > *{
  position: relative;
  z-index: 1;
}

/* Kill the old per-section canvases entirely (defensive) */
canvas.hero-canvas,
canvas.constellation-bg{ display: none !important; }

/* Light sections sit ABOVE the canvas (opaque) */
.section-light{
  position: relative;
  z-index: 1;
}

/* Footer covers canvas at bottom */
.footer{ position: relative; z-index: 1; background: #0a0c12; }

/* Smooth background gradient fade between dark sections (vignette only,
   the canvas itself is uniform) */
.hero::after,
.cta-section::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.08), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(45,212,191,.06), transparent 70%);
  z-index:0;
}

/* ============================================================
   V8 — Pricing badge & featured (works for BOTH class variants)
   ============================================================ */
.pricing-card.pricing-card-featured,
.pricing-card.featured{
  border-color: var(--accent-teal) !important;
  box-shadow: 0 0 48px rgba(45, 212, 191, 0.18), 0 8px 30px rgba(99,102,241,.12);
  transform: scale(1.04);
}
.pricing-card.pricing-card-featured:hover,
.pricing-card.featured:hover{
  transform: scale(1.04) translateY(-6px);
}
.pricing-card.pricing-card-featured .pricing-badge,
.pricing-card.featured .pricing-badge{ display: inline-block !important; }

/* Stronger ribbon-style badge */
.pricing-badge{
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg,#6366f1 0%,#8b5cf6 50%,#a78bfa 100%);
  color:#fff !important;
  font-size:.78rem;
  font-weight:800;
  padding:9px 22px;
  border-radius:999px;
  text-transform:uppercase;
  letter-spacing:.18em;
  white-space:nowrap;
  z-index:5;
  box-shadow:
    0 10px 30px rgba(99,102,241,.55),
    0 0 0 2px rgba(255,255,255,.18) inset,
    0 -2px 0 rgba(0,0,0,.25) inset;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
}

/* ============================================================
   V8 — Light-section contrast fixes (integrations, company info,
   scale rows, case studies, FAQ)
   ============================================================ */
.section-light .integ-card{
  background:#fff;
  border:1px solid rgba(18,20,30,.08);
  box-shadow:0 4px 24px rgba(18,20,30,.04);
}
.section-light .integ-title{ color: var(--text-light-primary) !important; }
.section-light .integ-card ul li{
  color: var(--text-light-secondary) !important;
  border-bottom-color: rgba(18,20,30,.06) !important;
}
.section-light .ci-k{ color: var(--text-light-muted) !important; }
.section-light .ci-v{ color: var(--text-light-primary) !important; }
.section-light .company-info{
  background:#fff;
  border:1px solid rgba(18,20,30,.08);
}
.section-light .ci-row{
  background:#fff;
  border-bottom-color: rgba(18,20,30,.06) !important;
}
.section-light .scale-table{ background:#fff; border-color: rgba(18,20,30,.08); }
.section-light .scale-row{
  background:#fff;
  border-bottom-color: rgba(18,20,30,.06) !important;
  color: var(--text-light-secondary) !important;
}
.section-light .scale-row.scale-head{
  background: rgba(99,102,241,.08);
  color: var(--text-light-primary) !important;
}
.section-light .sr-v{ color:#0d9488 !important; }
.section-light .case-card{
  background:#fff;
  border:1px solid rgba(18,20,30,.08);
  box-shadow:0 4px 24px rgba(18,20,30,.04);
}
.section-light .case-card h3{ color: var(--text-light-primary) !important; }
.section-light .case-meta{ color: var(--text-light-muted) !important; }
.section-light .case-row.before{
  background: rgba(239,68,68,.08);
  color:#b91c1c !important;
  border-color: rgba(239,68,68,.2);
}
.section-light .case-row.after{
  background: rgba(20,184,166,.1);
  color:#0f766e !important;
  border-color: rgba(20,184,166,.3);
}
.section-light .faq-item{
  background:#fff;
  border:1px solid rgba(18,20,30,.08);
}
.section-light .faq-item summary{ color: var(--text-light-primary) !important; }
.section-light .faq-item p{ color: var(--text-light-secondary) !important; }
.section-light .arch-layer{
  background:#fff;
  border:1px solid rgba(18,20,30,.08);
}
.section-light .arch-layer h4{ color: var(--text-light-primary) !important; }
.section-light .arch-layer p{ color: var(--text-light-secondary) !important; }
.section-light .deploy-card,
.section-light .provider-card,
.section-light .glass-card{
  background:#fff !important;
  border:1px solid rgba(18,20,30,.08) !important;
}
.section-light .deploy-card ul li,
.section-light .provider-card ul li{
  color: var(--text-light-secondary) !important;
  border-bottom-color: rgba(18,20,30,.06) !important;
}
.section-light .dep-title,
.section-light .prov-title{ color: var(--text-light-primary) !important; }
.section-light .flow-row{
  background:#fff;
  border:1px solid rgba(18,20,30,.08);
}
.section-light .flow-row .fr-v{ color: var(--text-light-secondary) !important; }
.section-light .routing-note{
  background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(99,102,241,.08));
  border:1px solid rgba(99,102,241,.18);
  color: var(--text-light-primary) !important;
}
.section-light .flow-inline{
  background: rgba(99,102,241,.08);
  border:1px solid rgba(99,102,241,.18);
  color: var(--text-light-secondary) !important;
}

/* ============================================================
   V8 — Smoother card animations (3D tilt + glow on hover)
   ============================================================ */
.glass-card,
.case-card,
.integ-card,
.deploy-card,
.provider-card,
.arch-layer,
.team-card{
  transition:
    transform .5s var(--ease-out-quint),
    box-shadow .5s var(--ease-out-quint),
    border-color .3s ease;
  will-change: transform;
}
.glass-card:hover,
.case-card:hover,
.integ-card:hover,
.deploy-card:hover,
.provider-card:hover,
.arch-layer:hover,
.team-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(45,212,191,.12), 0 8px 24px rgba(99,102,241,.1);
}

/* Hero buttons subtle parallax */
.hero .btn{ transition: transform .35s var(--ease-out-quint), box-shadow .35s ease; }
.hero .btn:hover{ transform: translateY(-2px); }

/* Smooth scroll */
html{ scroll-behavior: smooth; }


/* ============================================
   V9 — POLISH PASS: hero centering, steps line,
   scale-table contrast, industry cards, FAQ,
   values redesign, mobile fixes
   ============================================ */

/* --- Hero: TOP-aligned (title appears immediately under navbar) --- */
.hero{
  display:block !important;
  min-height:0 !important;
  height:auto !important;
  text-align:center !important;
  padding: calc(var(--nav-height) + 12px) 0 56px !important;
}
.hero > .hero-content{
  width:100% !important;
  max-width:920px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center !important;
  padding: 0 24px !important;
}
.hero h1{
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
  max-width:100%;
  margin-top: 0 !important;
}
.hero .hero-subtitle{
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center !important;
}
.hero .hero-buttons{
  justify-content:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.hero .hero-metrics{
  margin-left:auto !important;
  margin-right:auto !important;
}
.hero .hero-logo{
  margin: 0 auto 18px !important;
  display:block !important;
}
.hero .section-label{
  margin-left:auto !important;
  margin-right:auto !important;
  display:inline-block !important;
}

/* --- Steps grid: 6 nodes on a single line with smooth animated connector --- */
.steps-grid{
  display:grid !important;
  grid-template-columns:repeat(6, 1fr) !important;
  gap:24px !important;
  position:relative;
  max-width:1180px;
  margin:0 auto;
}
.steps-grid::before{
  content:'';
  position:absolute;
  top:34px; left:6%; right:6%;
  height:2px;
  background:linear-gradient(90deg,
    rgba(45,212,191,0) 0%,
    rgba(45,212,191,.55) 12%,
    rgba(99,102,241,.55) 50%,
    rgba(167,139,250,.55) 88%,
    rgba(167,139,250,0) 100%);
  z-index:0;
  pointer-events:none;
  filter:drop-shadow(0 0 6px rgba(99,102,241,.35));
}
.steps-grid::after{
  content:'';
  position:absolute;
  top:31px; left:6%;
  width:24px; height:8px; border-radius:4px;
  background:linear-gradient(90deg, rgba(45,212,191,0), rgba(255,255,255,.85), rgba(167,139,250,0));
  filter:blur(2px);
  animation:stepShimmer 4s linear infinite;
  z-index:1;
  pointer-events:none;
}
@keyframes stepShimmer{
  0%   { transform:translateX(0);     opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { transform:translateX(calc(88vw - 60px)); opacity:0; }
}
.step-card{
  text-align:center;
  position:relative;
  z-index:2;
}
.step-card .step-number{
  background:radial-gradient(circle at 30% 25%, #818cf8 0%, #6366f1 45%, #4338ca 100%) !important;
  box-shadow:0 6px 18px -4px rgba(99,102,241,.55), 0 0 0 4px rgba(99,102,241,.12) !important;
}
@media (max-width: 1100px){
  .steps-grid{ grid-template-columns:repeat(3, 1fr) !important; gap:32px !important; }
  .steps-grid::before, .steps-grid::after{ display:none !important; }
}
@media (max-width: 640px){
  .steps-grid{ grid-template-columns:repeat(2, 1fr) !important; gap:24px !important; }
}

/* --- Scale-table: make h4 visible on light bg --- */
.section-light .scale-table h4{
  color:#0f172a !important;
  font-size:1.25rem;
  margin:0;
  padding:18px 22px;
  background:linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-bottom:1px solid rgba(18,20,30,.08);
}
.section-light .scale-table{ background:#fff; border-color:rgba(18,20,30,.1); box-shadow:0 14px 40px -22px rgba(15,23,42,.25); }
.section-light .scale-row{ color:#475569 !important; }
.section-light .scale-row .sr-k{ color:#0f172a !important; font-weight:600; }
.section-light .scale-row .sr-t{ color:#64748b !important; }
.section-light .scale-row .sr-v{ color:#0d9488 !important; font-weight:700; }
.section-light .scale-note{ color:#64748b !important; padding:14px 22px; font-size:.9rem; }

/* --- Industry showcase cards: unique gradients per domain --- */
.industry-card{
  cursor:pointer;
  transition:transform .45s var(--ease-out-quint), box-shadow .45s ease, border-color .35s ease;
  display:flex; flex-direction:column;
}
.industry-card:hover{
  transform:translateY(-6px) scale(1.015);
  border-color:rgba(99,102,241,.45);
  box-shadow:0 26px 60px -28px rgba(99,102,241,.55), 0 0 0 1px rgba(99,102,241,.25) inset;
}
.industry-card .ic-icon{
  width:42px; height:42px; border-radius:12px;
  display:inline-flex; align-items:center; justify-content:center;
  margin-bottom:14px;
  background:linear-gradient(140deg, rgba(45,212,191,.25), rgba(99,102,241,.18));
  color:#5eead4;
  border:1px solid rgba(94,234,212,.25);
}
.industry-card h4{ font-size:1.05rem; margin:0 0 6px; color:#fff; }
.industry-card > p{ font-size:.9rem; color:#94a3b8; margin:0 0 12px; }
.industry-card .ic-details{
  margin-top:auto;
  padding-top:12px;
  border-top:1px dashed rgba(148,163,184,.18);
  opacity:.95;
}
.industry-card .ic-details p{ font-size:.88rem; color:#cbd5e1; margin:0 0 8px; line-height:1.55; }
.industry-card .ic-link{
  display:inline-flex; align-items:center; gap:4px;
  color:#5eead4; font-weight:600; font-size:.9rem; text-decoration:none;
  transition:transform .25s ease, color .2s ease;
}
.industry-card .ic-link:hover{ color:#a78bfa; transform:translateX(3px); }

/* --- Use-case images: equal height, smooth zoom on hover --- */
.tab-panel-visual .domain-media img{
  width:100%; height:360px; object-fit:cover;
  border-radius:18px;
  transition:transform 1.2s var(--ease-out-quint);
}
.tab-panel-visual .domain-media{ overflow:hidden; border-radius:18px; }
.tab-panel-visual .domain-media:hover img{ transform:scale(1.04); }

/* --- Tabs: better mobile wrap --- */
.tabs{ flex-wrap:wrap !important; justify-content:center !important; gap:8px !important; }
.tab-btn{ flex:0 0 auto !important; }

/* --- FAQ: more breathing room + nice animation --- */
.faq-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; max-width:1100px; margin:0 auto; }
@media (max-width: 800px){ .faq-grid{ grid-template-columns:1fr; } }
.section-light .faq-item{
  background:#fff !important; border:1px solid rgba(18,20,30,.08) !important;
  border-radius:14px; padding:18px 22px;
  transition:box-shadow .3s ease, border-color .3s ease;
}
.section-light .faq-item:hover{ border-color:rgba(99,102,241,.35) !important; box-shadow:0 10px 30px -18px rgba(99,102,241,.4); }
.section-light .faq-item summary{ color:#0f172a !important; font-weight:600; cursor:pointer; list-style:none; position:relative; padding-right:30px; }
.section-light .faq-item summary::-webkit-details-marker{ display:none; }
.section-light .faq-item summary::after{
  content:'+'; position:absolute; right:0; top:-2px; font-size:1.4rem; color:#6366f1; transition:transform .3s ease;
}
.section-light .faq-item[open] summary::after{ transform:rotate(45deg); }
.section-light .faq-item p{ color:#475569 !important; margin-top:10px; line-height:1.65; }

/* --- Values redesign: alternating accent bar + icon orb --- */
.values-row{
  display:grid; grid-template-columns:1fr 1fr; gap:22px; max-width:1100px; margin:0 auto;
}
@media (max-width:780px){ .values-row{ grid-template-columns:1fr; } }
.value-cell{
  position:relative; padding:26px 26px 26px 84px;
  background:#fff; border-radius:18px; border:1px solid rgba(18,20,30,.08);
  box-shadow:0 14px 40px -28px rgba(15,23,42,.25);
  transition:transform .35s var(--ease-out-quint), box-shadow .35s ease;
}
.value-cell:hover{ transform:translateY(-4px); box-shadow:0 24px 50px -28px rgba(99,102,241,.4); }
.value-cell::before{
  content:''; position:absolute; left:18px; top:24px; width:48px; height:48px; border-radius:14px;
  background:linear-gradient(140deg, #2dd4bf 0%, #6366f1 60%, #a78bfa 100%);
  box-shadow:0 8px 22px -8px rgba(99,102,241,.55);
}
.value-cell .v-emoji{ position:absolute; left:30px; top:36px; font-size:1.4rem; z-index:1; color:#fff; }
.value-cell h3{ color:#0f172a; font-size:1.1rem; margin:0 0 6px; }
.value-cell p{ color:#475569; line-height:1.6; margin:0; font-size:.95rem; }

/* --- Architecture stack: horizontal flow on desktop with animated arrows --- */
.arch-flow{
  display:grid; grid-template-columns:repeat(6, 1fr); gap:14px;
  max-width:1180px; margin:0 auto; position:relative;
}
.arch-flow .arch-node{
  background:#fff; border:1px solid rgba(18,20,30,.08); border-radius:16px;
  padding:18px 14px; text-align:center; position:relative;
  transition:transform .35s var(--ease-out-quint), box-shadow .35s ease, border-color .25s;
  box-shadow:0 10px 30px -22px rgba(15,23,42,.25);
}
.arch-flow .arch-node:hover{ transform:translateY(-6px); border-color:rgba(99,102,241,.45); box-shadow:0 22px 50px -22px rgba(99,102,241,.45); }
.arch-flow .arch-node .an-num{
  display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%;
  background:linear-gradient(140deg, #6366f1, #a78bfa);
  color:#fff; font-weight:700; margin-bottom:10px;
  box-shadow:0 6px 16px -4px rgba(99,102,241,.5);
}
.arch-flow .arch-node h4{ color:#0f172a; font-size:.98rem; margin:0 0 6px; }
.arch-flow .arch-node p{ color:#475569; font-size:.82rem; margin:0; line-height:1.45; }
.arch-flow::before{
  content:''; position:absolute; top:34px; left:7%; right:7%; height:2px;
  background:linear-gradient(90deg, rgba(45,212,191,0), rgba(99,102,241,.4) 50%, rgba(167,139,250,0));
  z-index:-1;
}
@media (max-width: 1024px){ .arch-flow{ grid-template-columns:repeat(3,1fr); } .arch-flow::before{ display:none; } }
@media (max-width: 600px){ .arch-flow{ grid-template-columns:repeat(2,1fr); } }

/* --- Use-case examples list polish --- */
.use-case-examples{ list-style:none; padding:0; margin:18px 0; }
.use-case-examples li{
  position:relative; padding:8px 0 8px 28px; color:#cbd5e1; line-height:1.5;
  border-bottom:1px solid rgba(148,163,184,.08);
}
.use-case-examples li::before{
  content:'✓'; position:absolute; left:0; top:8px; color:#5eead4; font-weight:700;
}

/* --- Mobile container width --- */
@media (max-width: 480px){
  .container{ padding-left:18px !important; padding-right:18px !important; }
  .hero h1{ font-size:clamp(2rem, 9vw, 2.8rem) !important; }
  .hero .hero-metrics{ grid-template-columns:repeat(2,1fr) !important; }
  .industry-grid{ grid-template-columns:1fr !important; }
  .pricing-grid{ grid-template-columns:1fr !important; }
  .features-grid{ grid-template-columns:1fr !important; }
  .case-grid{ grid-template-columns:1fr !important; }
}

/* --- Pricing: badge sits centered above featured card --- */
.pricing-card.featured{ position:relative; }
.pricing-card.featured .pricing-badge{
  position:absolute !important;
  top:-18px !important; left:50% !important;
  transform:translateX(-50%) !important;
  display:inline-flex !important; align-items:center; gap:4px;
  padding:6px 18px !important;
  border-radius:999px;
  background:linear-gradient(135deg, #2dd4bf 0%, #6366f1 50%, #a78bfa 100%) !important;
  color:#fff !important; font-weight:700; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase;
  box-shadow:0 12px 32px -8px rgba(99,102,241,.7);
  z-index:5;
  white-space:nowrap;
}

/* --- Section label centered + visible on light --- */
.section-light .section-label{ background:rgba(99,102,241,.08) !important; color:#6366f1 !important; border-color:rgba(99,102,241,.22) !important; }
.section-header{ text-align:center; }
.section-header .section-label{ margin-left:auto; margin-right:auto; display:inline-block; }


/* ============================================
   V10 — Hero compactness, shimmer ping-pong,
   no duplicate checkmarks, EU SVG, FAQ polish
   ============================================ */

/* --- Hero: compact and top-aligned so title shows immediately --- */
.hero{
  min-height: auto !important;
  padding-top: calc(var(--nav-height) + 12px) !important;
  padding-bottom: 56px !important;
}
.hero[style*="min-height"]{ min-height: auto !important; }
.hero > .hero-content{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.hero-logo{ margin: 0 auto 18px !important; width:80px !important; height:80px !important; }
.hero h1{ margin: 0 auto 16px !important; }
.hero-subtitle{ margin: 0 auto 24px !important; }
.hero-buttons{ margin: 0 auto 24px !important; }
.hero-metrics{ margin-top: 18px !important; }
@media (max-width: 640px){
  .hero{ padding-top: calc(var(--nav-height) + 8px) !important; padding-bottom: 48px !important; }
  .hero-logo{ width:60px !important; height:60px !important; margin-bottom:12px !important; }
}

/* --- Steps connector: ping-pong shimmer 1<->6 forever --- */
.steps-grid::before{
  left: 8.33% !important; right: 8.33% !important; top: 32px !important;
}
.steps-grid::after{
  /* a single dot that travels back and forth along the line */
  width: 14px !important; height: 14px !important; border-radius: 50% !important;
  top: 26px !important;
  left: 8.33% !important;
  right: auto !important;
  background: radial-gradient(circle, #fff 0%, rgba(167,139,250,.85) 35%, rgba(99,102,241,0) 70%) !important;
  filter: drop-shadow(0 0 10px rgba(167,139,250,.85)) blur(0) !important;
  animation: stepShimmerPP 6s ease-in-out infinite !important;
  z-index: 3 !important;
}
@keyframes stepShimmerPP{
  0%   { transform: translateX(0);                           opacity: .9; }
  48%  { transform: translateX(calc((100vw - 32vw) * 0.83)); opacity: 1;  }
  50%  { transform: translateX(calc((100vw - 32vw) * 0.83)); opacity: 1;  }
  98%  { transform: translateX(0);                           opacity: .9; }
  100% { transform: translateX(0);                           opacity: .9; }
}
/* Hide shimmer on small screens (line is hidden already) */
@media (max-width: 1100px){ .steps-grid::after{ display:none !important; } }

/* --- Pricing list: kill auto checkmark to remove duplicate ✓ --- */
.pricing-features li::before{ content:'' !important; display:none !important; }
.pricing-features li{ padding-left: 0 !important; }

/* --- EU pictogram: round pill with subtle ring --- */
.eu-icon{
  display:inline-block;
  width: 22px; height: 22px;
  vertical-align: -5px;
  margin-right: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 4px 14px -4px rgba(0,0,0,.4);
  background: radial-gradient(circle at 30% 25%, #1f4ec4 0%, #0033a1 70%);
  position: relative;
}
.eu-icon::after{
  /* 12 yellow stars represented as a glow ring */
  content:'';
  position:absolute; inset:3px;
  border-radius:50%;
  background: radial-gradient(circle, transparent 56%, rgba(255,210,0,.95) 57%, rgba(255,210,0,.95) 60%, transparent 63%);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%, #000 60%, transparent 63%);
}

/* --- FAQ: smooth height animation when opening --- */
.section-light .faq-item{ overflow:hidden; }
.section-light .faq-item > p{
  margin-top: 0 !important; max-height: 0; opacity:0;
  transition: max-height .55s var(--ease-out-quint), opacity .35s ease, margin-top .35s ease;
}
.section-light .faq-item[open] > p{
  max-height: 600px; opacity:1; margin-top: 12px !important;
}
.section-light .faq-item summary{ user-select:none; }

/* --- Ensure provider-grid lays out 3 cards nicely --- */
.provider-grid{ display:grid !important; grid-template-columns: repeat(3, 1fr) !important; gap:18px !important; }
@media (max-width: 980px){ .provider-grid{ grid-template-columns: 1fr !important; } }


/* ============================================
   V11 — Shimmer 1<->6 strict, FAQ row independence,
   stronger hero compaction
   ============================================ */

/* Hero — stronger override (defeats any cached 100vh) */
section.hero, .hero, body .hero{
  min-height: auto !important;
  height: auto !important;
  display: block !important;
  padding-top: calc(var(--nav-height, 64px) + 12px) !important;
  padding-bottom: 56px !important;
}
.hero > .hero-content{
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Always-visible hero content (no fade-in opacity blocking) */
.hero-content > *{ opacity: 1 !important; transform: none !important; }
.hero-content.loaded > *{ opacity: 1 !important; transform: none !important; }

/* --- Beautiful animated logo (continuous breathing + glow) --- */
.hero-logo{
  animation: heroLogoBreath 5s ease-in-out infinite !important;
  box-shadow: 0 12px 40px -8px rgba(99,102,241,.55), 0 0 0 1px rgba(255,255,255,.06) !important;
  transition: transform .4s ease;
  will-change: transform, box-shadow;
}
.hero-logo:hover{ transform: scale(1.06) rotate(-2deg); }
@keyframes heroLogoBreath{
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    box-shadow: 0 12px 40px -8px rgba(99,102,241,.55), 0 0 0 1px rgba(255,255,255,.08);
  }
  50% {
    transform: translateY(-8px) rotate(2deg) scale(1.04);
    box-shadow: 0 22px 60px -8px rgba(167,139,250,.7), 0 0 0 1px rgba(255,255,255,.14);
  }
}

/* --- Shimmer dot: travels exactly between center of step 1 and center of step 6 --- */
.steps-grid::after{
  /* override v10: animate `left` instead of `transform` for pixel-accurate stop at step 6 */
  animation: stepShimmerExact 5.5s ease-in-out infinite !important;
  transform: translateX(-50%) !important;
}
@keyframes stepShimmerExact{
  0%, 100% { left: 8.333% !important;  opacity: .85; }
  48%      { left: 91.667% !important; opacity: 1;   }
  52%      { left: 91.667% !important; opacity: 1;   }
}
/* Override v10 keyframe so transform stays as translateX(-50%) for centering */
@keyframes stepShimmerPP{
  0%, 100% { left: 8.333%;  transform: translateX(-50%); opacity: .85; }
  48%, 52% { left: 91.667%; transform: translateX(-50%); opacity: 1;   }
}

/* --- FAQ: each cell sizes to its OWN content (no stretching when neighbour opens) --- */
.faq-grid{
  align-items: start !important;
  grid-auto-rows: min-content !important;
}
.faq-grid > .faq-item{ align-self: start !important; height: auto !important; }
/* Smooth, contained answer expansion */
.faq-item{ overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.faq-item > p{
  max-height: 0; opacity: 0; margin-top: 0 !important;
  transition: max-height .5s cubic-bezier(.22,.61,.36,1), opacity .3s ease, margin-top .3s ease;
}
.faq-item[open] > p{
  max-height: 800px; opacity: 1; margin-top: 12px !important;
}
.faq-item[open]{ border-color: rgba(99,102,241,.45) !important; box-shadow: 0 14px 40px -22px rgba(99,102,241,.55); }


/* ============================================
   V16 — FINAL hero compaction (title flush with navbar)
   ============================================ */
section.hero, .hero, body .hero, html body section.hero{
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  padding: var(--nav-height, 64px) 0 32px 0 !important;
  text-align: center !important;
  margin: 0 !important;
}
.hero > .hero-content,
.hero .hero-content{
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 8px 24px 0 !important;
}
.hero-content > *{ opacity: 1 !important; transform: none !important; }
.hero-logo,
.hero .hero-logo,
.hero-content .hero-logo{
  width: 56px !important; height: 56px !important;
  margin: 0 auto 10px !important;
  display: block !important;
  border-radius: 14px !important;
  animation: heroLogoBreath 5s ease-in-out infinite !important;
  box-shadow: 0 10px 30px -8px rgba(99,102,241,.55), 0 0 0 1px rgba(255,255,255,.06) !important;
}
.hero h1,
.hero .hero-content h1{
  margin: 0 auto 14px !important;
  padding: 0 !important;
  line-height: 1.05 !important;
}
.hero .hero-subtitle{ margin: 0 auto 18px !important; }
.hero .hero-buttons{ margin: 0 auto 18px !important; }
.hero .hero-metrics{ margin: 14px auto 0 !important; }

@media (max-width: 640px){
  section.hero, .hero, body .hero{
    padding: var(--nav-height, 64px) 0 24px 0 !important;
  }
  .hero-logo{ width: 48px !important; height: 48px !important; margin-bottom: 8px !important; }
  .hero h1{ margin-bottom: 10px !important; }
}

/* ============================================
   V20 — 3D shimmer dot (1<->6 smooth) + premium logo animation
   ============================================ */

/* Track stays as is (.steps-grid::before). The dot is .steps-grid::after.
   We make the ::after element span the full track width so we can use
   a percentage-of-self transform (works pixel-accurately at any width). */
.steps-grid::after{
  content:'' !important;
  position:absolute !important;
  top: 27px !important;
  left: 8.333% !important;
  right: 8.333% !important;
  width: auto !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: transparent !important;
  filter: none !important;
  pointer-events: none !important;
  z-index: 3 !important;
  /* The visible "comet" is a child via box-shadow trick: a tiny inner glow
     positioned at left:0 of this element, moved with translateX of self width. */
  box-shadow: none !important;
  /* Use a background-positioned radial gradient instead of pseudo-element */
  background-image:
    radial-gradient(circle at 0% 50%,
      rgba(255,255,255,1) 0px,
      rgba(167,139,250,.95) 6px,
      rgba(99,102,241,.55) 12px,
      rgba(99,102,241,0) 22px) !important;
  background-repeat: no-repeat !important;
  background-size: 44px 14px !important;
  background-position: 0% 50% !important;
  animation: shimmer3D 5.5s cubic-bezier(.65,.05,.36,1) infinite !important;
  transform-style: preserve-3d !important;
  perspective: 600px !important;
}
@keyframes shimmer3D{
  0%   { background-position:   0% 50%; transform: rotateY(0deg)  scale(1);   filter: drop-shadow(0 0 8px rgba(167,139,250,.7)); }
  10%  { transform: rotateY(8deg)  scale(1.08); }
  45%  { background-position: 100% 50%; transform: rotateY(0deg)  scale(1.12); filter: drop-shadow(0 0 14px rgba(99,102,241,.95)); }
  50%  { background-position: 100% 50%; transform: rotateY(-8deg) scale(1.08); }
  55%  { background-position: 100% 50%; transform: rotateY(0deg)  scale(1.12); }
  90%  { transform: rotateY(-8deg) scale(1.08); }
  100% { background-position:   0% 50%; transform: rotateY(0deg)  scale(1);   filter: drop-shadow(0 0 8px rgba(167,139,250,.7)); }
}
@media (max-width: 1100px){
  .steps-grid::after{ display:none !important; }
}

/* --- Premium hero logo animation: float + breathe + soft 3D tilt + ring sweep --- */
.hero-logo,
.hero .hero-logo,
.hero-content .hero-logo{
  position: relative !important;
  width: 84px !important; height: 84px !important;
  margin: 0 auto 16px !important;
  border-radius: 22px !important;
  display: block !important;
  animation: heroLogoFloat3D 6s ease-in-out infinite !important;
  box-shadow:
    0 14px 40px -10px rgba(99,102,241,.55),
    0 0 0 1px rgba(255,255,255,.08),
    0 0 60px -10px rgba(45,212,191,.35) !important;
  transform-style: preserve-3d !important;
  will-change: transform, box-shadow, filter !important;
  filter: drop-shadow(0 0 0 rgba(99,102,241,0));
  transition: transform .4s ease;
}
.hero-logo:hover,
.hero .hero-logo:hover{
  transform: scale(1.08) rotateY(8deg) rotateX(-4deg) !important;
}

/* Animated rotating ring around the logo */
.hero-content{ position: relative !important; }
.hero-content::before{
  content:'';
  position:absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px dashed rgba(167,139,250,.35);
  pointer-events:none;
  animation: heroRingSpin 16s linear infinite;
  z-index: 0;
  opacity: .6;
}
.hero-content::after{
  content:'';
  position:absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(45,212,191,.28);
  pointer-events:none;
  animation: heroRingSpin 11s linear infinite reverse;
  z-index: 0;
  opacity: .55;
}
.hero-content > *{ position: relative; z-index: 1; }

@keyframes heroLogoFloat3D{
  0%, 100% {
    transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1);
    box-shadow:
      0 14px 40px -10px rgba(99,102,241,.55),
      0 0 0 1px rgba(255,255,255,.08),
      0 0 60px -14px rgba(45,212,191,.35);
  }
  25% {
    transform: translateY(-6px) rotateY(6deg) rotateX(-2deg) scale(1.03);
    box-shadow:
      0 22px 60px -10px rgba(167,139,250,.65),
      0 0 0 1px rgba(255,255,255,.12),
      0 0 80px -10px rgba(99,102,241,.55);
  }
  50% {
    transform: translateY(-10px) rotateY(0deg) rotateX(-3deg) scale(1.05);
    box-shadow:
      0 26px 70px -10px rgba(167,139,250,.75),
      0 0 0 1px rgba(255,255,255,.16),
      0 0 90px -10px rgba(45,212,191,.55);
  }
  75% {
    transform: translateY(-6px) rotateY(-6deg) rotateX(-2deg) scale(1.03);
    box-shadow:
      0 22px 60px -10px rgba(99,102,241,.65),
      0 0 0 1px rgba(255,255,255,.12),
      0 0 80px -10px rgba(167,139,250,.55);
  }
}
@keyframes heroRingSpin{
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}

@media (max-width: 640px){
  .hero-logo,
  .hero .hero-logo{ width: 64px !important; height: 64px !important; }
  .hero-content::before{ width: 96px; height: 96px; top: 4px; }
  .hero-content::after{ width: 86px; height: 86px; top: 9px; }
}

/* ============================================
   V21 — NEXT-GEN step nodes: orbital rings, energy pulse,
   sequential illumination wave, traveling comet on line
   ============================================ */

.steps-grid{ perspective: 1400px; }

/* Each step card gets a 3D-aware container */
.step-card{
  position: relative;
  z-index: 2;
  animation: stepRise .9s cubic-bezier(.22,1,.36,1) both;
}
.step-card:nth-child(1){ animation-delay: .05s; }
.step-card:nth-child(2){ animation-delay: .18s; }
.step-card:nth-child(3){ animation-delay: .31s; }
.step-card:nth-child(4){ animation-delay: .44s; }
.step-card:nth-child(5){ animation-delay: .57s; }
.step-card:nth-child(6){ animation-delay: .70s; }
@keyframes stepRise{
  from{ opacity:0; transform: translateY(28px) rotateX(-18deg) scale(.9); }
  to  { opacity:1; transform: translateY(0)    rotateX(0)      scale(1); }
}

/* The step-number becomes a 3D orb with rotating energy halos */
.step-card .step-number{
  position: relative !important;
  width: 64px !important; height: 64px !important;
  margin: 0 auto 18px !important;
  border-radius: 50% !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font-weight: 800 !important; font-size: 1.35rem !important; color: #fff !important;
  background:
    radial-gradient(circle at 30% 25%, #c7d2fe 0%, #818cf8 28%, #6366f1 55%, #4338ca 100%) !important;
  box-shadow:
    0 10px 28px -6px rgba(99,102,241,.7),
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 0 6px rgba(99,102,241,.10),
    0 0 30px -2px rgba(167,139,250,.55) !important;
  transform-style: preserve-3d !important;
  animation: stepOrbBob 4.5s ease-in-out infinite !important;
  z-index: 2;
}
.step-card:nth-child(1) .step-number{ animation-delay: 0s;    }
.step-card:nth-child(2) .step-number{ animation-delay: -.6s;  }
.step-card:nth-child(3) .step-number{ animation-delay: -1.2s; }
.step-card:nth-child(4) .step-number{ animation-delay: -1.8s; }
.step-card:nth-child(5) .step-number{ animation-delay: -2.4s; }
.step-card:nth-child(6) .step-number{ animation-delay: -3.0s; }

@keyframes stepOrbBob{
  0%,100% { transform: translateY(0) rotateY(0deg); }
  50%     { transform: translateY(-6px) rotateY(180deg); }
}

/* Outer pulsating ring (radar pulse) */
.step-card .step-number::before{
  content:'';
  position:absolute; inset:-10px;
  border-radius:50%;
  border: 2px solid rgba(167,139,250,.55);
  opacity: 0;
  animation: stepRadar 2.6s ease-out infinite;
  pointer-events:none;
}
.step-card:nth-child(1) .step-number::before{ animation-delay: .0s; }
.step-card:nth-child(2) .step-number::before{ animation-delay: .35s; }
.step-card:nth-child(3) .step-number::before{ animation-delay: .70s; }
.step-card:nth-child(4) .step-number::before{ animation-delay: 1.05s; }
.step-card:nth-child(5) .step-number::before{ animation-delay: 1.40s; }
.step-card:nth-child(6) .step-number::before{ animation-delay: 1.75s; }

@keyframes stepRadar{
  0%   { transform: scale(.85); opacity: .85; border-color: rgba(45,212,191,.85); }
  60%  { opacity: .25; border-color: rgba(167,139,250,.45); }
  100% { transform: scale(1.9);  opacity: 0;  border-color: rgba(99,102,241,0); }
}

/* Inner counter-rotating dashed orbit */
.step-card .step-number::after{
  content:'';
  position:absolute; inset:-4px;
  border-radius:50%;
  border: 1px dashed rgba(94,234,212,.45);
  pointer-events:none;
  animation: stepOrbit 9s linear infinite;
}
.step-card:nth-child(even) .step-number::after{ animation-direction: reverse; border-color: rgba(167,139,250,.45); }

@keyframes stepOrbit{
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* Step label & description: subtle glow on hover and shimmer on the title */
.step-card h3{
  position: relative;
  background: linear-gradient(90deg, #fff 0%, #c7d2fe 50%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: stepTitleSheen 6s linear infinite;
  display: inline-block;
  font-weight: 700;
}
@keyframes stepTitleSheen{
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hover: pop the whole card with a 3D tilt + sharper glow */
.step-card{ transition: transform .5s var(--ease-out-quint), filter .4s ease; }
.step-card:hover{
  transform: translateY(-6px) rotateX(4deg) scale(1.03);
  filter: drop-shadow(0 12px 28px rgba(99,102,241,.45));
}
.step-card:hover .step-number{
  box-shadow:
    0 16px 40px -6px rgba(167,139,250,.85),
    0 0 0 1px rgba(255,255,255,.28) inset,
    0 0 0 8px rgba(99,102,241,.18),
    0 0 60px -2px rgba(45,212,191,.6) !important;
}

/* Connector line: dual-tone with traveling gradient (next-level) */
.steps-grid::before{
  background: linear-gradient(90deg,
    rgba(45,212,191,0)   0%,
    rgba(45,212,191,.7) 8.333%,
    rgba(99,102,241,.85) 50%,
    rgba(167,139,250,.7) 91.667%,
    rgba(167,139,250,0)  100%) !important;
  height: 2px !important;
  filter: drop-shadow(0 0 8px rgba(99,102,241,.45)) !important;
}

/* Add a second pulse traveling behind the comet — staggered */
.steps-grid{ position: relative; }
.steps-grid > .step-comet-2{ display:none; }
.steps-grid::before, .steps-grid::after{ will-change: transform, background-position; }

/* Flying particles along the line (CSS-only, additional ::after-like layer
   using a sibling) — done via large outline pulse on connector */
@keyframes stepLinePulse{
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,.0); }
  50%     { box-shadow: 0 0 24px 3px rgba(99,102,241,.35); }
}

/* Sequential lighting wave: each orb brightens in turn forever */
@keyframes stepWave{
  0%, 100% { filter: brightness(1) saturate(1); }
  50%      { filter: brightness(1.35) saturate(1.4); }
}
.step-card:nth-child(1) .step-number{ animation: stepOrbBob 4.5s ease-in-out infinite, stepWave 6s ease-in-out infinite; animation-delay: 0s,    0s;   }
.step-card:nth-child(2) .step-number{ animation: stepOrbBob 4.5s ease-in-out infinite, stepWave 6s ease-in-out infinite; animation-delay: -.6s,  1s;   }
.step-card:nth-child(3) .step-number{ animation: stepOrbBob 4.5s ease-in-out infinite, stepWave 6s ease-in-out infinite; animation-delay: -1.2s, 2s;   }
.step-card:nth-child(4) .step-number{ animation: stepOrbBob 4.5s ease-in-out infinite, stepWave 6s ease-in-out infinite; animation-delay: -1.8s, 3s;   }
.step-card:nth-child(5) .step-number{ animation: stepOrbBob 4.5s ease-in-out infinite, stepWave 6s ease-in-out infinite; animation-delay: -2.4s, 4s;   }
.step-card:nth-child(6) .step-number{ animation: stepOrbBob 4.5s ease-in-out infinite, stepWave 6s ease-in-out infinite; animation-delay: -3.0s, 5s;   }

/* Reduce on small screens */
@media (max-width: 1100px){
  .step-card .step-number::before{ animation: none; opacity: 0; }
  .step-card .step-number::after { animation-duration: 14s; }
}
@media (prefers-reduced-motion: reduce){
  .step-card, .step-card .step-number,
  .step-card .step-number::before, .step-card .step-number::after,
  .step-card h3{ animation: none !important; }
}

/* ============================================
   V22 — Hero: zero top gap + next-gen logo animation
   (radar pulses + orbital rings + 3D bob, matching steps style)
   ============================================ */

/* Pull hero up under the navbar (transparent nav) — title appears at the very top */
html body section.hero{
  padding-top: 8px !important;
  padding-bottom: 32px !important;
}
html body section.hero > .hero-content{
  padding-top: calc(var(--nav-height, 64px) + 4px) !important;
}
@media (max-width: 640px){
  html body section.hero{ padding-top: 4px !important; padding-bottom: 24px !important; }
  html body section.hero > .hero-content{ padding-top: calc(var(--nav-height, 64px) + 2px) !important; }
}

/* Override v20 rings (which were huge and visible as empty circles) */
.hero-content::before,
.hero-content::after{ display: none !important; }

/* Hero-logo: premium next-gen 3D orb with radar pulses + dual orbital rings */
.hero-logo,
.hero .hero-logo,
.hero-content .hero-logo{
  position: relative !important;
  width: 78px !important; height: 78px !important;
  margin: 0 auto 14px !important;
  border-radius: 20px !important;
  display: block !important;
  transform-style: preserve-3d !important;
  animation: heroLogoFloat3D 6s ease-in-out infinite !important;
  box-shadow:
    0 14px 40px -10px rgba(99,102,241,.55),
    0 0 0 1px rgba(255,255,255,.1),
    0 0 60px -10px rgba(45,212,191,.4) !important;
  z-index: 2 !important;
  isolation: isolate;
}

/* Wrap the logo in pseudo-rings using a positioned container.
   Since .hero-logo is an <img>, we use a parent helper via .hero-content.
   We add the pulses around the logo via two extra layers using inset shadows. */

/* Radar pulse 1 (teal) */
.hero-logo::before, .hero-logo::after{ display:none; }
.hero .hero-content{ position: relative !important; }

/* Build the rings using stacked box-shadow halos that pulse */
.hero-logo,
.hero .hero-logo{
  /* Override v20: animation already set above, keep filter clean */
  filter: drop-shadow(0 0 18px rgba(99,102,241,.35));
  animation: heroLogoFloat3D 6s ease-in-out infinite, heroLogoHalo 3s ease-in-out infinite !important;
}

@keyframes heroLogoHalo{
  0%, 100% {
    box-shadow:
      0 14px 40px -10px rgba(99,102,241,.55),
      0 0 0 1px rgba(255,255,255,.1),
      0 0 0 0 rgba(45,212,191,.55),
      0 0 0 0 rgba(167,139,250,.45);
  }
  50% {
    box-shadow:
      0 22px 60px -10px rgba(167,139,250,.7),
      0 0 0 1px rgba(255,255,255,.18),
      0 0 0 12px rgba(45,212,191,.0),
      0 0 0 24px rgba(167,139,250,.0);
  }
  100%{
    /* second pulse stage handled implicitly in keyframe loop */
  }
}

/* True radar via a sibling ::after on the wrapping <h1>'s previous-sibling
   trick is messy on <img>; instead we use the .hero-content::before/::after
   we just hid for the gap — re-enable as TIGHT pulses centered on the logo. */
.hero .hero-content::before,
.hero .hero-content::after{
  display: block !important;
  content:'' !important;
  position: absolute !important;
  top: calc(var(--nav-height, 64px) + 6px) !important; /* matches new padding-top + logo margin */
  left: 50% !important;
  width: 72px !important; height: 72px !important;
  border-radius: 20px !important;
  border: 2px solid rgba(45,212,191,.6) !important;
  transform: translateX(-50%) scale(1) !important;
  pointer-events: none !important;
  opacity: 0 !important;
  animation: heroRadarPulse 2.6s ease-out infinite !important;
  z-index: 1 !important;
  background: transparent !important;
}
.hero .hero-content::after{
  border-color: rgba(167,139,250,.55) !important;
  animation-delay: 1.3s !important;
}
@keyframes heroRadarPulse{
  0%   { transform: translateX(-50%) scale(.85); opacity: .85; }
  60%  { opacity: .25; }
  100% { transform: translateX(-50%) scale(2.4);  opacity: 0;   }
}

/* Make sure h1/subtitle/buttons sit ABOVE the radar layers */
.hero .hero-content > *{ position: relative; z-index: 2 !important; }

/* Hover: extra tilt */
.hero-logo:hover,
.hero .hero-logo:hover{
  transform: scale(1.08) rotateY(10deg) rotateX(-5deg) !important;
}

/* ============================================
   V25 — CRITICAL FIX: glow-orb must be absolutely positioned.
   `.hero > *` rule was overriding `.glow-orb { position: absolute }`,
   causing two 600px+500px blocks to stack and push hero-content 1100px down.
   ============================================ */
.glow-orb,
.hero .glow-orb,
.hero > .glow-orb,
section.hero .glow-orb{
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* ============================================
   V26 — Cinematic hero motion: word reveal, layered logo,
   smoother glow + reduced-motion respect
   ============================================ */

/* Container is needed for stagger to work. JS will split the H1 into spans
   .word with per-word delay. We just provide the keyframes + base styles. */
.hero h1 .word{
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) scale(.96) rotateX(-25deg);
  filter: blur(8px);
  transform-origin: 50% 100%;
  animation: wordReveal .9s cubic-bezier(.22,1,.36,1) forwards;
  will-change: transform, opacity, filter;
}
.hero h1 .word.spacer{ width: .35em; }
@keyframes wordReveal{
  0%   { opacity:0; transform: translateY(28px) scale(.96) rotateX(-25deg); filter: blur(8px); }
  60%  { opacity:1; filter: blur(0); }
  100% { opacity:1; transform: translateY(0)    scale(1)   rotateX(0);     filter: blur(0); }
}

/* Subtitle, buttons, metrics: cascade in after the H1 finishes */
.hero .hero-subtitle{ animation: heroFadeUp 1.1s .9s cubic-bezier(.22,1,.36,1) both; }
.hero .hero-buttons { animation: heroFadeUp 1.0s 1.15s cubic-bezier(.22,1,.36,1) both; }
.hero .hero-metrics { animation: heroFadeUp 1.0s 1.40s cubic-bezier(.22,1,.36,1) both; }
.hero .hero-logo    { animation:
    heroLogoEntrance 1.4s cubic-bezier(.22,1,.36,1) both,
    heroLogoFloat3D 7s 1.6s ease-in-out infinite,
    heroLogoHalo    3.5s 1.6s ease-in-out infinite !important; }
@keyframes heroFadeUp{
  from{ opacity:0; transform: translateY(22px); filter: blur(6px); }
  to  { opacity:1; transform: translateY(0);    filter: blur(0); }
}
@keyframes heroLogoEntrance{
  0%   { opacity:0; transform: translateY(-12px) scale(.6) rotateY(-180deg); filter: blur(10px); }
  60%  { opacity:1; filter: blur(0); }
  100% { opacity:1; transform: translateY(0) scale(1) rotateY(0deg); filter: blur(0); }
}

/* Metric numbers: slower, smoother counters with subtle glow */
.hero-metric .hm-num{
  background: linear-gradient(180deg, #e0f2fe 0%, #93c5fd 60%, #818cf8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 0 30px rgba(99,102,241,.0);
  transition: filter .3s ease;
}
.hero-metric:hover .hm-num{ filter: brightness(1.15) drop-shadow(0 0 12px rgba(99,102,241,.5)); }

/* Hero-content stagger: keep V20 rings hidden, but allow native motion */
.hero-content > *{ opacity: 1; }

/* Counter subtle scale-in when triggered by IntersectionObserver */
.hero-metric{
  animation: metricCard 1s 1.4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes metricCard{
  from{ opacity:0; transform: translateY(18px) scale(.96); }
  to  { opacity:1; transform: translateY(0)    scale(1); }
}

/* Reduced motion: kill all of the above */
@media (prefers-reduced-motion: reduce){
  .hero h1 .word,
  .hero .hero-subtitle,
  .hero .hero-buttons,
  .hero .hero-metrics,
  .hero .hero-logo,
  .hero-metric{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* V26 — logo parallax custom-prop helper. Wraps the float animation so mouse parallax
   adds to the existing motion without overriding it. We add a tiny translate via
   custom properties --mx / --my (set by JS on .hero-logo). */
.hero .hero-logo{
  --mx: 0px;
  --my: 0px;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
@keyframes heroLogoFloat3D{
  0%, 100% { transform: translate3d(var(--mx,0px), calc(var(--my,0px) + 0px),  0) rotateX(0deg)  rotateY(0deg)  scale(1); }
  25%      { transform: translate3d(var(--mx,0px), calc(var(--my,0px) - 8px),  0) rotateX(4deg)  rotateY(-3deg) scale(1.02); }
  50%      { transform: translate3d(var(--mx,0px), calc(var(--my,0px) - 12px), 0) rotateX(0deg)  rotateY(0deg)  scale(1.04); }
  75%      { transform: translate3d(var(--mx,0px), calc(var(--my,0px) - 6px),  0) rotateX(-4deg) rotateY(3deg)  scale(1.02); }
}

/* ============================================
   V27 — Industry cards: exclusive accordion,
   futuristic expand, no sibling stretch
   ============================================ */

/* Grid: do NOT stretch siblings vertically when one expands.
   This is the root cause of "neighbour cards opening empty". */
.industry-grid{
  align-items: start !important;
}
.industry-card{
  align-self: start !important;
  transform-origin: 50% 30%;
  transition:
    transform .55s cubic-bezier(.22,1,.36,1),
    border-color .35s ease,
    box-shadow .55s cubic-bezier(.22,1,.36,1),
    background .4s ease;
  will-change: transform, box-shadow;
}

/* Replace max-height with grid-template-rows trick — buttery, height-aware,
   no over/undershoot, no JS measuring required. */
.industry-card .ic-details{
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-4px);
  transition:
    grid-template-rows .55s cubic-bezier(.22,1,.36,1),
    opacity .35s ease .05s,
    margin-top .4s cubic-bezier(.22,1,.36,1),
    transform .45s cubic-bezier(.22,1,.36,1);
}
.industry-card .ic-details > *{ min-height: 0; }
.industry-card .ic-details::before{
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 12px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(45,212,191,.5) 30%,
    rgba(99,102,241,.5) 70%,
    transparent 100%);
  opacity: 0;
  transition: opacity .4s ease .1s;
  grid-column: 1 / -1;
}
.industry-card.expanded .ic-details{
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
  transform: translateY(0);
}
.industry-card.expanded .ic-details::before{ opacity: 1; }

/* Inner content cascade — fade up with stagger when expanded */
.industry-card .ic-details p,
.industry-card .ic-details .ic-link{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.industry-card.expanded .ic-details p{
  opacity: 1; transform: translateY(0);
  transition-delay: .12s;
}
.industry-card.expanded .ic-details .ic-link{
  opacity: 1; transform: translateY(0);
  transition-delay: .22s;
}

/* Expanded card: futuristic accent — animated gradient border, lift, glow */
.industry-card.expanded{
  transform: translateY(-3px) scale(1.015);
  border-color: transparent !important;
  background: linear-gradient(155deg, rgba(28, 35, 68, 0.85) 0%, rgba(14, 18, 36, 0.85) 100%);
  box-shadow:
    0 0 0 1px rgba(45,212,191,.18) inset,
    0 28px 70px -24px rgba(99,102,241,.65),
    0 12px 32px -16px rgba(45,212,191,.5);
  z-index: 2;
}
.industry-card.expanded::before{
  opacity: 1 !important;
  background: linear-gradient(135deg,
    rgba(45,212,191,.9),
    rgba(99,102,241,.8),
    rgba(167,139,250,.9),
    rgba(45,212,191,.9));
  background-size: 300% 300%;
  animation: icBorderFlow 5s linear infinite;
}
@keyframes icBorderFlow{
  0%   { background-position:   0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Expanded card: sweeping scanline */
.industry-card.expanded::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(45,212,191,.18) 48%,
    rgba(99,102,241,.16) 52%,
    transparent 70%);
  background-size: 220% 100%;
  background-position: -120% 0;
  animation: icScan 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes icScan{
  0%, 100% { background-position: -120% 0; }
  50%      { background-position:  120% 0; }
}

/* Icon shines when expanded */
.industry-card.expanded .ic-icon{
  background: linear-gradient(135deg, rgba(45,212,191,.42), rgba(99,102,241,.42));
  color: #5eead4;
  box-shadow: 0 0 20px -4px rgba(45,212,191,.6);
  transform: scale(1.06);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, background .4s ease;
}
.industry-card .ic-icon{
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, background .4s ease;
}

/* Disable hover-tilt while expanded so the visual is calm and readable */
.industry-card.expanded:hover{
  transform: translateY(-3px) scale(1.015);
}

/* Subtle hint affordance: a small chevron at top-right that rotates on expand */
.industry-card{ }
.industry-card::after{
  /* placeholder for non-expanded; real :after is overridden when expanded */
}

/* Reduced motion: no fancy animations, just opacity */
@media (prefers-reduced-motion: reduce){
  .industry-card,
  .industry-card .ic-details,
  .industry-card .ic-details p,
  .industry-card .ic-details .ic-link,
  .industry-card.expanded::after,
  .industry-card.expanded::before{
    transition: opacity .2s ease !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ============================================
   V28 — Mobile horizontal-overflow lock,
   cost-saving overlap fix, contrast fix
   ============================================ */

/* 1) Kill any stray horizontal scroll on mobile / fixed-position descendants.
      `overflow-x: clip` traps even position:fixed children, unlike `hidden`. */
html, body{
  overflow-x: clip !important;
  max-width: 100% !important;
}
@supports not (overflow-x: clip){
  html, body{ overflow-x: hidden !important; }
}

/* Hero / sections must clip their decorative orbs/canvases on mobile */
.hero,
.section,
section,
.cta-section,
.footer{
  overflow-x: clip;
  max-width: 100vw;
}
@supports not (overflow-x: clip){
  .hero, .section, section, .cta-section, .footer{ overflow-x: hidden; }
}

/* The global constellation must be width:100% (visual viewport) instead of 100vw,
   because 100vw includes the scrollbar width on desktop and can cause horizontal
   overflow on mobile when a vertical scrollbar exists. */
#global-constellation{
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Marquee: ensure it never scrolls the page horizontally */
.marquee, .marquee-wrapper, .marquee-container{
  overflow: hidden !important;
  max-width: 100%;
}

/* 2) Cost-saving overlap fix — the V7 rule was designed for a stand-alone block
      element (centered banner). It got applied also to an inline <span>/<em> pair
      inside a <li>, producing two overlapping translucent pills.
      Scope the banner styling, then provide proper inline pill styling for the li. */

/* Banner-level saving callout (when used directly under .cost-card or as div) */
div.cost-saving,
section.cost-saving{
  margin: 10px auto 0;
  max-width: 980px;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20,184,166,.14), rgba(99,102,241,.14));
  border: 1px solid rgba(20,184,166,.3);
  color: #e2e8f0;
  font-weight: 600;
}

/* Inline saving row inside a list item */
.cost-saving-row{
  list-style: none;
  margin: 14px -8px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20,184,166,.16), rgba(99,102,241,.16));
  border: 1px solid rgba(20,184,166,.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.cost-saving-row::marker{ content: ""; }
.cost-saving-row .cost-saving{
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  text-align: left;
  color: #ccfbf1;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  font-style: normal;
  flex: 1 1 auto;
  min-width: 0;
}
.cost-saving-row em.cost-saving{
  text-align: right;
  color: #14b8a6;
  font-weight: 800;
  font-size: 1.05rem;
  font-style: normal;
  flex: 0 0 auto;
}

/* Light section: ensure the saving row is readable on white background */
.section-light .cost-saving-row{
  background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(99,102,241,.10));
  border: 1px solid rgba(20,184,166,.45);
}
.section-light .cost-saving-row .cost-saving{
  color: #0f766e;
}
.section-light .cost-saving-row em.cost-saving{
  color: #0d9488;
}

/* 3) Cost-card list contrast on light section */
.section-light .cost-breakdown,
.section-light .cost-breakdown li{
  color: #475569;
}
.section-light .cost-breakdown li span{ color: #334155; }
.section-light .cost-breakdown li em{ color: #0f172a; font-weight: 600; }
.section-light .cost-detail{ color: #475569; }

/* Mobile tweaks: avoid breakdown items wrapping awkwardly */
@media (max-width: 480px){
  .cost-card{ padding: 22px 18px; }
  .cost-amount{ font-size: 2.4rem; }
  .cost-breakdown li{ display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
  .cost-breakdown li span{ flex: 1 1 auto; min-width: 0; }
  .cost-breakdown li em{ flex: 0 0 auto; font-style: normal; }
  .cost-saving-row{ margin-left: 0; margin-right: 0; }
}

/* 4) Industry-card grid: prevent any horizontal overflow on tiny screens */
@media (max-width: 480px){
  .industry-grid{ grid-template-columns: 1fr !important; gap: 12px; }
}
