:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #eaf0f2;
  background: #0b111b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #6be3be;
  outline-offset: 2px;
}
.top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3vw;
  border-bottom: 1px solid #26313e;
  background: #0d1622;
  position: sticky;
  top: 0;
  z-index: 5;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.logo b {
  color: #6be3be;
}
.nav {
  display: flex;
  gap: 5px;
  align-items: center;
}
.nav button,
.subnav button {
  border: 0;
  background: transparent;
  color: #9eafbc;
  padding: 10px 14px;
  border-radius: 9px;
}
.nav button.active,
.subnav button.active {
  background: #1e3040;
  color: #eafcf5;
}
.top small {
  color: #93aab4;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.hero {
  padding: 72px max(5vw, 24px) 76px;
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: #75e4be;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hero h1 {
  font-size: clamp(44px, 5.5vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin: 20px 0;
}
.hero p {
  color: #a9bbc4;
  font-size: 20px;
  max-width: 580px;
  line-height: 1.5;
}
.primary {
  border: 0;
  background: #72e5bd;
  color: #092421;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 750;
}
.secondary {
  border: 1px solid #47606b;
  background: transparent;
  color: #e9f5f3;
  border-radius: 10px;
  padding: 12px 19px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.machine {
  padding: 20px;
  background: radial-gradient(circle at 65% 10%, #245b57, #122333 55%, #101b29);
  border: 1px solid #335258;
  border-radius: 20px;
  box-shadow: 0 30px 80px #0006;
}
.machine-top {
  display: flex;
  justify-content: space-between;
  color: #aac2c7;
  font-size: 14px;
  margin-bottom: 18px;
}
.nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.node {
  min-height: 100px;
  border: 1px solid #47636b;
  background: #132534dc;
  border-radius: 12px;
  padding: 16px;
}
.node strong {
  display: block;
  margin: 10px 0 4px;
}
.node span {
  font-size: 13px;
  color: #9ab5bc;
}
.node .icon {
  color: #75e4be;
  font-size: 22px;
}
.machine-foot {
  padding: 18px 10px 2px;
  color: #a9bbc4;
  font-size: 14px;
}
.strip {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 5vw 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: #14202d;
  border: 1px solid #293a48;
  padding: 26px;
  border-radius: 14px;
}
.feature h3 {
  margin: 6px 0;
}
.feature p {
  color: #a6b9c2;
  line-height: 1.55;
}
.alt {
  background: #eef2ef;
  color: #152621;
  min-height: calc(100vh - 68px);
}
.alt .hero {
  padding-top: 90px;
}
.alt .eyebrow {
  color: #316e5b;
}
.alt .hero p {
  color: #52645e;
}
.alt .primary {
  background: #152c27;
  color: white;
}
.alt .secondary {
  color: #18352c;
  border-color: #95aaa0;
}
.alt .machine {
  background: #d9e7dc;
  box-shadow: 14px 14px 0 #b4d8c5;
  border-color: #a5c7b4;
}
.alt .machine-top,
.alt .machine-foot {
  color: #4a6558;
}
.alt .node {
  background: #f9fcf9;
  border-color: #b8cfc0;
}
.alt .node span {
  color: #557466;
}
.alt .node .icon {
  color: #248a67;
}
.alt .feature {
  background: white;
  border-color: #d0ddd2;
}
.alt .feature p {
  color: #53685d;
}
.workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}
.sidebar {
  background: #0d1723;
  border-right: 1px solid #263441;
  padding: 24px 14px;
}
.org {
  padding: 12px;
  background: #182737;
  border: 1px solid #314354;
  border-radius: 10px;
  margin-bottom: 24px;
  font-weight: 700;
}
.org small {
  display: block;
  color: #93aab6;
  font-weight: 400;
  margin-top: 4px;
}
.side-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #718996;
  margin: 18px 12px 8px;
}
.sidebtn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: #afbec8;
  padding: 11px 14px;
  border-radius: 9px;
}
.sidebtn.active {
  background: #203644;
  color: #8ce8c7;
}
.main {
  padding: 32px clamp(20px, 4vw, 64px);
  max-width: 1550px;
  width: 100%;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.heading h1 {
  font-size: 34px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}
.muted {
  color: #9badb7;
}
.heading p {
  margin: 0;
  color: #9badb7;
}
.content {
  margin-top: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.stat,
.panel {
  border: 1px solid #2b3c49;
  background: #121e2b;
  border-radius: 13px;
  padding: 20px;
}
.stat strong {
  font-size: 31px;
  display: block;
  margin: 8px 0;
}
.stat span {
  color: #99afbb;
}
.two {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
  margin-top: 18px;
}
.panel h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
.item {
  border-top: 1px solid #2b3b47;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.item:first-of-type {
  border-top: 0;
}
.item strong {
  display: block;
}
.item small {
  display: block;
  color: #91a8b4;
  margin-top: 5px;
}
.badge {
  border: 1px solid #416254;
  background: #1c3e37;
  color: #94e6c0;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge.amber {
  border-color: #685836;
  background: #3c3221;
  color: #f2c979;
}
.badge.blue {
  border-color: #456078;
  background: #1c3449;
  color: #9bd0ed;
}
.search {
  background: #101c28;
  border: 1px solid #344653;
  padding: 13px 15px;
  border-radius: 10px;
  color: white;
  width: 100%;
  margin: 0 0 15px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar .search {
  margin: 0;
  flex: 1;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.card {
  border: 1px solid #304352;
  background: #142331;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  color: inherit;
  min-height: 160px;
}
.card:hover,
.item button:hover {
  border-color: #76ddbc;
}
.card h3 {
  margin: 11px 0 6px;
}
.card p {
  color: #a5b8c0;
  line-height: 1.4;
  margin: 0;
}
.card footer {
  color: #88a3af;
  margin-top: 17px;
  font-size: 13px;
}
.details {
  max-width: 850px;
}
.details p {
  line-height: 1.6;
  color: #b5c5ca;
}
.rule {
  padding: 15px;
  border-left: 3px solid #72e5bd;
  background: #1b2d37;
  margin: 14px 0;
}
.form label {
  display: block;
  margin: 16px 0 6px;
  color: #b4c5ca;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #3b505d;
  background: #0d1925;
  color: #edf5f4;
  border-radius: 9px;
  padding: 12px;
}
.form textarea {
  min-height: 125px;
}
.connector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #2b3b47;
  padding: 16px 0;
  gap: 12px;
}
.connector:first-of-type {
  border: 0;
}
.toggle {
  border: 1px solid #638777;
  background: #1d4b3e;
  color: #9ce7c4;
  border-radius: 20px;
  padding: 6px 13px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #254538;
  color: #d9ffeb;
  padding: 13px 18px;
  border: 1px solid #79d7aa;
  border-radius: 10px;
  display: none;
  z-index: 10;
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.flow div {
  background: #1c303c;
  border: 1px solid #34505b;
  border-radius: 12px;
  padding: 17px;
  line-height: 1.5;
}
.flow b {
  display: block;
  color: #8de7c5;
  margin-bottom: 7px;
}
.mobile-menu {
  display: none;
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
  }
  .strip,
  .stats,
  .flow {
    grid-template-columns: 1fr 1fr;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid #273947;
  }
  .org,
  .side-label {
    display: none;
  }
  .sidebtn {
    white-space: nowrap;
    width: auto;
  }
  .top {
    padding: 0 16px;
  }
  .top small {
    display: none;
  }
  .nav button {
    padding: 8px;
  }
}
@media (max-width: 560px) {
  .nav {
    gap: 0;
  }
  .nav button {
    font-size: 12px;
    padding: 8px 5px;
  }
  .logo {
    font-size: 21px;
  }
  .strip,
  .stats,
  .two,
  .cards,
  .flow {
    grid-template-columns: 1fr;
  }
  .heading {
    flex-direction: column;
  }
  .main {
    padding: 24px 16px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero p {
    font-size: 17px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
}

.prototype-notice {
  padding: 10px 16px;
  background: #20352e;
  color: #c6efdc;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #416254;
}
