/* ============================================================
   HimAI Labs — Premium Website CSS
   ============================================================ */

:root {
  --bg: #030407;
  --bg-2: #07090e;
  --bg-card: rgba(255, 255, 255, 0.015);
  --border: rgba(255, 255, 255, 0.06);
  --cyan: #22d3ee;
  --cyan-rgb: 34, 211, 238;
  --purple: #a855f7;
  --purple-rgb: 168, 85, 247;
  --green: #34d399;
  --pink: #f472b6;
  --orange: #fb923c;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --nav-h: 96px;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --stable-width: 140px; /* For typewriter */
}

/* ============================================================
   ELITE SILICON VALLEY UI REFINEMENTS
   ============================================================ */

/* Global Typography Compression */
h1, h2, h3, h4, .service-title, .fhp-title, .brand-logo-text {
  letter-spacing: -0.04em !important;
  font-weight: 700;
}

p, .service-desc, .footer-desc {
  letter-spacing: -0.012em;
  line-height: 1.6;
}

.section-tag, .badge-pill, .os-item, .search-kbd {
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Background Spotlight Overlay */
.global-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
              rgba(34, 211, 238, 0.05), 
              transparent 80%);
  transition: opacity 1s ease;
}

/* Bento Grid Foundations */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 24px;
}
.bento-card {
  grid-column: span 4;
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  background: rgba(10, 15, 30, 0.6);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-4px);
}
.bento-wide { grid-column: span 8; }
.bento-tall { grid-row: span 3; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}
::-moz-selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}

/* Custom SaaS Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(168, 85, 247, 0.3); }
.btn-primary span { position: relative; z-index: 1; }
.btn-full { width: 100%; justify-content: center; border-radius: 12px; padding: 16px; font-size: 1rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
  transform: translateY(-2px);
}
.btn-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: #fff;
}

/* ---- Section Shared ---- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  background: rgba(34, 211, 238, 0.08); /* cyan tailwind */
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 9, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.95), rgba(10, 14, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
  filter: invert(1) brightness(1.2) drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
  transition: filter 0.3s ease;
}
.brand-logo-image:hover {
  filter: invert(1) brightness(1.4) drop-shadow(0 0 18px rgba(34, 211, 238, 0.6));
}

.brand-logo-nav {
  width: 88px;
}

.brand-logo-footer {
  width: 168px;
}

.nav-links {
  display: flex; gap: 8px;
  margin: 0; padding: 0;
  list-style: none;
}
.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.btn-nav {
  margin-left: auto;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 50px;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
}
.btn-nav::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(168, 85, 247, 0.4));
  filter: blur(14px); opacity: 0; transition: opacity 0.4s; z-index: -1;
}
.btn-nav:hover::after { opacity: 1; }
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,212,255,0.3); }

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.nav-search-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-split .hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content-left {
  text-align: left;
  animation: fadeUp 0.9s ease both;
  max-width: 650px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 211, 238, 0.08); /* cyan */
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeUp 0.9s ease 0.1s both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease 0.2s both;
  min-height: 2.1em; /* Prevent layout jump during typing */
}

.typed-text {
  display: inline-block;
  min-width: var(--stable-width);
  text-align: left;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 44px;
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.9s ease 0.4s both;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.5s both;
}

.hero-visual-right {
  position: relative;
  perspective: 1000px;
}

.dashboard-mockup {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 14, 24, 0.6);
  padding: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.15);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
  backdrop-filter: blur(20px);
}
.dashboard-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}
.glow-backdrop {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.dashboard-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.logo-ticker-section {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  overflow: hidden;
}
.ticker-heading {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.logo-ticker-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-ticker-track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: scrollTicker 30s linear infinite;
  padding-left: 40px;
}
.ticker-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 40px)); }
}

