@import url('fonts.css');

/* ==========================================================================
   NITIN SYSTEMS - MASTER STAGING STYLESHEET (100% ISOLATED WORKING PIPELINE)
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Core Colors */
  --ink: #0F172A;
  --ink-light: #1E293B;
  --ink-soft: #475569;
  --ink-muted: #64748B;
  
  --cobalt: #2563EB;
  --cobalt-dark: #1D4ED8;
  --cobalt-light: #EFF6FF;
  --cobalt-border: rgba(37, 99, 235, 0.25);
  --cobalt-glow: rgba(37, 99, 235, 0.15);
  
  --sky-accent: #38BDF8;
  --emerald: #059669;
  --emerald-light: #D1FAE5;
  --emerald-border: #A7F3D0;
  --rose: #E11D48;
  --rose-light: #FFF1F2;
  --rose-border: #FECDD3;

  /* Surfaces & Canvas */
  --paper: #FFFFFF;
  --cloud: #F8FAFC;
  --slate-subtle: #F1F5F9;
  --canvas-bg: linear-gradient(135deg, #EAF3FC 0%, #FFFFFF 100%);
  --line: #E2E8F0;
  --line-strong: #CBD5E1;

  /* Neo-Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-hover: rgba(37, 99, 235, 0.35);
  --glass-blur: blur(16px);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  --glass-shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.12);

  /* Typography Scale */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --max-width: 1152px;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --transition-smooth: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  --transition-spring: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}

img, button, a {
  -webkit-touch-callout: none !important;
}

html {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: #FAFAFA;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.text-accent {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--sky-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   4. LAYOUT & CONTAINER SYSTEM
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin-top: 0.75rem;
  letter-spacing: -0.02em;
}

