/* =========================================================
   lowlight — stylesheet
   tokens: business/company_os/branding/tokens/tokens.json
   ========================================================= */

@font-face {
  font-family: 'Denton Test';
  src: url('/fonts/DentonTest-ExtraBoldItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --void:   #0D0D0F;
  --signal: #E0E0E4;
  --dim:    #B0B0B8;
  --muted:  #52525C;
  --edge:   #2C2C33;
  --lift:   #1E1E22;
  --raise:  #141416;

  --sleep:  #E8830A;
  --focus:  #4A90D4;
  --med:    #D4882A;
  --flow:   #8B9E9A;

  --wm-a:   #D4882A;
  --wm-b:   #A85FBF;

  --f-mark: 'Denton Test', serif;
  --f-disp: 'Switzer', sans-serif;
  --f-body: 'Satoshi', sans-serif;
  --f-mono: 'Courier New', 'SF Mono', monospace;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--signal);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, canvas { display: block; }

/* ── Skip nav ───────────────────────────────────────────── */
.skip-nav {
  position: absolute; left: -9999px; top: 8px;
  background: var(--sleep); color: var(--void);
  padding: 8px 16px; border-radius: 4px;
  font-size: 13px; font-weight: 500; z-index: 9999;
}
.skip-nav:focus { left: 16px; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Shared section header ──────────────────────────────── */
.section-header { margin-bottom: 56px; }

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--signal);
}

/* ── Buttons ────────────────────────────────────────────── */
.cta-primary {
  display: inline-block;
  background: var(--sleep);
  color: var(--void);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
  text-align: center;
}
.cta-primary:hover { opacity: .82; }
.cta-primary:disabled { opacity: .45; cursor: default; }

.cta-secondary {
  display: inline-block;
  font-size: 15px;
  color: var(--dim);
  padding: 14px 8px;
  transition: color .2s;
}
.cta-secondary:hover { color: var(--signal); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#gl-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: .9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 80px 32px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo {
  margin-bottom: 64px;
}

.logo-wordmark {
  font-family: var(--f-mark);
  font-weight: 800;
  font-style: italic;
  font-size: 34px;
  letter-spacing: -.01em;
  background: linear-gradient(105deg, var(--wm-a), var(--wm-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Headline */
.hero-headline {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 88px);
  letter-spacing: -.035em;
  line-height: 1.02;
  color: var(--signal);
  margin-bottom: 28px;
}

.hero-body {
  font-size: 18px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 52px;
  max-width: 480px;
}

.hero-body-detail {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: .01em;
}

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scroll-fade 2s ease-in-out infinite;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0; transform: scaleY(.5); transform-origin: top; }
  50%       { opacity: 1; transform: scaleY(1); }
}

/* ── Statement ──────────────────────────────────────────── */
.statement {
  padding: 80px 0;
  border-top: 1px solid var(--lift);
}

.statement-text {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -.02em;
  line-height: 1.7;
  color: var(--dim);
  max-width: 680px;
}

.statement-text strong {
  color: var(--sleep);
  font-weight: 300;
}

/* ── Now ────────────────────────────────────────────────── */
.now {
  padding: 120px 0;
  border-top: 1px solid var(--lift);
}

.now-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--raise);
  border: 1px solid var(--lift);
  border-radius: 20px;
  padding: 56px;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}

.now-title {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--signal);
  margin-bottom: 20px;
}

.now-desc {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 440px;
}

.now-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.now-meta span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--lift);
  padding: 4px 10px;
  border-radius: 4px;
}

.now-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.now-visual {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,131,10,.18) 0%, rgba(168,95,191,.12) 50%, transparent 75%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-glow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,131,10,.35) 0%, rgba(168,95,191,.2) 60%, transparent 100%);
  animation: now-pulse 4s ease-in-out infinite;
}

@keyframes now-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%       { transform: scale(1.15); opacity: 1; }
}

.now-next {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.now-next-link {
  color: var(--sleep);
  transition: opacity .2s;
}
.now-next-link:hover { opacity: .75; }

/* ── Science ────────────────────────────────────────────── */
.science {
  padding: 120px 0;
  border-top: 1px solid var(--lift);
}

.science-intro {
  font-size: 17px;
  color: var(--dim);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 56px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--lift);
  border-radius: 16px;
  overflow: hidden;
}

.pillar {
  padding: 40px;
  border-right: 1px solid var(--lift);
}
.pillar:last-child { border-right: none; }

.pillar-name {
  font-family: var(--f-disp);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--signal);
  margin-bottom: 14px;
}

.pillar-text {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.75;
}

.science-footer {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
  margin-top: 40px;
}

/* ── Manifesto ──────────────────────────────────────────── */
.manifesto {
  padding: 120px 0;
  border-top: 1px solid var(--lift);
}

.manifesto-text {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -.025em;
  line-height: 1.5;
  color: var(--dim);
  max-width: 700px;
}

.manifesto-text em {
  font-style: normal;
  color: var(--signal);
  display: block;
  margin-top: 20px;
}

/* ── Guide / Email ──────────────────────────────────────── */
.guide {
  padding: 120px 0;
  border-top: 1px solid var(--lift);
}

.guide-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  background: var(--raise);
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 56px;
}

.guide-title {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--signal);
  margin-bottom: 16px;
}

