/* ================================
   THEME BASE
   Page-level backgrounds and contexts
   Rule: Backgrounds belong to page/theme, not sections
   ================================ */

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

/* Base Page Styles */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;

}

/* Heading Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: var(--line-height-tight);
  font-weight: var(--weight-bold);
}

/* Lime Layer Background */
.lime-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(135deg, rgba(160, 255, 90, 0.07), rgba(160, 255, 90, 0.07) 1px, transparent 1px, transparent 8px),
    linear-gradient(to bottom, rgba(120, 200, 120, 0.06), rgba(24, 24, 24, 0.2)),
    var(--bg-surface);
}

.lime-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.65) 100%);
}

.lime-layer::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg, transparent 45%, rgba(180, 255, 120, 0.08) 50%, transparent 55%);
  animation: limeSheen 18s linear infinite;
}

@keyframes limeSheen {
  from {
    transform: translateX(-30%) translateY(-30%);
  }
  to {
    transform: translateX(30%) translateY(30%);
  }
}

/* Page-Specific Backgrounds */
body.page-home {
  /* Homepage uses lime layer + parallax sections */
  
}

body.page-standard {
  /* Standard pages with simple dark background */
  padding-top: 80px;
}

body.page-form {
  /* Form pages (get-started, no nav) */
  padding-top: 0;
  background: var(--bg-page);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .lime-layer {
    background:
      repeating-linear-gradient(135deg, rgba(160, 255, 90, 0.15), rgba(160, 255, 90, 0.15) 1px, transparent 1px, transparent 8px),
      linear-gradient(to bottom, rgba(120, 200, 120, 0.12), rgba(24, 24, 24, 0.2)),
      var(--bg-surface);
  }

  .lime-layer::before {
    background: linear-gradient(120deg, transparent 45%, rgba(180, 255, 120, 0.16) 50%, transparent 55%);
  }
}