.section-title.light { color: #FFFFFF; }

.section-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.section-sub.light { color: rgba(255, 255, 255, 0.75); }

.grid { display: grid; gap: 1.25rem; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

.brand-logo-box {
  width: 34px;
  height: 34px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 4px;
  flex-shrink: 0;
}
.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   5. PATTERNS & BACKGROUNDS
   ========================================================================== */
.bg-pattern-grid-light {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   6. MOTION SYSTEM (CHOREOGRAPHED HERO ENTRANCE + BALLOON LEVITATION)
   ========================================================================== */

/* ── Hero Entrance Keyframes (Zero Premature Frame 0 Pop) ── */
@keyframes heroNavDrop {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroBadgeEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleFloat {
  0% { opacity: 0; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroSubFloat {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroCtaFloat {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroConsoleExpand {
  0% { opacity: 0; transform: translateY(36px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroGlowBloom {
  0% { opacity: 0; transform: translateX(-50%) scale(0.7); }
  100% { opacity: 0.95; transform: translateX(-50%) scale(1); }
}

/* Cleaned legacy keyframes */

/* -- Hero Stagger Classes -- */
.animate-hero-nav {
  animation: heroNavDrop 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.animate-hero-title {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

/* Top Scroll Progress Bar (Safe, Fixed, Hardware-Accelerated) */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--cobalt, #0052FF);
  transform-origin: 0% 50%;
  transform: scaleX(0);
  z-index: 99999;
  pointer-events: none;
  transition: transform 0.04s ease-out;
}

/* Centralized Hero Headline Typography Scale */
.hero-title-home {
  font-size: clamp(2.05rem, 4.3vw, 3.35rem);
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-single {
  font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-title-about {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.hero-title-system {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.animate-hero-sub {
  animation: heroSubFloat 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both !important;
}

.animate-hero-cta {
  animation: heroCtaFloat 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both !important;
}

.animate-hero-console {
  animation: heroConsoleExpand 1.55s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both !important;
}

.animate-hero-glow {
  animation: heroGlowBloom 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* Standalone Badge Pills (Lower on page) */


/* ── Wave Airflow Scroll Reveals ── */
.wave-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.wave-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.wave-delay-1 { transition-delay: 0.08s; }
.wave-delay-2 { transition-delay: 0.16s; }
.wave-delay-3 { transition-delay: 0.24s; }
.wave-delay-4 { transition-delay: 0.32s; }
.wave-delay-5 { transition-delay: 0.40s; }
.wave-delay-6 { transition-delay: 0.48s; }

/* -- Specular Gradient Scroll Sweep -- */
.shimmer-sweep-title {
  opacity: 0;
  transform: translateY(24px);
  background: linear-gradient(105deg, #0F172A 0%, #0F172A 35%, #2563EB 50%, #38BDF8 58%, #0F172A 70%, #0F172A 100%);
  background-size: 260% 100%;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, background-position;
}

.shimmer-sweep-title.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: specularShimmer 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes specularShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.animate-ping { animation: ping 1.4s cubic-bezier(0, 0.2, 0.8, 1) infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.raycast-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.raycast-hover:hover { transform: scale(1.025) translateY(-2px); }
.raycast-hover:active { transform: scale(0.98); }

/* ==========================================================================
   7. COMPONENTS (NAVBAR, CARDS, BUTTONS, MARQUEE, MODALS, FOOTER)
   ========================================================================== */

/* ── Frosted Glow Navbar ── */
#navbar {
  position: fixed;
  top: 0.75rem;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  padding: 0 1.25rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: transparent !important;
}

#navbar-inner {
  width: 100%;
  max-width: var(--max-width);
  height: 52px;
  max-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: auto;
}

#navbar-inner.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 36px -8px rgba(37, 99, 235, 0.15), 0 1px 4px rgba(0, 0, 0, 0.06);
  border-color: rgba(203, 213, 225, 0.95);
}

.nav-brand-wrap,
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.brand-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(241, 245, 249, 0.85);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 232, 240, 0.8);
  height: 38px;
  box-sizing: border-box;
}

.nav-link,
.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.nav-link.active,
.nav-item.active {
  color: var(--cobalt);
  background: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Systems Navigation Dropdown Sub-menu ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

/* Precise vertical hover bridge constrained strictly to the Systems trigger button */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 310px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  pointer-events: auto !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dropdown-item:hover {
  background: var(--cobalt-light);
  transform: translateX(2px);
}

.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
  background: var(--cobalt);
  color: #FFFFFF;
  border-color: var(--cobalt);
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
}

.dropdown-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-item-desc {
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 0.25rem 0;
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hamburger-btn {
  display: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start;
}

/* Founder Profile Card (About Page) */
.founder-profile-box {
  padding: 1.75rem 1.75rem 2rem 1.75rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.founder-photo-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  margin: 0 auto 1.25rem auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.founder-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 900px) {
  #navbar {
    top: 0.5rem;
    padding: 0 0.75rem;
    background: transparent !important;
  }

  #navbar-inner {
    padding: 0 0.85rem;
    height: 48px;
    max-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links-wrap {
    display: none !important;
  }

  .nav-actions-wrap .btn {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1.25rem;
    border-radius: var(--radius-sm);
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .hamburger-btn:hover {
    background: #FFFFFF;
    border-color: var(--cobalt);
    color: var(--cobalt);
  }

  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  #hero,
  .section:first-of-type {
    padding-top: 6.5rem !important;
    padding-bottom: 2.75rem !important;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.88rem;
  }
  
  .brand-status {
    font-size: 0.58rem;
  }

  .brand-logo-box {
    width: 28px;
    height: 28px;
  }

  #hero,
  .section:first-of-type {
    padding-top: 5.75rem !important;
    padding-bottom: 2.25rem !important;
  }
}

/* ── Floating Frosted-Glass Island Mobile Navigation ── */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-/* blur removed for crisp rendering */
  -webkit-backdrop-/* blur removed for crisp rendering */
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer,
#mobile-drawer {
  position: fixed;
  top: 4.25rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1100;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-sizing: border-box;
}

.mobile-drawer.open,
#mobile-drawer.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  display: flex;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.mobile-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cloud);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--cobalt);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cobalt);
  background: var(--cobalt-light);
}

.mobile-drawer-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

/* ── 3D Neo-Glass Cards & Silky Smooth Spring Hover Float ── */
.glass-card,
.stage-card,
.capability-card,
.insight-topic-card,
.founder-profile-box {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  will-change: transform, box-shadow, border-color;
}

.glass-card:hover,
.glass-card.wave-reveal.in-view:hover,
.stage-card:hover,
.capability-card:hover,
.insight-topic-card:hover,
.founder-profile-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.14), 0 0 0 1px rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.4);
  z-index: 5;
}

.glass-card .spotlight {
  pointer-events: none;
  position: absolute;
  inset: -1px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: inherit;
}

.glass-card:hover .spotlight { opacity: 1; }

.glass-card > .card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* ── Unified Capsule Pill Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--cobalt);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--cobalt-dark);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary .arrow-icon { transition: transform 0.25s ease; }
.btn-primary:hover .arrow-icon { transform: translateX(4px); }

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  border-color: var(--cobalt);
  color: var(--cobalt) !important;
  background: var(--cobalt-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

/* Hero CTA Responsive Cluster */
.hero-cta-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .hero-cta-cluster {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
  .hero-cta-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }
}

/* Badges and Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cobalt);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.badge-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}

/* ── Tool Stack Marquee (Strict Confined Sizing & 80px Fade Masks) ── */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
}

@media (max-width: 640px) {
  .marquee-container {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 36px, black calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 36px, black calc(100% - 36px), transparent 100%);
  }
}

/* ── Operational Pipeline Console Flow ── */
.pipeline-flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 1.25rem;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}

.pipeline-node {
  flex: 1;
  min-width: 130px;
  position: relative !important;
  z-index: 2 !important;
  background: #0B1120 !important;
  padding: 0.95rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, border-color, box-shadow;
  isolation: isolate;
}

.pipeline-node:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.6);
}

.pipeline-node-done {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.pipeline-node-done:hover {
  border-color: rgba(52, 211, 153, 0.8);
}

.pipeline-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.pipeline-node-icon {
  font-size: 1.05rem;
}

.pipeline-badge {
  font-size: 0.54rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.pipeline-badge-done {
  color: #34D399;
  background: rgba(52, 211, 153, 0.2);
}

.pipeline-node-step {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: #94A3B8;
  text-transform: uppercase;
}

.pipeline-step-done {
  color: #A7F3D0;
}

.pipeline-node-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 0.2rem;
  white-space: normal;
  line-height: 1.3;
}

.pipeline-title-done {
  color: #34D399;
}

.pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(56, 189, 248, 0.6);
  flex-shrink: 0;
  padding: 0 0.1rem;
  animation: pulseConnector 2.5s infinite ease-in-out;
}

@keyframes pulseConnector {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(2px); color: #38BDF8; }
}

@media (max-width: 768px) {
  .workflow-console {
    margin: 0 auto !important;
    width: calc(100% - 1.5rem) !important;
    max-width: 100% !important;
    border-radius: var(--radius-lg) !important;
  }
  .topology-mode-bar {
    padding: 0 0.75rem !important;
    margin-bottom: 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .topology-tabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.35rem !important;
    padding: 0.3rem !important;
  }
  .topology-tab-btn {
    text-align: center !important;
    font-size: 0.65rem !important;
    padding: 0.45rem 0.35rem !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
  .pipeline-flow-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    padding: 1.15rem 1rem !important;
  }
  .pipeline-node {
    width: 100% !important;
    min-width: 100% !important;
    padding: 0.85rem 1rem !important;
  }
  .pipeline-connector {
    display: flex !important;
    justify-content: center !important;
    transform: rotate(90deg) !important;
    padding: 0.15rem 0 !important;
    opacity: 0.6 !important;
  }
  .pipeline-svg-stream {
    display: none !important;
  }
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tool-marquee-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.15rem;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-marquee-item img,
.tool-marquee-item svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.tool-marquee-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── Workflow Console ── */
.workflow-console {
  background: var(--ink);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  width: 100%;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.console-body { padding: 1.25rem; }

.console-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  text-align: center;
}

.console-node.active {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.1);
}

.console-node.success {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.08);
}

/* ── Accordion / FAQ ── */
.accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s ease;
  margin-bottom: 0.75rem;
}

.accordion-item:hover { border-color: var(--cobalt-border); }

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.accordion-btn .question {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.accordion-btn:hover .question { color: var(--cobalt); }

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cloud);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-size: 0.75rem;
}

