/*!
 * Copyright © 2024–2026 aplexi (https://aplexi.ai). All rights reserved.
 * Proprietary. Not licensed for redistribution, derivative works, or
 * use as a design reference for competing products.
 * License: https://aplexi.ai/md-render/?md=/static/docs/aplexi-license.md
 */
/* aplexi Landing Page Styles - Dark Theme */

:root {
  /* Primary Color Palette - Darker blues and sophisticated grays */
  --primary-color: #003992;      /* Dark blue from client-mgmt */
  --primary-light: #0056d3;      /* Lighter variant of primary */
  --primary-dark: #002766;       /* Darker variant of primary */
  --accent-color: #00a8ff;       /* Bright blue accent */
  --accent-secondary: #4dabf7;   /* Secondary accent */
  
  /* Neutral Colors - Dark theme */
  --bg-primary: #0a0e1a;         /* Very dark blue-gray */
  --bg-secondary: #1a1f2e;       /* Dark blue-gray */
  --bg-tertiary: #252a3a;        /* Medium dark blue-gray */
  --bg-light: #f8fafc;           /* Light backgrounds for contrast */
  --bg-card: rgba(255, 255, 255, 0.08); /* Translucent cards */
  
  /* Text Colors */
  --text-primary: #ffffff;       /* White text */
  --text-secondary: #b8c5d1;     /* Light gray text */
  --text-muted: #64748b;         /* Muted text */
  --text-dark: #1e293b;          /* Dark text for light backgrounds */
  
  /* Typography */
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Shadows and Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
  --glow: 0 0 20px rgba(0, 168, 255, 0.3);
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing-page {
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.brand-name {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Container Layouts */
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.header .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-text {
  color: var(--text-primary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent-color);
}

.nav-login {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.nav-login:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Announcement Banner */
.rebrand-announcement {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.announcement-carousel {
  position: relative;
  height: 1.6em;
}

.announcement-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.announcement-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.announcement-slide.exit-up {
  opacity: 0;
  transform: translateY(-20px);
}

.rebrand-badge {
  background: var(--accent-color);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.rebrand-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.rebrand-text strong {
  color: var(--accent-color);
  font-weight: 700;
}

.announcement-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* Hero Nav (mobile only) */
.hero-nav {
  display: none;
}

.hero-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.hero-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.hero-nav a:hover {
  color: var(--accent-color);
}

.hero-nav .nav-login {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 57, 146, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section .container-wide {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 0 0 55%;
}

.brand-intro {
  margin-bottom: 32px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-visual {
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.ai-network {
  width: 100%;
  max-width: 500px;
  opacity: 0.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: white;
}

.cta-button:hover::before {
  left: 100%;
}

/* Services Section */
.services-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  margin: 16px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 168, 255, 0.3);
}

.service-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Solutions Section */
.solutions-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.solutions-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.solution-content {
  flex: 1;
}

.solution-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.solution-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.solution-list li {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.solution-list li:hover {
  transform: translateX(8px);
  border-color: rgba(0, 168, 255, 0.3);
}

.solution-list h3 {
  color: var(--accent-color);
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.solution-list p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.gradient-spheres {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.sphere-1 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--accent-color) 0%, var(--primary-color) 70%, transparent 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow-1 3s infinite alternate;
}

.sphere-2 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, var(--primary-light) 60%, transparent 100%);
  top: 20%;
  right: 10%;
  animation: pulse-glow-2 4s infinite alternate;
}

.sphere-3 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--primary-light) 0%, var(--accent-color) 50%, transparent 100%);
  bottom: 30%;
  left: 15%;
  animation: pulse-glow-3 5s infinite alternate;
}

.sphere-4 {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  top: 10%;
  left: 20%;
  animation: pulse-glow-4 3.5s infinite alternate;
}

.sphere-5 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-color) 0%, var(--accent-secondary) 50%, transparent 100%);
  bottom: 10%;
  right: 20%;
  animation: pulse-glow-5 4.5s infinite alternate;
}

@keyframes pulse-glow-1 {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.7;
  }
}

@keyframes pulse-glow-2 {
  0% {
    transform: scale(0.6);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

@keyframes pulse-glow-3 {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.4);
    opacity: 0.8;
  }
}

@keyframes pulse-glow-4 {
  0% {
    transform: scale(0.5);
    opacity: 0.1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0.5;
  }
}

@keyframes pulse-glow-5 {
  0% {
    transform: scale(0.7);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
  background: var(--bg-primary);
}

.contact-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-method {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 255, 0.3);
}

.contact-icon {
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.contact-method a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: var(--accent-color);
}

.contact-phone-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.canada-flag {
  font-size: 1.2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer-logo {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-section .container-wide {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    max-width: none;
  }
  
  .solutions-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .gradient-spheres {
    width: 200px;
    height: 200px;
  }
  
  .sphere-1 { width: 120px; height: 120px; }
  .sphere-2 { width: 80px; height: 80px; }
  .sphere-3 { width: 60px; height: 60px; }
  .sphere-4 { width: 40px; height: 40px; }
  .sphere-5 { width: 70px; height: 70px; }
}

@media (max-width: 768px) {
  .brand-name {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .header .container-wide {
    flex-direction: column;
    gap: 16px;
  }
  
  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .hero-section {
    padding: 60px 0 40px;
  }
  
  .services-section,
  .solutions-section,
  .contact-section {
    padding: 40px 0;
  }
}

@media (max-width: 800px) {
  .container-wide,
  .container-narrow {
    padding: 0 16px;
  }

  .header {
    display: none;
  }

  .hero-nav {
    display: block;
    margin-top: 1rem;
  }

  .hero-nav ul {
    flex-wrap: wrap;
  }

  .hero-visual {
    display: none;
  }

  .rebrand-announcement {
    padding: 8px 0;
  }

  .announcement-carousel {
    height: auto;
    min-height: 3.2em;
  }

  .announcement-slide {
    position: relative;
    display: none;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .announcement-slide.active {
    display: flex;
  }

  .rebrand-text {
    font-size: 0.85rem;
  }

  .brand-name {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 14px 24px;
    font-size: 1rem;
  }
}