:root {
  --bg-dark: #0B0A1E;
  --bg-card: rgba(23, 20, 52, 0.4);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --accent-indigo: #818CF8;
  --accent-pink: #F43F5E;
  --border-light: rgba(255, 255, 255, 0.08);
  
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.25) 0%, rgba(244, 63, 94, 0.25) 100%);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.5) 0%, rgba(244, 63, 94, 0.5) 100%);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
}

/* Particles Canvas backdrop */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 10% 70%, rgba(244, 63, 94, 0.04) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
}

/* Landing Header & Progress Bar */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-indigo) 0%, #ec4899 50%, var(--accent-pink) 100%);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
  z-index: 101;
  transition: width 0.1s ease-out;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 10, 30, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.header.scrolled {
  background: rgba(11, 10, 30, 0.85);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(129, 140, 248, 0.15);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled .header-container {
  padding: 10px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav a:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.blob-purple {
  top: -100px;
  left: -100px;
  background: var(--accent-indigo);
}
.blob-pink {
  bottom: 0px;
  right: -100px;
  background: var(--accent-pink);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-indigo);
  border: 1px solid rgba(129, 140, 248, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-indigo) 30%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.users-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.avatars {
  display: flex;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-left: -8px;
}
.avatar:first-child {
  margin-left: 0;
}

/* Mockup Layout */
.hero-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.mockup-header {
  background: rgba(11, 10, 30, 0.4);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.window-buttons {
  display: flex;
  gap: 6px;
}
.win-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.win-red { background: #FF5F56; }
.win-yellow { background: #FFBD2E; }
.win-green { background: #27C93F; }
.mockup-address {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: monospace;
  font-size: 11px;
  padding: 4px 16px;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
}
.mockup-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.mock-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.mock-kpi {
  justify-content: center;
}
.mock-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.mock-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}
.mock-chart-donut {
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mock-donut {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid rgba(129, 140, 248, 0.1);
  border-top-color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-donut-pct {
  font-size: 10px;
  font-weight: 700;
}
.mock-graph-area {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}
.graph-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.mock-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 80px;
  padding: 0 10px;
}
.mock-bar {
  width: 20px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-indigo) 0%, var(--accent-pink) 100%);
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #FFFFFF !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}
.btn-outline {
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-primary) !important;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-primary) !important;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Features Section */
.features, .install, .pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.2);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Install Guide */
.install-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.step-num {
  font-size: 48px;
  font-weight: 800;
  color: rgba(129, 140, 248, 0.1);
  position: absolute;
  top: 16px;
  right: 24px;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 700;
}
.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pricing Section */
.pricing-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: var(--transition);
}
.pricing-card.premium {
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(30, 26, 68, 0.4);
}
.premium-badge {
  position: absolute;
  top: -12px;
  right: 32px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.price {
  font-size: 36px;
  font-weight: 800;
}
.price span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.pricing-features li {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 24px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.animate-slide-up {
  animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Apple-style Scroll Reveal Animation */
.reveal-section {
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal-section.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Responsive Grid and Mobile Padding */
@media (max-width: 900px) {
  .hero {
    padding: 110px 16px 60px 16px;
    min-height: auto;
  }
  .features, .install, .pricing {
    padding: 60px 16px;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .hero-container, .features-grid, .install-steps, .pricing-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nav {
    display: none;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .step-card, .feature-card, .pricing-card {
    padding: 24px;
  }
  .pricing-features {
    grid-template-columns: 1fr !important;
  }
}

/* Browser Tabs Selector */
.browser-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.browser-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.browser-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.browser-tab-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: transparent;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* Browser Guide Content */
.browser-guide-content {
  display: none;
  animation: tabFadeIn 0.5s ease-out forwards;
}
.browser-guide-content.active {
  display: block;
}

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

/* 3D Tilt and Cursor follow Glow Spotlight */
.feature-card, .step-card, .pricing-card, .hero-mockup {
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card::before, .step-card::before, .pricing-card::before, .hero-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    400px circle at var(--mouse-x, 0%) var(--mouse-y, 0%),
    rgba(129, 140, 248, 0.25),
    rgba(244, 63, 94, 0.15) 50%,
    transparent 100%
  );
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.feature-card:hover, .step-card:hover, .pricing-card:hover, .hero-mockup:hover {
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow: 0 20px 40px -15px rgba(129, 140, 248, 0.15), 0 0 30px -5px rgba(244, 63, 94, 0.05);
}
