/* ═══ BASE ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* ═══ NOISE TEXTURE OVERLAY ═══ */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══ LAYOUT ═══ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ═══ SECTION DIVIDER ═══ */
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 48px;
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1.section-title {
  color: var(--gold);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ═══ PAGE HERO (shared across sub-pages) ═══ */
.page-hero {
  padding: 160px 24px 80px;
  text-align: center;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.page-hero .section-subtitle {
  margin-bottom: 0;
}

.page-hero + section {
  padding-top: 80px;
}

@media (max-width: 639px) {
  .page-hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

/* ═══ PARTICLES ═══ */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.6), 0 0 12px rgba(201, 168, 76, 0.3);
  animation: particleBlink ease-in-out infinite;
}

@keyframes particleBlink {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
.demo-screen::-webkit-scrollbar { width: 0; }

/* ═══ MOBILE BASE ═══ */
@media (max-width: 480px) {
  section { padding: 60px 0; }
}