.hero-proof-container {
  position: relative;
  z-index: 2;
  margin-top: 60px;
}
.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  animation: fadeUp 0.9s ease 0.6s both;
}
.hero-proof-card {
  text-align: left;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 28, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.hero-proof-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.hero-proof-card span {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.tech-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.tech-badge:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1.5s ease 1s both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip-section {
  padding: 0 0 34px;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.trust-strip-item {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.trust-strip-item strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.trust-strip-item span {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-card {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(34, 211, 238, 0.02); }

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  padding: 80px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: var(--transition);
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.service-card.featured {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(34, 211, 238, 0.04));
  border-color: rgba(168, 85, 247, 0.3);
}
.service-card.featured:hover { border-color: var(--purple); }
.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}
.service-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: rgba(34, 211, 238, 0.05);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}
.service-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: auto; /* Pushes tags and link to bottom */
  padding-bottom: 24px;
}
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-tags span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  transition: gap 0.2s, opacity 0.2s;
  text-decoration: none;
  opacity: 0.8;
}
.service-link:hover { gap: 10px; opacity: 1; }
.service-card:hover .service-link { opacity: 1; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.98), rgba(3, 4, 7, 1));
}

.product-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.product-hero-card {
  position: relative;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(34, 211, 238, 0.15);
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.15), transparent 34%),
    radial-gradient(circle at 30% 50%, rgba(34, 211, 238, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(20, 26, 40, 0.96), rgba(10, 14, 24, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.product-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 18px;
  max-width: 12ch;
}

.product-copy {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 58ch;
  margin-bottom: 28px;
}

.product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.product-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-feature-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.product-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.product-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
}

.product-feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.product-feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.product-page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  overflow: hidden;
}

.product-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.12), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(123, 47, 255, 0.16), transparent 34%);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.page-hero-copy h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.02;
  margin-bottom: 20px;
}

.page-hero-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 58ch;
  margin-bottom: 28px;
}

