/* ==========================================================================
   Elogix Americas LLC - Modern Clean Light Glassmorphic Design System
   Featuring Cosmic Universe Orbit Component & Pure Product Viewports
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Clean Light Theme Palette */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-subtle: #f1f5f9;

  --border-light: rgba(226, 232, 240, 0.9);
  --border-highlight: rgba(79, 70, 229, 0.35);

  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --accent-indigo: #4f46e5;
  --accent-cyan: #0891b2;
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-emerald: #059669;

  --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #0891b2 50%, #7c3aed 100%);
  --gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(79, 70, 229, 0.15) 0%, rgba(8, 145, 178, 0.04) 60%, transparent 80%);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-circle: 50%;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 35px rgba(79, 70, 229, 0.2);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: var(--bg-light);
}

/* Background Grid Overlay */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  z-index: -2;
  pointer-events: none;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Clean Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-orb-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--accent-indigo);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-indigo);
}

.nav-cta {
  background: var(--gradient-brand);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* Hero Section */
.hero-section {
  padding: 9.5rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent-indigo);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
}

/* ==========================================================================
   STUNNING COSMIC UNIVERSE ORBIT COMPONENT (HERO VISUAL)
   ========================================================================== */
.hero-universe-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
}

.universe-stage {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Orbit Track 1 (Clockwise) */
.orbit-track-outer {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: var(--radius-circle);
  border: 1.5px dashed rgba(79, 70, 229, 0.3);
  animation: rotateUniverse 35s linear infinite;
}

/* Inner Orbit Track 2 (Counter-Clockwise) */
.orbit-track-inner {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: var(--radius-circle);
  border: 1.5px dashed rgba(8, 145, 178, 0.35);
  animation: rotateUniverse 25s linear infinite reverse;
}

@keyframes rotateUniverse {
  100% { transform: rotate(360deg); }
}

/* Central Core Sun / Core Orb */
.universe-core-sun {
  width: 170px;
  height: 170px;
  border-radius: var(--radius-circle);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
  border: 2px solid rgba(79, 70, 229, 0.4);
  box-shadow: var(--shadow-glow), 0 0 40px rgba(79, 70, 229, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
  padding: 0.5rem;
  transition: var(--transition-normal);
}

.universe-core-sun::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: var(--radius-circle);
  border: 2px dashed rgba(99, 102, 241, 0.4);
  animation: rotateUniverse 20s linear infinite;
}

.universe-core-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.universe-core-icon::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--accent-indigo);
}

.universe-core-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  text-align: center;
}

.universe-core-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-indigo);
  text-align: center;
  margin-top: 2px;
}

/* Orbiting Product Planet Nodes with Product Names */
.planet-orb {
  position: absolute;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.planet-orb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--accent-indigo);
  border-color: var(--accent-indigo);
  z-index: 20;
}

/* Outer Track Planet Positions (Outer ring 360px -> radius 180px) */
.planet-nexus { top: -22px; left: 130px; }
.planet-reach { bottom: -22px; left: 130px; }
.planet-smb   { top: 160px; right: -30px; }

/* Inner Track Planet Positions (Inner ring 260px -> radius 130px) */
.planet-orbit { top: -20px; left: 95px; }
.planet-lens  { bottom: -20px; left: 95px; }

.universe-label-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.universe-label-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-indigo);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.1rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-padding {
  padding: 6rem 0;
}

/* CIRCULAR CAPABILITIES CONSTELLATION LAYOUT */
.circular-capabilities-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

.circular-orbit-ring {
  position: relative;
  width: 680px;
  height: 680px;
  margin: 0 auto;
  border-radius: var(--radius-circle);
  border: 2px dashed rgba(79, 70, 229, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-core-center {
  width: 230px;
  height: 230px;
  border-radius: var(--radius-circle);
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-glow);
  padding: 1.5rem;
  z-index: 10;
}

.circular-cap-node {
  position: absolute;
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  z-index: 5;
}

.circular-cap-node:hover {
  transform: scale(1.05);
  border-color: var(--accent-indigo);
  box-shadow: var(--shadow-lg);
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.node-top-left { top: 20px; left: -20px; }
.node-top-right { top: 20px; right: -20px; }
.node-bottom-left { bottom: 20px; left: -20px; }
.node-bottom-right { bottom: 20px; right: -20px; }

@media (max-width: 992px) {
  .circular-orbit-ring {
    width: 100%;
    height: auto;
    border: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .circular-core-center {
    margin: 0 auto 1.5rem;
  }
  .circular-cap-node {
    position: static;
    width: 100%;
  }
}

/* ELOGIX 25-YEAR LEGACY & TRUST SHOWCASE SECTION */
.legacy-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.legacy-stat-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.legacy-stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-indigo);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.legacy-stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.legacy-stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.award-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ==========================================================================
   EMBEDDED PRODUCT SHOWCASE WITH LIVE IFRAME VIEWPORT & NAV CROP
   ========================================================================== */
.product-viewport-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.viewport-nav-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.tab-btn {
  padding: 1rem 1.75rem;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--text-dark);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--accent-indigo);
  border-bottom-color: var(--accent-indigo);
}

.viewport-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.toolbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.toolbar-pulse {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

.toolbar-external-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-indigo);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.toolbar-external-link:hover {
  text-decoration: underline;
}

/* Crop wrapper to hide Brahmexa site top navbar inside embedded frame */
.iframe-wrapper-crop {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  background: #ffffff;
}

.iframe-viewport-frame {
  width: 100%;
  height: calc(100% + 75px);
  margin-top: -75px;
  border: none;
  background: #ffffff;
}

/* Consultation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2.5rem;
  background: #ffffff;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-col h5 {
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-indigo);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .hero-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
}
