/* Layout + grid background */

/* FIX: Ensure root has the background color for notch/overscroll areas */
html {
  background-color: #050917;
  height: 100%;
}

body {
  min-height: 100vh;
  /* UPDATED: Moved background here to fill the entire screen/notch */
  background-color: #050917;
  background-image: radial-gradient(circle at 10% 0%, #050917 0, #020308 45%, #000000 100%);
  background-repeat: no-repeat;
  background-size: cover;
  
  /* PERFORMANCE FIX: 'fixed' causes severe scroll lag in Safari. 
     Changed to 'scroll' (default) so it moves with the page naturally. */
  background-attachment: scroll; 
}

.ab-page {
  position: relative;
  min-height: 100vh;
  /* Standard Desktop Padding */
  padding: 170px 7vw 80px;
  overflow: hidden;
  /* UPDATED: Removed background from here to avoid duplication/clipping */
  background: transparent;
}

/* Subtle grid and noise */
.ab-page::before {
  content: "";
  /* PERFORMANCE: Reverted to absolute so it scrolls with the page (better caching) */
  position: absolute;
  inset: -200px;
  background-image:
    linear-gradient(var(--ab-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ab-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.ab-page::after {
  content: "";
  /* PERFORMANCE: Reverted to absolute */
  position: absolute;
  inset: 0;
  
  /* PERFORMANCE FIX: 
     Removed 'mix-blend-mode: screen'. 
     We mimic the effect with standard transparency, which is much faster for the GPU.
  */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0, transparent 60%);
  opacity: 0.1; /* Adjusted for natural look without blend mode */
  
  pointer-events: none;
  z-index: 0;
}

.ab-page-inner {
  position: relative;
  z-index: 1;
}

/* Sections */
.ab-section {
  position: relative;
  z-index: 1;
  padding: 24px 0 8px;
}

.ab-section h2 {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8f98b6;
  margin-bottom: 24px;
}

/* FULL WIDTH CONTAINER */
.ab-max-width {
  width: 100%;
  max-width: 100%; 
  margin-inline: auto;
}

/* Responsive */
@media (max-width: 768px) {
  /* UPDATED: Mobile Background Override on BODY */
  body {
    /* Center the light source (50%) but use IDENTICAL desktop colors (#050917) */
    background-color: #050917;
    background-image: radial-gradient(circle at 50% 0%, #050917 0, #020308 45%, #000000 100%);
  }

  .ab-page {
    /* UPDATED: Reduced padding to close gap between logo and hero */
    padding: 90px 20px 56px;
  }
}