.guide-desc {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 28px;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-list li {
  font-size: 14px;
  color: var(--dim);
  padding-left: 20px;
  position: relative;
}

.guide-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sleep);
  font-size: 12px;
}

.guide-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-form-intro {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 28px;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-form input[type="email"] {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--edge);
  border-radius: 8px;
  color: var(--signal);
  font-family: var(--f-body);
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.email-form input[type="email"]:focus { border-color: var(--sleep); }
.email-form input[type="email"]::placeholder { color: var(--muted); }

.form-note {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-success {
  font-size: 14px;
  color: var(--sleep);
  min-height: 20px;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq {
  padding: 120px 0;
  border-top: 1px solid var(--lift);
}

.faq-list { max-width: 720px; }

.faq-item { border-bottom: 1px solid var(--lift); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  color: var(--signal);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  line-height: 1.5;
}

.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
  font-weight: 300;
  line-height: 1;
}

.faq-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
  color: var(--sleep);
}

.faq-a {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.8;
  padding-bottom: 24px;
  padding-right: 40px;
}

.faq-a a {
  color: var(--sleep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--lift);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-mark {
  font-family: var(--f-mark);
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -.01em;
  background: linear-gradient(105deg, var(--wm-a), var(--wm-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer nav {
  display: flex;
  gap: 28px;
}

.footer nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}
.footer nav a:hover { color: var(--signal); }

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  width: 100%;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--lift); }
  .pillar:last-child { border-bottom: none; }

  .guide-card { grid-template-columns: 1fr; gap: 40px; padding: 36px; }
  .now-card { grid-template-columns: 1fr; gap: 40px; padding: 36px; }
  .now-right { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero-inner { padding: 60px 20px 100px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .cta-primary { width: 100%; }
  .cta-secondary { padding: 10px 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .faq-a { padding-right: 0; }
  .guide-card { padding: 28px; }
  .now-card { padding: 28px; }
  .section-header { margin-bottom: 36px; }
  .now, .science, .manifesto, .guide, .faq { padding: 80px 0; }
  .statement { padding: 60px 0; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #gl-canvas { display: none; }
  .hero { background: #0D0D0F; }
  .hero-scroll { display: none; }
  * { animation: none !important; transition: none !important; }
}

/* ── Audio Preview Player ── */
.audio-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--raise);
  border: 1px solid var(--lift);
  border-radius: 40px;
  width: fit-content;
  margin: 24px auto 0;
}
.audio-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sleep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--void);
  font-size: 12px;
  flex-shrink: 0;
  transition: opacity .15s;
}
.audio-play-btn:hover { opacity: .8; }
.audio-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}
.audio-waveform span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--sleep);
  opacity: .4;
  height: 8px;
  transition: height .1s ease;
}
.audio-waveform.playing span {
  opacity: .8;
  animation: waveform-bar 1.2s ease-in-out infinite;
}
.audio-waveform.playing span:nth-child(1) { animation-delay: 0s; }
.audio-waveform.playing span:nth-child(2) { animation-delay: .1s; }
.audio-waveform.playing span:nth-child(3) { animation-delay: .2s; }
.audio-waveform.playing span:nth-child(4) { animation-delay: .3s; }
.audio-waveform.playing span:nth-child(5) { animation-delay: .4s; }
.audio-waveform.playing span:nth-child(6) { animation-delay: .5s; }
.audio-waveform.playing span:nth-child(7) { animation-delay: .6s; }
.audio-waveform.playing span:nth-child(8) { animation-delay: .7s; }
.audio-waveform.playing span:nth-child(9) { animation-delay: .8s; }
.audio-waveform.playing span:nth-child(10) { animation-delay: .9s; }
.audio-waveform.playing span:nth-child(11) { animation-delay: 1.0s; }
.audio-waveform.playing span:nth-child(12) { animation-delay: 1.1s; }
.audio-waveform.playing span:nth-child(13) { animation-delay: 0.05s; }
.audio-waveform.playing span:nth-child(14) { animation-delay: .15s; }
.audio-waveform.playing span:nth-child(15) { animation-delay: .25s; }
@keyframes waveform-bar {
  0%, 100% { height: 6px; }
  50%       { height: 20px; }
}
.audio-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Social Proof ── */
.proof {
  padding: 64px 0;
  border-top: 1px solid var(--lift);
  border-bottom: 1px solid var(--lift);
}
.proof-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.proof-num {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--signal);
  letter-spacing: -.02em;
}
.proof-label {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.proof-tagline {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .06em;
}

/* ── Footer About ── */
.footer-about {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--lift);
  width: 100%;
}
.footer-about-text {
  font-size: .875rem;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.6;
}
.footer-about-text strong {
  color: var(--signal);
  font-weight: 400;
}

/* ── Exit Intent Modal ── */
.exit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,15,.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.exit-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.exit-modal {
  background: var(--raise);
  border: 1px solid var(--lift);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
}
.exit-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.exit-modal h3 {
  font-size: 1.4rem;
  font-weight: 300;
  margin: 0 0 12px;
  color: var(--signal);
}
.exit-modal p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
}
.exit-modal .email-form { flex-direction: column; gap: 10px; }
.exit-modal .email-form input { width: 100%; }

@media (max-width: 600px) {
  .proof-stats { gap: 32px; }
  .audio-preview { margin: 16px auto 0; }
}
