:root {
  color-scheme: light;
  --accent: #177d55;
  --accent-strong: #0d5f3f;
  --danger: #b42318;
  --ink: #171a1f;
  --muted: #626973;
  --line: #dfe3e7;
  --soft: #f4f6f7;
  --warning: #a15c00;
  font-family: Inter, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  background: #fff;
  color: var(--ink);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 125, 85, 0.25);
  outline-offset: 3px;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 30;
}
.skip-link:focus {
  top: 12px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 64px;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  align-items: center;
  display: flex;
  font-size: 19px;
  font-weight: 720;
  gap: 10px;
}
.brand img {
  display: block;
}
.site-header nav {
  align-items: stretch;
  display: flex;
  height: 100%;
}
.site-header nav a {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  padding: 0 15px;
  position: relative;
}
.site-header nav a::after {
  background: var(--accent);
  bottom: 0;
  content: '';
  height: 2px;
  left: 15px;
  position: absolute;
  right: 15px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--ink);
}
.site-header nav a:hover::after,
.site-header nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.page-intro {
  align-items: end;
  background: #f7f8f8;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 360px;
  overflow: hidden;
  padding: 72px max(24px, calc((100% - 1180px) / 2)) 62px;
  position: relative;
}
.page-intro__inner {
  animation: rise 440ms ease both;
  max-width: 710px;
  position: relative;
  z-index: 2;
}
.eyebrow,
.state-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}
h1 {
  font-size: 52px;
  line-height: 1.08;
  margin: 0;
  max-width: 800px;
}
.lede {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  margin: 22px 0 0;
  max-width: 650px;
}
.back-link {
  margin: 24px 0 0;
}
.back-link a {
  border-bottom: 1px solid var(--ink);
  font-weight: 650;
  padding-bottom: 3px;
}

.signal-field {
  align-items: end;
  display: flex;
  gap: 14px;
  height: 210px;
  justify-content: end;
  opacity: 0.82;
}
.signal-field span {
  animation: signal 2.8s ease-in-out infinite;
  background: var(--ink);
  border-radius: 3px 3px 0 0;
  display: block;
  height: 30%;
  width: 46px;
}
.signal-field span:nth-child(2) {
  animation-delay: -1.8s;
  height: 58%;
}
.signal-field span:nth-child(3) {
  animation-delay: -0.9s;
  height: 90%;
}
.signal-field span:nth-child(4) {
  animation-delay: -2.2s;
  height: 70%;
}
.signal-field span:nth-child(5) {
  animation-delay: -1.2s;
  background: var(--accent);
  height: 42%;
}

.content-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 24px;
}
.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-heading h2,
.release-heading h2,
.empty-state h2,
.support-contact h2,
.form-heading h2 {
  font-size: 28px;
  margin: 0;
}
.section-heading p,
.release-heading p,
.form-heading p {
  color: var(--muted);
  margin: 0;
}

.link-list {
  border-top: 1px solid var(--line);
}
.link-list a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px 4px;
  transition:
    color 160ms ease,
    padding 160ms ease;
}
.link-list a:hover {
  color: var(--accent-strong);
  padding-left: 10px;
}
.link-list span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.link-list strong {
  font-size: 18px;
}
.link-list small {
  color: var(--muted);
  font-size: 14px;
}
.link-list b {
  font-size: 21px;
}
.split-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 70px;
  grid-template-columns: 1fr 1.6fr;
}
.split-section .section-heading {
  align-items: start;
  display: block;
}
.split-section .section-heading p {
  line-height: 1.6;
  margin-top: 10px;
}
.link-list.compact a {
  min-height: 76px;
}

.prose,
.legal-document {
  max-width: 850px;
}
.prose section,
.legal-document section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 34px;
  margin: 0 0 36px;
}
.prose h2,
.legal-document h2 {
  font-size: 21px;
  margin: 0 0 13px;
}
.prose p,
.legal-document p {
  color: #414851;
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}
.legal-date {
  color: var(--muted) !important;
  font-size: 14px !important;
  margin-bottom: 42px !important;
}

.release-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 28px;
}
.release-heading .state-label {
  margin-bottom: 10px;
}
.release-heading > a,
.support-contact > a,
.empty-state > a {
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
  padding-bottom: 4px;
}
.release-files {
  border-bottom: 1px solid var(--line);
}
.release-file {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 22px 4px;
}
.release-file:first-child {
  border-top: 0;
}
.release-file span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.release-file small {
  color: var(--muted);
}
.release-file b {
  color: var(--accent-strong);
}
.trust-strip {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 48px;
  padding-top: 48px;
}
.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}
.empty-state {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 54px 0;
}
.empty-state .state-label {
  margin-bottom: 12px;
}
.empty-state p:not(.state-label) {
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0 28px;
}
.changelog article > header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}
.changelog article h2 {
  font-size: 32px;
  margin: 0;
}
.release-notes {
  color: #414851;
  line-height: 1.8;
  padding: 28px 0;
}