.accordion-item.open .accordion-icon {
  background: var(--cobalt);
  color: #FFFFFF;
  border-color: var(--cobalt);
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.accordion-item.open .accordion-content {
  max-height: 320px;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ── Forms & Inputs ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.form-input, .form-textarea, .form-select {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #FFFFFF;
  font-size: 0.875rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* ── Modals & Certificate Lightbox Overlays ── */
.modal-overlay,
.lightbox-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 2000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
}

.modal-overlay.open,
.lightbox-overlay.open {
  display: flex !important;
}

.lightbox-card {
  position: relative;
  max-width: 860px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9);
  box-sizing: border-box;
  transform: scale(0.97);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  to { transform: scale(1); }
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.lightbox-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cloud);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.lightbox-img-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  padding: 2.25rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cloud);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .lightbox-overlay {
    padding: 0.75rem !important;
  }

  .lightbox-card {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
  }

  .lightbox-title {
    font-size: 0.95rem;
  }

  .lightbox-close-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .lightbox-img {
    max-height: 65vh;
  }
}

/* ── Clean Light Footer (ReactBD Top Gradient Radial with Nitin Systems Blue Touch) ── */
#footer,
footer {
  background: radial-gradient(125% 125% at 50% 10%, #FFFFFF 40%, #60a5fa 100%) !important;
  color: var(--ink-soft) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.75) !important;
  padding: 4rem 1.25rem 2.5rem 1.25rem !important;
  position: relative;
}

