:root {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    Arial,
    sans-serif;
  color: #1b2727;
  background: #f7f8f4;
  --green: #c9f563;
  --muted: #69716c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1320px;
  margin: auto;
  padding: 30px 52px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dde2d7;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  color: inherit;
}
.brand-icon {
  flex: 0 0 32px;
  border-radius: 8px;
}
.brand span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 20px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
a {
  color: inherit;
}
nav a {
  text-decoration: none;
  font-size: 13px;
}
button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #cdd3c8;
  background: transparent;
  border-radius: 7px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
}
button:hover {
  background: #e9eedf;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  padding: 17px 23px;
}
.primary:hover {
  background: #b9e455;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #566646;
  margin: 44px 0 25px;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 70px;
}
h1 {
  font-size: 70px;
  line-height: 1.08;
  letter-spacing: -4px;
  margin: 0 0 26px;
  font-weight: 800;
}
h1 span {
  color: #83ae37;
}
p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  max-width: 450px;
}
.hero p {
  margin-bottom: 30px;
}
.secondary {
  font-size: 13px;
  text-decoration: none;
  margin-left: 20px;
}
.caption {
  font-size: 11px;
  color: #6d7865;
  margin-top: 24px;
}
.terminal {
  background: #1b2727;
  color: #eaf1e4;
  border-radius: 12px;
  transform: rotate(-1deg);
  box-shadow: 14px 18px 0 #e3ebd5;
}
.bar {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #35413a;
  padding: 18px;
}
.bar i {
  height: 7px;
  width: 7px;
  background: #73816d;
  border-radius: 50%;
}
.bar span {
  margin: auto;
  font-size: 11px;
  color: #a6b09f;
}
pre {
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.85;
  padding: 20px;
  margin: 0;
  overflow: auto;
}
pre span,
pre b {
  color: #c9f563;
}
.muted {
  color: #82917e !important;
}
.termfoot {
  padding: 15px 22px;
  color: #99a68e;
  font-size: 10px;
  border-top: 1px solid #35413a;
}
.strip {
  display: flex;
  justify-content: space-between;
  border-block: 1px solid #dce2d6;
  padding: 25px 0;
  font-size: 12px;
  color: #647057;
}
.strip span:before {
  content: "↗";
  margin-right: 12px;
  color: #658732;
}
h2 {
  font-size: 43px;
  line-height: 1.2;
  letter-spacing: -1.6px;
  margin: 16px 0 35px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards article {
  border: 1px solid #dce2d6;
  border-radius: 10px;
  padding: 28px;
  min-height: 230px;
}
.cards em {
  font-size: 11px;
  font-style: normal;
  color: #73895e;
}
.cards h3 {
  margin-top: 40px;
  font-size: 19px;
}
.cards p {
  font-size: 13px;
}
.start {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
  margin: 75px 0 20px;
  padding: 0 30px 30px;
  background: #eaf0df;
  border-radius: 12px;
}
ol {
  padding-top: 38px;
  font-size: 14px;
}
li {
  padding: 14px;
}
code {
  display: block;
  overflow: auto;
  max-width: 100%;
  font-size: 12px;
}
footer {
  border-top: 1px solid #dce2d6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7a8273;
  font-size: 11px;
}
dialog {
  border: 1px solid #dce2d6;
  border-radius: 14px;
  width: 430px;
  padding: 30px;
  background: #f7f8f4;
}
dialog::backdrop {
  background: #142021aa;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 29px;
}
label {
  display: block;
  font-size: 12px;
  margin: 18px 0;
}
input {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #ccd5bf;
  border-radius: 6px;
  margin-top: 8px;
  font: inherit;
  background: white;
}
form > .primary {
  width: 100%;
}
#switch {
  border: 0;
  width: 100%;
  margin-top: 12px;
}
.close {
  float: right;
  border: 0;
  font-size: 22px;
  padding: 0;
}
.dashhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashhead h1 {
  font-size: 48px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.stats article {
  padding: 25px;
  border: 1px solid #dce2d6;
  border-radius: 10px;
}
.stats small {
  font-size: 10px;
  color: var(--muted);
}
strong {
  display: block;
  font-size: 36px;
  margin-top: 12px;
}
#dashboard section {
  margin: 40px 0;
}
.badge {
  font-size: 9px;
  background: #d9edb6;
  color: #4c7024;
  padding: 5px 8px;
  border-radius: 4px;
  margin-left: 12px;
}
.tunnel,
.tokenrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: white;
  border: 1px solid #dce2d6;
  border-radius: 7px;
  margin: 10px 0;
}
.tunnel small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.tokenbox {
  padding: 24px;
  background: #eaf0df;
  border-radius: 10px;
}
#secret {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
td,
th {
  padding: 14px;
  border-bottom: 1px solid #dde2d7;
}
.tablewrap {
  overflow: auto;
}
#notice {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1b2727;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  display: none;
}
#error {
  color: #b04235;
  font-size: 12px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #85a94b;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  header,
  main,
  footer {
    padding: 22px;
  }
  .brand span,
  header nav > a {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  h1 {
    font-size: 52px;
  }
  .cards,
  .start {
    grid-template-columns: 1fr;
  }
  .strip {
    flex-wrap: wrap;
    gap: 20px;
  }
  .stats {
    gap: 8px;
  }
  .stats article {
    padding: 14px;
  }
  .stats strong {
    font-size: 25px;
  }
  footer {
    flex-wrap: wrap;
  }
  .terminal {
    transform: none;
  }
  .secondary {
    display: inline-block;
    margin: 20px 0 0;
  }
  .dashhead h1 {
    font-size: 38px;
  }
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #d4dccb;
  padding-bottom: 12px;
  overflow: auto;
}
.tabs button {
  white-space: nowrap;
  border: 0;
}
.tabs button[aria-selected="true"] {
  background: #1b2727;
  color: #c9f563;
}
#connection-state {
  font-size: 11px;
  max-width: none;
}
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hint {
  padding: 25px;
  border-left: 3px solid #9acb43;
  background: #edf2e5;
  margin: 30px 0;
}
.hint p {
  max-width: 750px;
}
.empty {
  padding: 45px;
  text-align: center;
  border: 1px dashed #bfcdb1;
  border-radius: 10px;
}
.empty p {
  margin: 15px auto;
}
.endpoint-card {
  padding: 24px;
  border: 1px solid #dce2d6;
  background: white;
  border-radius: 10px;
  margin: 15px 0;
}
.endpoint-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.endpoint-top h3 {
  margin: 0 0 10px;
}
.endpoint-url {
  font:
    13px Consolas,
    monospace;
  word-break: break-all;
  color: #61734d;
}
.status {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 5px 8px;
  background: #edf0e7;
  border-radius: 4px;
  white-space: nowrap;
}
.status.online {
  background: #d5efb1;
  color: #355d14;
}
.endpoint-meta {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: #7a8473;
  margin: 18px 0;
}
.command {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  background: #1b2727;
  color: #e5f4d5;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 15px 0;
}
.command code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.command button {
  color: #c9f563;
  border-color: #59694a;
  font-size: 11px;
  padding: 7px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions button {
  font-size: 11px;
}
.danger {
  color: #a74037;
}
.filters {
  display: flex;
  gap: 20px;
}
.filters label {
  flex: 1;
}
.filters input,
.filters select {
  width: 100%;
}
select,
textarea {
  font: inherit;
  background: white;
  border: 1px solid #ccd5bf;
  border-radius: 6px;
  padding: 12px;
  width: 100%;
  margin-top: 8px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.check input {
  width: auto;
  margin: 0;
}
small {
  display: block;
  color: #6d7865;
  margin-top: 6px;
}
.setupsteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.setupsteps article {
  padding: 25px;
  border: 1px solid #dce2d6;
  border-radius: 10px;
}
.stepnum {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #c9f563;
  font-size: 12px;
  font-weight: 800;
}
.downloads {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0;
}
.downloads a {
  display: block;
  padding: 10px 13px;
  background: #eaf0df;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
}
.compactform {
  max-width: 450px;
}
#secretbox {
  margin: 20px 0;
  border: 1px solid #b9c9a2;
  padding: 15px;
  border-radius: 8px;
}
#secret {
  padding: 0 0 15px;
}
dialog.wide {
  width: min(850px, 95vw);
}
dialog {
  max-height: 90vh;
  overflow: auto;
}
#request-content pre,
#dns-records,
#replay-result {
  background: #edf1e8;
  border-radius: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 250px;
  overflow: auto;
}
#audit {
  font-size: 12px;
}
.auditrow {
  padding: 12px 0;
  border-bottom: 1px solid #dde2d7;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
#dashboard h2 {
  font-size: 32px;
}
.local-port {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.local-port input {
  width: 110px;
  margin: 0;
  padding: 8px;
}
.guide {
  max-width: 900px;
}
.guide h1 {
  font-size: 46px;
}
.guide p {
  max-width: none;
}
.guide pre {
  background: #1b2727;
  color: #d9f2ba;
  border-radius: 8px;
  white-space: pre-wrap;
}
.guide h2 {
  font-size: 28px;
  margin-top: 45px;
}
.guide li {
  line-height: 1.7;
}
@media (max-width: 1050px) {
  .setupsteps {
    grid-template-columns: 1fr;
  }
  .setupsteps article p {
    max-width: none;
  }
  .sectionhead {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .filters {
    flex-direction: column;
    gap: 0;
  }
  .endpoint-top {
    flex-wrap: wrap;
  }
  .endpoint-meta {
    flex-wrap: wrap;
  }
  .command {
    align-items: flex-start;
  }
  .dashhead h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .tokenrow {
    gap: 10px;
    flex-wrap: wrap;
  }
}
.download-menu {
  position: relative;
  font-size: 13px;
}
.download-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 12px;
  border: 1px solid #cdd3c8;
  border-radius: 7px;
  font-weight: 700;
}
.download-options {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 48px;
  width: 250px;
  background: #fff;
  border: 1px solid #dce2d6;
  border-radius: 10px;
  box-shadow: 0 15px 30px #1b27271a;
  padding: 8px;
}
.download-options a {
  display: block !important;
  padding: 13px;
  border-radius: 6px;
  font-size: 13px !important;
}
.download-options a:hover {
  background: #edf2e5;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.price-card {
  border: 1px solid #d2dcc5;
  border-radius: 12px;
  padding: 30px;
  background: white;
}
.price-card.featured {
  background: #edf4df;
  border-color: #b2d279;
}
.price-card strong {
  font-size: 45px;
  letter-spacing: -1px;
}
.price-card strong small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.price-card li {
  padding: 5px 0;
  font-size: 14px;
}
.price-card p {
  max-width: none;
}
.price-card button {
  margin-top: 12px;
}
.platform-picker,
.payment-method {
  max-width: 360px;
}
.order-row {
  padding: 18px 0;
  border-bottom: 1px solid #dce2d6;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.order-row small {
  font-size: 11px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.order-row a {
  font-size: 12px;
}
.price-card > small {
  line-height: 1.6;
  margin-top: 16px;
}
.platform-command-note {
  font-size: 12px;
  color: #69716c;
}
@media (max-width: 850px) {
  nav {
    gap: 8px;
  }
  .download-menu summary {
    font-size: 12px;
    padding: 10px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .order-row {
    flex-wrap: wrap;
  }
  .download-options {
    right: -60px;
  }
  header {
    gap: 12px;
  }
  .brand {
    font-size: 24px;
  }
}
.guide-toc {
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 28px 0;
}
.guide-toc a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide section {
  padding: 0;
  scroll-margin-top: 24px;
}
.guide pre,
.terminal pre {
  overflow-wrap: anywhere;
}
.installer-guide details {
  margin: 12px 0;
}
.installer-guide summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
input:disabled,
textarea:disabled {
  background: #edf0e8;
  color: #69716c;
}
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
  }
  header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
  }
  .download-menu summary {
    white-space: nowrap;
  }
  .download-options {
    left: 0;
    right: auto;
    width: min(270px, calc(100vw - 90px));
  }
  .command {
    flex-wrap: wrap;
  }
  .command code {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .guide h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  .dashhead {
    flex-wrap: wrap;
    gap: 16px;
  }
  .price-card {
    padding: 22px;
  }
  .terminal {
    transform: none;
  }
}