.support-layout {
  display: grid;
  gap: 90px;
  grid-template-columns: 0.85fr 1.4fr;
}
.support-contact {
  align-self: start;
  position: sticky;
  top: 100px;
}
.support-contact h2 {
  overflow-wrap: anywhere;
}
.support-contact > p:not(.state-label) {
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 28px;
}
form {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.form-heading {
  margin-bottom: 30px;
}
.form-heading p {
  line-height: 1.6;
  margin-top: 9px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 24px;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #b9c0c7;
  border-radius: 5px;
  color: var(--ink);
  display: block;
  font: inherit;
  margin-top: 9px;
  padding: 12px 13px;
  width: 100%;
}
textarea {
  line-height: 1.6;
  resize: vertical;
}
label small {
  color: var(--muted);
  display: block;
  font-weight: 400;
  margin-top: 7px;
  text-align: right;
}
.honeypot {
  left: -10000px;
  position: absolute;
}
.form-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  min-height: 44px;
}
button {
  background: var(--ink);
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 0 22px;
}
button:hover {
  background: var(--accent-strong);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
[data-form-status] {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
[data-form-status][data-state='success'] {
  color: var(--accent-strong);
}
[data-form-status][data-state='error'] {
  color: var(--danger);
}

.overall-status {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 13px;
  grid-template-columns: auto 1fr auto;
  padding: 24px 4px;
}
.overall-status > span {
  background: var(--accent);
  border-radius: 50%;
  height: 11px;
  width: 11px;
}
.overall-status[data-status='degraded'] > span {
  background: var(--warning);
}
.overall-status[data-status='outage'] > span {
  background: var(--danger);
}
.overall-status small {
  color: var(--muted);
}
.status-list {
  margin-top: 48px;
}
.status-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 4px;
}
.status-item:first-child {
  border-top: 1px solid var(--line);
}
.status-item span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-item small {
  color: var(--muted);
}
.status-item b {
  color: var(--accent-strong);
  font-size: 14px;
}
.status-item b[data-status='degraded'] {
  color: var(--warning);
}
.status-item b[data-status='outage'] {
  color: var(--danger);
}
.incident-history {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 48px;
}
.incident-history [data-incident-list] > p {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 180px 1fr;
  margin: 0;
  padding: 17px 4px;
}
.incident-history time,
.empty-line {
  color: var(--muted);
  font-size: 14px;
}
.empty-line {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 28px 4px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-top: 30px;
  padding: 30px max(24px, calc((100% - 1180px) / 2));
}
.site-footer > span:last-child {
  display: flex;
  gap: 24px;
}
.site-footer a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes signal {
  0%,
  100% {
    transform: scaleY(0.86);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 60px;
    padding: 12px 18px;
  }
  .site-header nav {
    gap: 2px;
    overflow-x: auto;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    height: 46px;
    padding: 0 10px;
  }
  .site-header nav a {
    flex: 0 0 auto;
    padding: 0 10px;
  }
  .site-header nav a::after {
    left: 10px;
    right: 10px;
  }
  .page-intro {
    grid-template-columns: 1fr;
    min-height: 380px;
    padding: 100px 20px 48px;
  }
  .signal-field {
    bottom: 0;
    height: 120px;
    opacity: 0.12;
    position: absolute;
    right: 18px;
    width: 55%;
  }
  h1 {
    font-size: 38px;
  }
  .lede {
    font-size: 17px;
  }
  .content-section {
    padding: 54px 20px;
  }
  .split-section,
  .support-layout {
    gap: 38px;
    grid-template-columns: 1fr;
  }
  .support-contact {
    position: static;
  }
  .section-heading,
  .release-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .trust-strip {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .overall-status {
    align-items: start;
    grid-template-columns: auto 1fr;
  }
  .overall-status small {
    grid-column: 2;
  }
  .status-item {
    align-items: start;
    gap: 18px;
  }
  .status-item small {
    line-height: 1.5;
  }
  .incident-history [data-incident-list] > p {
    gap: 8px;
    grid-template-columns: 1fr;
  }
  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .site-footer > span:last-child {
    flex-wrap: wrap;
    gap: 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