.page-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero-panel {
  position: relative;
  padding: 34px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(12, 18, 36, 0.96), rgba(5, 9, 18, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.page-panel-label {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.24);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-panel-list {
  display: grid;
  gap: 14px;
}

.page-panel-list div {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.page-panel-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.page-panel-list span {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.page-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.page-metric-card {
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.page-metric-card strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.page-metric-card span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.product-detail-section {
  padding: 80px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-card {
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.detail-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.detail-card p,
.detail-card li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.detail-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.cta-banner {
  padding: 38px;
  border-radius: 26px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(10, 17, 34, 0.96), rgba(5, 9, 18, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.cta-banner h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 60ch;
  margin-bottom: 26px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-section {
  padding: 80px 0;
  background: var(--bg-2);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 60px; right: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--cyan));
  opacity: 0.3;
}
.process-step {
  position: relative;
  padding: 0 20px;
  text-align: center;
}
.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.3rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  box-shadow: 0 0 0 4px var(--bg-2);
}
.step-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ============================================================
   TECH MARQUEE
   ============================================================ */
.tech-section {
  padding: 80px 0;
  overflow: hidden;
}
.tech-marquee-wrap {
  overflow: hidden;
  margin-top: 40px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.tech-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-marquee:hover { animation-play-state: paused; }
.tech-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  white-space: nowrap;
  transition: var(--transition);
  cursor: default;
}
.tech-item:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(0,212,255,0.06);
}
.tech-item span { font-size: 1.1rem; }

/* ============================================================
   ABOUT — Professional Editorial Layout
   ============================================================ */
.about-section {
  padding: 80px 0;
  background: var(--bg-2);
}
.about-header {
  text-align: center;
  margin-bottom: 72px;
}
.about-pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left column */
.about-mission {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 28px;
}
.about-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  margin-bottom: 28px;
}
.about-secondary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 40px;
}
.about-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.about-stat {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
}
.about-stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}
.about-stat-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Right column — value props */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.value-prop {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.value-prop:last-child { border-bottom: none; }
.value-prop:hover {
  background: rgba(255,255,255,0.025);
}
.vp-icon-wrap {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: var(--transition);
}
.value-prop:hover .vp-icon-wrap {
  background: rgba(0,212,255,0.06);
  border-color: rgba(0,212,255,0.3);
}
.vp-text h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.vp-text p {
  color: var(--text-muted);
  font-size: 0.845rem;
  line-height: 1.65;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-2);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.3;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.use-case-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.use-case-fit {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.6;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.875rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.78rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.form-group select option {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 10px;
}
.contact-info .section-tag { margin-bottom: 24px; }
.contact-info > p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact-methods { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.cm-row { display: flex; flex-direction: column; gap: 6px; }
.cm-label { color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.social-links { display: flex; gap: 14px; margin-top: 48px; }
.social-link {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrap {
  position: relative;
  background: rgba(12, 18, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.contact-form-wrap::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.05), transparent 70%);
  pointer-events: none;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.04);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}
.form-success {
  display: none;
  text-align: center;
  padding: 14px 18px;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 10px;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-error {
  display: none;
  text-align: center;
  padding: 14px 18px;
  background: rgba(255,45,120,0.08);
  border: 1px solid rgba(255,45,120,0.25);
  border-radius: 10px;
  color: var(--pink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo { margin-bottom: 16px; display: flex; }
.footer-brand .nav-logo {
  padding: 10px;
  border-radius: 28px;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }
.footer-links-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a {
  color: var(--text-dim);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links-col span {
  color: var(--text-dim);
  font-size: 0.875rem;
}
.footer-links-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ============================================================
   AOS (Animate on Scroll)
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive handled in Global Overrides at bottom of file */


/* ============================================================
   DEVELOPER TERMINAL (SaaS Platform Component)
   ============================================================ */
.developer-terminal-wrap {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}
.developer-terminal {
  width: 100%;
  max-width: 800px;
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 211, 238, 0.1);
  overflow: hidden;
  transform: rotateX(4deg);
  transition: transform 0.5s ease;
}
.developer-terminal:hover {
  transform: rotateX(0deg);
}
.terminal-header {
  background: #161b22;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-dots {
  display: flex;
  gap: 8px;
}
.terminal-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }
.terminal-title {
  flex-grow: 1;
  text-align: center;
  color: #8b949e;
  font-family: monospace;
  font-size: 0.85rem;
  margin-right: 48px;
}
.terminal-body {
  padding: 32px;
  text-align: left;
  font-family: 'Courier New', Courier, monospace;
}
.terminal-body pre {
  margin: 0;
  white-space: pre-wrap;
}
.terminal-body code {
  color: #c9d1d9;
  font-size: 0.95rem;
  line-height: 1.6;
}
.terminal-body .prompt { color: var(--cyan); font-weight: bold; }
.terminal-body .info { color: #8b949e; margin-right: 8px; }
.terminal-body .success { color: var(--green); margin-right: 8px; }
.terminal-body .comment { color: #8b949e; font-style: italic; }
.terminal-body .cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   SYSTEM STATUS (Footer)
   ============================================================ */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 20px;
}
.system-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
}
.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}
.footer-legal {
  display: flex;
  gap: 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-legal span {
  cursor: pointer;
  transition: color var(--transition);
}
.footer-legal span:hover {
  color: var(--text-muted);
}

/* ============================================================
   SVG ICONS (Tickers & Tech Stack)
   ============================================================ */
.svg-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 12px;
  filter: invert(1);
  opacity: 0.7;
}
.tech-item .svg-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}
.ticker-logo {
  display: flex;
  align-items: center;
}

/* ============================================================
   PAGE LOAD ANIMATIONS
   ============================================================ */
body.initial-load { overflow: hidden; }
body.page-ready { animation: pageFadeIn 0.8s ease forwards; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.glide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: glideUpAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.glide-up-delay-1 { animation-delay: 0.2s; }
.glide-up-delay-2 { animation-delay: 0.4s; }

@keyframes glideUpAnim {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CMD+K SEARCH MODAL
   ============================================================ */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 18, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.search-modal {
  width: 100%;
  max-width: 600px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.1);
  transform: scale(0.95) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.search-modal-overlay.active .search-modal {
  transform: scale(1) translateY(0);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-input-wrap svg { margin-right: 16px; color: var(--text-muted); }
.search-modal input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
  width: 100%;
}
.search-modal input:focus { outline: none; }
.search-results {
  padding: 16px 8px;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  color: var(--text-muted);
}
.search-result-item {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}
.search-kbd {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-family: monospace;
}

/* ============================================================
   HIRING BADGE (Nav)
   ============================================================ */
.nav-hiring-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 4px;
  color: #fff;
  vertical-align: middle;
  margin-left: 5px;
  position: relative;
  top: -1px;
  animation: hiringPulse 2.5s ease-in-out infinite;
}
@keyframes hiringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34, 211, 238, 0); }
}

/* ============================================================
   TYPEWRITER CURSOR
   ============================================================ */
.typed-text::after {
  content: '|';
  margin-left: 3px;
  animation: blink 0.8s step-end infinite;
  color: var(--cyan);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.5);
  transform: translateY(-3px);
}
.back-to-top svg { color: #fff; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: rgba(10, 20, 40, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--text);
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 50px;
  backdrop-filter: blur(16px);
  pointer-events: auto;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { border-color: rgba(52, 211, 153, 0.4); }
.toast.error   { border-color: rgba(248, 113, 113, 0.4); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.toast.success .toast-dot { background: var(--green); }
.toast.error .toast-dot   { background: #f87171; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   HIMAI DASHBOARD (Professional Hero Visual)
   ============================================================ */
.himai-dashboard {
  width: 100%;
  max-width: 960px;
  background: rgba(10, 15, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(34, 211, 238, 0.05),
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(34, 211, 238, 0.05);
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  animation: dashboardFloat 8s ease-in-out infinite;
  backdrop-filter: blur(24px);
  max-height: 600px;
  height: auto;
}

@keyframes dashboardFloat {
  0%, 100% { transform: translateY(0px) rotateX(1deg); }
  50%       { transform: translateY(-12px) rotateX(0deg); }
}

.hd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hd-topbar-left { display: flex; align-items: center; gap: 12px; }
.hd-topbar-tabs { display: flex; gap: 6px; }
.hd-tab {
  background: none; border: none;
  color: var(--text-muted); font-size: 0.75rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.hd-tab.active { background: rgba(255,255,255,0.06); color: var(--text); }
.hd-topbar-right { display: flex; gap: 10px; }

.hd-badge {
  font-size: 0.65rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.05); color: var(--text-muted);
}
.hd-badge.green { background: rgba(52,211,153,0.1); color: var(--green); }

.hd-body {
  display: flex;
  height: 480px;
}

/* Left Sidebar */
.hd-sidebar {
  width: 200px;
  background: rgba(0, 0, 0, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hds-label {
  font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px;
}
.hd-agent-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 10px; transition: 0.2s;
  cursor: pointer; opacity: 0.7;
}
.hd-agent-row.active { background: rgba(34, 211, 238, 0.06); opacity: 1; }
.hda-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hda-icon.cyan   { background: rgba(34,211,238,0.1); color: var(--cyan); }
.hda-icon.yellow { background: rgba(251,191,36,0.1); color: #fbbf24; }
.hda-icon.purple { background: rgba(168,85,247,0.1); color: var(--purple); }
.hda-icon.green  { background: rgba(52,211,153,0.1); color: var(--green); }
.hda-info { flex: 1; display: flex; flex-direction: column; }
.hda-info span { font-size: 0.8rem; font-weight: 600; color: #f8fafc; }
.hda-sub { font-size: 0.65rem !important; color: var(--text-muted) !important; padding: 0 !important; }
.hda-dot { width: 6px; height: 6px; border-radius: 50%; margin-left: auto; }
.hda-dot.cyan   { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hda-dot.yellow { background: #fbbf24; }
.hda-dot.purple { background: var(--purple); }
.hda-dot.green  { background: var(--green); }
.hds-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 6px 0; }

/* Center Chat Surface */
.hd-chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.05);
}
.hd-chat {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.hd-chat::-webkit-scrollbar { width: 4px; }
.hd-chat::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* Right Metrics Panel */
.hd-metrics-panel {
  width: 220px;
  background: rgba(0, 0, 0, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hd-metric { display: flex; flex-direction: column; gap: 10px; }
.hd-metric-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--text-muted); }
.hd-bar-track { width: 100%; height: 5px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.hd-bar { height: 100%; border-radius: 3px; transition: width 1.5s ease-out; }

.hd-task {
  font-size: 0.7rem; color: #94a3b8; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex; align-items: center; gap: 8px;
}
.hd-task.done { color: var(--green); }
.hd-task.running { color: var(--cyan); }

/* Message Components */
.hb-msg { display: flex; }
.hb-user { justify-content: flex-end; }
.hb-bot  { justify-content: flex-start; flex-direction: column; gap: 10px; }
.hb-bubble {
  max-width: 88%; padding: 12px 16px; border-radius: 14px;
  font-size: 0.82rem; line-height: 1.6;
}
.hb-user .hb-bubble {
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(168,85,247,0.18));
  border: 1px solid rgba(34,211,238,0.25);
  color: #f8fafc; border-bottom-right-radius: 2px;
}
.hb-bot .hb-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1; border-bottom-left-radius: 2px;
}
.hb-tool-call {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.12); border-radius: 10px;
  font-size: 0.72rem; color: #a1a1aa; font-family: monospace;
}
.hb-highlight { color: var(--cyan); font-weight: 600; }
.hb-anomaly { color: #facc15; }
.hb-tag {
  display: inline-block; background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3);
  color: #d8b4fe; border-radius: 6px; padding: 3px 10px; font-size: 0.68rem; margin-top: 8px;
}

.hb-typing { display: flex; gap: 5px; padding: 12px 18px; background: rgba(255,255,255,0.04); border-radius: 14px; width: fit-content; }
.hb-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); opacity: 0.6; animation: typingBounce 1.4s infinite ease-in-out; }
.hb-typing span:nth-child(2) { animation-delay: 0.2s; }
.hb-typing span:nth-child(3) { animation-delay: 0.4s; }

.hb-input-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); }
.hb-input-placeholder { font-size: 0.85rem; color: rgba(148,163,184,0.4); font-style: italic; }
.hb-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center; color: #fff; 
  box-shadow: 0 4px 14px rgba(34,211,238,0.3);
}

@keyframes typingBounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.6; } 40% { transform: translateY(-5px); opacity: 1; } }

