/* ══════════════════════════════════════════
   LAYOUT — design tokens, reset, structure
   ══════════════════════════════════════════ */

/* ─── Design tokens ─── */
:root {
  --bg:            #080808;
  --bg-secondary:  #111111;
  --bg-card:       #161616;
  --text:          #f0ebe2;
  --text-muted:    #888;
  --accent:        #ff4500;
  --accent-warm:   #ff6a2a;
  --border:        rgba(240,235,226,0.1);
  --nav-blur:      rgba(8,8,8,0.88);
  --grain-opacity: 0.035;
}
[data-theme="light"] {
  --bg:            #f5f0e8;
  --bg-secondary:  #ece7de;
  --bg-card:       #ffffff;
  --text:          #0e0d0b;
  --text-muted:    #666;
  --accent:        #d63a00;
  --accent-warm:   #e55a1a;
  --border:        rgba(14,13,11,0.12);
  --nav-blur:      rgba(245,240,232,0.92);
  --grain-opacity: 0.02;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #fff; }

/* ─── Base ─── */
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.45s ease, color 0.45s ease;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser chrome (URL bar, nav bar) */
  display: flex;
  flex-direction: column;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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");
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9999;
}

/* ─── Hero layout ─── */
.hero-section {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 4rem;
}
.hero-content { position: relative; z-index: 2; }

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}
.orb-1 { width: 520px; height: 520px; background: rgba(255,69,0,0.07);  top: -120px;  right: -160px; }
.orb-2 { width: 320px; height: 320px; background: rgba(255,110,50,0.05); bottom: 60px; left: -120px;  }

/* ─── Footer layout ─── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 0.6rem 0;
  transition: background 0.45s;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Responsive ─── */
@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 64px;
    padding-bottom: 1rem;
  }
  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }
  .hero-sub,
  .hero-cta-note {
    display: none;
  }
  .waitlist-form-wrap {
    padding: 1.25rem;
  }
}
