/* ============================================================
    LAYOUT.CSS — Page structure, grid, spacing, containers
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

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

/* ── Container ── */
.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Background Texture ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(30, 51, 72, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 51, 72, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.05) 60%,
    transparent
  );
}

/* ── Ambient Glow ── */
body::after {
  content: "";
  position: fixed;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--accent-glow),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Sections ── */
section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-xs);
  line-height: 1.15;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border),
    transparent
  );
}

/* ── Responsive Breakpoints ── */
@media (max-width: 860px) {
  .hide-mobile {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 2rem);
  }
}