:root {
  /* --- Colors (Deep & Premium) --- */
  --bg-dark: #030305;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(10, 10, 20, 0.7);
  --bg-glass-border: rgba(255, 255, 255, 0.1);
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1; /* Lightened for better readability */
  --text-dim: #94a3b8;
  
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-hot: #f43f5e;

  /* --- Gradients --- */
  --grad-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #f43f5e 100%);
  --grad-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  
  /* --- Dimensions --- */
  --container-width: 1280px;
  --header-height: 90px;
  
  /* --- Typography --- */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Fluid Typography */
  --text-xs: clamp(0.75rem, 1vw, 0.875rem);
  --text-sm: clamp(0.875rem, 1.5vw, 1rem);
  --text-base: clamp(1rem, 2vw, 1.125rem);
  --text-lg: clamp(1.25rem, 2.5vw, 1.5rem);
  --text-xl: clamp(2rem, 4vw, 3rem);
  --text-2xl: clamp(2.5rem, 6vw, 4.5rem);
  --text-3xl: clamp(3rem, 8vw, 6rem);

  /* --- Radii & Spacing --- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  
  --space-lg: 8rem;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* --- Typography Helpers --- */
.h1 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.h2 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; }
.text-gradient {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted); }

/* --- Layout --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.section-spacing { padding: var(--space-lg) 0; }

/* --- Components: Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.5);
  color: white;
}
.btn-primary:hover::before { opacity: 1; }

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--grad-main);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
  backdrop-filter: blur(10px);
  border: 1px solid var(--bg-glass-border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--text-main);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background 0.3s ease, height 0.3s ease;
  display: flex;
  align-items: center;
}
.navbar.scrolled {
  background: rgba(3, 3, 5, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
  height: 70px;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-link { font-size: 0.95rem; font-weight: 500; opacity: 0.8; }
.nav-link:hover, .nav-link.active { opacity: 1; color: var(--text-main); }

/* --- Hero (Lighter & More Visible) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5; /* Increased from 0.2/0.3 */
  filter: saturate(1.2) contrast(1.1); /* Pop colors */
}

/* Gradient Mask to fade image at bottom but keep top visible */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(3,3,5,0.6) 0%, rgba(3,3,5,0.8) 60%, #030305 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 3rem; }

/* --- Animated Ribbon (Fixed) --- */
.trust-ribbon {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
  padding: 1.5rem 0;
  display: flex;
}

.ribbon-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.ribbon-item {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ribbon-item::before {
  content: "•";
  color: var(--accent-primary);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Cards & Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.card-premium {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-premium:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
  background: rgba(255, 255, 255, 0.05);
}

.card-img-wrap { height: 260px; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; transition: transform 0.6s ease; }
.card-premium:hover .card-img-wrap img { transform: scale(1.05); }

.card-body { padding: 2.5rem; flex: 1; display: flex; flex-direction: column; }

/* --- SEO Content Blocks --- */
.content-block h3 { color: var(--text-main); margin-bottom: 1rem; font-size: 1.5rem; }
.content-block p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }
.content-block ul { margin-bottom: 2rem; }
.content-block li { margin-bottom: 0.5rem; color: var(--text-muted); padding-left: 1.5rem; position: relative; }
.content-block li::before { 
  content: "→"; 
  position: absolute; left: 0; color: var(--accent-primary); 
}

/* --- Mobile Sticky CTA --- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: rgba(3, 3, 5, 0.95);
  backdrop-filter: blur(15px);
  padding: 1rem;
  z-index: 1000;
  border-top: 1px solid var(--bg-glass-border);
}
.mobile-sticky-cta .btn { width: 100%; padding: 0.8rem; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-sticky-cta { display: block; }
  .section-spacing { padding: 4rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* --- Utilities --- */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }
.mb-4 { margin-bottom: 2rem; }