/* Responsive Dashboard Logic */
@media (max-width: 1200px) {
  .hd-metrics-panel { display: none; }
  .himai-dashboard { max-width: 720px; }
}
@media (max-width: 1024px) {
  .hd-sidebar { display: none; }
  .himai-dashboard { max-width: 100%; height: auto; max-height: none; }
  .hd-body { height: auto; flex-direction: column; }
  .hd-chat-panel { min-height: 300px; }
}
/* ============================================================
   OPERATIONAL STATUS BAR
   ============================================================ */
.operational-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 18px;
  background: rgba(34, 211, 238, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  backdrop-filter: blur(10px);
  height: 54px; /* Fixed height to prevent vertical jitter */
}
.os-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.os-value {
  color: var(--cyan);
  display: inline-block;
  min-width: 60px; /* Fixed width for live values to prevent horizontal jitter */
}
.os-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.os-dot.pulse { animation: pulse 2s infinite; }
.os-label { color: var(--text); white-space: nowrap; }

@media (max-width: 768px) {
  .operational-status-bar {
    gap: 15px;
    padding: 10px;
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
  }
  .os-item { font-size: 0.65rem; }
}

/* ============================================================
   PREMIUM CONTACT & ACCESS STYLES
   ============================================================ */
.access-provision-card {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  max-width: 440px;
  margin-top: 20px;
}
.apc-header {
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.apc-title { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.apc-status { font-size: 0.65rem; color: var(--cyan); background: rgba(34,211,238,0.1); padding: 2px 8px; border-radius: 4px; }
.apc-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.apc-item { display: flex; gap: 14px; align-items: start; }
.apc-item-icon { font-size: 1.1rem; filter: saturate(0.5); }
.apc-item-text strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 2px; }
.apc-item-text span { font-size: 0.78rem; color: var(--text-muted); }

.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.cm-row { font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; }
.cm-label { color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cm-link { color: var(--cyan); font-weight: 600; text-decoration: none; }
.cm-val { color: var(--text-muted); font-weight: 500; }

/* Premium Form Styles */
.form-header-premium { margin-bottom: 32px; }
.fhp-tag { font-size: 0.68rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.fhp-title { font-size: 1.6rem; font-family: 'Outfit', sans-serif; font-weight: 700; margin-bottom: 16px; }
.fhp-progress { height: 4px; width: 100%; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.fhp-bar { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--purple)); border-radius: 2px; }

.form-grid-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.premium-submit { margin-top: 32px; padding: 16px !important; font-size: 0.95rem !important; letter-spacing: 0.05em; }

.form-validation-strip {
  display: flex; justify-content: center; gap: 24px; margin-top: 24px;
}
.form-validation-strip span { font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   PRODUCTS & CAREERS SPECIFIC PREMIUM COMPONENTS
   ============================================================ */

/* Pharma Dashboard (Products Hero) */
.pharma-dashboard {
  width: 100%;
  max-width: 880px;
  background: rgba(8, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  display: flex;
  height: 480px;
}
.pd-sidebar {
  width: 220px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 24px;
}
.pd-main { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.pd-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pd-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px;
  border-radius: 12px;
}
.pd-stat-label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.pd-stat-val { 
  font-size: 1.2rem; 
  font-weight: 700; 
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.pd-stock-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.pd-stock-item {
  display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); padding: 8px; background: rgba(0,0,0,0.2); border-radius: 6px;
}

/* Premium Careers Mission Briefing */
.mission-brief-card {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.mission-brief-card::before {
  content: 'MISSION BRIEFING';
  position: absolute;
  top: 20px; right: 30px;
  font-size: 0.65rem; font-weight: 800; color: rgba(34, 211, 238, 0.2); letter-spacing: 0.4em;
}

/* Page Metric Cards Enhancements */
.page-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.page-metric-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.page-metric-card:hover {
  background: rgba(34, 211, 238, 0.03);
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateY(-4px);
}
.page-metric-card strong {
  display: block; font-size: 2.2rem; margin-bottom: 8px; background: linear-gradient(135deg, var(--cyan), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-metric-card span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   POWER USER FEATURES: COMMAND PALETTE & TOASTS
   ============================================================ */

/* Global Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 32px; right: 32px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 10000;
}
.toast {
  background: rgba(15, 20, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(20px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast-icon { 
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* Command Palette (Modal) */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.search-modal-overlay.active { display: flex; }

.search-modal {
  width: 100%;
  max-width: 640px;
  background: #0f1423;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { transform: scale(0.95) translateY(-20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.search-input-wrap {
  display: flex; align-items: center; padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 16px; color: var(--text-dim);
}
.search-input-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1.1rem; font-family: 'Inter', sans-serif;
}
.search-results { padding: 12px; max-height: 400px; overflow-y: auto; }
.search-result-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none; transition: all 0.2s ease;
}
.search-result-item:hover {
  background: rgba(255, 255, 255, 0.04); color: var(--cyan);
}
.search-kbd {
  font-size: 0.65rem; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim); font-family: monospace;
}
/* ============================================================
   PREMIUM SYSTEM PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: #050810;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-visual {
  position: relative;
  width: 120px; height: 120px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(34, 211, 238, 0.1);
  border-top: 2px solid var(--cyan);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.loader-ring-inner {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-bottom: 1px solid var(--purple);
  border-radius: 50%;
  animation: spinReverse 1.5s linear infinite;
}

.loader-core {
  width: 40px; height: 40px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--cyan);
  animation: breathe 2s ease-in-out infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); opacity: 0.8; }
  50% { transform: scale(1.2); filter: brightness(1.5); opacity: 1; }
}

.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
}
.loader-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.4s ease;
}

.loader-status {
  margin-top: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}
/* Integrations Grid */
.integrations-section { padding: 60px 0; border-top: 1px solid var(--border); }
.integrations-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
  opacity: 0.6; filter: grayscale(1); transition: all 0.4s ease;
}
.integrations-grid:hover { opacity: 1; filter: grayscale(0); }
.integration-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem;
  color: var(--text-muted); display: flex; align-items: center; gap: 8px;
}
.integration-logo span { width: 12px; height: 12px; border: 2px solid var(--cyan); border-radius: 3px; }

/* ============================================================
   GLOBAL MOBILE HARD-RESET & COMPATIBILITY
   ============================================================ */
html, body { 
  overflow-x: hidden !important; 
  width: 100% !important; 
  position: relative; 
}

@media (max-width: 1024px) {
  .hero-split .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content-left { align-items: center; max-width: 100%; margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .dashboard-mockup { transform: none !important; }
  .himai-dashboard { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  
  .container { 
    padding: 0 20px !important; 
    width: 100% !important; 
    max-width: 100vw !important; 
    overflow: hidden; 
  }

  /* Navbar Mobile Reset */
  .navbar { width: 100% !important; left: 0; right: 0; }
  .nav-container { 
    width: 100% !important; 
    max-width: 100% !important; 
    padding: 0 20px !important; 
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important;
  }
  .nav-logo { flex-shrink: 0; }
  .nav-search-btn, .btn-nav { display: none !important; }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    width: 28px; height: 18px;
    justify-content: space-between;
    z-index: 2005;
    background: transparent; border: none; cursor: pointer;
    padding: 0;
  }
  .hamburger span {
    width: 100%; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100% !important; height: 100vh;
    background: #050810;
    flex-direction: column;
    padding: 100px 32px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    gap: 15px;
    display: flex !important;
  }
  .nav-links.active { right: 0; }
  .nav-link { font-size: 1.5rem; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; text-align: left; }

  /* Section Stability */
  section { padding: 60px 0 !important; width: 100% !important; overflow: hidden; }
  
  /* Hero Refinement */
  .hero { padding-top: 100px; min-height: auto; }
  .hero-title { font-size: 2.2rem !important; line-height: 1.1; margin-bottom: 24px; }
  .hero-sub { font-size: 1rem !important; line-height: 1.6; max-width: 100%; }
  .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100% !important; justify-content: center; }
  
  .hero-visual-right { display: block !important; width: 100%; margin-top: 40px; transform: none !important; opacity: 1 !important; visibility: visible !important; }
  .dashboard-mockup { width: 100%; transform: none !important; }

  /* Universal Stacking Solution - Nuclear Version */
  .services-grid, .stats-grid, .trust-strip-grid, .hero-proof-grid, .product-features-grid, 
  .footer-grid, .bento-grid, .page-metrics, .product-showcase, .page-hero-grid, 
  .mission-content-grid, .about-pro-grid, .contact-grid, .form-grid-pro, .about-stats-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .about-pro-grid > *, .contact-grid > *, .form-grid-pro > *, .services-grid > *, .bento-grid > * {
    width: 100% !important;
    margin-bottom: 24px !important;
  }
  
  .about-stat { border-bottom: 1px solid var(--border); width: 100% !important; padding: 20px 0 !important; }
  .about-stat:last-child { border-bottom: none; }
  .about-stat-sep { display: none !important; }
  
  .contact-info, .contact-form-wrap { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
  .contact-form-wrap { padding: 32px 16px !important; margin-top: 40px !important; }
  .form-group { width: 100% !important; margin-bottom: 16px !important; }
  
  /* Pharma Dashboard Fix */
  .himai-dashboard { max-height: none; height: auto; width: 100% !important; margin: 20px 0 !important; display: block !important; }
  .hd-body { flex-direction: column !important; height: auto !important; display: block !important; }
  .hd-sidebar, .hd-metrics-panel { display: none !important; }
  .hd-chat-panel { width: 100% !important; min-height: 400px !important; }

  /* Ticker Scalability */
  .logo-ticker-track { gap: 32px !important; }
  .ticker-logo { font-size: 0.95rem !important; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem !important; }
  .section-title { font-size: 1.5rem !important; }
  .badge-pill { font-size: 0.65rem; padding: 4px 12px; }
}

/* Fix global overflow sources */
img, svg, canvas, video { max-width: 100%; height: auto; }

/* Final Polish */
::selection { background: var(--cyan); color: #000; }
body { text-rendering: optimizeLegibility; }

/* Z-Index Polish */
.preloader { z-index: 99999; }
.navbar { z-index: 2000; }
.search-modal-overlay { z-index: 5000; }

/* Stable Touch Interactions */
@media (hover: none) {
  .service-card:hover, .bento-card:hover { transform: none !important; }
  .global-spotlight { display: none !important; }
}

/* Ensure hidden remains hidden */
[hidden] { display: none !important; }
