/* ============================================================
   Purposient Labs — Design System
   ============================================================ */

:root {
  --base: #191D1A;
  --surface: #21261F;
  --copper: #C17D42;
  --copper-light: #E0A66C;
  --ink: #F4F1EA;
  --muted: #9C9A8C;
  --line: rgba(244,241,234,0.09);
  --dot-neutral: #3a3d36;
  --line-neutral: #8a5a34;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--base);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: Georgia, 'Times New Roman', serif; }
.mono { font-family: 'Courier New', Consolas, monospace; letter-spacing: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; background: var(--copper); color: var(--base);
  padding: 10px 18px; border-radius: 4px; z-index: 1000; font-weight: bold; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

a { color: inherit; }
img, svg { max-width: 100%; display: block; }

/* ---------------- Navigation ---------------- */

.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(25,29,26,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 80px;
}
.logo {
  display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: 2px;
  text-decoration: none; color: var(--ink);
}
.navlinks {
  display: flex; gap: 36px; list-style: none; font-size: 12px; color: var(--muted); letter-spacing: 1px;
}
.navlinks a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  padding: 14px 4px; text-decoration: none; color: var(--ink); font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.cta { text-align: center; margin-top: 12px; border-bottom: none; }

/* ---------------- Shared layout ---------------- */

.screen {
  min-height: 100vh;
  padding: 90px 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.screen.surface { background: var(--surface); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.18; pointer-events: none; }

.label { font-size: 11px; color: var(--copper); text-transform: uppercase; letter-spacing: 2px; }
.label-rule { width: 40px; height: 1.5px; background: var(--copper); margin-top: 14px; opacity: 0.65; }

.accent { color: var(--copper); font-style: italic; }
.accent-plain { color: var(--copper); }

.cta {
  display: inline-block; padding: 16px 42px; border: 1px solid var(--copper); color: var(--ink);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; border-radius: 2px;
  text-decoration: none; background: transparent; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: Arial, Helvetica, sans-serif;
}
.cta:hover, .cta:focus-visible { background: rgba(193,125,66,0.12); }
.cta.solid { background: var(--copper); color: var(--base); border: none; font-weight: bold; }
.cta.solid:hover, .cta.solid:focus-visible { background: var(--copper-light); }
.nav-cta { padding: 10px 24px; font-size: 11px; }

/* ---------------- 1. Hero ---------------- */

.hero-center {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; z-index: 2;
}
.hero-leadin { font-size: clamp(18px, 2vw, 26px); font-weight: 400; color: var(--muted); margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 100px); font-weight: 400; line-height: 1.05; letter-spacing: -2px;
  max-width: 1180px; margin-top: 4px;
}
.hero-sub { margin-top: 32px; font-size: 19px; color: var(--muted); max-width: 480px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.scroll-cue {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--muted); letter-spacing: 3px; text-align: center; z-index: 2;
}

/* ---------------- 2. Problem ---------------- */

.problem-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 760px; }
.waveform { margin: 20px 0; width: 100%; max-width: 420px; height: auto; }
.problem-quote { font-size: clamp(36px, 6vw, 64px); font-style: italic; margin: 10px 0 30px 0; line-height: 1.2; }
.problem-line { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 520px; line-height: 1.7; }

/* ---------------- 3. Constellation ---------------- */

.const-wrap { flex: 1; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; }
.const-text h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 400; line-height: 1.22; letter-spacing: -1px; }
.const-text p { margin-top: 22px; font-size: 16px; color: var(--muted); max-width: 400px; line-height: 1.7; }
.node-label { font-size: 10.5px; letter-spacing: 2px; fill: var(--muted); text-transform: uppercase; }
.node-label.center { fill: var(--copper); font-weight: bold; }

/* ---------------- 4 & 6. Roadmap-pattern (also used for Ashramas) ---------------- */

