:root {
  /* =========================================
     Color Palette (SaaS Dark Mode Tech-Aesthetic)
     ========================================= */
  --bg-base: #060814; /* Deep blue/black */
  --bg-surface: #0b0f1e;
  --bg-surface-elevated: rgba(255, 255, 255, 0.03);
  --bg-surface-glass: rgba(6, 8, 20, 0.7);
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #ab1dfe; /* Neon Purple */
  --accent-secondary: #34e2e4; /* Neon Cyan */
  --accent-gradient: linear-gradient(135deg, #34e2e4 0%, #6366f1 50%, #ab1dfe 100%);
  --accent-glow: 0 0 40px rgba(99, 102, 241, 0.4);
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-color-hover: rgba(255, 255, 255, 0.15);

  /* =========================================
     Typography
     ========================================= */
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* =========================================
     Spacing & Layout
     ========================================= */
  --container-max-width: 1280px;
  --section-padding-y: clamp(5rem, 10vw, 8rem);
  --border-radius-sm: 12px;
  --border-radius-md: 24px;
  --border-radius-pill: 999px;

  /* =========================================
     Transitions & Effects
     ========================================= */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s var(--ease-smooth);
}

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

html {
  scroll-behavior: initial;
}

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

/* Background Grid Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -3;
  pointer-events: none;
}

/* Background Glowing Orbs */
.bg-orbs {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-orbs::before, .bg-orbs::after {
  content: '';
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  animation: floatOrb 20s infinite alternate ease-in-out;
}
.bg-orbs::before {
  top: -20%; left: -10%;
  background: var(--accent-primary);
}
.bg-orbs::after {
  bottom: -20%; right: -10%;
  background: var(--accent-secondary);
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.1); }
}

/* =========================================
   Typography Scale (H1 - H6)
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p { margin-bottom: 1.5rem; font-size: clamp(1rem, 1.2vw, 1.125rem); }
a { color: inherit; text-decoration: none; transition: color var(--transition-normal); }

/* =========================================
   Utilities & Badges
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--accent-secondary);
}

/* =========================================
   Layout Sections
   ========================================= */
.section { padding: var(--section-padding-y) 0; position: relative; }
.section-darker { background: linear-gradient(to bottom, transparent, var(--bg-surface), transparent); }

/* =========================================
   Components (Header, Buttons, Cards)
   ========================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1.5rem 0; transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom-color: var(--border-color);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.9375rem; }
.nav-links a:hover { color: var(--text-primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.5rem; border-radius: var(--border-radius-pill);
  font-weight: 500; font-size: 1rem; transition: all var(--transition-normal);
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--text-primary); color: var(--bg-base); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(255,255,255,0.15); }
.btn-accent { background: var(--text-primary); color: var(--bg-base); border: none; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,0.2); }

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1.5rem;
}
.bento-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 70%);
  opacity: 0; transition: opacity var(--transition-normal);
}
.bento-card:hover { transform: translateY(-5px); border-color: var(--border-color-hover); }
.bento-card:hover::before { opacity: 1; }

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-square { grid-column: span 1; }

@media (max-width: 992px) {
  .bento-large, .bento-wide { grid-column: span 4; }
  .bento-square { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento-square { grid-column: span 4; }
}

/* =========================================
   Animations
   ========================================= */
.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}
.reveal-fade { opacity: 0; transition: opacity 1s var(--ease-smooth); }
.reveal-up.is-visible, .reveal-fade.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
