/**
 * ZentrivoAI — High-Fidelity Premium Dark SaaS
 */

:root {
  --bg-deep: #05050a;
  --bg-card: rgba(15, 15, 25, 0.6);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.5);
  --accent-cyan: #22d3ee;
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.05);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 40px var(--primary-glow);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.site-body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-gray);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Animated Background Orbs --- */
.site-body::before, .site-body::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 15s infinite alternate var(--ease);
}

.site-body::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.site-body::after {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  top: 40%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, 5%) scale(0.95); }
}

/* --- Container --- */
.zx-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.zx-container--narrow { max-width: 800px; }

/* --- Navigation --- */
.zx-header.site-header {
  position: fixed;
  top: 0; 
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 10, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.zx-header.site-header.scrolled {
  background: rgba(5, 5, 10, 0.85);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  transition: padding 0.3s var(--ease);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 1010;
}

.logo-ai {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}

.nav-link:hover { color: var(--text-white); }
.nav-link:hover::after { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: var(--text-white) !important;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #4f46e5, var(--primary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white) !important;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
  position: relative;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  margin: 5px auto;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

/* --- Hero --- */
.zx-hero {
  padding: 12rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.zx-hero__container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zx-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.text-gradient {
  background: linear-gradient(to right, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zx-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-gray);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.zx-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.hero-visual-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  perspective: 1000px;
}

.hero-main-img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 40px rgba(99, 102, 241, 0.2);
  display: block;
  transform: rotateX(2deg);
  transition: transform 0.5s var(--ease);
}

.hero-visual-wrapper:hover .hero-main-img {
  transform: rotateX(0deg) translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.9), 0 0 60px rgba(99, 102, 241, 0.3);
}

/* --- Trust / Social Proof --- */
.zx-trust {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.01);
  text-align: center;
}

.zx-trust p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  font-weight: 600;
}

.zx-logo-cloud {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
}

.zx-logo-cloud span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.zx-logo-cloud span:hover {
  opacity: 1;
  color: var(--text-white);
}

/* --- Stats Section --- */
.zx-stats {
  padding: 6rem 0;
  background: radial-gradient(circle at center, rgba(99,102,241,0.05) 0%, transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h4 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 1.1rem;
}

/* --- Features --- */
.zx-features { padding: 8rem 0; }

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

.zx-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(30, 30, 40, 0.7);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-card), 0 0 30px rgba(99, 102, 241, 0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-family: var(--font-display);
  color: var(--text-white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Mobile / Split Layout --- */
.zx-mobile-section {
  padding: 8rem 0;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--glass-border);
}

.zx-mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.zx-checklist {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.zx-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-white);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* --- CTA Section --- */
.zx-cta-section {
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
  opacity: 0.5;
  pointer-events: none;
}

/* --- Subpages --- */
.zx-page-hero { 
  padding: 10rem 0 4rem; 
  text-align: center; 
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(99,102,241,0.05) 0%, transparent 100%);
}

.zx-breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zx-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.zx-breadcrumb a:hover { color: var(--text-white); }

.zx-page-title { 
  font-family: var(--font-display); 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.zx-page-lead { 
  color: var(--text-gray); 
  font-size: 1.25rem; 
  max-width: 600px;
  margin: 0 auto;
}

.zx-section { padding: 5rem 0; }

.zx-article {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 4rem;
  box-shadow: var(--shadow-card);
}

.zx-prose { 
  color: var(--text-gray); 
  font-size: 1.1rem; 
  line-height: 1.8; 
}
.zx-prose p { margin-bottom: 1.5rem; }
.zx-prose h2, .zx-prose h3 {
  color: var(--text-white);
  font-family: var(--font-display);
  margin: 3rem 0 1rem;
}
.zx-prose a { color: var(--primary); text-decoration: none; border-bottom: 1px solid transparent; transition: border 0.2s; }
.zx-prose a:hover { border-bottom-color: var(--primary); }

/* --- Forms --- */
.zx-form-group { margin-bottom: 1.5rem; }
.zx-label { display: block; margin-bottom: 0.5rem; color: var(--text-white); font-weight: 500; font-size: 0.95rem; }
.zx-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s;
}
.zx-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(0,0,0,0.5);
}
.zx-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.zx-alert--success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16,185,129,0.3); color: #10b981; }
.zx-alert--error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

/* --- Footer --- */
.zx-footer.site-footer {
  background: #020205;
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.zx-footer-logo { 
  font-family: var(--font-display); 
  font-size: 1.5rem; 
  font-weight: 800; 
  color: white; 
  text-decoration: none; 
  margin-bottom: 1.5rem; 
  display: block; 
}
.footer-brand p { color: var(--text-gray); font-size: 0.95rem; max-width: 300px; line-height: 1.6; }

.footer-links h4, .footer-legal h4, .footer-contact h4 { 
  color: var(--text-white); 
  font-size: 0.85rem; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  margin-bottom: 1.5rem; 
  font-weight: 700;
}
.footer-links a, .footer-legal a { 
  color: var(--text-muted); 
  text-decoration: none; 
  display: block; 
  margin-bottom: 0.85rem; 
  font-size: 0.95rem; 
  transition: all 0.2s; 
}
.footer-links a:hover, .footer-legal a:hover { 
  color: var(--text-white); 
  transform: translateX(3px);
}

.footer-contact p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-contact a { transition: color 0.2s; color: var(--text-muted); text-decoration: none;}
.footer-contact a:hover { color: var(--primary); }

.footer-bottom { 
  padding-top: 2rem; 
  border-top: 1px solid rgba(255,255,255,0.05); 
  text-align: center; 
  color: var(--text-muted); 
  font-size: 0.85rem; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Reveal Animations --- */
.zx-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.zx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .zx-mobile-grid { grid-template-columns: 1fr; gap: 4rem; }
  .zx-mobile-grid > div:first-child { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5,5,10,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .zx-hero { padding: 9rem 0 4rem; }
  .zx-actions { flex-direction: column; padding: 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .footer-brand p { margin: 0 auto; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
  .zx-article { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .zx-headline { font-size: 2.5rem; }
  .zx-logo-cloud { gap: 2rem; }
}
