:root {
  --lichen: #E8EBE0;
  --lichen-2: #DDE2D3;
  --loam: #1D2620;
  --loam-2: #3B4A3F;
  --moss: #56705A;
  --spore: #5A3FCF;
  --spore-soft: #B3A2FF;
  --term: #191A18;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 5.6vw, 80px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--lichen); color: var(--loam); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--spore); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--spore); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* nav */
.nav { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: 237px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 16px; }
.nav-links a { color: var(--loam); text-decoration: none; }
.nav-links .pill { border: 1.5px solid var(--loam); border-radius: 999px; padding: 11px 20px; font-weight: 600; }
.nav-links .pill:hover { background: var(--loam); color: var(--lichen); }

/* hero */
.hero { padding-top: 64px; padding-bottom: 120px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.hero-copy { position: relative; z-index: 2; max-width: 860px; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -.035em; }
.lede { margin-top: 28px; max-width: 620px; font-size: clamp(18px, 1.6vw, 21px); color: var(--loam-2); }
.hero-mark-wrap { position: relative; flex-shrink: 0; }
.hero-mark { position: relative; z-index: 1; width: 340px; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.hero-mark-wrap.alive .hero-mark { transform: scale(1.03); }
.hero-mark-wrap canvas { position: absolute; z-index: 0; top: -150px; right: -110px; bottom: -170px; left: -70px; width: calc(100% + 180px); height: calc(100% + 320px); pointer-events: none; }

/* signup */
.signup { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.signup label { font-size: 15px; font-weight: 600; }
.signup .row { display: flex; gap: 10px; }
.signup input[type=email] { width: 340px; height: 56px; padding: 0 18px; border: 1.5px solid #9DAA97; border-radius: 12px; background: #F6F7F2; color: var(--loam); font: inherit; font-size: 17px; }
.signup input[type=email]::placeholder { color: #7C8878; }
.signup input[type=email][aria-invalid=true] { border-color: #A3322B; }
.signup button { height: 56px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--spore); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.signup button:hover { background: #4A31B5; }
.signup button:disabled { opacity: .7; cursor: progress; }
.signup .hint { font-size: 15px; color: var(--moss); }
.signup .status:empty { display: none; }
.signup .status { font-size: 16px; font-weight: 500; }
.signup .status.error { color: #A3322B; }
.signup.done label, .signup.done .row, .signup.done .hint { display: none; }
.signup.done .status { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.25; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.signup.dark input[type=email] { background: #27322B; border-color: var(--moss); color: var(--lichen); }
.signup.dark input[type=email]::placeholder { color: #93A08E; }
.signup.dark button { background: var(--spore-soft); color: var(--loam); }
.signup.dark button:hover { background: #C8BCFF; }
.signup.dark .status.error { color: #FFB4A8; }
.signup.dark :focus-visible { outline-color: var(--spore-soft); }

/* terminals */
.term { margin: 0; background: var(--term); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 #2C2E2A inset, 0 30px 60px -30px rgba(29, 38, 32, .55); font-family: var(--mono); font-size: 13px; color: #E6E4DF; min-width: 0; }
.bar { height: 40px; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid #2A2B28; color: #8C8983; font-size: 12px; white-space: pre; }
.dots { display: flex; gap: 8px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A3B37; }
.tbody { padding: 20px 22px 0; overflow-x: auto; display: grid; grid-template-columns: minmax(max-content, 1fr); }
.tbody.pad { padding-bottom: 22px; }
.ln { height: 22px; line-height: 22px; white-space: pre; }
.ln b { font-weight: 700; }
.dim { color: #8C8983; } .ok { color: #7CC47F; } .spore { color: var(--spore-soft); } .clay { color: #D97757; }
.ln.add { background: #1E3524; color: #A4D8A6; } .ln.del { background: #3D2023; color: #E6A3A6; }
.prompt { background: #262724; border-radius: 4px; padding: 0 8px; margin: 0 -8px; }
.tinput { margin: 18px 22px 0; border: 1px solid #4A4B46; border-radius: 8px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #C9C6C0; white-space: nowrap; overflow: hidden; }
.cursor { width: 8px; height: 16px; background: #8C8983; animation: blink 1.1s steps(1) infinite; }
.tfoot { padding: 8px 24px 18px; color: #6F6C66; font-size: 12px; }
@keyframes blink { 50% { opacity: 0; } }

.demo { margin-top: 80px; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.demo .term { width: 100%; max-width: 640px; }
.thread { display: none; }
.thread-v { width: 60px; height: 64px; margin-left: 40px; }
.thread path, .thread-v path { stroke: var(--spore); stroke-width: 1.1; stroke-linecap: round; }
.thread path.main, .thread-v path.main { stroke-width: 2.2; }
.thread .node { fill: var(--spore); }
.caption { margin-top: 20px; font-size: 15px; color: var(--moss); max-width: 720px; }

@media (min-width: 1360px) {
  .demo { flex-direction: row; gap: 96px; }
  .demo .term { width: 592px; height: 508px; flex-shrink: 0; }
  .thread { display: block; position: absolute; left: 592px; top: 0; width: 96px; height: 508px; }
  .thread-v { display: none; }
  .thread path.main { stroke-dasharray: 160; stroke-dashoffset: 160; animation: grow 1.2s .6s cubic-bezier(.3, .7, .2, 1) forwards; }
}
@keyframes grow { to { stroke-dashoffset: 0; } }

/* how it works */
.how { background: var(--lichen-2); padding: 120px 0; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.03em; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps li { border-top: 2px solid var(--loam); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.steps .n { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--spore); }
.steps h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.steps p { font-size: 17px; line-height: 1.55; color: var(--loam-2); }

/* split sections */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-top: 140px; padding-bottom: 70px; }
.split-rev { padding-top: 70px; padding-bottom: 140px; }
.split .split-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; }
.split .term { grid-column: 7 / span 6; }
.split-rev .term { grid-column: 1 / span 6; grid-row: 1; }
.split-rev .split-copy { grid-column: 8 / span 5; grid-row: 1; }
.split-copy p { font-size: 19px; line-height: 1.55; color: var(--loam-2); }

/* join */
.join { background: var(--loam); color: var(--lichen); padding: 120px 0 56px; }
.join h2 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1; letter-spacing: -.035em; max-width: 820px; }
.join-lede { margin-top: 24px; max-width: 560px; font-size: 19px; line-height: 1.55; color: #B9C4B4; }
.legal { margin-top: 120px; border-top: 1px solid #3A4A3F; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: #93A08E; }
.legal img { width: 183px; }

/* smaller screens */
@media (max-width: 1100px) {
  .hero-mark { width: 240px; }
  .split, .split-rev { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
  .split-rev .split-copy { order: -1; }
  .split .term { max-width: 720px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .how { padding: 88px 0; }
}
@media (max-width: 760px) {
  .nav { height: 80px; }
  .brand img { width: 170px; }
  .nav-links a:not(.pill) { display: none; }
  .nav-links .pill { padding: 9px 16px; font-size: 15px; }
  .hero { padding-top: 24px; padding-bottom: 80px; }
  .hero-top { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  .hero-mark { width: 150px; }
  .signup .row { flex-direction: column; }
  .signup input[type=email], .signup button { width: 100%; }
  .demo { margin-top: 56px; }
  .term { font-size: 12px; }
  .join { padding-top: 88px; }
  .legal { margin-top: 80px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .thread path.main { animation: none; stroke-dashoffset: 0; }
}