.roadmap-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.roadmap-head { font-size: clamp(28px, 4vw, 46px); font-weight: 400; max-width: 680px; line-height: 1.25; }
.roadmap-stages {
  display: flex; gap: 20px; margin-top: 80px; width: 100%; max-width: 900px;
  justify-content: space-between; position: relative; flex-wrap: wrap;
}
.rline { position: absolute; top: 8px; left: 60px; right: 60px; height: 1px; background: var(--line); }
.rline-fill { right: auto; background: var(--copper); opacity: 0.4; }
.rstage { flex: 1; min-width: 120px; position: relative; z-index: 1; }
.rdot { width: 16px; height: 16px; border-radius: 50%; margin: 0 auto 26px auto; }
.rdot-solid { background: var(--copper); }
.rdot-light { background: var(--copper-light); }
.rdot-outline { background: var(--dot-neutral); border: 1px solid var(--copper); }
.rdot-empty { background: transparent; border: 1px solid var(--muted); }
.rstage h3 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: normal; }
.rstage p { margin-top: 10px; font-size: 13.5px; color: var(--muted); max-width: 200px; margin-left: auto; margin-right: auto; }
.see-more { margin-top: 70px; font-size: 12.5px; letter-spacing: 1.5px; color: var(--copper); }

/* ---------------- 5. Pillars ---------------- */

.pillars-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pillars-head { font-size: clamp(28px, 4vw, 46px); font-weight: 400; max-width: 640px; line-height: 1.2; margin-bottom: 64px; }
.pillars-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--surface); padding: 44px 34px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.pillar .num { font-size: 11px; color: var(--copper); }
.pillar h3 { font-size: 30px; font-weight: 400; margin-top: 60px; }
.pillar p { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.pillar-mechanism { margin-top: 12px; font-size: 12px; color: var(--copper); font-style: italic; line-height: 1.5; }

/* ---------------- 6. Living Library ---------------- */

.legacy-wrap { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
.legacy-text h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 400; line-height: 1.22; letter-spacing: -1px; }
.legacy-text p { margin-top: 22px; font-size: 16px; color: var(--muted); max-width: 420px; line-height: 1.7; }
.legacy-quote { margin-top: 26px; font-size: 15px; font-style: italic; color: var(--copper); }

/* ---------------- 8. Close / Join ---------------- */

.close-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.close-quote { font-size: 28px; font-style: italic; color: var(--ink); opacity: 0.85; margin-bottom: 22px; max-width: 640px; }
.close-wrap h2 { font-size: clamp(28px, 5vw, 52px); font-weight: 400; max-width: 760px; line-height: 1.25; }
.close-ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

.join-form { margin-top: 44px; width: 100%; max-width: 460px; }
.join-form-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.join-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 15px 18px; border-radius: 2px; border: 1px solid var(--line);
  background: rgba(244,241,234,0.06); color: var(--ink); font-size: 14px; font-family: inherit;
}
.join-form input[type="email"]::placeholder { color: var(--muted); }
.join-form input[type="email"]:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.join-status { margin-top: 14px; font-size: 13px; min-height: 18px; }
.join-status[data-state="success"] { color: var(--copper-light); }
.join-status[data-state="error"] { color: #e08e8e; }

/* ---------------- Footer ---------------- */

.site-footer { border-top: 1px solid var(--line); padding: 40px 80px; }
.footer-inner {
  max-width: 1440px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; color: inherit; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }

/* ---------------- Scroll reveal ---------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */

@media (max-width: 1024px) {
  .nav-inner, .screen, .site-footer { padding-left: 40px; padding-right: 40px; }
  .const-wrap, .legacy-wrap { grid-template-columns: 1fr; gap: 48px; }
  .const-wrap .const-text, .legacy-wrap .legacy-text { order: 1; }
  .const-wrap svg, .legacy-wrap svg { order: 2; max-width: 420px; margin: 0 auto; }
  .pillars-row { grid-template-columns: 1fr; }
  .pillar { min-height: unset; }
}

@media (max-width: 768px) {
  .navlinks, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[data-open="true"] { display: flex; }

  .nav-inner, .screen, .site-footer { padding-left: 24px; padding-right: 24px; }
  .screen { padding-top: 70px; padding-bottom: 70px; min-height: auto; }

  .problem-quote { margin: 6px 0 20px 0; }
  .roadmap-stages { flex-direction: column; gap: 32px; margin-top: 50px; }
  .rline { display: none; }
  .rstage { text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ctas, .close-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .cta, .close-ctas .cta { text-align: center; width: 100%; }
  .join-form-row { flex-direction: column; }
  .join-form-row .cta { width: 100%; text-align: center; }
}
