:root {
  --ink: #142019;
  --muted: #617067;
  --paper: #f7f5ee;
  --paper-strong: #fffdf7;
  --night: #111814;
  --green: #3e7c45;
  --green-bright: #72a95a;
  --lime: #c4dc78;
  --stone: #d9ded3;
  --line: rgba(20, 32, 25, .14);
  --shadow: 0 24px 70px rgba(17, 24, 20, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
code { font-family: "SFMono-Regular", Consolas, monospace; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #f7f5ee;
  background: rgba(17, 24, 20, .94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 22px; height: 22px; background: var(--lime); box-shadow: 8px 8px 0 var(--green); transform: rotate(2deg); }
nav { display: flex; align-items: center; gap: 26px; font-size: .92rem; font-weight: 650; }
nav a { color: #dfe8df; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: white; }
.nav-docs { padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 670px;
  overflow: hidden;
  color: #f6f7ef;
  background: var(--night);
}
.hero-copy { z-index: 2; align-self: center; max-width: 760px; padding: 84px 4vw 92px 8vw; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.04em; }
h1 { margin-bottom: 25px; font-size: clamp(3.2rem, 7vw, 6.7rem); }
h1 span { color: var(--lime); }
.lede { max-width: 630px; margin: 0 0 32px; color: #c9d5cc; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.server-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 610px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.06); }
.server-details > div { display: flex; flex-direction: column; gap: 2px; padding: 13px 18px; }
.server-details > div:nth-of-type(2) { border-top: 1px solid rgba(255,255,255,.12); }
.detail-label { color: #93a098; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.server-details code { color: white; font-size: 1.02rem; }
.copy-button { min-width: 76px; border: 0; border-left: 1px solid rgba(255,255,255,.12); color: var(--night); background: var(--lime); font-weight: 800; cursor: pointer; }
.copy-button:nth-of-type(2) { border-top: 1px solid rgba(17,24,20,.15); }
.copy-button:hover, .copy-button:focus-visible { background: #d8eb98; }
.microcopy { margin: 15px 0 0; color: #96a39b; font-size: .84rem; }

.hero-scene { position: relative; min-height: 560px; background: linear-gradient(#203c32 0 58%, #182b23 58%); }
.sun { position: absolute; top: 86px; right: 18%; width: 92px; height: 92px; background: var(--lime); box-shadow: 0 0 65px rgba(196,220,120,.27); }
.cloud { position: absolute; height: 24px; background: rgba(255,255,255,.16); box-shadow: 24px -16px 0 rgba(255,255,255,.16), 52px 0 0 rgba(255,255,255,.16); }
.cloud-one { top: 160px; left: 12%; width: 62px; }
.cloud-two { top: 245px; right: 24%; width: 78px; transform: scale(.7); }
.hill { position: absolute; right: -7%; bottom: 0; width: 94%; height: 52%; background: #34583d; clip-path: polygon(0 100%, 0 72%, 12% 72%, 12% 55%, 28% 55%, 28% 38%, 46% 38%, 46% 22%, 61% 22%, 61% 7%, 100% 7%, 100% 100%); }
.hill-back { right: 21%; bottom: 17%; width: 74%; height: 32%; opacity: .55; }
.hill-front { background: #477348; }
.block-stack { position: absolute; bottom: 11%; width: 46px; height: 46px; background: #7f9257; box-shadow: 46px 0 0 #496d45, 0 -46px 0 #71905a, 46px -46px 0 #9aa861, 92px 0 0 #3e5c3d; }
.block-a { left: 10%; }
.block-b { right: 16%; bottom: 27%; transform: scale(.72); }

.section { padding: 105px 8vw; }
.section-heading { max-width: 760px; margin-bottom: 45px; }
.section-heading h2, .return-card h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4.5vw, 4.2rem); }
.split-heading { display: grid; grid-template-columns: 1fr 1fr; max-width: none; gap: 9vw; align-items: end; }
.split-heading p:last-child { max-width: 580px; margin: 0; color: var(--muted); }
.card-grid { display: grid; gap: 20px; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.step-card { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); box-shadow: 0 12px 40px rgba(20,32,25,.04); }
.step-number { display: inline-block; margin-bottom: 52px; color: var(--green); font: 800 .78rem/1 "SFMono-Regular", Consolas, monospace; }
.step-card h3 { margin-bottom: 12px; font-size: 1.45rem; }
.step-card p { margin: 0; color: var(--muted); }

.setup { background: #ecefe6; }
.setup-list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.setup-item { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 410px; overflow: hidden; border-radius: 26px; background: var(--paper-strong); box-shadow: var(--shadow); }
.setup-item.reverse { grid-template-columns: 1.28fr .72fr; }
.setup-item.reverse .setup-copy { order: 2; }
.setup-copy { display: flex; align-items: flex-start; gap: 22px; align-self: center; padding: 48px; }
.setup-copy > span { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 850; }
.setup-copy h3 { margin: 3px 0 10px; font-size: 1.7rem; }
.setup-copy p { margin: 0; color: var(--muted); }
.setup-item img { width: 100%; height: 100%; min-height: 410px; object-fit: contain; padding: 28px; background: #dfe5d8; }

.return-section { padding-top: 40px; background: #ecefe6; }
.return-card { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border-radius: 28px; color: white; background: var(--night); }
.return-card > div { align-self: center; padding: 58px; }
.return-card p:not(.eyebrow) { color: #c1cdc5; }
.return-card img { width: 100%; height: 100%; max-height: 540px; object-fit: contain; padding: 30px; background: #24382e; }

.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schedule-grid div { display: flex; flex-direction: column; gap: 5px; padding: 30px; border-right: 1px solid var(--line); }
.schedule-grid div:last-child { border-right: 0; }
.schedule-grid strong { font-size: 1.25rem; }
.schedule-grid span { color: var(--muted); font-size: .9rem; }
.schedule-grid time { margin-top: 20px; color: var(--green); font-size: 1.3rem; font-weight: 800; }
.schedule-note { max-width: 760px; margin: 25px 0 0; color: var(--muted); }

.faq { color: #f6f7ef; background: var(--night); }
.faq .eyebrow { color: var(--lime); }
.faq-list { border-top: 1px solid rgba(255,255,255,.15); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.15); }
.faq summary { position: relative; padding: 25px 48px 25px 0; font-size: 1.15rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--lime); font-size: 1.6rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 820px; margin: 0 0 28px; color: #b8c5bc; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 38px 8vw; color: #d7e0d9; background: #0b100d; }
footer div { display: flex; flex-direction: column; }
footer span { color: #7e8b82; font-size: .86rem; }
footer a { color: var(--lime); font-weight: 750; }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; transform: translateY(20px); padding: 12px 18px; border-radius: 12px; color: white; background: var(--green); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  nav a:not(.nav-docs) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 80px 7vw 55px; }
  .hero-scene { min-height: 330px; }
  .three-up, .schedule-grid { grid-template-columns: 1fr; }
  .schedule-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .schedule-grid div:last-child { border-bottom: 0; }
  .split-heading { grid-template-columns: 1fr; gap: 22px; }
  .setup-item, .setup-item.reverse, .return-card { grid-template-columns: 1fr; }
  .setup-item.reverse .setup-copy { order: 0; }
}

@media (max-width: 600px) {
  .site-header { padding-inline: 5vw; }
  .brand span:last-child { display: none; }
  .section { padding: 78px 6vw; }
  h1 { font-size: 3.25rem; }
  .server-details { grid-template-columns: minmax(0, 1fr) 68px; }
  .setup-copy, .return-card > div { padding: 32px 25px; }
  .setup-item img { min-height: 280px; padding: 14px; }
  footer { align-items: flex-start; flex-direction: column; }
}

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

/* Operations documentation */
.docs-page { background: #eef1e8; }
.docs-shell { display: grid; grid-template-columns: 260px minmax(0, 900px); gap: clamp(45px, 7vw, 100px); justify-content: center; padding: 74px 6vw 110px; }
.docs-sidebar { position: sticky; top: 108px; align-self: start; display: flex; flex-direction: column; gap: 5px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,247,.86); }
.docs-sidebar .eyebrow { margin-bottom: 10px; }
.docs-sidebar a { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.docs-sidebar a:hover, .docs-sidebar a:focus-visible { color: var(--ink); background: #e5eadf; }
.docs-content { min-width: 0; }
.docs-hero { padding: 50px 0 72px; }
.docs-hero h1 { color: var(--ink); font-size: clamp(3.2rem, 7vw, 6rem); }
.docs-hero h1 span { color: var(--green); }
.docs-hero .lede { color: var(--muted); }
.status-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 38px 0 30px; border-block: 1px solid var(--line); }
.status-strip div { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-right: 1px solid var(--line); }
.status-strip div:last-child { border-right: 0; }
.status-strip span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-strip strong { font-size: .95rem; overflow-wrap: anywhere; }
.doc-section { padding: 74px 0; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.doc-section h2 { max-width: 720px; margin-bottom: 24px; font-size: clamp(2.2rem, 5vw, 4rem); }
.doc-section h3 { margin: 38px 0 12px; font-size: 1.35rem; }
.doc-section > p:not(.eyebrow), .doc-section > ul, .doc-section > ol { max-width: 760px; color: #4e5d53; }
.command-block { margin: 26px 0; overflow-x: auto; border: 1px solid rgba(196,220,120,.18); border-radius: 16px; color: #e8f0e9; background: var(--night); box-shadow: 0 16px 44px rgba(17,24,20,.11); }
.command-block code { display: block; min-width: max-content; padding: 23px 25px; white-space: pre; line-height: 1.9; }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--green); border-radius: 5px 14px 14px 5px; background: #e2eadd; }
.notice.warning { border-color: #c68c35; background: #f4ead4; }
.notice.danger { border-color: #a34e3e; background: #f2dfd9; }
.notice strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0; color: #526056; }
.check-list { display: grid; gap: 13px; padding-left: 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: .72rem; font-weight: 900; }
.diagnostic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.diagnostic-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-strong); }
.diagnostic-grid h3 { margin: 0 0 10px; }
.diagnostic-grid p { margin: 0; color: var(--muted); }
.numbered-list { counter-reset: recovery; display: grid; gap: 20px; padding: 0; list-style: none; }
.numbered-list li { counter-increment: recovery; position: relative; padding-left: 54px; }
.numbered-list li::before { content: counter(recovery, decimal-leading-zero); position: absolute; left: 0; color: var(--green); font: 850 .82rem/1.5 "SFMono-Regular", Consolas, monospace; }
.final-check { margin-top: 34px; padding: 45px; border: 0; border-radius: 22px; color: white; background: var(--night); }
.final-check .eyebrow { color: var(--lime); }
.final-check > p:not(.eyebrow), .final-check > ul { color: #c6d0c9; }
.final-check .check-list li::before { color: var(--night); background: var(--lime); }

@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; padding-top: 36px; }
  .docs-sidebar { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
  .docs-sidebar .eyebrow { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .docs-sidebar { grid-template-columns: 1fr 1fr; }
  .status-strip, .diagnostic-grid { grid-template-columns: 1fr; }
  .status-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .status-strip div:last-child { border-bottom: 0; }
  .docs-hero { padding-top: 30px; }
  .final-check { padding: 30px 24px; }
}
