:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #162d25;
  background: #f7f8f4;
  font-synthesis: none;
  --ink: #173c30;
  --muted: #65726b;
  --lime: #d5ef8b;
  --line: #dfe5dd;
  --forest: #102f26;
  --shadow: 0 2px 4px #102f2603, 0 12px 32px #102f2606;
  --paper: #f7f8f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #80aa3e;
  outline-offset: 4px;
}
button,
.button {
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #294738;
  transform: translateY(-1px);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
  font-weight: 550;
}
p {
  color: var(--muted);
  line-height: 1.65;
}
h2 {
  font-size: 32px;
  line-height: 1.2;
}
h3 {
  font-size: 21px;
}
code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}
code {
  overflow-wrap: anywhere;
}
em {
  font-family: Georgia, serif;
  font-weight: 400;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}
input,
textarea {
  border: 1px solid #d6dfd3;
  border-radius: 8px;
  background: white;
  padding: 13px 14px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input::placeholder {
  color: #90998f;
  font-weight: 400;
}
textarea {
  font-family: monospace;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
}
input[readonly] {
  background: #f6f7f3;
  color: #6b756c;
}
form label + label {
  margin-top: 21px;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 650;
  font-size: 25px;
  letter-spacing: -1.2px;
  gap: 10px;
  white-space: nowrap;
}
.brand-icon {
  background: var(--ink);
  color: var(--lime);
  border-radius: 11px;
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-family: Georgia, serif;
  letter-spacing: -3px;
  flex-shrink: 0;
  padding-right: 4px;
}
.brand-icon span {
  color: white;
}
.brand-caption {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 500;
  margin-left: 11px;
  max-width: 110px;
  white-space: normal;
  line-height: 1.5;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 15px 22px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
}
.small {
  padding: 11px 16px;
  font-size: 12px;
}
.secondary {
  border: 1px solid #cfd7ca;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}
.secondary:hover {
  background: #edf1e7;
}
.text-link {
  font-size: 13px;
  font-weight: 600;
}
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.fine {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #60705e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  height: 6px;
  width: 6px;
  background: #729a38;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.landing {
  max-width: 1440px;
  margin: auto;
}
.topbar {
  height: 98px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}
.hero {
  padding: 80px 6% 85px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(50px, 5.6vw, 80px);
  line-height: 1.06;
  letter-spacing: -4.5px;
  margin: 23px 0;
}
.hero em {
  color: #58714b;
  letter-spacing: -4px;
}
.hero-copy {
  font-size: 16px;
  max-width: 420px;
  margin-bottom: 28px;
}
.hero .fine {
  margin: 18px 0 0;
  font-size: 11px;
}
.hero-visual {
  border: 1px solid #d8e0ce;
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 60% 45%, #e2efcf, transparent 70%), #edf2e4;
  padding: 25px 26px;
  position: relative;
  box-shadow: 0 18px 50px #243e1910;
}
.visual-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #65775b;
}
.visual-top > span:last-child {
  margin-left: auto;
  letter-spacing: 0;
}
.agent-node {
  background: #fcfdf9;
  border: 1px solid #d5ddce;
  border-radius: 9px;
  width: 170px;
  margin: 36px auto 0;
  padding: 14px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 10px #273b1910;
}
.agent-node > span {
  display: block;
  font-size: 21px;
  margin-bottom: 5px;
}
.agent-node small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 400;
  color: #8a9681;
}
.connector {
  height: 32px;
  width: 1px;
  background: #9eaf8d;
  margin: auto;
}
.gateway-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 25px;
  background: #19362b;
  border: 1px solid #294b38;
  border-radius: 10px;
  color: white;
  box-shadow: 0 9px 16px #233b2420;
}
.gateway-node .brand-icon {
  background: #2d4c37;
}
.gateway-node strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.gateway-node small {
  display: block;
  color: #b9c7af;
  font-size: 10px;
  margin-top: 7px;
}
.node-star {
  margin-left: auto;
  font-size: 30px;
  color: var(--lime);
}
.branch-lines {
  height: 36px;
  background: linear-gradient(#a1b58b, #a1b58b) center top/1px 18px no-repeat;
  position: relative;
  margin: 0 14%;
}
.branch-lines:after {
  content: "";
  position: absolute;
  border: 1px solid #a1b58b;
  border-bottom: 0;
  top: 18px;
  left: 0;
  right: 0;
  height: 18px;
}
.capability-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.capability-nodes > div {
  border: 1px solid #cfdbc4;
  border-radius: 9px;
  background: #fafcf7;
  padding: 18px 6px;
  text-align: center;
}
.capability-nodes span {
  font-size: 25px;
  color: #65834c;
  display: block;
  height: 34px;
}
.capability-nodes strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.capability-nodes small {
  display: block;
  color: #7b8872;
  font-size: 9px;
  margin-top: 6px;
}
.visual-code {
  border-top: 1px dashed #c6d2bb;
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.visual-code > span:first-child {
  font-size: 10px;
  color: #7d8a74;
}
.visual-code code {
  font-size: 12px;
  color: #516444;
}
.code-caption {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8b987e;
}
.feature-section {
  border-top: 1px solid var(--line);
  padding: 65px 6%;
}
.section-heading {
  position: relative;
}
.section-heading h2 {
  margin: 20px 0;
  font-size: 38px;
}
.section-heading > p {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 250px;
  font-size: 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}
.feature-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.feature-number {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #7d8b70;
}
.feature-grid h3 {
  margin-top: 35px;
  margin-bottom: 12px;
}
.feature-grid p {
  font-size: 13px;
  margin-bottom: 0;
}
.start-section {
  margin: 0 6% 40px;
  padding: 48px;
  background: #edf1e5;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.start-section h2 {
  font-size: 38px;
  margin: 20px 0 28px;
}
.start-section ol {
  padding: 0;
  list-style: none;
  margin: 0;
}
.start-section li {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #d5decb;
}
.start-section li:last-child {
  border: 0;
}
.start-section li > span {
  font-size: 11px;
  color: #899879;
  margin-top: 4px;
}
.start-section h3 {
  font-size: 17px;
  margin-bottom: 7px;
}
.start-section p {
  font-size: 13px;
  margin: 0;
}
.preview-note {
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: #7b8772;
  padding: 0 8% 35px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 6%;
  border-top: 1px solid var(--line);
  gap: 25px;
}
footer .brand {
  font-size: 19px;
}
footer .brand-icon {
  height: 29px;
  width: 29px;
  font-size: 24px;
  border-radius: 8px;
}
footer .brand-caption {
  display: none;
}
footer > span,
footer > a,
footer .footer-links a {
  font-size: 10px;
  color: var(--muted);
}
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-story {
  background: #18372b;
  color: #edf4df;
  padding: 48px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 780px;
}
.auth-story .brand-icon {
  background: #2b4c36;
}
.auth-story .brand-caption {
  color: #abbda6;
}
.auth-story .eyebrow {
  color: #b7ca99;
}
.auth-story h1 {
  font-size: 58px;
  line-height: 1.13;
  letter-spacing: -3px;
  margin: 24px 0;
}
.auth-story em {
  color: var(--lime);
}
.auth-story p {
  font-size: 15px;
  color: #b9c8b3;
  max-width: 340px;
}
.auth-story > small {
  font-size: 10px;
  color: #91a689;
}
.auth-perks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
  font-size: 12px;
  color: #c7d7b9;
}
.auth-main {
  padding: 50px 12% 30px;
  display: flex;
  flex-direction: column;
}
.back-link {
  font-size: 12px;
  color: #737e6c;
}
.auth-card {
  margin: auto 0;
  padding: 70px 0;
  max-width: 400px;
  width: 100%;
  align-self: center;
}
.auth-card h2 {
  font-size: 32px;
  margin: 18px 0 10px;
}
.auth-card > p {
  font-size: 13px;
}
.auth-card form {
  margin-top: 35px;
}
.full {
  width: 100%;
  justify-content: space-between;
}
.error {
  font-size: 12px;
  color: #b13532;
  min-height: 0;
  margin: 15px 0;
  white-space: pre-line;
}
.error:empty {
  display: none;
}
.auth-card .button {
  margin-top: 15px;
}
.auth-switch {
  text-align: center;
  margin-top: 25px !important;
}
.auth-switch a {
  text-decoration: underline;
  color: #254735;
  font-weight: 600;
}
.auth-bottom {
  text-align: center;
  font-size: 10px;
  color: #8a9384;
}
.console-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 30px 20px 20px;
  border-right: 1px solid var(--line);
  background: #f1f4eb;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding-left: 10px;
  font-size: 24px;
}
.sidebar .brand-caption {
  display: none;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8a957e;
  margin: 52px 14px 15px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-nav a {
  padding: 13px 14px;
  border-radius: 7px;
  font-size: 13px;
  color: #707d64;
  display: flex;
  align-items: center;
  gap: 12px;
}
.side-nav a > span {
  font-size: 17px;
  width: 22px;
}
.side-nav a:hover {
  background: #e8edde;
}
.side-nav a.active {
  background: #e0e9d1;
  color: #27452e;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 9px 0;
}
.starter-note {
  border: 1px solid #d7e0cd;
  border-radius: 9px;
  padding: 17px;
  margin-bottom: 25px;
}
.starter-note > span {
  display: block;
  font-size: 21px;
  color: #6b824e;
  margin-bottom: 10px;
}
.starter-note strong {
  font-size: 11px;
}
.starter-note p {
  font-size: 10px;
  margin: 8px 0 0;
}
.sidebar-bottom > a {
  font-size: 11px;
  color: #738069;
}
.account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #dce3d3;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dfe7d3;
  width: 32px;
  height: 32px;
  font-size: 12px;
  flex-shrink: 0;
}
.account-chip > div {
  min-width: 0;
}
.account-chip strong {
  font-size: 10px;
  font-weight: 600;
  display: block;
}
.account-chip small {
  white-space: nowrap;
  display: block;
  font-size: 10px;
  color: #818c78;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 5px;
}
.logout {
  border: 0;
  background: none;
  color: #6c7b61;
  font-size: 11px;
  padding: 16px 0 0;
}
.console-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.console-header {
  height: 80px;
  border-bottom: 1px solid var(--line);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6a7861;
}
.tag {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #dce4d4;
  border-radius: 5px;
  background: #f6f8f1;
  padding: 5px 8px;
  font-size: 9px;
  color: #7a876d;
  white-space: nowrap;
}
.console-header .tag {
  font-size: 8px;
  letter-spacing: 1px;
}
.console-main main {
  padding: 40px 5% 60px;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-intro {
  margin-bottom: 28px;
}
.page-intro .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}
.page-intro h1 {
  font-size: 34px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.page-intro p {
  font-size: 13px;
  margin-bottom: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  background: white;
  min-width: 0;
}
.stat > span {
  font-size: 11px;
  color: #7a876f;
}
.stat strong {
  display: block;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -1.5px;
  margin: 18px 0 14px;
}
.stat small {
  font-size: 9px;
  color: #89937f;
}
.balance-stat {
  background: #eaf1dc;
  border-color: #d6e2c2;
}
.balance-stat > span {
  color: #657b4f;
}
.onboarding {
  border: 1px solid #dae3cc;
  background: #f0f4e8;
  border-radius: 10px;
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}
.onboarding-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e9ce;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 22px;
  flex-shrink: 0;
}
.onboarding h2 {
  font-size: 17px;
  margin-bottom: 5px;
}
.onboarding p {
  font-size: 11px;
  margin: 0;
}
.onboarding .button {
  margin-left: auto;
  font-size: 11px;
  padding: 12px 15px;
}
.card {
  padding: 27px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 25px;
}
.card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.card p {
  font-size: 12px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.card-heading h2 {
  margin-bottom: 6px;
}
.card-heading p {
  margin-bottom: 0;
}
.card-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 12px;
}
.setup textarea {
  margin-top: 8px;
  background: #f8faf4;
  border-color: #e0e7d6;
}
.setup .actions {
  margin-top: 16px;
  gap: 10px;
}
.setup pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #18352a;
  color: #d9e5cb;
  border-radius: 7px;
  padding: 18px;
  margin: 20px 0 12px;
  font-size: 11px;
  line-height: 1.7;
}
.setup > .fine {
  margin-bottom: 0;
  font-size: 10px;
}
.empty {
  text-align: center;
  padding: 30px 10px;
}
.empty > span {
  font-size: 27px;
  color: #869875;
  display: block;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  margin: 0;
}
.table-wrap {
  position: relative;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: #8a957d;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid #edf0e7;
  color: #76806e;
}
td:first-child {
  color: var(--ink);
}
td strong {
  font-size: 12px;
  font-weight: 550;
}
tr:last-child td {
  border-bottom: 0;
}
.key-prefix {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: #85917b;
}
.revoke {
  border: 1px solid #eadbd3;
  border-radius: 5px;
  background: #fff;
  color: #a65741;
  font-size: 10px;
  padding: 7px 10px;
}
.active-tag {
  background: #eef5e4;
  color: #5b7c3c;
  border-color: #dbe8ca;
}
.key-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 10px;
}
.key-form label {
  max-width: 400px;
}
.key-form .error {
  grid-column: 1/-1;
  margin: 0;
}
.key-result {
  padding: 23px;
  border: 1px solid #c7dba7;
  border-radius: 8px;
  background: #f1f7e7;
  margin: 20px 0;
}
.key-result h3 {
  font-size: 17px;
}
.key-result code {
  display: block;
  background: #fff;
  border: 1px solid #d7e3c6;
  border-radius: 5px;
  padding: 15px;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 15px 0;
}
.key-result .actions {
  gap: 10px;
}
.settings-card {
  max-width: 620px;
}
.settings-card > label {
  margin: 25px 0;
}
.settings-card form {
  margin-top: 25px;
}
.settings-card button[type="submit"] {
  margin-top: 25px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.detail-row code {
  font-size: 11px;
}
.settings-card .fine {
  font-size: 11px;
}
.info-note {
  border: 1px solid #dde5d1;
  background: #f0f5e8;
  border-radius: 7px;
  padding: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: #6e805c;
  margin-bottom: 25px;
}
.console-footer {
  padding: 20px 5%;
}
.console-footer span {
  font-size: 9px;
}
.loading {
  text-align: center;
  margin: 60px 20px;
  font-size: 14px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: #203e30;
  color: #eff6e5;
  border: 1px solid #4d6b3e;
  padding: 13px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 25px #0002;
  font-size: 12px;
  z-index: 10;
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}

/* Surface and type system: warm paper, forest ink, restrained lime. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: #d5ef8b; color: #102f26; }
h1, h2, h3 { text-wrap: balance; }
button, .button, .secondary, a { transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.button { border-radius: 10px; box-shadow: 0 2px 3px #102f2610, inset 0 1px 0 #ffffff12; min-height: 46px; }
.button:hover { box-shadow: 0 6px 18px #102f2620; }
.button:active { transform: translateY(0); }
.secondary { border-radius: 9px; min-height: 40px; box-shadow: none; }
.text-link { padding: 12px 0; border-bottom: 1px solid #b9c5b5; }
.text-link:hover, .back-link:hover { color: #3e692d; border-color: #3e692d; }
input, textarea { border-radius: 10px; transition: border-color 180ms, box-shadow 180ms; }
input:hover, textarea:hover { border-color: #9eaf9f; }
input:focus, textarea:focus { border-color: #57795d; box-shadow: 0 0 0 3px #8aad6a14; }
input[readonly] { color: #526158; }
.brand { letter-spacing: -1px; }
.brand-icon { box-shadow: inset 0 1px 0 #ffffff20; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; }
.topbar { height: 88px; background: #f7f8f4e8; backdrop-filter: blur(16px); }
.topbar nav > .nav-text:hover { color: #55803d; }
.hero { padding-top: 92px; padding-bottom: 88px; gap: 64px; position: relative; }
.hero h1 { font-size: clamp(54px, 5.7vw, 82px); font-weight: 500; line-height: 1.04; letter-spacing: -.065em; margin: 26px 0; }
.hero em { color: #617b48; letter-spacing: -.06em; }
.hero-copy { font-size: 16px; line-height: 1.8; max-width: 430px; }
.hero .eyebrow { color: #526d4b; }
.hero .fine { font-size: 11px; margin-top: 22px; }
.hero-visual { border-radius: 22px; padding: 28px; background: radial-gradient(ellipse at 70% 10%, #375b40 0, transparent 65%), #102f26; border: 1px solid #355346; box-shadow: 0 30px 60px -20px #153c3040, inset 0 1px 0 #ffffff18; }
.visual-top { color: #c1d2bc; font-size: 9px; letter-spacing: 1px; }
.visual-top > span:last-child { color: #a2ba95; font-size: 8px; }
.hero-visual .live-dot { background: var(--lime); box-shadow: 0 0 0 4px #d5ef8b12; }
.agent-node { margin-top: 32px; background: #ffffff08; color: #f2f6ea; border-color: #ffffff24; border-radius: 12px; box-shadow: inset 0 1px 0 #ffffff0a; }
.agent-node small { color: #b5c8b8; }
.connector { background: #90ad7c; }
.gateway-node { background: linear-gradient(120deg, #dbefa2, #c3df86); color: #173b2d; border-color: #e3f6b2; border-radius: 13px; padding: 24px; box-shadow: 0 8px 30px #00000020, inset 0 1px 0 #fff8; }
.gateway-node .brand-icon { background: #183e2f; }
.gateway-node strong { font-weight: 600; }
.gateway-node small { color: #476333; font-size: 11px; }
.node-star { color: #426632; }
.branch-lines:after { border-color: #90ad7c; }
.capability-nodes { gap: 10px; }
.capability-nodes > div { background: #ffffff06; border-color: #ffffff1c; border-radius: 11px; padding: 19px 6px; }
.capability-nodes span { color: #d5ef8b; }
.capability-nodes strong { color: #f0f4e9; }
.capability-nodes small { color: #b6c8b7; font-size: 10px; }
.visual-code { border-top: 1px solid #ffffff1c; margin-top: 24px; padding-top: 20px; }
.visual-code > span:first-child { color: #b6c8b7; }
.visual-code code { color: #e2edcf; }
.code-caption { color: #a4bb9e; font-size: 9px; }
.connection-strip { margin: 0 6%; padding: 23px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.connection-strip > span { font-size: 10px; letter-spacing: 1.4px; color: var(--muted); }
.connection-strip div { display: flex; gap: 32px; font-size: 12px; color: #48604b; }
.connection-strip b { color: #78915e; margin-right: 7px; font-weight: 400; }
.feature-section { padding-top: 80px; padding-bottom: 80px; }
.section-heading h2 { font-size: 40px; letter-spacing: -.045em; }
.feature-grid { gap: 18px; }
.feature-grid article { padding: 30px; border-radius: 16px; box-shadow: var(--shadow); background: linear-gradient(145deg, #fff, #fcfdf9); }
.feature-number { color: #617654; font-size: 10px; }
.feature-symbol { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid #dfe7d6; background: #f3f7eb; border-radius: 12px; color: #526e3d; margin: 24px 0; }
.feature-grid h3 { margin-top: 0; font-size: 22px; }
.feature-grid p { line-height: 1.8; }
.start-section { padding: 52px; border-radius: 20px; background: linear-gradient(120deg, #eaf0dd, #f0f3e9); border: 1px solid #dfe6d4; }
.start-section li > span { border: 1px solid #ccd8bd; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; color: #5b7347; margin-top: 0; }
footer > span, footer > a { font-size: 11px; }
.auth-layout { background: #f7f8f4; }
.auth-story { background: radial-gradient(ellipse at 0 80%, #35573a 0, transparent 60%), #102f26; position: relative; overflow: hidden; min-height: 100svh; }
.auth-story::after { content: ''; position: absolute; width: 520px; height: 520px; border: 1px solid #cde99512; border-radius: 50%; right: -260px; bottom: -270px; box-shadow: 0 0 0 60px #cde99505, 0 0 0 120px #cde99503; pointer-events: none; }
.auth-story > * { z-index: 1; }
.auth-story h1 { font-size: clamp(48px, 4.7vw, 68px); font-weight: 500; line-height: 1.08; }
.auth-story p { line-height: 1.85; }
.auth-perks { margin-top: 36px; gap: 0; max-width: 340px; }
.auth-perks > span { padding: 16px 0; border-top: 1px solid #ffffff14; }
.auth-main { padding: 48px 9% 30px; }
.auth-card { max-width: 410px; }
.auth-card h2 { font-size: 36px; letter-spacing: -.045em; }
.auth-card > p { font-size: 14px; }
.auth-card input { background: #fff; min-height: 50px; }
.auth-card .button { min-height: 50px; }
.auth-bottom { font-size: 11px; }
.error:not(:empty) { border: 1px solid #e8cfc8; background: #fff5f0; padding: 12px 14px; border-radius: 8px; line-height: 1.6; }
.console-layout { grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: #102f26; color: #eef4e8; border-color: #102f26; padding: 28px 18px 20px; }
.sidebar .brand-icon { background: #ffffff0a; border: 1px solid #ffffff18; }
.workspace-label { color: #a6b9a5; margin-top: 44px; }
.side-nav a { color: #b7c9bc; border: 1px solid transparent; font-size: 13px; }
.side-nav a:hover { background: #ffffff08; color: #fff; }
.side-nav a.active { background: #d5ef8b; border-color: #deefa9; color: #193b2c; box-shadow: 0 3px 12px #0001; }
.side-nav a > span { display: flex; align-items: center; }
.ui-icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.starter-note { background: linear-gradient(135deg, #ffffff08, transparent); border-color: #ffffff1c; border-radius: 12px; }
.starter-note > span { color: #d5ef8b; }
.starter-note strong { font-size: 12px; }
.starter-note p, .sidebar-bottom > a, .account-chip small, .logout { color: #aec2b1; font-size: 11px; }
.account-chip { border-color: #ffffff1c; }
.account-chip strong { font-size: 11px; }
.avatar { background: #ffffff10; border: 1px solid #ffffff20; color: #d5ef8b; border-radius: 10px; }
.logout:hover { color: #e1f2bb; }
.console-header { height: 72px; background: #ffffff80; padding: 0 4%; color: #53665b; }
.console-main main { padding: 36px 4% 48px; }
.page-intro h1 { font-size: 32px; letter-spacing: -.045em; }
.page-intro .eyebrow { font-size: 10px; }
.stats { gap: 16px; margin-bottom: 22px; }
.stat { border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.stat > span { color: #5c6e60; font-size: 12px; }
.stat strong { font-size: 36px; font-variant-numeric: tabular-nums; margin: 18px 0 10px; }
.stat small { font-size: 11px; color: #6a776c; }
.balance-stat { background: radial-gradient(ellipse at 100% 0, #3b593a, transparent 75%), #173c30; border-color: #284c39; color: #f1f6e7; }
.balance-stat > span, .balance-stat small { color: #c2d3b6; }
.balance-stat strong { color: #d9f09c; }
.onboarding { border-radius: 14px; background: #edf2e3; padding: 20px 24px; margin-bottom: 22px; }
.onboarding p { font-size: 12px; }
.card { border-radius: 14px; padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.card h2 { font-size: 20px; letter-spacing: -.025em; }
.card-heading .eyebrow { font-size: 9px; }
.setup textarea { background: #f7f9f3; color: #50614e; font-size: 12px; }
.setup pre { background: #15372b; border: 1px solid #2e4d3e; border-radius: 10px; font-size: 12px; padding: 20px; }
.setup > .fine { font-size: 11px; }
.tag { border-radius: 6px; color: #586e4a; font-size: 10px; }
.empty { padding: 36px 16px; border-radius: 12px; background: radial-gradient(ellipse at center, #f4f7ef, #fff 75%); }
.empty > span { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 18px; background: #f0f4e8; border: 1px solid #e0e7d5; border-radius: 14px; color: #61784e; }
.empty h3 { font-size: 17px; }
table { font-size: 12px; font-variant-numeric: tabular-nums; }
th { background: #f8faf5; color: #687760; font-size: 10px; }
td { padding: 16px 12px; color: #5f6e60; }
tbody tr:hover { background: #f9fbf5; }
.key-prefix { font-size: 11px; color: #65755e; }
.revoke { min-height: 36px; font-size: 11px; }
.revoke:hover { background: #fff2ed; border-color: #cd998a; }
.key-result { border: 1px solid #b8cf8f; border-left: 3px solid #789c43; border-radius: 12px; background: #f5f9ea; }
.key-result h3 { margin: 12px 0 8px; font-size: 20px; }
.key-result code { padding: 18px; line-height: 1.7; user-select: all; color: #24422e; }
.key-result:focus { outline: 2px solid #789c43; outline-offset: 4px; }
.settings-card { max-width: 740px; }
.settings-card form { max-width: 460px; }
.info-note { background: #f0f4e7; color: #526747; border-radius: 10px; }
.console-footer span { font-size: 10px; }
#notice:not(:empty) { border-radius: 12px; padding: 16px 22px; border-color: #57734e; box-shadow: 0 12px 40px #102f2630; font-size: 13px; bottom: max(22px, env(safe-area-inset-bottom)); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; background: #d5ef8b; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

@media (min-width: 1500px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}
@media (max-width: 1100px) {
  .brand-caption {
    display: none;
  }
  .hero {
    gap: 30px;
  }
  .hero h1 {
    letter-spacing: -3px;
  }
  .hero-visual {
    padding: 20px;
  }
  .visual-top {
    font-size: 7px;
  }
  .gateway-node {
    padding: 20px 15px;
  }
  .console-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 13px 18px;
  }
  .console-main main {
    padding: 32px 4%;
  }
  .stat {
    padding: 20px 16px;
  }
  .stat strong {
    font-size: 29px;
  }
  .onboarding {
    flex-wrap: wrap;
  }
  .onboarding .button {
    margin-left: 60px;
  }
  .auth-story {
    padding: 40px 10%;
  }
  .auth-main {
    padding: 40px 10%;
  }
  .auth-story h1 {
    font-size: 49px;
  }
  .auth-card h2 {
    font-size: 28px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 78px;
    padding: 0 5%;
  }
  .topbar nav {
    gap: 16px;
  }
  .topbar .nav-text:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 50px 6%;
    gap: 45px;
  }
  .hero h1 {
    font-size: 62px;
    letter-spacing: -3px;
  }
  .hero-copy {
    max-width: 480px;
  }
  .hero-visual {
    max-width: 500px;
    width: 100%;
    justify-self: center;
    padding: 25px;
  }
  .feature-section {
    padding: 40px 6%;
  }
  .section-heading > p {
    position: static;
    max-width: none;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
  }
  .feature-grid article {
    padding: 24px;
  }
  .feature-grid h3 {
    margin-top: 20px;
  }
  .start-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px;
  }
  .start-section h2 {
    font-size: 32px;
  }
  .start-section .eyebrow {
    font-size: 8px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer > span {
    display: none;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    min-height: auto;
    padding: 25px 6%;
  }
  .auth-story > div,
  .auth-story > small {
    display: none;
  }
  .auth-main {
    min-height: calc(100vh - 89px);
    padding: 25px 7%;
  }
  .auth-card {
    padding: 45px 0;
  }
  .console-layout {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 5% 12px;
  }
  .sidebar .brand {
    padding: 0;
    font-size: 21px;
  }
  .sidebar .brand-icon {
    width: 31px;
    height: 31px;
    font-size: 26px;
  }
  .workspace-label,
  .starter-note,
  .account-chip,
  .sidebar-bottom > a {
    display: none;
  }
  .side-nav {
    flex-direction: row;
    margin-top: 20px;
    gap: 3px;
    justify-content: space-between;
  }
  .side-nav a {
    padding: 10px 8px;
    font-size: 11px;
    gap: 6px;
  }
  .side-nav a > span {
    font-size: 14px;
    width: auto;
  }
  .sidebar-bottom {
    padding: 0;
    position: absolute;
    right: 6%;
    top: 20px;
  }
  .logout {
    padding: 8px 0;
    font-size: 11px;
  }
  .console-header {
    height: 58px;
  }
  .console-main main {
    padding: 28px 5% 40px;
  }
  .page-intro h1 {
    font-size: 29px;
  }
  .page-intro p {
    font-size: 12px;
  }
  .stats {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:first-child {
    grid-column: 1/-1;
  }
  .stat strong {
    margin: 12px 0;
    font-size: 30px;
  }
  .stat:first-child strong {
    font-size: 38px;
  }
  .stat {
    padding: 20px;
  }
  .onboarding {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px;
    gap: 13px;
  }
  .onboarding > div:nth-child(2) {
    flex: 1;
  }
  .onboarding .button {
    grid-column: 2;
    margin-left: 0;
    justify-self: start;
  }
  .card {
    padding: 20px;
  }
  .card-heading {
    align-items: flex-start;
  }
  .card-heading .tag {
    display: none;
  }
  .key-form {
    grid-template-columns: 1fr;
  }
  .key-form label {
    max-width: none;
  }
  .key-form button {
    justify-self: start;
  }
  .key-result {
    padding: 17px;
  }
  .console-footer span:last-child {
    display: none;
  }
  .tag {
    font-size: 8px;
  }
  .console-header .tag {
    font-size: 7px;
  }
  .setup .actions {
    gap: 8px;
  }
  .setup .actions button {
    font-size: 10px;
    padding: 11px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep touch targets and type legible on compact screens. */
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(46px, 9vw, 62px); letter-spacing: -.06em; }
  .hero em { letter-spacing: -.05em; }
  .hero-visual { border-radius: 18px; }
  .connection-strip { align-items: flex-start; flex-direction: column; }
  .connection-strip div { flex-wrap: wrap; gap: 14px 22px; }
  .feature-section { padding-top: 48px; padding-bottom: 48px; }
  .feature-symbol { margin: 20px 0; }
  .auth-story { min-height: auto; }
  .auth-card h2 { font-size: 32px; }
  .side-nav a { min-height: 44px; font-size: 11px; gap: 5px; padding: 10px 7px; }
  .side-nav .ui-icon { width: 16px; height: 16px; }
  .sidebar { border-color: #294738; }
  .logout { min-height: 44px; padding: 10px 0; }
  .stat { padding: 20px 16px; }
  .stat small { font-size: 10px; line-height: 1.5; display: block; }
  .tag { font-size: 10px; }
  .console-header .tag { font-size: 8px; }
  .setup .actions button { font-size: 12px; min-height: 44px; }
  .key-result .actions { align-items: stretch; flex-direction: column; }
  .key-result .actions button { white-space: normal; min-height: 44px; }
  .start-section { padding: 28px; }
  input, .auth-card input { font-size: 16px; }
}
@media (max-width: 380px) {
  .topbar nav { gap: 12px; }
  .topbar .brand { font-size: 21px; gap: 6px; }
  .topbar .brand-icon { width: 32px; height: 32px; }
  .topbar .button { padding: 10px; }
  .hero-visual { padding: 20px 16px; }
  .visual-top { font-size: 7px; }
  .side-nav a { font-size: 10px; padding: 10px 5px; }
  .side-nav .ui-icon { width: 14px; height: 14px; }
}