@media (max-width: 768px) {
  #footer,
  footer {
    background: radial-gradient(125% 125% at 50% 10%, #FFFFFF 45%, #93c5fd 100%) !important;
  }
}


#footer ul,
footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#footer li,
footer li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#footer a,
footer a {
  color: var(--ink-soft) !important;
  text-decoration: none !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

#footer a:hover,
footer a:hover {
  color: var(--cobalt) !important;
}

#footer h4,
footer h4 {
  color: var(--ink) !important;
}
/* ── PatternCraft Precision Circular Center Dot Pattern ── */
.pattern-dots-radial {
  position: relative;
}
.pattern-dots-radial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.12) 1.25px, transparent 1.25px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}


/* ==========================================================================
   REACTBD AUTHENTIC LIGHT THEME SYSTEM (CALIBRATED ULTRA-MINIMAL & CRISP)
   ========================================================================== */

/* 1. Light Sky Blue Glow (Whisper-Soft 6-8% Ambient Ceiling) */
.pattern-sky-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 50% -15%, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.04), transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(56, 189, 248, 0.05), transparent 45%);
}

@media (max-width: 768px) {
  .pattern-sky-glow {
    background-image: 
      radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.06), transparent 50%),
      radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.03), transparent 40%);
  }
}

/* 2. Precision Micro-Dotted Radial Canvas (Whisper Soft 7% Dot Opacity) */
.pattern-dots-radial {
  position: relative;
}
.pattern-dots-radial::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(100, 116, 139, 0.08) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 50%, transparent 100%);
  z-index: 0;
}

@media (max-width: 768px) {
  .pattern-dots-radial::before {
    background-image: radial-gradient(circle, rgba(100, 116, 139, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 40%, #000 40%, transparent 95%);
    mask-image: radial-gradient(ellipse 95% 80% at 50% 40%, #000 40%, transparent 95%);
  }
}

/* 3. Authentic ReactBD Dashed Center Fade Grid (#e7e5e4, 20px, composite mask) */
.pattern-reactbd-center-fade {
  position: relative;
  background-color: #FFFFFF !important;
}
.pattern-reactbd-center-fade::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, #e7e5e4 1px, transparent 1px),
    linear-gradient(to bottom, #e7e5e4 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;
  mask-image: 
    repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px),
    repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px),
    radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: 
    repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px),
    repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px),
    radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  z-index: 1;
}

/* 4. Authentic ReactBD Dashed Bottom Fade Grid */
.pattern-reactbd-bottom-fade {
  position: relative;
  background-color: #FFFFFF !important;
}
.pattern-reactbd-bottom-fade::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, #e7e5e4 1px, transparent 1px),
    linear-gradient(to bottom, #e7e5e4 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;
  mask-image: 
    repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px),
    repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px),
    radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%);
  -webkit-mask-image: 
    repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px),
    repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px),
    radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  z-index: 1;
}

/* 5. Authentic ReactBD Top Gradient Radial (Soft Airy Tint) */
.pattern-reactbd-top-radial {
  position: relative;
  background: radial-gradient(125% 125% at 50% 5%, #FFFFFF 65%, #EFF6FF 100%) !important;
}

/* 6. Authentic ReactBD Bottom Gradient Radial (Pre-Footer Horizon Floor) */
.pattern-reactbd-bottom-radial {
  position: relative;
  background: radial-gradient(125% 125% at 50% 98%, #FFFFFF 60%, #EFF6FF 100%) !important;
}

/* 7. Authentic ReactBD Blue Corner Glow (600px Studio Lighting, Behind Content z-index 0) */
.pattern-reactbd-corner-glow {
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF !important;
}
.pattern-reactbd-corner-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle 500px at 0% 150px, rgba(191, 219, 254, 0.25), transparent 70%),
    radial-gradient(circle 500px at 100% 150px, rgba(191, 219, 254, 0.25), transparent 70%);
  z-index: 0;
}

