:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.6;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 5px;
}
p,
h1,
figure {
  margin: 0;
}
.page {
  max-width: 1200px;
  min-height: 100svh;
  margin: auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.wordmark {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}
.wordmark span {
  color: #818cf8;
}
.header-link {
  padding: 10px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: white;
}
.header-link:hover {
  background: #f1f5f9;
}
main {
  flex: 1;
  display: grid;
  align-items: center;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0 80px;
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 750;
}
.description {
  max-width: 390px;
  margin: 24px 0 32px;
  font-size: 1.125rem;
  color: #475569;
}
.primary-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 14px;
  background: #0f172a;
  color: white;
  font-weight: 600;
}
.primary-link:hover {
  background: #334155;
}
.access-note {
  margin-top: 10px;
  font-size: 0.875rem;
  color: #475569;
}
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}
.channels a {
  display: inline-flex;
}
.preview {
  min-width: 0;
  position: relative;
}
.preview::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -36px -24px 0;
  background: radial-gradient(ellipse, #e0e7ff, transparent 70%);
}
.preview-window {
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 12px 16px 24px;
  background: #f8fafc;
  overflow: hidden;
  box-shadow: 0 24px 64px -32px #47556966;
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.preview-header .wordmark {
  font-size: 1.6rem;
}
.preview-controls {
  display: flex;
  gap: 4px;
}
.preview-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: white;
}
.preview-content {
  padding-top: 20px;
}
.preview-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.preview-title {
  font-size: 1.25rem;
  font-weight: 600;
}
.preview-add {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}
.server {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: white;
}
.server + .server {
  margin-top: 12px;
}
.server-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.server-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
}
.server-info {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.server-name {
  font-weight: 600;
}
.server-location {
  color: #475569;
  font-size: 0.875rem;
}
.status {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #047857;
}
.server-expanded {
  padding: 0;
}
.server-expanded > .server-heading {
  padding: 20px;
}
.server-details {
  border-top: 1px solid #e2e8f0;
  padding: 12px 20px;
  font-size: 0.875rem;
}
.server-details dl {
  margin: 0;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 32px;
}
.detail-row + .detail-row {
  margin-top: 8px;
}
.detail-row dt {
  flex-shrink: 0;
  color: #475569;
}
.detail-row dd {
  min-width: 0;
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.preview-address,
.preview-credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 12px;
}
.server-details svg {
  flex-shrink: 0;
  color: #64748b;
  vertical-align: middle;
}
.preview-address > span,
.preview-credentials > span,
.preview-response,
.preview-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.preview-address > span {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-weight: 500;
  color: #475569;
}
.preview-actions > span {
  min-height: 44px;
  padding: 8px 12px;
  gap: 8px;
}
.preview-actions .preview-delete,
.preview-delete svg {
  color: #b91c1c;
}
figcaption {
  margin-top: 16px;
  text-align: center;
  color: #475569;
  font-size: 0.875rem;
}
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 24px 0;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.875rem;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  transform: translateY(-200%);
  padding: 12px;
  background: white;
  z-index: 1;
}
.skip-link:focus {
  transform: none;
}

@media (max-width: 850px) {
  .page {
    padding: 0 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 540px;
    margin: auto;
    padding: 40px 0 56px;
  }
  h1 {
    font-size: clamp(2.75rem, 9vw, 4rem);
  }
  .preview::before {
    inset-inline: 0;
  }
}

@media (max-width: 400px) {
  .page {
    padding: 0 16px;
  }
  .header {
    padding: 20px 0;
  }
  .hero {
    padding-top: 28px;
  }
  .eyebrow {
    max-width: 230px;
  }
}
