:root {
  color-scheme:light;
  --paper:#faf9f6;
  --ink:#20372e;
  --muted:#596b62;
  --green:#216645;
  --line:#dce4dc;
  --surface:#ffffff;
  --soft:#edf3ec;
  --accent:#387450;
  --hover:#184f35;
  --on-accent:#ffffff;
  --field-border:#96ad9c;
  --glow:#dfecdf;
  --shadow:#183d2512;
  font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.65;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:2rem
}
body {
  margin:0
}
a {
  color:inherit;
  text-decoration-thickness:1px;
  text-underline-offset:.3em
}
a,button {
  touch-action:manipulation
}
a:focus-visible,button:focus-visible,textarea:focus-visible,input:focus-visible {
  outline:3px solid var(--green);
  outline-offset:5px
}
header,main,footer {
  max-width:1240px;
  margin:auto;
  padding-inline:3rem
}
header {
  padding-block:1.8rem
}
nav,.brand,.nav-links,.actions {
  display:flex;
  align-items:center
}
nav {
  justify-content:space-between;
  gap:1.5rem
}
.brand {
  gap:.7rem;
  font-weight:650;
  letter-spacing:-.035em;
  text-decoration:none;
  font-size:1.2rem
}
.brand-mark {
  display:block;
  width:36px;
  height:36px;
  flex-shrink:0
}
.project-label {
  font-size:.7rem;
  color:var(--muted);
  letter-spacing:0;
  font-weight:400
}
.nav-links {
  gap:2rem;
  font-size:.85rem
}
.nav-links a {
  text-decoration:none
}
.nav-links a:hover,.text-link:hover {
  color:var(--green);
  text-decoration:underline
}
.skip {
  position:absolute;
  top:-100px;
  left:1rem;
  padding:.7rem;
  background:var(--paper);
  z-index:5
}
.skip:focus {
  top:1rem
}
.hero {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:2rem;
  align-items:center;
  padding-block:5rem 4rem
}
.eyebrow {
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.06em;
  display:flex;
  gap:.6rem;
  align-items:center
}
h1,h2,h3,p,figure {
  margin:0
}
h1 {
  font-size:clamp(3rem,5.3vw,4.8rem);
  line-height:1.07;
  font-weight:500;
  letter-spacing:-.065em;
  margin-block:1.5rem
}
h1 em {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  color:var(--accent);
  letter-spacing:-.06em
}
.intro {
  font-size:1rem;
  max-width:44ch;
  color:var(--muted);
  line-height:1.85
}
.actions {
  gap:1.6rem;
  flex-wrap:wrap;
  margin-top:2rem
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:1.8rem;
  padding:.9rem 1.2rem;
  background:var(--green);
  color:var(--on-accent);
  border-radius:8px;
  text-decoration:none;
  font-size:.85rem;
  font-weight:600;
  transition:transform .2s,background .2s
}
.button:hover,button:hover {
  background:var(--hover);
  transform:translateY(-2px)
}
.button:active,button:active {
  transform:translateY(1px)
}
.text-link {
  font-size:.8rem;
  text-decoration:none
}
.hero-note {
  font-size:.68rem;
  color:var(--muted);
  margin-top:1.3rem;
  word-spacing:.15em
}
.visual {
  position:relative;
  min-height:450px;
  display:flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;
  overflow:clip
}
.visual-grid {
  position:absolute;
  inset:0;
  border-radius:50%;
  background:radial-gradient(ellipse,var(--glow),transparent 70%);
  z-index:-2
}
.orbit {
  position:absolute;
  border:1px solid var(--line);
  border-radius:50%;
  z-index:-1;
  width:90%;
  height:82%;
  transform:rotate(-23deg)
}
.orbit-two {
  width:76%;
  height:100%;
  transform:rotate(32deg)
}
.summary {
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:0 22px 65px var(--shadow);
  border-radius:18px;
  width:85%;
  max-width:370px;
  padding:1.5rem;
  transform:rotate(-3deg);
  animation:arrive .8s .1s both
}
.summary-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  font-size:.7rem;
  font-weight:600
}
.demo {
  font-weight:400;
  font-size:.6rem;
  background:var(--soft);
  padding:.15rem .5rem;
  border-radius:4px;
  color:var(--muted)
}
.balance-label {
  font-size:.65rem;
  color:var(--muted);
  margin-top:1.9rem
}
.balance {
  font-variant-numeric:tabular-nums;
  font-size:2.5rem;
  line-height:1.4;
  letter-spacing:-.05em
}
.balance span {
  font-size:1.8rem
}
.chart {
  width:100%;
  height:auto;
  margin-top:.7rem;
  overflow:visible
}
.chart-guide {
  stroke:var(--line);
  stroke-width:1;
  fill:none;
  stroke-dasharray:3 5
}
.chart-fill {
  fill:var(--soft)
}
.chart-line {
  stroke:var(--accent);
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
  stroke-dasharray:420;
  stroke-dashoffset:0;
  animation:draw 1.6s ease-out both
}
.chart-caption {
  display:flex;
  justify-content:space-between;
  font-size:.55rem;
  color:var(--muted)
}
.transaction {
  border-top:1px solid var(--line);
  margin-top:1.3rem;
  padding-top:1rem;
  display:flex;
  align-items:center;
  gap:.7rem;
  font-size:.65rem
}
.transaction-icon {
  background:var(--soft);
  padding:.35rem .65rem;
  border-radius:9px;
  font-size:1rem
}
.transaction small,.floating-note small {
  display:block;
  color:var(--muted);
  font-size:.58rem
}
.transaction strong {
  margin-left:auto;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}
