/* ============================================
   FLUXFRONT - ENHANCED STYLES
   Apple-inspired design with smooth animations
   ============================================ */

/* CSS VARIABLES */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  
  --green-400: #4ade80;
  --green-500: #22c55e;
  
  --timing: cubic-bezier(0.4, 0, 0.2, 1);
  --timing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* LAYOUT */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.container-small {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* NAVIGATION */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s var(--timing);
}

.nav-container.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-orb-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
}

.logo-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #667eea, #764ba2, #f093fb, #667eea);
  animation: rotate 8s linear infinite;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.logo-orb-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--black);
}

.logo-text-main {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.logo-text-sub {
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.15em;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: var(--gray-300);
  transition: color 0.3s var(--timing);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-500), var(--blue-500));
  transition: width 0.3s var(--timing);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all 0.4s var(--timing);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-arrow {
  transition: transform 0.3s var(--timing);
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.btn-mobile {
  width: 100%;
  justify-content: center;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hamburger {
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: all 0.3s var(--timing);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--timing);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 16px;
}

.nav-mobile.open {
  display: flex;
  animation: slideDown 0.3s var(--timing);
}

.nav-mobile-link {
  color: var(--gray-300);
  font-size: 16px;
  transition: color 0.3s var(--timing);
}

.nav-mobile-link:hover {
  color: var(--white);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 12px var(--green-400);
  animation: pulse 2s infinite;
}

.badge-text {
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #e0e7ff 0%, #667eea 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

.meta-badge {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--gray-300);
}

/* Dashboard */
.hero-right {
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.dashboard {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--timing);
}

.dashboard:hover {
  transform: translateY(-8px);
}

.dashboard-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
  border-radius: 24px;
  pointer-events: none;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.dashboard-title {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray-500);
}

.dashboard-subtitle {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green-400);
  font-size: 11px;
  font-weight: 500;
}

/* Agent Card */
.agent-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.agent-name {
  font-size: 16px;
  font-weight: 600;
}

.agent-status {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Waveform */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 48px;
  margin-bottom: 16px;
}

.wave-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--purple-500), var(--blue-500));
  border-radius: 999px;
  opacity: 0.7;
  animation: wave 1.5s ease-in-out infinite;
  min-width: 2px;
}

/* Agent Dialog */
.agent-dialog {
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  margin-bottom: 12px;
}

.dialog-label {
  color: var(--gray-400);
  margin-right: 6px;
}

/* Agent Tags */
.agent-tags {
  display: flex;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.tag-purple {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple-400);
}

.tag-blue {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-400);
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.stat-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.stat-sub {
  font-size: 11px;
  color: var(--green-400);
  margin-top: 4px;
}

/* SECTIONS */
.section {
  padding: 120px 0;
  position: relative;
}

.section-gradient {
  background: linear-gradient(180deg, transparent 0%, rgba(118, 75, 162, 0.05) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.6s var(--timing);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(102, 126, 234, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--timing);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

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

.service-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-desc {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.service-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: var(--gray-400);
}

/* BENEFITS GRID */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.6s var(--timing);
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.benefit-number {
  font-size: 64px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  margin-bottom: 20px;
}

.benefit-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.benefit-desc {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* PROCESS STEPS */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.3s var(--timing);
}

.process-step:hover .step-number {
  background: rgba(102, 126, 234, 0.2);
  border-color: var(--purple-500);
  color: var(--purple-400);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s var(--timing);
}

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 16px;
  color: var(--gray-400);
  line-height: 1.7;
}

/* CTA CARD */
.cta-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* FOOTER */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-size: 14px;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-500);
}

.footer-divider {
  color: var(--gray-600);
}

.footer-link {
  transition: color 0.3s var(--timing);
}

.footer-link:hover {
  color: var(--white);
}

/* ANIMATIONS */
@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes wave {
  0%, 100% { height: 20%; opacity: 0.5; }
  50% { height: 100%; opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Animations */
.fade-in {
  animation: fadeInUp 0.8s var(--timing) forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s var(--timing);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hero-right {
    order: -1;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 60px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-card {
    padding: 48px 32px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container,
  .container-small {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .dashboard {
    padding: 16px;
  }
  
  .service-card,
  .benefit-card {
    padding: 24px;
  }
  
  .cta-card {
    padding: 32px 24px;
  }
}