/* ========== BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: rgba(14, 165, 233, 0.25); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: #1F2937; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #374151; }

/* ========== HERO BACKGROUND ========== */
.hero-glow {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-glow::before {
  content: ''; position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(14,165,233,0.08) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
}
.hero-radial {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(14,165,233,0.04) 0%, transparent 50%);
}
.hero-gradient-text {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #A78BFA 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== NAVBAR ========== */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-link {
  display: inline-flex; padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #6B7280;
  transition: all 0.2s; text-decoration: none;
}
.nav-link:hover { color: #E5E7EB; background: rgba(255,255,255,0.04); }

/* ========== SOCIAL ICONS ========== */
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  color: #6B7280; transition: all 0.2s;
}
.social-icon:hover { color: #D1D5DB; background: rgba(255,255,255,0.06); }

.footer-social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04);
  color: #6B7280; transition: all 0.3s;
}
.footer-social:hover {
  background: rgba(14,165,233,0.08); color: #0EA5E9;
  border-color: rgba(14,165,233,0.15); transform: translateY(-2px);
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  color: #fff; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #0EA5E9, #8B5CF6);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 2px 20px rgba(14,165,233,0.2);
  transition: all 0.3s;
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 4px 30px rgba(14,165,233,0.3);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 14px; font-weight: 500;
  color: #9CA3AF; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06);
  background: transparent; cursor: pointer; text-decoration: none;
  transition: all 0.3s;
}
.btn-ghost:hover { color: #E5E7EB; border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); }

.btn-cta-small {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; font-size: 12px; font-weight: 600;
  color: #fff; border-radius: 8px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #0EA5E9, #8B5CF6);
  box-shadow: 0 2px 8px rgba(14,165,233,0.15);
  transition: all 0.3s;
}
.btn-cta-small:hover { box-shadow: 0 4px 16px rgba(14,165,233,0.25); transform: translateY(-1px); }
.btn-cta-free { background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 2px 8px rgba(16,185,129,0.15); }
.btn-cta-free:hover { box-shadow: 0 4px 16px rgba(16,185,129,0.25); }

/* ========== SECTION LABELS ========== */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #0EA5E9;
}
.section-label::before {
  content: ''; display: block; width: 12px; height: 1px; background: #0EA5E9; opacity: 0.5;
}

/* ========== SECTION GLOWS ========== */
.section-glow-left {
  position: absolute; top: 20%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.section-glow-right {
  position: absolute; top: 20%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ========== STAT CELLS ========== */
.stat-cell {
  padding: 20px; text-align: center;
  background: rgba(255,255,255,0.01);
  transition: background 0.3s;
}
.stat-cell:hover { background: rgba(255,255,255,0.03); }

/* ========== TAB FILTER ========== */
.tab-container {
  display: inline-flex; position: relative;
  background: rgba(255,255,255,0.03); border-radius: 10px;
  padding: 3px; border: 1px solid rgba(255,255,255,0.04);
}
.tab-btn {
  position: relative; z-index: 1;
  padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #6B7280;
  background: transparent; border: none; cursor: pointer;
  transition: color 0.3s;
}
.tab-btn:hover { color: #D1D5DB; }
.tab-btn.active { color: #fff; }
.tab-indicator {
  position: absolute; height: calc(100% - 6px); top: 3px;
  background: rgba(255,255,255,0.06); border-radius: 8px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 80px rgba(14,165,233,0.03);
}
.product-card.hidden-card { display: none; }

/* ========== PILLAR CARD ========== */
.pillar-card {
  padding: 28px; border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s;
}
.pillar-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.pillar-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon-blue { background: rgba(14,165,233,0.08); color: #38BDF8; }
.pillar-icon-purple { background: rgba(139,92,246,0.08); color: #A78BFA; }
.pillar-icon-green { background: rgba(16,185,129,0.08); color: #34D399; }

.pillar-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #0EA5E9;
  text-decoration: none; transition: gap 0.3s;
}
.pillar-link:hover { gap: 10px; }
.pillar-link-purple { color: #A78BFA; }
.pillar-link-green { color: #34D399; }

/* ========== BLOG CARD ========== */
.blog-card {
  padding: 16px; border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s; cursor: pointer;
}
.blog-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* ========== TESTIMONIAL CARD ========== */
.testimonial-card {
  display: flex; flex-direction: column;
  padding: 28px; border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s;
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

/* ========== NEWSLETTER ========== */
.newsletter-card {
  position: relative; padding: 48px 32px; border-radius: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
@media (min-width: 640px) { .newsletter-card { padding: 64px 48px; } }
.newsletter-input {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  color: #fff; font-size: 14px;
  transition: all 0.3s; outline: none;
}
.newsletter-input::placeholder { color: #4B5563; }
.newsletter-input:focus {
  border-color: rgba(14,165,233,0.3);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.08);
}

/* ========== MARQUEE ========== */
.marquee-track { overflow: hidden; white-space: nowrap; }
.marquee-content {
  display: inline-flex; animation: marquee 40s linear infinite;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 28px; font-size: 13px; font-weight: 500;
  color: #4B5563; white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== LINE CLAMP ========== */
.line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
