/* Marketing scale: spacious type and the product's neutral, flat surfaces. */
@font-face {
  font-family: "Intel One Mono";
  src: url("./fonts/intel-one-mono-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0a0a0a;
  --surface: #141414;
  --control: #222222;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --mint: #a7ffd4;
  --shell: 1200px;
  --font: "Intel One Mono", "PingFang SC", "Microsoft YaHei", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px / 1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
ol {
  margin: 0;
}

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

button {
  font: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

::selection {
  background: var(--mint);
  color: var(--canvas);
}

.shell {
  width: min(100% - 64px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 8px;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
}

.site-header.is-scrolled {
  background: var(--surface);
}

.site-header__row,
.site-header__actions,
.site-nav,
.brand {
  display: flex;
  align-items: center;
}

.site-header__row {
  min-height: 80px;
  gap: 32px;
}

.brand {
  gap: 12px;
  font-size: 24px;
  letter-spacing: -0.06em;
}

.brand__wordmark {
  width: 128px;
  height: auto;
  /* Preserve the supplied black artwork; invert only on the dark surface. */
  filter: invert(1);
}

.site-nav {
  flex: 1;
  justify-content: center;
  gap: 32px;
}

.site-nav__link,
.github-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease;
}

.site-nav__link:hover,
.github-link:hover {
  color: var(--ink);
}

.site-header__actions {
  gap: 24px;
}

.github-link {
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 160ms ease;
}

.btn--primary,
.btn--small {
  background: var(--ink);
  color: var(--canvas);
}

.btn--primary:hover,
.btn--small:hover {
  background: #d4d4d4;
}

.btn--quiet {
  background: var(--control);
  color: var(--ink);
}

.btn--quiet:hover {
  background: #333333;
}

.btn--small {
  min-height: 48px;
  padding-inline: 20px;
  font-size: 12px;
}

.btn__icon {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  gap: 48px;
  padding-block: 72px 0;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.035em;
  white-space: pre-line;
  text-wrap: balance;
  max-width: 860px;
}

.hero__lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero__actions,
.outro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 2px;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.hero__pill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.hero__note {
  color: var(--muted);
  font-size: 11px;
  opacity: 0.8;
}

.product-shot {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.product-shot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--muted);
}

.product-shot__dots {
  display: flex;
  gap: 6px;
}

.product-shot__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.product-shot__title {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.product-shot img {
  width: 100%;
}

.product-shot__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.01);
}

.product-shot__specs {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.product-shot__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-shot__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }
  .site-header__row {
    min-height: 72px;
    justify-content: space-between;
    gap: 16px;
  }
  .site-header__actions {
    gap: 12px;
  }
  .github-link,
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--control);
    color: var(--ink);
  }
  .site-header.is-menu-open .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px;
    background: var(--surface);
  }
  .hero {
    padding-top: 48px;
    gap: 40px;
  }
  .hero__copy {
    gap: 20px;
  }
  .hero__title {
    font-size: clamp(25px, 6.4vw, 44px);
  }
  .hero__lead {
    font-size: 14px;
  }
  .product-shot__title {
    display: none;
  }
  .product-shot__caption {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
