/* ==========================================================================
   APEX DIGITAL MARKETING PLATFORM - CORE DESIGN SYSTEM & STYLES
   Colors: Deep Navy Slate (#0B0F19 / #0F172A), Electric Royal Blue (#2563EB), 
           Sapphire Blue (#3B82F6), Cyan Spark (#60A5FA), Solar Amber (#F59E0B)
   ========================================================================== */

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

:root {
  --bg-dark: #0b0f19;
  --bg-dark-alt: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.8);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  
  --glass-border: rgba(37, 99, 235, 0.22);
  --glass-border-hover: rgba(59, 130, 246, 0.55);
  
  --primary-blue: #1e3a8a;
  --electric-royal-blue: #2563eb;
  --sapphire-blue: #3b82f6;
  --cyan-spark: #60a5fa;
  --glow-royal: rgba(37, 99, 235, 0.45);
  --accent-gold: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(59, 130, 246, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(15, 23, 42, 0.5) 0%, transparent 50%);
  background-attachment: fixed;
}

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

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan-spark) 50%, var(--electric-royal-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.royal-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--electric-royal-blue) 50%, var(--sapphire-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #ffe600 50%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--electric-royal-blue), var(--sapphire-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--glow-royal);
  position: relative;
}

.logo-icon i {
  font-size: 1.25rem;
  color: #fff;
  animation: pulseFloat 3s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--cyan-spark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric-royal-blue);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric-royal-blue) 0%, var(--sapphire-blue) 100%);
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px rgba(37, 99, 235, 0.65);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--electric-royal-blue);
  color: var(--cyan-spark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

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

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

.hero-title {
  font-size: 3.8rem;
  margin-bottom: 20px;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 48px;
}

/* Image Visual Wrapper with Floating Badges */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 0.6));
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(37, 99, 235, 0.25);
  backdrop-filter: blur(12px);
  max-width: 540px;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.5s ease;
}

.hero-image-frame:hover .hero-img {
  transform: scale(1.015);
}

/* Levitating Badges */
.float-badge {
  position: absolute;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--glass-border-hover);
  backdrop-filter: blur(16px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.25);
  z-index: 5;
  animation: floatLevitate 5s ease-in-out infinite alternate;
}

.badge-1 {
  top: 8%;
  left: -25px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 18%;
  right: -25px;
  animation-delay: 1.5s;
}

.badge-3 {
  top: 55%;
  left: -35px;
  animation-delay: 3s;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-spark);
  font-size: 1.1rem;
}

.badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

.badge-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* METRICS STRIP */
.metrics-section {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.metric-item {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item:last-child {
  border-right: none;
}

.metric-number {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* SECTION TITLES */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--cyan-spark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

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

/* SERVICES SECTION */
.services-section {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--electric-royal-blue), var(--cyan-spark), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 99, 235, 0.2);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--cyan-spark);
  margin-bottom: 24px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-link {
  color: var(--cyan-spark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.service-link:hover {
  gap: 12px;
  color: #ffffff;
}

/* INTERACTIVE ROI & GROWTH CALCULATOR */
.calculator-section {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(11, 15, 25, 0.9) 100%);
  position: relative;
}

.calc-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.input-val {
  color: var(--cyan-spark);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--electric-royal-blue);
  box-shadow: 0 0 15px var(--electric-royal-blue);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-card {
  margin-bottom: 24px;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--cyan-spark);
  line-height: 1.1;
  margin-top: 4px;
}

/* INTERACTIVE DATA STREAM SIMULATOR */
.simulator-section {
  padding: 100px 0;
}

.sim-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.sim-tab {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.sim-tab.active, .sim-tab:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--electric-royal-blue);
  color: var(--cyan-spark);
}

.sim-display {
  background: rgba(11, 15, 25, 0.92);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--cyan-spark);
}

.sim-body {
  flex: 1;
  position: relative;
  margin-top: 20px;
}

.stream-node {
  position: absolute;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--electric-royal-blue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
  animation: nodeAscend 4s linear infinite;
}

/* EXECUTIVE / FOUNDER SPOTLIGHT */
.founder-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(11, 15, 25, 0.8) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.founder-images {
  display: flex;
  gap: 20px;
  position: relative;
  align-items: center;
}

.founder-img-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  transition: var(--transition-normal);
}

.founder-img-card:hover {
  transform: translateY(-5px);
  border-color: var(--electric-royal-blue);
}

.founder-img-card.original {
  width: 100%;
  max-width: 440px;
}

.founder-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-quote {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 24px;
  border-left: 3px solid var(--electric-royal-blue);
  padding-left: 20px;
  line-height: 1.5;
}

/* AUDIT MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

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

.modal-content {
  background: #0f172a;
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 540px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(37, 99, 235, 0.25);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--electric-royal-blue);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
}

/* FOOTER */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  background: #070a12;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ANIMATIONS */
@keyframes floatLevitate {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-16px); }
}

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

@keyframes blink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes nodeAscend {
  0% { bottom: -40px; opacity: 0; transform: scale(0.8); }
  20% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { bottom: 100%; opacity: 0; transform: scale(1.1); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid, .calc-box, .founder-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 3rem;
  }
  .badge-1, .badge-2, .badge-3 {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    margin: 8px;
  }
  .hero-image-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
