:root {
  --navy: #0B1437;
  --navy-2: #111c45;
  --navy-3: #16224f;
  --teal: #1FD6C2;
  --teal-soft: rgba(31, 214, 194, .14);
  --cyan: #2EA8F2;
  --gold: #F4C04A;
  --violet: #8C7CF0;
  --ink: #0B1437;
  --paper: #F5F3EC;        /* warm paper for light sections */
  --paper-2: #ECE8DC;
  --mist: #C7D2E6;
  --muted: #8FA0C2;
  --line: rgba(199, 210, 230, .14);
  --line-dark: rgba(11, 20, 55, .12);
  --maxw: 1160px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Spline Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--mist);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- atmosphere ---------- */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-1 { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(31,214,194,.35), transparent 65%); top: -15vw; right: -10vw; }
.glow-2 { width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(140,124,240,.28), transparent 65%); bottom: -10vw; left: -12vw; }
.grain {
  position: absolute; inset: 0; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared ---------- */
main, .nav, .footer { position: relative; z-index: 1; }
section { padding: clamp(4rem, 9vw, 8rem) clamp(1.4rem, 5vw, 4rem); max-width: var(--maxw); margin: 0 auto; }
.section-kicker {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 1.4rem;
}
.section-title {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.01em;
  margin-bottom: 2.8rem;
}
em { font-style: italic; color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 100px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn-solid { background: var(--teal); color: var(--navy); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(31,214,194,.6); }
.btn-line { background: transparent; color: #fff; border-color: var(--line); }
.btn-line:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: var(--teal-soft); color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--navy); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1.4rem, 5vw, 4rem);
  backdrop-filter: blur(12px);
  background: rgba(11,20,55,.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11,20,55,.85); }
.nav-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.mark { width: 18px; height: 18px; border-radius: 6px; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); display: inline-block; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { color: var(--mist); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { padding: .6rem 1.2rem; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; }
.hero-title {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(2.8rem, 9vw, 6.5rem); line-height: .98; letter-spacing: -.025em;
  margin-bottom: 1.8rem;
}
.hero-title span { display: block; }
.hero-lede { max-width: 40ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--mist); margin-bottom: 2.2rem; }
.hero-lede strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

