/* ==========================================================================
   APEX ANALYTICS — ENTERPRISE SAAS DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-main: #0F1117;
  --bg-card: #161B22;
  --bg-card-hover: #1C212B;
  --bg-glass: rgba(22, 27, 34, 0.75);
  
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.4);
  
  --success: #22C55E;
  --success-glow: rgba(34, 197, 94, 0.3);
  
  --text-white: #FFFFFF;
  --text-light: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dark: #6B7280;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(37, 99, 235, 0.3);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Glass */
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);

  /* Layout Spacing */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2563EB 0%, rgba(37, 99, 235, 0) 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3B82F6 0%, rgba(34, 197, 94, 0) 70%);
  top: 1800px;
  right: -100px;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.25;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #60A5FA 70%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60A5FA;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Glassmorphism Card Element */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-tertiary {
  background: transparent;
  color: var(--text-muted);
}

.btn-tertiary:hover {
  color: var(--text-white);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-glow:hover::after {
  opacity: 1;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(15, 17, 23, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-normal);
}

.navbar-wrapper.scrolled {
  background: rgba(15, 17, 23, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: #60A5FA;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93C5FD;
  border-radius: 4px;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   SECTION 1 — HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5rem 0 6rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #93C5FD;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.hero-badge:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-trust-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--bg-main);
  margin-left: -10px;
  object-fit: cover;
}

.avatar-group img:first-child {
  margin-left: 0;
}

.trust-stars .stars {
  color: #F59E0B;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.trust-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-text strong {
  color: var(--text-white);
}

/* Hero Dashboard Preview Window */
.hero-dashboard-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-dashboard-frame {
  background: #12161F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(37, 99, 235, 0.15);
}

.frame-header {
  background: #181D28;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.frame-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(22, 27, 34, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kpi-mini {
  display: flex;
  flex-direction: column;
}

.kpi-mini .label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.kpi-mini .value {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-white);
}

.kpi-mini .trend {
  font-size: 0.75rem;
  font-weight: 600;

}

.trend.positive { color: var(--success); }

.hero-chart-container {
  padding: 1.5rem;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-title {
  font-size: 1.1rem;
}

.chart-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-timeframe-btns {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.time-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.time-btn.active, .time-btn:hover {
  background: var(--primary);
  color: var(--text-white);
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
}

/* Floating Widgets Overlay */
.floating-widget {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(22, 27, 34, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.widget-left {
  top: 25%;
  left: -40px;
}

.widget-right {
  bottom: 15%;
  right: -40px;
}

.widget-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.widget-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.widget-icon.primary {
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
}

.widget-details {
  display: flex;
  flex-direction: column;
}

.widget-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.widget-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.widget-meta {
  font-size: 0.7rem;
  color: var(--text-dark);
}

.float-anim {
  animation: floatKeyframes 6s ease-in-out infinite;
}

.float-anim-delayed {
  animation: floatKeyframes 6s ease-in-out 3s infinite;
}

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

/* ==========================================================================
   SECTION 2 — TRUSTED BY LOGOS
   ========================================================================== */
.trusted-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 17, 23, 0.4);
}

.trusted-headline {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  opacity: 0.6;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.logo-item:hover {
  opacity: 1;
  color: var(--text-white);
  transform: translateY(-2px);
}

.logo-item .logo-icon {
  font-size: 1.6rem;
  background: none;
  box-shadow: none;
}

/* ==========================================================================
   SECTION 3 — KPI OVERVIEW
   ========================================================================== */
.kpi-section {
  padding: 6rem 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.kpi-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.15);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.12);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.kpi-badge.positive {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

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

.kpi-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.2rem 0;
  letter-spacing: -0.02em;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.sparkline-wrap {
  height: 45px;
  width: 100%;
}

/* ==========================================================================
   SECTION 4 — FEATURES
   ========================================================================== */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.35);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-checklist li {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-checklist li i {
  color: var(--success);
  font-size: 0.75rem;
}

/* ==========================================================================
   SECTION 5 — ANALYTICS DASHBOARD PREVIEW (APP DEMO)
   ========================================================================== */
.dashboard-preview-section {
  padding: 6rem 0;
}

.main-dashboard-container {
  padding: 1.75rem;
  background: #11151D;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accent-color {
  color: #3B82F6;
  font-size: 1.3rem;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
}

.app-version {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.app-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.filter-pill select {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.filter-pill select option {
  background: var(--bg-card);
  color: var(--text-white);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.dash-card {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.dash-card-title {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.dash-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Revenue Card spans 8 cols */
.revenue-card {
  grid-column: span 8;
}

.metric-highlight {
  text-align: right;
}

.metric-highlight .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.metric-highlight .total-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--success);
}

.revenue-bars-summary {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.month-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 60px;
}

.month-chip.highlight {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
}

.month-chip .m-name {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.month-chip .m-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
}

/* User Activity Card spans 4 cols */
.activity-card {
  grid-column: span 4;
}

.status-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 0.05em;
}

.green-dot {
  color: var(--success);
  font-size: 0.6rem;
}

.activity-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1rem;
}

.act-stat {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.stat-num.glow-text {
  color: #60A5FA;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Traffic Card spans 6 cols */
.traffic-card {
  grid-column: span 6;
}

.traffic-body {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.doughnut-wrap {
  width: 160px;
  height: 160px;
}

.traffic-legend {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.legend-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.legend-item strong {
  color: var(--text-white);
}

/* Top Countries spans 6 cols */
.countries-card {
  grid-column: span 6;
}

.countries-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.country-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.flag-code {
  width: 100px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB 0%, #60A5FA 100%);
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

.country-percent {
  width: 40px;
  text-align: right;
  font-weight: 700;
  color: var(--text-white);
}

/* ==========================================================================
   SECTION 6 — INTEGRATIONS
   ========================================================================== */
.integrations-section {
  padding: 6rem 0;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.integration-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.integration-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
}

.int-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-white);
}

.int-info {
  flex: 1;
}

.int-name {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.int-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.int-status.connected {
  font-size: 0.7rem;
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.integrations-footer {
  text-align: center;
  margin-top: 3rem;
}

.int-footer-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.int-footer-text i {
  color: #60A5FA;
}

/* ==========================================================================
   SECTION 7 — TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  padding: 6rem 0;
}

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

.testimonial-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-6px);
}

.testimonial-card.highlight-card {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.testimonial-rating {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.author-name {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 8 — PRICING
   ========================================================================== */
.pricing-section {
  padding: 6rem 0;
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

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

.discount-badge {
  font-size: 0.75rem;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 3px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast);
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-slider {
  width: 20px;
  height: 20px;
  background: var(--text-white);
  border-radius: 50%;
  display: block;
  transition: transform var(--transition-fast);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.highlighted-plan {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  min-height: 40px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 2rem;
}

.plan-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.plan-price .amount {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1;
}

.plan-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.amount-custom {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-heading);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-features li i {
  color: var(--success);
}

.plan-features li.disabled {
  color: var(--text-dark);
}

.plan-features li.disabled i {
  color: var(--text-dark);
}

/* ==========================================================================
   SECTION 9 — FAQ
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
}

.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(22, 27, 34, 0.85);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #60A5FA;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 10 — CTA BANNER
   ========================================================================== */
.cta-section {
  padding: 4rem 0 6rem;
}

.cta-card {
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.cta-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
}

.cta-subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-guarantee {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta-guarantee i {
  color: var(--success);
  margin-right: 0.4rem;
}

/* ==========================================================================
   SECTION 11 — FOOTER
   ========================================================================== */
.footer-section {
  background: #0A0C10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 0 2.5rem;
}

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

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1.2rem 0 1.5rem;
  line-height: 1.6;
}

.contact-info-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-info-block a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-info-block a:hover {
  color: #60A5FA;
}

.contact-info-block i {
  color: var(--primary);
  width: 20px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.col-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-col a:hover {
  color: var(--text-white);
}

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

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--text-white);
}

/* ==========================================================================
   INTERACTIVE MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.modal-container {
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  position: relative;
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.modal-close:hover {
  color: var(--text-white);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-icon {
  margin: 0 auto 1rem;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
}

.modal-success {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  font-size: 3.5rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .revenue-card, .activity-card, .traffic-card, .countries-card {
    grid-column: span 12;
  }

  .widget-left, .widget-right {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .highlighted-plan {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #0F1117;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .hero-kpi-bar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}
