.landing-page {
  --landing-bg: #f2f6f3;
  --landing-panel: #ffffff;
  --landing-ink: #18332a;
  --landing-muted: #60756c;
  --landing-line: #d9e5dd;
  --landing-green: #176b4c;
  --landing-green-dark: #10543b;
  --landing-soft: #e9f4ed;
  --landing-lime: #c8f07d;
  background: var(--landing-bg);
  color: var(--landing-ink);
}

.landing-page a {
  color: inherit;
}

.landing-page a:focus-visible {
  outline: 3px solid #9bd84f;
  outline-offset: 4px;
  border-radius: 3px;
}

.landing-page .landing-nav,
.landing-page .landing-main,
.landing-page > footer {
  width: min(100% - 3rem, 1120px);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.landing-page .landing-nav {
  min-height: 76px;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--landing-line);
}

.landing-nav .brand,
.landing-nav nav,
.landing-nav nav a {
  display: flex;
  align-items: center;
}

.landing-nav .brand {
  gap: 0.65rem;
  color: var(--landing-ink);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
  border-radius: 5px 5px 5px 1px;
  background: var(--landing-green);
  transform: rotate(-8deg);
}

.brand-mark::after {
  position: absolute;
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  top: 0.44rem;
  left: 0.44rem;
  border-radius: 50%;
  background: var(--landing-lime);
}

.landing-nav nav {
  gap: 1.7rem;
}

.landing-nav nav a {
  color: var(--landing-muted);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}

.landing-nav nav a:hover {
  color: var(--landing-green);
}

.landing-nav nav .nav-github {
  border: 1px solid var(--landing-line);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  color: var(--landing-ink);
}

.landing-main {
  display: block;
}

.landing-page .hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 3.6rem;
  padding: clamp(4.5rem, 8vw, 6.8rem) 0 clamp(4rem, 7vw, 5.8rem);
}

.hero-copy {
  max-width: 820px;
  text-align: center;
}

.hero-kicker,
.section-kicker {
  color: var(--landing-green);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hero-kicker {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--landing-line);
  border-radius: 999px;
  background: var(--landing-panel);
  font-size: 0.78rem;
}

.hero-kicker span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--landing-green);
  box-shadow: 0 0 0 4px var(--landing-soft);
}

.landing-page .landing-title {
  max-width: 820px;
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(3.2rem, 7vw, 5.9rem);
  font-weight: 760;
  letter-spacing: -0.078em;
  line-height: 0.99;
}