/* living receipt card */
.hero-card {
  max-width: 520px; background: linear-gradient(160deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.hc-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.2rem; border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--mist); font-weight: 500;
}
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); animation: pulse 2s infinite; }
.hc-time { margin-left: auto; color: var(--muted); font-size: .76rem; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 var(--teal-soft);} 50%{ box-shadow: 0 0 0 6px rgba(31,214,194,0);} }
.hc-feed { list-style: none; padding: .6rem 0; min-height: 200px; }
.hc-feed li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .7rem 1.2rem; font-size: .9rem; color: var(--mist);
  opacity: 0; transform: translateY(8px); animation: feedIn .5s forwards;
}
.hc-feed li .ic { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; }
.hc-feed li .ic.pay { background: var(--teal-soft); color: var(--teal); }
.hc-feed li .ic.hold { background: rgba(244,192,74,.16); color: var(--gold); }
.hc-feed li .ic.watch { background: rgba(46,168,242,.16); color: var(--cyan); }
.hc-feed li b { color: #fff; font-weight: 600; }
.hc-feed li .amt { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes feedIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- manifesto ---------- */
.manifesto { max-width: 880px; }
.manifesto-body { }
.manifesto-line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.4; color: var(--mist);
  margin-bottom: 1.6rem; letter-spacing: -.01em;
}
.manifesto-line:first-child { color: #fff; }
.manifesto-line.is-final { color: var(--teal); font-weight: 500; }

/* ---------- agents ---------- */
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.agent-card {
  background: linear-gradient(165deg, var(--navy-2), rgba(17,28,69,.5));
  border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem;
  position: relative; overflow: hidden; transition: transform .3s ease, border-color .3s ease;
}
.agent-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.agent-card.accent-teal::before { background: var(--teal); }
.agent-card.accent-gold::before { background: var(--gold); }
.agent-card:hover { transform: translateY(-4px); border-color: rgba(199,210,230,.28); }
.agent-kind { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.agent-name { font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.7rem; margin-bottom: 1.4rem; }
.agent-lines { list-style: none; }
.agent-lines li { position: relative; padding-left: 1.6rem; margin-bottom: .9rem; font-size: .96rem; color: var(--mist); }
.agent-lines li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; }
.accent-teal .agent-lines li::before { background: var(--teal); }
.accent-gold .agent-lines li::before { background: var(--gold); }

/* ---------- how ---------- */
.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { border-top: 2px solid var(--line); padding-top: 1.4rem; }
.step-n { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--teal); display: block; margin-bottom: .6rem; line-height: 1; }
.step-title { font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.35rem; margin-bottom: .7rem; }
.step-body { font-size: .96rem; color: var(--mist); }

/* ---------- principles (light section) ---------- */
.principles {
  max-width: none; width: 100%;
  background: var(--paper); color: var(--ink);
  border-radius: 36px 36px 0 0;
}
.principles { padding-left: clamp(1.4rem, 5vw, 4rem); padding-right: clamp(1.4rem, 5vw, 4rem); }
.principles .section-kicker { color: #0a8c7e; }
.principle-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 3rem; }
.principle h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--ink); margin-bottom: .6rem; }
.principle p { font-size: 1rem; color: #4a5468; }

/* ---------- team ---------- */
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.person {
  background: linear-gradient(165deg, var(--navy-2), rgba(17,28,69,.4));
  border: 1px solid var(--line); border-radius: 20px; padding: 2rem; position: relative; overflow: hidden;
}
.person::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.person.accent-teal::before { background: var(--teal); }
.person.accent-gold::before { background: var(--gold); }
.person-role { font-size: .72rem; letter-spacing: .2em; font-weight: 600; margin-bottom: 1rem; }
.accent-teal .person-role { color: var(--teal); }
.accent-gold .person-role { color: var(--gold); }
.person-name { font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.6rem; margin-bottom: .3rem; }
.person-title { color: var(--mist); font-weight: 500; margin-bottom: .2rem; }
.person-note { color: var(--muted); font-size: .85rem; font-style: italic; margin-bottom: 1rem; }
.person-detail { font-size: .92rem; color: var(--mist); border-top: 1px solid var(--line); padding-top: 1rem; }

/* ---------- join ---------- */
.join { text-align: center; }
.join-inner { max-width: 640px; margin: 0 auto; }
.join-title { font-family: var(--serif); font-weight: 600; color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.02em; margin-bottom: 1.2rem; }
.join-lede { font-size: 1.1rem; color: var(--mist); margin-bottom: 2.2rem; }
.join-form { display: flex; gap: .8rem; max-width: 480px; margin: 0 auto 1rem; flex-wrap: wrap; }
.join-input {
  flex: 1 1 220px; padding: .9rem 1.2rem; border-radius: 100px;
  border: 1px solid var(--line); background: var(--navy-2); color: #fff; font-family: var(--sans); font-size: 1rem;
}
.join-input:focus { outline: none; border-color: var(--teal); }
.join-input::placeholder { color: var(--muted); }
.join-note { font-size: .85rem; color: var(--muted); }
.join-note.ok { color: var(--teal); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 3rem clamp(1.4rem, 5vw, 4rem) 4rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-meta { font-size: .82rem; color: var(--muted); line-height: 1.8; }
.footer-mail { color: var(--teal); text-decoration: none; font-weight: 500; }
.footer-mail:hover { text-decoration: underline; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); animation: reveal .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
.in-view { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.in-view.shown { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .in-view { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .agent-grid, .step-row, .people-grid, .principle-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); }
}