/* 8. Soft Blue Radial (Top Center Spotlight) */
.pattern-reactbd-soft-blue-radial {
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF !important;
}
.pattern-reactbd-soft-blue-radial::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at top center, rgba(59, 130, 246, 0.06), transparent 70%);
  z-index: 0;
}

/* 9. Softened Seamless Center-Fade Section Dividers */
.section-divider-soft {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(226, 232, 240, 0.6) 50%, transparent 100%);
  border: none;
  margin: 0;
}

/* Mobile Hero Spacing Fix */
@media (max-width: 768px) {
  .hero-mobile-adjust {
    min-height: auto !important;
    padding-top: 6.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .workflow-console {
    margin-top: 1.75rem !important;
    margin-bottom: 1.5rem !important;
  }
}

/* Mobile Terminal & Flow Console Header Fix (Unbroken Single Line + 2-Row Stack) */
@media (max-width: 640px) {
  .flow-console-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
  }
  .flow-console-header .console-title-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
  }
  .flow-console-header .console-title-text {
    font-size: clamp(0.64rem, 2.7vw, 0.72rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-left: 0.25rem !important;
  }
  .flow-console-header .console-status-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding-left: 0.15rem !important;
  }
}



/* === MASTER PRODUCTION-GRADE VISUAL & MOTION ARCHITECTURE === */

/* 1. Eliminate Text Jitter / Shivering on Pill Badges */
.badge-pill {
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
  
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}





/* 2. Rich Light Horizon Background (Zero Blinding White Void) */
#hero,
.section:first-of-type,
.orbital-hero-section,
.systems-hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FD 40%, #E2EEFC 80%, #D6E8FC 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* 3. Quiet Architectural Dotted Matrix (Reduced by 40% - No moire vibration) */
.pattern-dots-radial,
.bg-pattern-dots {
  background-image: radial-gradient(circle, rgba(30, 58, 138, 0.09) 1.1px, transparent 1.1px) !important;
  background-size: 26px 26px !important;
}

/* 4. Ambient Horizon Flow Aura */
.ambient-glow {
  position: absolute !important;
  top: -10% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 900px !important;
  height: 520px !important;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(56, 189, 248, 0.28) 0%, rgba(37, 99, 235, 0.14) 50%, transparent 80%) !important;
  filter: blur(45px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* 5. Kinetic Amber / Copper Operational Pipeline Engine */
.workflow-console {
  border: 1px solid rgba(234, 88, 12, 0.3) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45), 0 0 35px -8px rgba(234, 88, 12, 0.2) !important;
}

@keyframes dataPacketStream {
  0% {
    opacity: 0.2;
    color: #64748B;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    color: #F97316;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8));
  }
  100% {
    opacity: 0.2;
    color: #64748B;
    transform: scale(0.95);
  }
}

.pipeline-connector svg {
  animation: dataPacketStream 2.6s infinite ease-in-out !important;
}
.pipeline-connector:nth-of-type(1) svg { animation-delay: 0s !important; }
.pipeline-connector:nth-of-type(2) svg { animation-delay: 0.65s !important; }
.pipeline-connector:nth-of-type(3) svg { animation-delay: 1.3s !important; }
.pipeline-connector:nth-of-type(4) svg { animation-delay: 1.95s !important; }

/* 6. Systems Library Dashed Blueprint Grid & Tactile Pills */
.systems-blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.25) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 35%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.system-filter-pill {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(203, 213, 225, 0.95) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.system-filter-pill:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12) !important;
  border-color: var(--cobalt) !important;
}


/* ==========================================================================
   MASTER KINETIC ENGINE & PRECISION DASHBOARD STYLING
   ========================================================================== */

/* (Pruned legacy floatBadgeSmooth - Unified into floatSlowGemini) */

/* 2. Razor-Thin Top Scroll Progress Gauge */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 50%, #EA580C 100%);
  z-index: 9999;
  width: 0%;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* 3. Interactive Topology Mode Selector Tabs */
