/* =========================================================
   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;
}

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

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.exp-card {
  position: relative;
  background: var(--raise);
  border: 1px solid var(--lift);
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .3s, transform .3s;
}

.exp-card:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
}

.exp-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
  border-radius: 16px;
}
.exp-card:hover .exp-glow { opacity: 1; }

.exp-sleep .exp-glow { background: radial-gradient(ellipse at 20% 20%, rgba(232,131,10,.12) 0%, transparent 65%); }
.exp-focus .exp-glow { background: radial-gradient(ellipse at 20% 20%, rgba(74,144,212,.12) 0%, transparent 65%); }
.exp-med   .exp-glow { background: radial-gradient(ellipse at 20% 20%, rgba(212,136,42,.12) 0%, transparent 65%); }
.exp-flow  .exp-glow { background: radial-gradient(ellipse at 20% 20%, rgba(139,158,154,.12) 0%, transparent 65%); }

.exp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.exp-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.exp-sleep .exp-tag { color: var(--sleep); }
.exp-focus .exp-tag { color: var(--focus); }
.exp-med   .exp-tag { color: var(--med); }
.exp-flow  .exp-tag { color: var(--flow); }

.exp-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.exp-badge--live {
  background: rgba(232,131,10,.15);
  color: var(--sleep);
  border: 1px solid rgba(232,131,10,.3);
}
.exp-badge--soon {
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border: 1px solid var(--lift);
}

.exp-name {
  font-family: var(--f-disp);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: var(--signal);
  margin-bottom: 14px;
}

.exp-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.exp-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

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

.exp-link {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
  margin-top: auto;
}
.exp-link:hover { color: var(--signal); }

.exp-coming {
  opacity: .5;
  transition: opacity .3s, border-color .3s, transform .3s;
}
.exp-coming:hover { opacity: .85; }

/* ── 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; }
}

@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; }
  .section-header { margin-bottom: 36px; }
  .experiences, .science, .manifesto, .guide, .faq { padding: 80px 0; }
  .statement { padding: 60px 0; }
  .exp-grid { grid-template-columns: 1fr; }
}

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