.floating-note {
  position:absolute;
  bottom:48px;
  right:0;
  display:flex;
  align-items:center;
  gap:.7rem;
  background:var(--surface);
  box-shadow:0 10px 35px var(--shadow);
  border:1px solid var(--line);
  border-radius:12px;
  padding:.9rem 1.1rem;
  font-size:.72rem;
  animation:arrive 1s .35s both
}
.note-icon {
  background:var(--soft);
  color:var(--green);
  border-radius:50%;
  padding:.25rem .65rem;
  font-size:1.1rem
}
.visual figcaption {
  position:absolute;
  bottom:0;
  font-size:.58rem;
  color:var(--muted);
  text-align:center
}
.principles {
  border-block:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:1.5rem;
  padding-block:1.4rem;
  font-size:.75rem
}
.principles p {
  display:flex;
  align-items:center;
  gap:.7rem
}
.principles span {
  font-size:1.3rem;
  color:var(--accent)
}
.features {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6rem;
  padding-block:6rem
}
.section-heading h2,.setup h2 {
  font-size:clamp(2rem,3.5vw,3rem);
  font-weight:500;
  letter-spacing:-.05em;
  line-height:1.15;
  margin-block:1.2rem
}
.section-heading>p:last-child,.setup p:not(.eyebrow) {
  color:var(--muted);
  max-width:42ch;
  font-size:.9rem
}
.feature-list article {
  display:flex;
  gap:1.4rem;
  padding-block:1.6rem;
  border-bottom:1px solid var(--line)
}
.feature-list article:first-child {
  padding-top:0
}
.number {
  font-size:.7rem;
  color:var(--accent);
  padding-top:.3rem;
  font-variant-numeric:tabular-nums
}
h3 {
  font-size:1.05rem;
  font-weight:600;
  letter-spacing:-.02em
}
.feature-list p {
  color:var(--muted);
  font-size:.82rem;
  margin-top:.5rem;
  max-width:46ch
}
.setup {
  background:var(--soft);
  border-radius:18px;
  padding:3rem;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:3rem;
  align-items:center
}
.setup .button {
  margin-top:1.5rem
}
.setup-steps {
  list-style:none;
  margin:0;
  padding:0
}
.setup-steps li {
  padding:1.1rem 0;
  border-bottom:1px solid var(--line);
  font-size:.8rem;
  display:flex;
  gap:1.2rem
}
.setup-steps span {
  color:var(--muted);
  font-size:.65rem;
  padding-top:.1rem
}
.disclaimer {
  padding-block:2.4rem 3.5rem
}
.disclaimer p {
  max-width:100ch;
  color:var(--muted);
  font-size:.68rem
}
footer {
  border-top:1px solid var(--line);
  padding-block:2rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem
}
footer p {
  font-size:.7rem;
  color:var(--muted)
}
footer>div {
  display:flex;
  gap:1.2rem;
  font-size:.7rem
}
.document {
  max-width:850px;
  padding-block:3rem 5rem
}
.document h1 {
  font-size:clamp(2.5rem,6vw,4rem);
  overflow-wrap:anywhere
}
.document h2 {
  font-size:1.25rem;
  margin-block:2rem .6rem;
  letter-spacing:-.025em;
  font-weight:600
}
.document p {
  margin-bottom:1.2rem;
  color:var(--muted);
  max-width:65ch
}
.document .back-link {
  font-size:.8rem
}
.document label {
  display:block;
  margin-block:1rem .5rem;
  font-size:.85rem
}
textarea {
  width:100%;
  min-height:140px;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--field-border);
  border-radius:8px;
  padding:1rem;
  font:inherit;
  font-size:.85rem;
  resize:vertical
}
button {
  background:var(--green);
  color:var(--on-accent);
  border:0;
  border-radius:8px;
  padding:.8rem 1rem;
  font:inherit;
  font-size:.85rem;
  cursor:pointer;
  transition:transform .2s,background .2s
}
.hero-copy {
  animation:arrive .7s both
}
#how-it-works {
  scroll-margin-top:2rem
}
@keyframes arrive {
  from {
  opacity:0;
  translate:0 15px
}
to {
  opacity:1;
  translate:0 0
}

}
@keyframes draw {
  from {
  stroke-dashoffset:420
}
to {
  stroke-dashoffset:0
}

}
@media(min-width:1400px) {
  .hero {
  padding-block:6rem 5rem
}

}
@media(max-width:900px) {
  header,main,footer {
  padding-inline:1.5rem
}
.project-label {
  display:none
}
.hero {
  gap:1rem;
  padding-top:3rem
}
.actions {
  gap:1rem
}
.visual {
  min-height:410px
}
.features {
  gap:3rem
}
.floating-note {
  right:-.5rem
}
.setup {
  padding:2rem;
  gap:2rem
}
footer {
  flex-wrap:wrap
}

}
@media(max-width:650px) {
  header {
  padding-block:1.2rem
}
.brand {
  font-size:1rem
}
.brand-mark {
  width:30px;
  height:30px;
  font-size:1.6rem
}
.nav-links {
  gap:1rem;
  font-size:.72rem
}
.nav-links a:first-child {
  display:none
}
.hero {
  grid-template-columns:1fr;
  padding-block:2.5rem 2rem;
  gap:1rem
}
h1 {
  font-size:clamp(2.8rem,12vw,4rem)
}
.intro {
  max-width:42ch
}
.visual {
  min-height:430px;
  max-width:440px;
  width:100%;
  margin:auto
}
.summary {
  width:84%
}
.floating-note {
  right:0;
  bottom:40px
}
.principles {
  flex-direction:column;
  gap:.6rem;
  padding-block:1.2rem
}
.features {
  grid-template-columns:1fr;
  gap:2rem;
  padding-block:3.5rem
}
.setup {
  grid-template-columns:1fr;
  padding:1.6rem;
  gap:1.2rem
}
.setup-steps li:last-child {
  border-bottom:0
}
.disclaimer {
  padding-block:2rem
}
footer {
  align-items:flex-start;
  flex-direction:column;
  gap:1rem
}
.document {
  padding-block:2rem 3rem
}
.document h1 {
  font-size:2.7rem
}

}
@media(prefers-reduced-motion:reduce) {
  html {
  scroll-behavior:auto
}
*,*::before,*::after {
  animation:none!important;
  transition:none!important
}

}