.hero-description {
  max-width: 650px;
  margin: 1.4rem auto 0;
  color: var(--landing-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.landing-page .landing-cta {
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.65rem;
}

.landing-page .landing-cta .btn {
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 620;
}

.landing-page .landing-cta .btn-primary {
  border: 1px solid var(--landing-green);
  background: var(--landing-green);
}

.landing-page .landing-cta .btn-primary:hover {
  background: var(--landing-green-dark);
}

.landing-page .landing-cta .btn-secondary {
  border-color: var(--landing-line);
  background: var(--landing-panel);
  color: var(--landing-ink);
}

.landing-page .landing-cta .btn-secondary:hover {
  background: var(--landing-soft);
}

.product-preview {
  position: relative;
  width: min(100%, 980px);
  min-height: 405px;
  padding: 0 7.5rem 2.2rem 0;
}

.monitor-window {
  overflow: hidden;
  border: 1px solid var(--landing-line);
  border-radius: 11px;
  background: var(--landing-panel);
  box-shadow: 0 28px 70px rgba(29, 68, 48, 0.12);
}

.preview-topbar {
  display: flex;
  align-items: center;
  height: 47px;
  gap: 0.9rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--landing-line);
  background: var(--landing-panel);
}

.window-dots {
  display: flex;
  gap: 4px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4ded7;
}

.window-dots i:first-child {
  background: #e9a7a0;
}

.window-dots i:nth-child(2) {
  background: #e9cb7a;
}

.window-dots i:nth-child(3) {
  background: #8dc895;
}

.preview-breadcrumb {
  color: var(--landing-ink);
  font-size: 0.72rem;
  font-weight: 650;
}

.preview-breadcrumb span {
  padding: 0 0.3rem;
  color: var(--landing-muted);
}

.preview-tag {
  margin-left: auto;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  background: var(--landing-soft);
  color: var(--landing-green);
  font-size: 0.62rem;
  font-weight: 650;
}

.monitor-content {
  display: flex;
  min-height: 306px;
}

.monitor-sidebar {
  display: flex;
  width: 54px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 17px 0;
  border-right: 1px solid var(--landing-line);
  background: #fbfcfb;
}

.sidebar-mark {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: var(--landing-green);
  box-shadow: inset 0 0 0 6px #d9eee0;
}

.monitor-sidebar i {
  width: 15px;
  height: 15px;
  border: 1px solid #cfdcd3;
  border-radius: 4px;
}

.monitor-sidebar i:first-of-type {
  border-color: #9acaa8;
  background: #e6f3e9;
}

.sidebar-bottom {
  width: 19px;
  height: 19px;
  margin-top: auto;
  border: 1px solid #cfdcd3;
  border-radius: 50%;
}

.monitor-main {
  min-width: 0;
  flex: 1;
  padding: 1.55rem 1.7rem 1rem;
}

.monitor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.monitor-heading > div > span {
  color: var(--landing-muted);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.monitor-heading h2 {
  margin-top: 0.35rem;
  color: var(--landing-ink);
  font-size: 1.2rem;
  font-weight: 680;
  letter-spacing: -0.045em;
}

.checks-frequency {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--landing-line);
  border-radius: 5px;
  color: var(--landing-muted);
  font-size: 0.62rem;
}

.checks-frequency i,
.preview-foot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53a574;
}

.monitor-table {
  margin-top: 1.3rem;
  border-top: 1px solid var(--landing-line);
}

.monitor-table-head,
.monitor-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.7fr) minmax(70px, 0.55fr);
  align-items: center;
  gap: 0.7rem;
}

.monitor-table-head {
  min-height: 35px;
  color: var(--landing-muted);
  font-size: 0.6rem;
}

.monitor-row {
  min-height: 60px;
  border-top: 1px solid var(--landing-line);
  color: var(--landing-ink);
  font-size: 0.71rem;
}

.monitor-service {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
}

.service-symbol {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: #e6effb;
  color: #4373b3;
  font-size: 0.65rem;
  font-style: normal;
}

.service-symbol.api-symbol {
  background: #f2eafa;
  color: #8056a4;
}

.service-symbol.db-symbol {
  background: #f9efe0;
  color: #a97834;
}

.monitor-service small {
  display: block;
  margin-top: 0.13rem;
  color: var(--landing-muted);
  font-size: 0.6rem;
  font-weight: 400;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.28rem;
  padding: 0.27rem 0.42rem;
  border-radius: 4px;
  background: var(--landing-soft);
  color: var(--landing-green);
  font-size: 0.6rem;
  font-weight: 600;
}

.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #52a574;
}

.check-value {
  color: var(--landing-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
}

.preview-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.7rem;
  color: var(--landing-muted);
  font-size: 0.62rem;
}

.preview-foot span:first-child {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-window {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 300px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--landing-line);
  border-radius: 9px;
  background: var(--landing-panel);
  box-shadow: 0 18px 48px rgba(29, 68, 48, 0.15);
}

.public-page-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--landing-ink);
  font-size: 0.7rem;
}

.public-brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--landing-green);
}

.public-menu {
  margin-left: auto;
  color: var(--landing-muted);
  letter-spacing: 0.1em;
}

.public-status {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
}

.public-status-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--landing-soft);
  color: var(--landing-green);
  font-size: 0.72rem;
  font-weight: 700;
}

.public-status div > * {
  display: block;
}

.public-status strong {
  color: var(--landing-ink);
  font-size: 0.68rem;
}

.public-status div span {
  margin-top: 0.2rem;
  color: var(--landing-muted);
  font-size: 0.57rem;
}

.uptime-label {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  margin-top: 1.15rem;
  color: var(--landing-muted);
  font-size: 0.55rem;
}

