/* ==========================================================================
   BASE & RESET STYLES (PREMIUM LIGHT B2B)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Fixed Animated Interactive Canvas in Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Floating Ambient Glow Orbs */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  background: 
    radial-gradient(ellipse 340px 340px at 90% 10%, rgba(79, 70, 229, 0.1), transparent),
    radial-gradient(ellipse 300px 300px at 10% 50%, rgba(0, 240, 255, 0.06), transparent),
    radial-gradient(ellipse 260px 260px at 80% 90%, rgba(56, 189, 248, 0.06), transparent);
}

.ambient-orb-1 { display: none; }
.ambient-orb-2 { display: none; }
.ambient-orb-3 { display: none; }



/* Architectural Grid Texture */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* Make sure all content is layered over background canvas */
.site-header, main, .site-footer, .top-bar, .modal-overlay, .toast-container {
  position: relative;
  z-index: 1;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.28;
  text-wrap: balance;
}

h4 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.section-title, .hero-title, .audience-title, .focus-title, .pricing-tier-name, .final-cta-content h2, .final-cta-form-title {
  text-wrap: balance;
}

.section-subtitle, .hero-subtitle, .audience-sub, .focus-sub, .audience-verdict, .final-cta-content p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

input, button, select, textarea {
  font: inherit;
  border: none;
  outline: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  scroll-margin-top: 85px;
}

.section-alt {
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-white {
  background-color: transparent;
}

/* Section Header Component */
.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00F0FF;
  background: rgba(15, 23, 42, 0.75);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Helpers */
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

@media (max-width: 768px) {
  .section {
    padding-top: var(--section-padding-y-mobile);
    padding-bottom: var(--section-padding-y-mobile);
  }
  .section-header {
    margin-bottom: 36px;
  }
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}
