:root {
  --cds-background: #ffffff;
  --cds-layer-01: #f4f4f4;
  --cds-layer-02: #e0e0e0;
  --cds-text-primary: #161616;
  --cds-text-secondary: #525252;
  --cds-border-subtle: #c6c6c6;
  --cds-button-primary: #0f62fe;
  --cds-button-primary-hover: #0353e9;
  --cds-button-primary-active: #002d9c;
  --cds-focus: #0f62fe;
  --cds-inverse: #161616;
  --cds-inverse-text: #f4f4f4;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cds-background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--cds-text-primary);
  background: var(--cds-background);
  font-family: "IBM Plex Sans", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.masthead {
  height: 48px;
  color: var(--cds-inverse-text);
  background: var(--cds-inverse);
}

.masthead__inner {
  width: 100%;
  max-width: 1584px;
  height: 48px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.16px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--cds-button-primary);
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.32px;
}

.masthead__state {
  color: #c6c6c6;
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.32px;
}

.page {
  min-height: calc(100vh - 96px);
  min-height: calc(100dvh - 96px);
}

.hero {
  width: 100%;
  max-width: 1584px;
  min-height: 560px;
  margin: 0 auto;
  padding: 80px 32px 64px;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.notice {
  grid-column: span 10;
  padding-right: 32px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--cds-button-primary);
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0;
  color: var(--cds-text-primary);
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  color: var(--cds-button-primary);
}

.lede {
  max-width: 680px;
  margin: 32px 0 0;
  color: var(--cds-text-secondary);
  font-size: 18px;
  line-height: 1.56;
}

.actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.primary-action {
  min-width: 280px;
  min-height: 64px;
  padding: 16px 16px 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #ffffff;
  background: var(--cds-button-primary);
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  transition: background-color 120ms ease;
}

.primary-action:hover {
  background: var(--cds-button-primary-hover);
}

.primary-action:active {
  background: var(--cds-button-primary-active);
}

.primary-action:focus-visible,
.manual-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--cds-focus);
  outline-offset: 3px;
}

.primary-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.manual {
  margin: 0;
  color: var(--cds-text-secondary);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.16px;
}

.manual-link {
  color: var(--cds-button-primary);
  text-underline-offset: 3px;
}

.manual-link:hover {
  color: #0043ce;
}

.destination {
  grid-column: span 6;
  min-height: 416px;
  display: flex;
  flex-direction: column;
  background: var(--cds-layer-01);
}

.destination__visual {
  min-height: 224px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--cds-inverse);
}

.destination__label {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.32px;
}

.destination__bars {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 144px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
}

.destination__bars span {
  display: block;
  background: var(--cds-button-primary);
}

.destination__bars span:nth-child(1) { height: 32px; }
.destination__bars span:nth-child(2) { height: 64px; background: #0043ce; }
.destination__bars span:nth-child(3) { height: 96px; }
.destination__bars span:nth-child(4) { height: 48px; background: #0043ce; }
.destination__bars span:nth-child(5) { height: 128px; }
.destination__bars span:nth-child(6) { height: 80px; background: #0043ce; }
.destination__bars span:nth-child(7) { height: 112px; }
.destination__bars span:nth-child(8) { height: 144px; background: #0043ce; }

.destination__content {
  flex: 1;
  padding: 24px;
  border-bottom: 1px solid var(--cds-border-subtle);
}

.destination__overline {
  margin: 0 0 8px;
  color: var(--cds-text-secondary);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.32px;
}

.destination__url {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.22;
}

.destination__status {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cds-text-secondary);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.16px;
}

.destination__status::before {
  width: 8px;
  height: 8px;
  content: "";
  display: block;
  background: #24a148;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cds-layer-01);
  border-top: 1px solid var(--cds-background);
}

.info-item {
  min-height: 192px;
  padding: 24px 32px 32px;
  border-right: 1px solid var(--cds-background);
}

.info-item:last-child {
  border-right: 0;
}

.info-item__number {
  color: var(--cds-button-primary);
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.32px;
}

.info-item h2 {
  margin: 32px 0 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

.info-item p {
  max-width: 400px;
  margin: 0;
  color: var(--cds-text-secondary);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.16px;
}

.footer {
  min-height: 48px;
  padding: 14px 32px;
  color: #c6c6c6;
  background: var(--cds-inverse);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.32px;
}

.footer__inner {
  width: 100%;
  max-width: 1584px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 1056px) {
  .hero {
    padding-top: 64px;
  }

  .notice,
  .destination {
    grid-column: 1 / -1;
  }

  .notice {
    padding-right: 0;
  }

  .destination {
    min-height: 360px;
  }

  .info-band {
    grid-template-columns: 1fr;
  }

  .info-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--cds-background);
  }

  .info-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 672px) {
  .masthead__inner {
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand__name {
    max-width: 176px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .masthead__state {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 16px 32px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.12;
  }

  .lede {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
  }

  .actions {
    margin-top: 32px;
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
    min-width: 0;
    min-height: 56px;
  }

  .destination {
    min-height: 344px;
  }

  .destination__visual {
    min-height: 192px;
  }

  .info-item {
    padding: 24px 16px 32px;
  }

  .info-item h2 {
    margin-top: 24px;
  }

  .footer {
    padding: 16px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-action {
    transition: none;
  }
}