.uptime-label strong {
  color: var(--landing-ink);
  font-size: 0.6rem;
}

.uptime-bars {
  display: flex;
  height: 18px;
  gap: 2px;
  margin-top: 0.5rem;
}

.uptime-bars i {
  flex: 1;
  border-radius: 2px;
  background: #67b582;
}

.uptime-bars i:nth-child(7n) {
  background: #a3d19b;
}

.public-services {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.7rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--landing-line);
  color: var(--landing-ink);
  font-size: 0.6rem;
}

.public-services strong {
  color: var(--landing-green);
  font-size: 0.57rem;
  font-weight: 600;
}

.preview-caption {
  position: absolute;
  right: 7.5rem;
  bottom: 0;
  color: var(--landing-muted);
  font-size: 0.68rem;
}

.preview-caption span {
  color: var(--landing-green);
}

.monitor-sidebar,
.status-window {
  color-scheme: light;
}

.landing-page .hero-centered {
  grid-template-columns: 1fr;
}

.hero-centered .hero-copy {
  max-width: 840px;
}

.hero-centered .product-preview {
  justify-self: center;
}

.comparison-section,
.workflow-section {
  padding: clamp(3.7rem, 7vw, 5.4rem) 0;
  border-top: 1px solid var(--landing-line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.setup-copy h2 {
  margin: 0.5rem 0 0;
  color: var(--landing-ink);
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.section-heading > p {
  max-width: 370px;
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.comparison-scroll {
  overflow-x: auto;
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: var(--landing-panel);
}

.comparison-scroll:focus-visible {
  outline: 3px solid #9bd84f;
  outline-offset: 3px;
}

.comparison-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
  text-align: left;
}

.comparison-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.comparison-table th,
.comparison-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--landing-line);
  vertical-align: top;
  font-size: 0.8rem;
  line-height: 1.55;
}

.comparison-table thead th {
  background: #f7faf8;
  color: var(--landing-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.comparison-table thead th:first-child {
  width: 15%;
}

.comparison-table thead th:not(:first-child) {
  width: 21.25%;
}

.comparison-table thead a {
  color: var(--landing-ink);
  text-decoration: underline;
  text-decoration-color: #b4c8bc;
  text-underline-offset: 3px;
}

.comparison-table tbody th {
  color: var(--landing-ink);
  font-weight: 620;
}

.comparison-table tbody td {
  color: var(--landing-muted);
}

.comparison-table tr:last-child > * {
  border-bottom: 0;
}

.comparison-table .current-product {
  background: #eef7f0;
  color: var(--landing-ink);
}

.comparison-note {
  margin-top: 0.8rem;
  color: var(--landing-muted);
  font-size: 0.76rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--landing-line);
}

.workflow-grid article {
  padding: 1.35rem 1.5rem 0 0;
}

.workflow-number {
  color: var(--landing-green);
  font-size: 0.75rem;
  font-weight: 700;
}

.workflow-grid h3 {
  margin-top: 0.7rem;
  color: var(--landing-ink);
  font-size: 1.02rem;
  font-weight: 650;
}

.workflow-grid p {
  max-width: 320px;
  margin-top: 0.5rem;
  color: var(--landing-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.setup-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  margin-bottom: 4rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 10px;
  background: #e8f1eb;
}

.setup-copy h2 {
  max-width: 400px;
}

.setup-steps {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  color: var(--landing-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.setup-steps li {
  padding-left: 0.25rem;
}

.setup-steps li::marker {
  color: var(--landing-green);
  font-weight: 700;
}

.setup-steps code {
  color: var(--landing-ink);
  font-size: 0.84rem;
}

.setup-link {
  display: inline-block;
  color: var(--landing-green) !important;
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.config-sample {
  overflow-x: auto;
  margin: 0;
  padding: 1.4rem;
  border: 1px solid #d2e1d7;
  border-radius: 7px;
  background: #f8fbf8;
  color: #28493a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.81rem;
  line-height: 1.8;
  tab-size: 2;
}

.landing-page > footer {
  display: flex;
  min-height: 72px;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 0;
  border-top-color: var(--landing-line);
  color: var(--landing-muted);
  font-size: 0.8rem;
}

.landing-page > footer a {
  color: var(--landing-muted);
  text-decoration: none;
}

.landing-page > footer a:hover {
  color: var(--landing-green);
}

.landing-page > footer svg {
  margin-right: 0.35rem;
}

@media (prefers-color-scheme: dark) {
  .landing-page {
    --landing-bg: #14221c;
    --landing-panel: #1c2d25;
    --landing-ink: #e8f0e9;
    --landing-muted: #a3b5a8;
    --landing-line: #34483b;
    --landing-green: #83d4a0;
    --landing-green-dark: #6bc38a;
    --landing-soft: #263f30;
    --landing-lime: #c8f07d;
  }

  .landing-page .landing-cta .btn-primary {
    color: #10251a;
  }

  .landing-page .landing-cta .btn-secondary {
    color: var(--landing-ink);
  }

  .comparison-table thead th,
  .comparison-table .current-product {
    background: #23392c;
  }

  .config-sample {
    border-color: var(--landing-line);
    background: #182820;
    color: #d5e8d8;
  }

  .setup-section {
    background: #1b3024;
  }
}

@media (max-width: 760px) {
  .landing-page .landing-nav,
  .landing-page .landing-main,
  .landing-page > footer {
    width: min(100% - 2rem, 1120px);
  }

  .landing-page .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4.5rem 0 4rem;
  }

  .product-preview {
    min-height: auto;
    padding: 0;
  }

  .status-window {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(300px, calc(100% - 1.5rem));
    margin: -1.5rem 0 0 auto;
  }

  .preview-caption {
    position: static;
    margin-top: 0.8rem;
    text-align: center;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .section-heading > p {
    max-width: 520px;
  }

  .setup-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 520px) {
  .landing-page .landing-nav {
    min-height: 68px;
  }

  .landing-nav nav {
    gap: 0.8rem;
  }

  .landing-nav nav a {
    font-size: 0.77rem;
  }

  .landing-nav nav a:nth-child(2) {
    display: none;
  }

  .landing-nav nav .nav-github {
    padding: 0.4rem 0.6rem;
  }

  .landing-page .hero {
    padding: 3.6rem 0 4rem;
  }

  .landing-page .landing-title {
    font-size: clamp(2.7rem, 12vw, 3.8rem);
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-kicker {
    max-width: 100%;
    font-size: 0.7rem;
  }

  .landing-page .landing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-page .landing-cta .btn {
    text-align: center;
  }

  .preview-topbar {
    height: 40px;
    gap: 0.55rem;
    padding: 0 0.65rem;
  }

  .preview-breadcrumb {
    font-size: 0.65rem;
  }

  .preview-tag {
    font-size: 0.55rem;
  }

  .monitor-sidebar {
    display: none;
  }

  .monitor-main {
    padding: 1.2rem 0.85rem 0.9rem;
  }

  .monitor-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .monitor-heading h2 {
    font-size: 1.05rem;
  }

  .checks-frequency {
    font-size: 0.58rem;
  }

  .monitor-table-head,
  .monitor-row {
    grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
    gap: 0.35rem;
  }

  .monitor-table-head > :last-child,
  .monitor-row > :last-child {
    display: none;
  }

  .monitor-table-head {
    font-size: 0.56rem;
  }

  .monitor-row {
    min-height: 56px;
    font-size: 0.66rem;
  }

  .monitor-service {
    gap: 0.4rem;
  }

  .service-symbol {
    width: 23px;
    height: 23px;
  }

  .monitor-service small {
    font-size: 0.54rem;
  }

  .status-pill {
    font-size: 0.56rem;
  }

  .preview-foot {
    font-size: 0.56rem;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article {
    padding: 1rem 0;
    border-bottom: 1px solid var(--landing-line);
  }

  .workflow-grid article:last-child {
    border-bottom: 0;
  }

  .setup-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.2rem;
  }

  .config-sample {
    padding: 1rem;
    font-size: 0.73rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page *,
  .landing-page *::before,
  .landing-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
