:root {
  color-scheme: light;
  --ink: #0b1915;
  --ink-soft: #152721;
  --canvas: #f3f7f3;
  --paper: #ffffff;
  --muted: #778781;
  --muted-dark: #9aaca5;
  --line: #d6e0dc;
  --line-dark: #294039;
  --lime: #aff765;
  --lime-soft: #ddffc0;
  --sidebar: 236px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); font-size: 14px; }
a { color: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, input:focus-visible { outline: 3px solid #6fc91e; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; color: var(--ink); background: var(--lime); font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: none; }

.error { width: min(680px, calc(100% - 40px)); min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 18px; margin-inline: auto; }
.error .eyebrow { margin: 0; color: #568b2b; }
.error h1 { margin: 0; color: var(--ink); font-size: clamp(42px, 8vw, 76px); line-height: 1; }
.error .lede { margin: 0; color: var(--muted); font-size: 18px; }
.error .button { color: var(--ink); border-color: var(--lime); background: var(--lime); }

.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 32px 18px 20px; color: #eaf1ee; background: #081713; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: white; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #102018; background: var(--lime); font-size: 17px; font-weight: 900; letter-spacing: -1.4px; }
.brand strong { display: block; font-size: 20px; line-height: 1.05; letter-spacing: -0.6px; }
.brand small { display: block; margin-top: 4px; color: #91a39c; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.primary-nav { margin-top: 38px; }
.nav-label { margin: 0 12px 10px; color: #778b84; font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.tools-label { margin-top: 32px; }
.nav-link { min-height: 46px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; margin: 2px 0; padding: 0 14px; border-radius: 12px; color: #aebcb7; text-decoration: none; font-weight: 650; }
.nav-link > span { color: #96aaa3; font-size: 16px; text-align: center; }
.nav-link b { min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: var(--ink); background: var(--lime); font-size: 11px; }
.nav-link:hover { color: white; background: rgba(255,255,255,.045); }
.nav-link.active { color: white; background: #152a23; }
.sidebar-bottom { margin-top: auto; }
.readiness { margin: 0 2px 18px; padding: 17px 16px; border: 1px solid #294039; border-radius: 16px; background: #12231e; }
.readiness p { margin: 0 0 10px; color: #8fa39c; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.readiness strong { display: block; color: white; font-size: 30px; font-weight: 500; letter-spacing: -1.4px; }
.readiness > span { display: block; margin-top: 2px; color: #94a69f; font-size: 11px; }
.progress { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #294039; }
.progress i { display: block; width: 8.333%; height: 100%; border-radius: inherit; background: var(--lime); }
.readiness-meta { display: flex; justify-content: space-between; margin-top: 10px; color: #82958e; font-size: 10px; }
.operator { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; padding: 16px 8px 0; border-top: 1px solid #20342e; }
.operator-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--lime); background: #1e3830; font-size: 11px; font-weight: 800; }
.operator strong, .operator small { display: block; }
.operator strong { color: white; font-size: 12px; line-height: 1.15; }
.operator small { margin-top: 3px; color: #7f928b; font-size: 10px; }
.more { color: #72867f; letter-spacing: 2px; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { height: 100px; display: grid; grid-template-columns: minmax(180px,1fr) minmax(300px,390px) 128px 42px; align-items: center; gap: 18px; padding: 0 34px; background: linear-gradient(90deg, #f3f7f3 55%, #f0f7e9); }
.breadcrumb { display: flex; align-items: baseline; gap: 5px; line-height: 1.05; }
.breadcrumb strong { display: block; font-size: 16px; letter-spacing: -.3px; }
.breadcrumb span { color: #82928c; font-size: 14px; font-weight: 650; }
.search { height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid #d5dfdb; border-radius: 12px; color: #7a8b85; background: rgba(255,255,255,.76); box-shadow: 0 1px 2px rgba(7,24,18,.03); }
.search > span:not(.sr-only) { font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.search input::placeholder { color: #8c9b96; }
kbd { padding: 2px 8px; border: 1px solid #d0dad6; border-radius: 7px; color: #94a39e; background: #f8fbf9; box-shadow: inset 0 -1px #e0e7e4; font: 10px inherit; }
.request-button { height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid #d4ddd9; border-radius: 12px; background: white; text-decoration: none; font-size: 12px; font-weight: 750; }
.request-button span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: #417526; background: #e2f9ce; font-size: 15px; }
.user-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--lime); background: var(--ink); font-size: 11px; font-weight: 800; }

main { padding: 0 34px 54px; }
.hero { min-height: 330px; position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); overflow: hidden; padding: 31px 34px 28px; border-radius: 24px; color: #f7faf8; background: radial-gradient(circle at 86% 42%, rgba(123,190,68,.18), transparent 34%), #0a1a15; }
.hero::after { content: ""; position: absolute; right: -35px; top: -80px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(117,180,72,.08), transparent 64%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: #b5c1bd; font-size: 10px; font-weight: 800; letter-spacing: 1.9px; text-transform: uppercase; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(175,247,101,.35); }
h1 { max-width: 660px; margin: 0; font-size: clamp(36px, 3.4vw, 48px); line-height: .98; letter-spacing: -2.3px; }
.hero-lede { max-width: 620px; margin: 15px 0 18px; color: #9faeaa; font-size: 13px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 16px; border: 1px solid #34483f; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 750; }
.button-primary { min-width: 164px; border-color: var(--lime); color: var(--ink); background: var(--lime); }
.button-primary span { font-size: 20px; }
.button-secondary { color: #dce4e1; background: rgba(255,255,255,.015); }
.stats { display: flex; gap: 52px; margin: 18px 0 0; }
.stats div { min-width: 63px; }
.stats dt { font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.stats dd { margin: 2px 0 0; color: #778c84; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.orbit { position: relative; z-index: 1; min-height: 270px; }
.orbit-ring { position: absolute; top: 50%; left: 54%; border: 1px solid rgba(157,235,90,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.ring-one { width: 240px; height: 240px; }
.ring-two { width: 330px; height: 210px; }
.orbit-core { position: absolute; z-index: 2; top: 50%; left: 54%; width: 100px; height: 100px; display: grid; place-content: center; text-align: center; border-radius: 26px; color: var(--ink); background: var(--lime); transform: translate(-50%,-50%); box-shadow: 0 18px 55px rgba(140,226,75,.12); }
.orbit-core strong { font-size: 17px; letter-spacing: -.7px; }
.orbit-core small { margin-top: 3px; font-size: 8px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.orbit-node { position: absolute; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #30473f; border-radius: 13px; color: #b6c3be; background: #142721; font-size: 10px; font-weight: 800; }
.node-hoa { top: 15%; left: 14%; color: #385224; border-color: #9ce950; background: #eaffd7; }
.node-land { top: 2%; left: 49%; }
.node-hvac { top: 15%; right: 2%; }
.node-plumb { top: 42%; right: 0; }
.node-church { right: 2%; bottom: 13%; }
.node-npo { left: 51%; bottom: 1%; }
.node-book { left: 15%; bottom: 10%; }
.node-more { top: 42%; left: 1%; }
.orbit-caption { position: absolute; right: -13px; bottom: 0; color: #62766e; font-size: 8px; letter-spacing: 1.4px; text-transform: uppercase; }

.launchpad { padding-top: 16px; }
.launchpad-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
h2 { margin: 0; font-size: 23px; line-height: 1; letter-spacing: -1px; }
.launchpad-heading p { margin: 5px 0 0; color: #84938e; font-size: 12px; }
.filters { display: flex; gap: 8px; }
.filters a { height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #d5dfdb; border-radius: 10px; color: #65766f; background: white; text-decoration: none; font-size: 11px; font-weight: 650; }
.filters span { min-width: 25px; padding: 3px 7px; border-radius: 999px; color: #65766f; background: #eef2f0; text-align: center; font-size: 9px; }
.filters .selected { color: white; border-color: var(--ink); background: var(--ink); }
.filters .selected span { color: #bdc8c3; background: #33453f; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-card { min-width: 0; min-height: 210px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.92); scroll-margin-top: 20px; }
.app-card:hover { border-color: #b9c9c2; box-shadow: 0 9px 30px rgba(18,45,35,.045); transform: translateY(-1px); }
.live-card { border-color: #a9df7c; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.app-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #40534c; background: #eef3f0; font-size: 11px; font-weight: 800; }
.live-card .app-icon { color: #3c6525; background: var(--lime-soft); }
.status-pill { padding: 6px 11px; border-radius: 999px; color: #7c8c86; background: #f0f3f2; font-size: 8px; font-weight: 850; letter-spacing: .9px; text-transform: uppercase; }
.live-pill { color: #4d792e; background: #e9ffd5; }
.app-card h3 { margin: 13px 0 0; font-size: 16px; letter-spacing: -.45px; }
.audience { margin: 17px 0 0; color: #7c8d87; font-size: 9px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.description { margin: 11px 0 0; color: #51615c; font-size: 11.5px; line-height: 1.35; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 9px; border-top: 1px solid #e7ece9; }
.card-footer code { color: #93a09c; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-footer a, .preview { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 750; text-decoration: none; }
.card-footer a { color: var(--ink); }
.card-footer a span, .preview i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; font-size: 15px; font-style: normal; }
.card-footer a span { color: var(--lime); background: var(--ink); }
.preview { color: #93a09c; }
.preview i { background: #eef2f0; }

@media (max-width: 1080px) {
  :root { --sidebar: 0px; }
  .sidebar { position: static; width: auto; height: 72px; flex-direction: row; align-items: center; padding: 0 24px; }
  .brand { padding: 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
  .brand small { display: none; }
  .primary-nav { display: flex; margin: 0 0 0 auto; }
  .nav-label, .sidebar-bottom, .primary-nav .nav-link:not(.active) { display: none; }
  .nav-link { min-height: 40px; margin: 0; }
  .workspace { margin-left: 0; }
  .topbar { height: 78px; grid-template-columns: 1fr minmax(260px,380px) 128px 42px; padding-inline: 24px; }
  main { padding-inline: 24px; }
  .hero { grid-template-columns: minmax(0,1.4fr) minmax(260px,.7fr); }
  .app-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .sidebar { height: 62px; padding-inline: 16px; }
  .brand strong { font-size: 17px; }
  .primary-nav { display: none; }
  .topbar { height: auto; min-height: 78px; grid-template-columns: 1fr auto; padding: 14px 16px; }
  .breadcrumb { display: none; }
  .search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .request-button { grid-column: 1; grid-row: 1; justify-self: start; }
  .user-avatar { grid-column: 2; grid-row: 1; }
  main { padding: 0 16px 36px; }
  .hero { min-height: 0; display: block; padding: 27px 22px; border-radius: 20px; }
  h1 { font-size: clamp(34px,10.5vw,46px); letter-spacing: -2px; }
  .hero-lede { font-size: 13px; }
  .orbit { display: none; }
  .stats { gap: 28px; flex-wrap: wrap; }
  .launchpad { padding-top: 22px; }
  .launchpad-heading { align-items: flex-start; flex-direction: column; }
  .filters { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .filters a { flex: 1 0 auto; justify-content: center; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 205px; }
}

@media (max-width: 430px) {
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .app-card { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
}