/* Documentation stays readable alongside the landing page's shared navigation. */
.guide { padding-block: 2rem 5rem; }
.guide-heading { padding: 0 0 3rem; max-width: none; }
.guide-heading .eyebrow { margin-top: 2.5rem; }
.guide-heading h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.guide-heading > p:last-child { max-width: 54ch; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4rem; align-items: start; }
.guide-toc { position: sticky; top: 2rem; }
.guide-toc nav { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.guide-toc p { font-size: .7rem; color: var(--muted); margin-bottom: .4rem; }
.guide-toc a { font-size: .8rem; text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }
.guide-content { min-width: 0; max-width: 74ch; }
.guide-section { padding-block: 0 2.8rem; scroll-margin-top: 2rem; }
.guide-section h2 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -.035em; font-weight: 600; margin-bottom: 1.2rem; }
.guide-section p, .guide-section li, .guide-section dd { font-size: .9rem; color: var(--muted); }
.guide-section p { margin-block: 1rem; }
.guide-section li { margin-bottom: .6rem; }
.guide-section ol { padding-left: 1.3rem; }
.guide-section dt { font-weight: 600; font-size: .9rem; margin-top: 1.1rem; overflow-wrap: anywhere; }
.guide-section dd { margin: .4rem 0 0; }
.guide-note { background: var(--soft); border-left: 3px solid var(--accent); padding: 1rem 1.2rem; font-size: .85rem; margin-block: 1.4rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
pre { max-width: 100%; overflow-x: auto; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; line-height: 1.8; }
pre code { font-size: .75rem; overflow-wrap: normal; }
.nav-links [aria-current="page"] { text-decoration: underline; }
@media (max-width: 760px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .guide-toc { position: static; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .guide-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; }
  .guide-toc p { grid-column: 1 / -1; }
  .guide-section h2 { font-size: 1.3rem; }
  .guide-heading { padding-bottom: 2rem; }
}

/* Private-server navigation uses the same local document and button styles. */
.connection-panel { background:var(--soft); border:1px solid var(--line); border-radius:14px; padding:1.5rem; margin-block:2rem; }
.connection-panel input { display:block; width:100%; background:var(--surface); color:var(--ink); border:1px solid var(--field-border); border-radius:8px; padding:.9rem; font:inherit; font-size:.9rem; }
.connection-panel .actions { margin-block:1.2rem 0; gap:.8rem; }
.connection-panel #status { font-size:.85rem; overflow-wrap:anywhere; margin-block:1rem 0; }
button:disabled { opacity:.55; cursor:not-allowed; transform:none; }
.connection-panel label { font-weight:600; }
.connection-panel #server-help { font-size:.8rem; }
.connection-panel .secondary-button { background:transparent; color:var(--green); border:1px solid var(--green); }
@media(max-width:650px) {
  header>nav,.nav-links { flex-wrap:wrap; }
}

:root[data-theme="dark"] {
  color-scheme:dark;
  --paper:#111b17;
  --ink:#e6eee7;
  --muted:#a7b8ab;
  --green:#91d5a8;
  --line:#32463a;
  --surface:#1a2921;
  --soft:#21362a;
  --accent:#98cfa5;
  --hover:#afe5bf;
  --on-accent:#11271a;
  --field-border:#66806c;
  --glow:#294c35;
  --shadow:#00000030;
}
.nav-links { flex-wrap:wrap; }
.theme-toggle {
  display:none;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--surface);
  color:var(--ink);
}
:root[data-theme] .theme-toggle { display:inline-flex; }
.theme-toggle:hover { background:var(--soft); transform:none; }
.theme-toggle img { width:19px; height:19px; }
.theme-toggle .sun-icon { display:none; }
[data-theme="dark"] .theme-toggle .moon-icon { display:none; }
[data-theme="dark"] .theme-toggle .sun-icon { display:block; }
[data-theme="dark"] .theme-toggle img { filter:invert(1); }
@media(max-width:650px) {
  header>nav { gap:.8rem; }
  .nav-links { gap:.8rem; }
}
