.hero { padding: clamp(4rem, 10vw, 9rem) clamp(1.2rem, 8vw, 9rem) 5rem; min-height: 84vh; background: linear-gradient(90deg, transparent 49.9%, rgba(23,25,22,.08) 50%, transparent 50.1%); }
.hero h1 { max-width: 1050px; margin: 1.5rem 0 2rem; }
.hero h1 em { color: var(--red); font-weight: 500; }
.lede { max-width: 670px; margin-bottom: 2rem; font-size: clamp(1.05rem, 2vw, 1.35rem); color: #3e403b; }
.command, .secret { margin-top: 3rem; max-width: 900px; display: flex; align-items: stretch; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-light); }
.command code, .secret code { flex: 1; padding: 1rem; overflow-x: auto; white-space: nowrap; }
.command button, .secret button { border: 0; border-left: 1px solid #5b5d57; padding: .6rem 1rem; background: transparent; color: white; cursor: pointer; }
.principles { padding: 6rem clamp(1.2rem, 8vw, 9rem); background: var(--ink); color: var(--paper-light); }
.principles .section-number { color: #ff7b77; }
.principles h2 { max-width: 850px; margin: 1rem 0 4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #4a4c47; }
.feature-grid article { padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--ink); }
.feature-grid article > span { color: var(--red); font: 2.5rem var(--serif); }
.feature-grid h3 { margin-top: 3rem; font-size: 1.25rem; }
.feature-grid p { color: #b8b9b3; }
.cloud-band { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; padding: 6rem clamp(1.2rem, 8vw, 9rem); border-bottom: 1px solid var(--line); }
.cloud-band h2 { margin: .8rem 0 0; }
.cloud-band > p { max-width: 480px; font-size: 1.1rem; }
.page-heading { padding: 4rem clamp(1.2rem, 6vw, 6rem) 2rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.page-heading h1 { margin: .3rem 0 0; font-size: clamp(3rem, 7vw, 6rem); }
.token-panel { margin: 1rem clamp(1.2rem, 6vw, 6rem) 5rem; padding: clamp(1.3rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 2rem; align-items: center; border: 1px solid var(--ink); background: var(--paper-light); }
.token-panel h2 { margin: .4rem 0; font: 1.7rem var(--serif); }
.token-panel p { margin-bottom: 0; }
.token-panel .secret { margin: 0; min-width: 0; }
.section-heading { margin: 0 clamp(1.2rem, 6vw, 6rem) 1rem; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: .3rem 0 1rem; font-size: clamp(2.2rem, 5vw, 4rem); }
.section-heading > span { padding-bottom: 1rem; color: var(--red); font: 2rem var(--serif); }
.integration-list { margin: 0 clamp(1.2rem, 6vw, 6rem); }
.integration-card { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.integration-main { display: flex; gap: 1rem; align-items: start; min-width: 0; }
.integration-main h3, .integration-main p { margin-bottom: .2rem; }
.integration-main code { color: var(--muted); }
.status-mark { flex: none; width: 13px; height: 13px; margin-top: .35rem; border: 1px solid var(--muted); transform: rotate(45deg); }
.status-mark.active { border-color: var(--green); background: var(--green); }
.tool-count { min-width: 70px; margin: 0; text-align: right; font: 2.2rem var(--serif); }
.tool-count small { display: block; color: var(--muted); font: .68rem var(--sans); text-transform: uppercase; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .3rem; }
.card-actions form { display: inline; }
.card-actions button, .text-link { min-height: 44px; padding: .6rem .7rem; border: 0; background: transparent; color: var(--ink); font-size: .75rem; cursor: pointer; }
.text-link { display: inline-flex; align-items: center; }
.card-actions .danger { color: var(--red-dark); }
.empty { margin: 2rem clamp(1.2rem, 6vw, 6rem); padding: 4rem 1rem; text-align: center; border: 1px dashed var(--line); }
.cross { margin: 0; color: var(--red); font: 4rem/1 var(--sans); }
.form-shell { width: min(680px, calc(100% - 2rem)); margin: clamp(3rem, 8vw, 7rem) auto; }
.form-shell h1 { margin: .5rem 0 1rem; font-size: clamp(3rem, 7vw, 5.5rem); }
.lede-small { color: var(--muted); font-size: 1.05rem; }
.stacked-form { margin-top: 2.5rem; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.field input:not([type="checkbox"]), .field textarea { width: 100%; min-height: 48px; padding: .7rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper-light); color: var(--ink); }
.field textarea { resize: vertical; }
.field small { display: block; color: var(--muted); }
.errorlist { padding-left: 1.2rem; color: var(--red-dark); }
.complete { text-align: center; }
.docs-hero { padding: 6rem clamp(1.2rem, 8vw, 9rem); border-bottom: 1px solid var(--line); }
.docs-hero h1 { max-width: 950px; margin: 1rem 0 2rem; }
.docs-hero > p:last-child { max-width: 650px; font-size: 1.1rem; }
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 6vw, 7rem); padding: 4rem clamp(1.2rem, 8vw, 9rem); }
.docs-index { position: sticky; top: 2rem; align-self: start; display: flex; flex-direction: column; }
.docs-index p { padding-bottom: .5rem; border-bottom: 1px solid var(--ink); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.docs-index a { min-height: 38px; color: var(--muted); text-decoration: none; }
.docs-content { min-width: 0; }
.docs-content section { padding: 0 0 4rem; margin-bottom: 4rem; border-bottom: 1px solid var(--line); scroll-margin-top: 2rem; }
.docs-content h2 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
pre { position: relative; padding: 1.3rem; overflow-x: auto; background: var(--ink); color: var(--paper-light); }
pre code { white-space: pre; }
pre button { position: absolute; top: .4rem; right: .4rem; border: 1px solid #666; background: var(--ink); color: white; cursor: pointer; }
.source-note { padding: 2rem; border-left: 5px solid var(--red); background: var(--paper-light); }
.source-note h2 { font-size: 2rem; }
@media (max-width: 850px) {
  .feature-grid, .cloud-band, .token-panel, .integration-card, .docs-layout { grid-template-columns: 1fr; }
  .docs-index { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .docs-index p { grid-column: 1 / -1; }
  .tool-count { text-align: left; }
  .card-actions { justify-content: start; }
}
@media (max-width: 560px) {
  .hero { background: none; }
  .command, .secret { flex-direction: column; }
  .command button, .secret button { border-top: 1px solid #5b5d57; border-left: 0; }
  .page-heading { align-items: start; flex-direction: column; }
}
