:root {
  color-scheme: dark;
  --background: #171b1c;
  --surface: #202627;
  --text: #f1f0e8;
  --muted: #b4bebd;
  --cyan: #9be6e0;
  --violet: #c8b8ff;
  --line: #3b4545;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--cyan);
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 2px;
}

h1,
h2,
h3,
p,
figure,
dl {
  margin: 0;
}

.page-width {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 12px 20px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--background);
}

.site-header,
.identity,
.site-header nav,
.intro-bottom,
.section-heading,
.widget-heading,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.identity {
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.monogram {
  display: block;
  width: 48px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.site-header nav {
  gap: 36px;
}

.site-header nav a {
  display: inline-block;
  padding-block: 12px;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header nav span {
  margin-left: 6px;
  color: var(--cyan);
}

.intro {
  padding-block: 92px 84px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.small-line {
  width: 28px;
  height: 2px;
  background: var(--cyan);
}

h1 {
  font-size: clamp(2.8rem, 6.6vw, 5.3rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.12;
}

h1 span {
  color: var(--cyan);
}

.intro-bottom {
  align-items: flex-end;
  gap: 32px;
  margin-top: 36px;
}

.intro-bottom p {
  max-width: 490px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  flex-shrink: 0;
  padding-block: 8px;
  font-size: 0.95rem;
  text-decoration: none;
}

.text-link span {
  margin-left: 24px;
  color: var(--cyan);
}

.section-heading {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.section-heading h2,
.section-number {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.project-details {
  padding: 44px;
}

.project h3 {
  margin-top: 20px;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.accent {
  color: var(--cyan);
}

.project-summary {
  margin-top: 18px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.project-description {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-features {
  margin: 24px 0 32px;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.875rem;
}

.project-features li {
  padding-left: 4px;
  margin-top: 8px;
}

.project-features li::marker {
  color: var(--cyan);
}

.release-status {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.status-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.release-status p {
  margin-top: 4px;
  color: var(--muted);
}

.project-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(ellipse at 70% 40%, #324c48 0%, transparent 65%),
    #1b2425;
  border-left: 1px solid var(--line);
}

.preview-label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}

.widget {
  width: 100%;
  max-width: 376px;
  margin-top: 80px;
  padding: 22px;
  border: 1px solid #475252;
  border-radius: 18px;
  background: #22282a;
  box-shadow: 0 24px 60px #00000040;
}

.widget-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.app-mark {
  color: var(--cyan);
  font-size: 1.25rem;
}

.adapter-type {
  color: var(--muted);
  font-size: 0.75rem;
}

.traffic-readings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-block: 24px;
}

.reading p {
  color: var(--muted);
  font-size: 0.75rem;
}

.reading p span {
  margin-right: 5px;
  font-size: 1rem;
}

.download p span {
  color: var(--cyan);
}

.upload p span {
  color: var(--violet);
}

.reading > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.reading strong {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.reading > div > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.connection-status {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

.connection-status > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.connection-status dt {
  color: var(--muted);
}

.connection-status dd {
  margin: 0;
}

.connection-status dd span {
  margin-right: 4px;
  color: var(--cyan);
}

.project-preview figcaption {
  max-width: 300px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.preview-note {
  margin-top: auto;
  padding-top: 72px;
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.contact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: 96px;
}

.contact h2 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.contact p:last-child {
  max-width: 390px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-link {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cyan);
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link span {
  margin-left: 16px;
  color: var(--cyan);
}

.site-footer {
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .page-width {
    width: calc(100% - 48px);
  }

  .project-details {
    padding: 30px;
  }

  .project-preview {
    padding: 24px;
  }

  .widget {
    padding: 16px;
  }

  .reading > div {
    flex-wrap: wrap;
    gap: 0 6px;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .page-width {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 90px;
  }

  .identity {
    gap: 10px;
    font-size: 0.8rem;
  }

  .site-header nav {
    gap: 18px;
  }

  .site-header nav a {
    font-size: 0.8rem;
  }

  .intro {
    padding-block: 64px 56px;
  }

  .intro-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project-details {
    padding: 28px;
  }

  .project-preview {
    min-height: 390px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .widget {
    margin-top: 40px;
    padding: 22px;
  }

  .reading strong {
    font-size: 2.3rem;
  }

  .preview-note {
    padding-top: 36px;
  }

  .contact {
    padding-block: 64px;
  }
}

@media (max-width: 380px) {
  .identity > span:last-child {
    max-width: 72px;
    line-height: 1.3;
  }

  .project-details,
  .project-preview {
    padding: 20px;
  }

  .widget {
    padding: 16px;
  }

  .reading strong {
    font-size: 1.9rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.product-link {
  display: inline-block;
  margin-top: 18px;
}