.topology-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.topology-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.topology-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.topology-tab-btn.active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.topology-tab-btn:hover:not(.active) {
  color: var(--ink);
}

/* 4. Telemetry Terminal Inside Workflow Console */
.telemetry-terminal {
  background: #090D16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94A3B8;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.telemetry-log-output {
  max-height: 75px;
  overflow-y: auto;
  line-height: 1.6;
}

.btn-simulate-webhook {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.5);
  color: #FB923C;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-simulate-webhook:hover {
  background: rgba(234, 88, 12, 0.35);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-simulate-webhook:active {
  transform: scale(0.97);
}

/* 5. Live SVG Transit Spline on Desktop */
.pipeline-canvas-wrap {
  position: relative;
}

.pipeline-svg-stream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0 !important;
  opacity: 0.45;
}

@media (max-width: 768px) {
  .pipeline-svg-stream {
    display: none !important;
  }
}


/* ==========================================================================
   GEMINI-CALIBRATED LIQUID MOTION: FLOAT-SLOW & BIDIRECTIONAL AIR-WAVEFORM
   ========================================================================== */

/* 1. Pure Butter-Smooth Floating Badge (Zero Jitter / Zero Stutter) */
@keyframes floatSlowGemini {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float-slow {
  animation: floatSlowGemini 4.8s ease-in-out 1.4s infinite !important;
}



/* 2. Topology Mode Bar Load-Entrance */
.topology-mode-bar {
  animation: heroConsoleExpand 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

/* 3. Bidirectional Air-Waveform Text Physics (Apple / Linear / Gemini Canvas) */
.air-wave-target {
  opacity: 1 !important;
  -webkit-text-fill-color: initial !important;
  color: var(--ink, #0F172A) !important;
  word-break: keep-all;
  text-rendering: geometricPrecision;
}

.air-word-outer {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  white-space: nowrap;
  margin-right: 0.28em;
  padding-top: 0.05em;
  padding-bottom: 0.18em;
}

@media (max-width: 640px) {
  .hero-br {
    display: none;
  }
}

@keyframes heroAirWaveRise {
  0% {
    transform: translateY(115%) rotate(1.5deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0%) rotate(0deg);
    opacity: 1;
  }
}

/* 1. Universal Hero Headlines across ALL pages: Pure GPU wave rise from frame 0 */
h1.air-wave-target .air-word-inner {
  display: inline-block;
  color: var(--ink, #0F172A) !important;
  -webkit-text-fill-color: var(--ink, #0F172A) !important;
  animation: heroAirWaveRise 1.45s cubic-bezier(0.12, 1, 0.25, 1) both !important;
  will-change: transform, opacity;
}

/* Pure CSS Stagger Engine: Zero HTML inline variables needed */
h1.air-wave-target .air-word-outer:nth-of-type(1) .air-word-inner { animation-delay: 0.000s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(2) .air-word-inner { animation-delay: 0.075s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(3) .air-word-inner { animation-delay: 0.150s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(4) .air-word-inner { animation-delay: 0.225s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(5) .air-word-inner { animation-delay: 0.300s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(6) .air-word-inner { animation-delay: 0.375s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(7) .air-word-inner { animation-delay: 0.450s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(8) .air-word-inner { animation-delay: 0.525s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(9) .air-word-inner { animation-delay: 0.600s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(10) .air-word-inner { animation-delay: 0.675s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(11) .air-word-inner { animation-delay: 0.750s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(12) .air-word-inner { animation-delay: 0.825s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(13) .air-word-inner { animation-delay: 0.900s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(14) .air-word-inner { animation-delay: 0.975s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(15) .air-word-inner { animation-delay: 1.050s !important; }


/* 2. Universal Hero Gradient Words: Pure entrance wave and continuous specular shimmer */
h1.air-wave-target .air-word-inner.air-word-gradient {
  background: linear-gradient(115deg, #0F172A 5%, #2563EB 35%, #38BDF8 55%, #60A5FA 70%, #0F172A 95%) !important;
  background-size: 250% 100% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: heroAirWaveRise 1.45s cubic-bezier(0.12, 1, 0.25, 1) both,
             continuousSpecularShimmer 4.0s ease-in-out infinite alternate !important;
  will-change: transform, opacity, background-position;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Stagger cascade for gradient words: entrance delay + shimmer 0s */
h1.air-wave-target .air-word-outer:nth-of-type(1) .air-word-inner.air-word-gradient { animation-delay: 0.000s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(2) .air-word-inner.air-word-gradient { animation-delay: 0.075s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(3) .air-word-inner.air-word-gradient { animation-delay: 0.150s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(4) .air-word-inner.air-word-gradient { animation-delay: 0.225s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(5) .air-word-inner.air-word-gradient { animation-delay: 0.300s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(6) .air-word-inner.air-word-gradient { animation-delay: 0.375s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(7) .air-word-inner.air-word-gradient { animation-delay: 0.450s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(8) .air-word-inner.air-word-gradient { animation-delay: 0.525s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(9) .air-word-inner.air-word-gradient { animation-delay: 0.600s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(10) .air-word-inner.air-word-gradient { animation-delay: 0.675s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(11) .air-word-inner.air-word-gradient { animation-delay: 0.750s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(12) .air-word-inner.air-word-gradient { animation-delay: 0.825s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(13) .air-word-inner.air-word-gradient { animation-delay: 0.900s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(14) .air-word-inner.air-word-gradient { animation-delay: 0.975s, 0s !important; }
h1.air-wave-target .air-word-outer:nth-of-type(15) .air-word-inner.air-word-gradient { animation-delay: 1.050s, 0s !important; }


/* 3. Below-the-fold H2 elements retain scroll observer reveals */
h2.air-wave-target .air-word-inner,
section:not(#hero):not(:first-of-type) .air-word-inner {
  display: inline-block;
  color: var(--ink, #0F172A) !important;
  -webkit-text-fill-color: var(--ink, #0F172A) !important;
  transform: translateY(115%) rotate(1.5deg);
  opacity: 0;
  transition: transform 1.20s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  transition-delay: var(--air-delay, 0s);
}

h2.air-wave-target.is-visible .air-word-inner,
h2.air-wave-target.in-view .air-word-inner,
section:not(#hero):not(:first-of-type) .is-visible .air-word-inner,
section:not(#hero):not(:first-of-type) .in-view .air-word-inner {
  transform: translateY(0%) rotate(0deg) !important;
  opacity: 1 !important;
}

/* 4. Below-the-fold gradient elements */
h2.air-wave-target .air-word-inner.air-word-gradient,
section:not(#hero):not(:first-of-type) .air-word-inner.air-word-gradient {
  background: linear-gradient(115deg, #0F172A 5%, #2563EB 35%, #38BDF8 55%, #60A5FA 70%, #0F172A 95%) !important;
  background-size: 250% 100% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: continuousSpecularShimmer 3.2s ease-in-out infinite alternate !important;
  will-change: background-position;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

@keyframes continuousSpecularShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}


/* ==========================================================================
   UNIFIED PILL BADGE ARCHITECTURE: LOAD ENTRANCE + SILKY 60FPS FLOAT
   ========================================================================== */




/* Hero Badge Entrance Wrapper (fires smoothly on load as a unified wave) */
.animate-hero-badge,
.hero-badge-wrap {
  opacity: 0;
  will-change: transform, opacity;
  animation: heroBadgeEntrance 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both !important;
}

/* Global Pill Badge: Silky 60fps continuous float across all pages with zero font-jitter */
.badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
  animation: floatSlowGemini 4.8s ease-in-out 1.4s infinite !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.animate-float-slow {
  animation: floatSlowGemini 4.8s ease-in-out 1.4s infinite !important;
}

/* Section Header Badges in Lower Sections */
.section-header .badge-pill,
.reveal .badge-pill {
  animation: floatSlowGemini 4.8s ease-in-out infinite !important;
}


/* ==========================================================================
   ACCESSIBILITY & PREFERS-REDUCED-MOTION (WCAG 2.1)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-hero-badge,
  .animate-hero-h1,
  .animate-hero-sub,
  .animate-hero-cta,
  .animate-hero-nav,
  .hero-badge-dot,
  .animate-pulse,
  .wave-path,
  .pulse-ring,
  .marquee-track,
  .traveling-packet {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Standardized Mobile Footer Styles */
@media (max-width: 640px) {
  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0.75rem !important;
  }
  .footer-legal-pair {
    order: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
  }
  .footer-copyright {
    order: 2 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  .footer-desktop-sep {
    display: none !important;
  }
  .footer-back-to-top {
    order: 3 !important;
    margin-top: 0.25rem !important;
    display: inline-block !important;
  }
}
