/* ————————————————————————————————————————————————
   BUILD YOUR FUTURE — documentation page
   Shares the landing's design tokens; standalone sheet.
   ———————————————————————————————————————————————— */

:root {
  --paper: #efeee9;
  --card: #fbfaf7;
  --line: #e3e0d7;
  --ink: #141412;
  --mut: #67635a;
  --mut-2: #8b877c;
  --navy: #101b2e;
  --green: #35d07f;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); overflow-x: hidden; }
* { box-sizing: border-box; }
.docs-body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--ink); }
a { color: var(--ink); }
::selection { background: var(--ink); color: var(--paper); }

.kicker { font-family: 'Doto', monospace; font-weight: 900; font-size: 13px; letter-spacing: 0.24em; color: var(--mut-2); display: block; }
.faded { color: #a9a599; }

/* nav */
.dnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(251,250,247,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 12px 22px; }
.dnav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dnav-brand img { height: 28px; }
.dnav-brand span { font-family: 'Instrument Serif', serif; font-size: 18px; white-space: nowrap; }
.dnav-brand sup { font-size: 0.45em; vertical-align: 0.75em; }
.dnav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.dnav-links a { text-decoration: none; font-size: 13.5px; color: #55524a; }
.dnav-links a:hover, .dnav-links a.active { color: var(--ink); }
.dbtn-dark { text-decoration: none; background: var(--ink); color: #f5f4ef; border-radius: 10px; padding: 9px 16px; font-size: 13px; white-space: nowrap; }
.dbtn-dark:hover { background: #2e2c27; color: #f5f4ef; }
.dbtn-light { text-decoration: none; background: var(--card); border: 1px solid #dbd8cd; color: var(--ink); border-radius: 10px; padding: 9px 16px; font-size: 13px; }
.dbtn-light:hover { background: #f1efe7; }

/* hero */
.dhero { max-width: 900px; margin: 0 auto; padding: 90px 24px 30px; text-align: center; }
.dhero h1 { margin: 14px 0 18px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.08; letter-spacing: 0.01em; }
.dhero h1 em { font-style: italic; }
.dhero p { margin: 0 auto; max-width: 640px; font-size: 16px; line-height: 1.65; color: var(--mut); }
.dhero-chips { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.dhero-chips a { text-decoration: none; font-family: 'Doto', monospace; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; }
.dhero-chips a:hover { background: #f1efe7; }

/* sections */
.dmain { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }
.dsection { padding: 70px 0 10px; }
.dsection h2 { margin: 10px 0 20px; font-weight: 500; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.14; letter-spacing: -0.02em; text-wrap: pretty; }
.dlead { max-width: 720px; font-size: 15.5px; line-height: 1.7; color: #43413a; }
.dnote { max-width: 720px; font-size: 13.5px; line-height: 1.65; color: var(--mut-2); }

/* benefits */
.benefits { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.benefits.three { margin-top: 26px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.benefit-glyph { font-family: 'Doto', monospace; font-weight: 900; font-size: 15px; color: var(--mut-2); }
.benefit h3 { margin: 10px 0 8px; font-size: 16px; font-weight: 600; }
.benefit p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mut); }

/* flow explainer */
.flow { display: flex; align-items: stretch; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.flow-step { flex: 1 1 180px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.flow-num { font-family: 'Doto', monospace; font-weight: 900; font-size: 22px; color: var(--mut-2); }
.flow-step h4 { margin: 8px 0 6px; font-size: 15px; }
.flow-step p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--mut); }
.flow-arrow { align-self: center; font-size: 18px; color: var(--mut-2); }
.under-hood { margin-top: 22px; border-left: 3px solid var(--ink); padding: 4px 0 4px 18px; }
.under-hood p { margin: 8px 0 0; max-width: 640px; font-size: 14px; line-height: 1.65; color: var(--mut); }

/* getting-started steps */
.step { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; padding: 34px 0; border-bottom: 1px solid #d9d5ca; }
.step:last-of-type { border-bottom: none; }
.step-num { font-family: 'Doto', monospace; font-weight: 900; font-size: 14px; letter-spacing: 0.2em; color: var(--mut-2); }
.step-copy h3 { margin: 10px 0 10px; font-size: 21px; font-weight: 600; }
.step-copy p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #43413a; }

/* UI mock panels */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(20,20,18,0.08); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f4f2ec; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #ddd9cd; }
.mock-url { margin-left: 10px; font-family: 'Doto', monospace; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; color: var(--mut-2); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-dashboard { grid-template-columns: 130px 1fr; }
.mock-side { display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--line); padding-right: 14px; font-size: 12.5px; color: var(--mut); }
.mock-side .on { color: var(--ink); font-weight: 600; }
.mock-panel { display: grid; gap: 12px; }
.mock-cards, .mock-row { display: flex; gap: 12px; }
.mock-row.spread { justify-content: space-between; align-items: center; }
.mock-card { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.mock-card.grow, .mock-field.grow { flex: 1; min-width: 0; }
.mock-label { font-family: 'Doto', monospace; font-weight: 900; font-size: 10px; letter-spacing: 0.2em; color: var(--mut-2); }
.mock-big { font-family: 'Doto', monospace; font-weight: 900; font-size: 24px; }
.mock-mono { font-family: 'Doto', monospace; font-weight: 700; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-title { font-size: 15px; font-weight: 600; }
.mock-hint { font-size: 12.5px; color: var(--mut-2); }
.mock-btn { justify-self: start; border: none; background: var(--ink); color: #f5f4ef; border-radius: 10px; padding: 9px 16px; font-size: 13px; font-family: inherit; }
.mock-field { display: grid; gap: 6px; }
.mock-input { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 12px; font-size: 13px; }
.stepper { display: flex; gap: 8px; font-family: 'Doto', monospace; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; color: var(--mut-2); }
.stepper span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; }
.stepper .on { color: var(--ink); border-color: var(--ink); }
.meter { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; font-size: 11.5px; color: var(--mut); }
.meter i { display: block; height: 7px; border-radius: 4px; background: var(--ink); opacity: 0.75; }
.status-chip { display: inline-block; font-family: 'Doto', monospace; font-weight: 900; font-size: 10.5px; letter-spacing: 0.12em; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); background: #fff; }
.status-chip.healthy { color: #0c7a44; border-color: rgba(53,208,127,0.5); background: rgba(53,208,127,0.1); }
.term { background: var(--navy); color: #b7c6e2; border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; font-family: 'Doto', monospace; font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; }
.term .ok { color: var(--green); }

/* catalog mock */
.mock-catalog { grid-template-columns: 1fr 1fr 1fr; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; justify-items: start; }
.tcard img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.tcard-name { font-size: 13.5px; font-weight: 600; }
.tcard-sub { font-size: 11.5px; line-height: 1.4; color: var(--mut-2); }
.tcard-price { font-family: 'Doto', monospace; font-weight: 900; font-size: 12.5px; }
.tcard-price.free { color: #0c7a44; }

/* template table */
.ttable-wrap { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ttable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ttable th { text-align: left; font-family: 'Doto', monospace; font-weight: 900; font-size: 11px; letter-spacing: 0.18em; color: var(--mut-2); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ttable td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: #43413a; line-height: 1.5; vertical-align: top; }
.ttable tr:last-child td { border-bottom: none; }
.tname { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tname img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }

/* callout */
.callout { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; max-width: 720px; }
.callout p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: #43413a; }

/* nova diagram */
.nova-diagram { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 34px 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 24px; }
.nd-you, .nd-core { display: grid; gap: 4px; justify-items: center; text-align: center; }
.nd-you { font-size: 14px; font-weight: 600; }
.nd-you span, .nd-core span { font-size: 11.5px; color: var(--mut-2); font-weight: 400; }
.nd-core { background: var(--ink); color: #f5f4ef; border-radius: 999px; width: 118px; height: 118px; align-content: center; font-family: 'Doto', monospace; font-weight: 900; letter-spacing: 0.18em; font-size: 14px; }
.nd-core span { color: #b9b5aa; font-family: 'Helvetica Neue', Helvetica, sans-serif; letter-spacing: 0; padding: 0 12px; }
.nd-link { font-size: 20px; color: var(--mut-2); }
.nd-agents { display: grid; gap: 10px; }
.nd-agent { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 8px; font-size: 13px; font-weight: 600; }
.nd-agent img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* wallet states */
.wallet-states { display: flex; align-items: stretch; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.ws { flex: 1 1 150px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 3px; }
.ws.on { border-color: rgba(53,208,127,0.6); background: rgba(53,208,127,0.07); }
.ws strong { font-size: 14px; }
.ws span { font-size: 12px; color: var(--mut); }
.ws-arrow { align-self: center; color: var(--mut-2); }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 24px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 14px; font-family: 'Doto', monospace; font-weight: 900; color: var(--mut-2); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 16px; font-size: 14px; line-height: 1.65; color: var(--mut); }

/* cta + footer */
.dcta { text-align: center; padding: 90px 0 30px; }
.dcta h2 { margin: 0 0 10px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); }
.dcta sup { font-size: 0.32em; vertical-align: 0.9em; }
.dcta p { margin: 0 0 24px; color: var(--mut); font-size: 16px; }
.dcta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.dfoot { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1080px; margin: 0 auto; padding: 26px 24px 40px; border-top: 1px solid #d9d5ca; flex-wrap: wrap; }
.dfoot img { height: 26px; }
.dfoot div { display: flex; gap: 20px; }
.dfoot a { text-decoration: none; font-size: 13px; color: var(--mut); }
.dfoot a:hover { color: var(--ink); }
.dfoot span { font-size: 13px; color: var(--mut-2); }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 960px) {
  .benefits { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 22px; }
  .mock-catalog { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
}
@media (max-width: 760px) {
  .dnav { padding: 10px 14px; }
  .dnav-links { display: none; }
  .dhero { padding-top: 60px; }
  .mock-dashboard { grid-template-columns: 1fr; }
  .mock-side { display: flex; flex-wrap: wrap; gap: 12px; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .mock-cards, .mock-row { flex-wrap: wrap; }
  .nova-diagram { flex-direction: column; }
  .ws-arrow { display: none; }
}
