:root {
  color-scheme: dark;
  --background: #101211;
  --surface: #191c1a;
  --surface-strong: #222623;
  --text: #f4f6f3;
  --muted: #aeb6b0;
  --line: #343a36;
  --accent: #71e6bd;
  --warm: #ff9f76;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 18, 17, 0.92);
  padding: 0 32px;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  justify-self: start;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.product-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  justify-self: center;
}

.product-tabs a {
  border-radius: 4px;
  padding: 9px 14px;
  white-space: nowrap;
}

.product-tabs a.active {
  background: var(--accent);
  color: #0d211a;
}

.product-tabs a:not(.active):hover,
.product-tabs a:not(.active):focus-visible {
  color: var(--accent);
}

.github-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  justify-self: end;
}

.github-link:hover,
.github-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

main,
footer {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: min(720px, calc(100vh - 64px));
  grid-template-columns: minmax(320px, 0.72fr) minmax(460px, 1.28fr);
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
  padding: clamp(56px, 7vh, 80px) 0;
}

.eyebrow,
.project-number {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 9em;
  margin: 0;
  font-size: clamp(44px, 4.6vw, 68px);
  line-height: 1.08;
}

.hero-description {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #0d211a;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--warm);
  color: var(--warm);
}

.hero-media {
  margin: 0;
}

.hero-media video,
.feature-media video,
.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media video {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-media figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.work-section {
  border-top: 1px solid var(--line);
  padding: 100px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.section-heading > p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  min-height: 54px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.tabs button[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--text);
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(36px, 6vw, 84px);
  padding-top: 48px;
}

.tab-panel[hidden] {
  display: none;
}

.feature-media {
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-copy {
  align-self: center;
}

.feature-copy h3 {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
}

.feature-copy > p:not(.project-number),
.feature-copy li {
  color: var(--muted);
  line-height: 1.75;
}

.feature-copy ul {
  margin: 24px 0;
  padding-left: 20px;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
}

.about-section {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 60px;
  border-top: 1px solid var(--line);
  padding: 100px 0;
}

.about-section p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 840px) {
  .hero,
  .tab-panel,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 64px 0 72px;
  }

  .feature-media {
    min-height: 360px;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 0 20px;
  }

  .brand span,
  .github-link {
    display: none;
  }

  .product-tabs {
    margin: 0;
    font-size: 12px;
  }

  .product-tabs a {
    padding: 9px 10px;
  }

  main,
  footer {
    width: calc(100vw - 40px);
  }

  h1 {
    max-width: 8em;
    font-size: 42px;
    line-height: 1.1;
  }

  .hero-actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs button {
    padding: 0 8px;
    font-size: 13px;
  }

  .feature-media {
    min-height: 240px;
  }

  .work-section,
  .about-section {
    padding: 72px 0;
  }
}
