:root {
  color-scheme: dark;
  --background: #090b09;
  --surface: #0f120f;
  --surface-soft: #141814;
  --border: #2d332d;
  --border-strong: #434b43;
  --text: #f4f6f1;
  --text-muted: #a4aca1;
  --text-faint: #747d72;
  --accent: #dfe104;
  --accent-ink: #111300;
  --content-width: 1380px;
  --page-padding: clamp(1rem, 3.5vw, 3rem);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-160%);
}

.skip-link:focus {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.nav-shell,
.hero,
.footer-shell {
  width: min(100%, calc(var(--content-width) + (var(--page-padding) * 2)));
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.nav-shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.tool-link,
.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.tool-link {
  border: 1px solid var(--border-strong);
  padding-inline: 1rem;
  color: var(--text);
}

.tool-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.tool-link:active,
.primary-action:active,
.product-preview:active {
  transform: scale(0.98);
}

.brand:focus-visible,
.tool-link:focus-visible,
.primary-action:focus-visible,
.product-preview:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.hero {
  display: grid;
  min-height: calc(100svh - 72px);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  padding-block: clamp(3rem, 7vh, 5.5rem);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 6.25vw, 6.75rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 0.84;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 span:last-child {
  color: var(--accent);
}

.hero-description {
  max-width: 31rem;
  margin: 3rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 500;
  line-height: 1.55;
}

.primary-action {
  margin-top: 2rem;
  padding-inline: 1.35rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.primary-action:hover {
  background: transparent;
  color: var(--accent);
}

.product-preview {
  display: block;
  min-width: 0;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.product-preview figure {
  margin: 0;
}

.preview-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
}

.preview-window::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.025);
  content: "";
  pointer-events: none;
}

.preview-window img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-preview:hover .preview-window {
  border-color: var(--accent);
}

.product-preview:hover img {
  transform: scale(1.012);
}

.product-preview figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0.25rem 0;
}

.product-preview figcaption div {
  min-width: 0;
}

.product-preview strong,
.product-preview figcaption span {
  display: block;
}

.product-preview strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.product-preview figcaption div span {
  max-width: 30rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.product-preview .availability {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface-soft);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 1rem clamp(0.75rem, 1.5vw, 1.5rem);
}

.marquee span {
  color: var(--text);
  font-size: clamp(0.84rem, 1.1vw, 1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee b {
  color: var(--accent);
  font-size: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-faint);
  font-size: 0.76rem;
}

.footer-shell span:first-child {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: enter-copy 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .product-preview {
    animation: enter-preview 800ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .marquee-track {
    animation: marquee-left 28s linear infinite;
  }
}

@keyframes enter-copy {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes enter-preview {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
}

@keyframes marquee-left {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .hero h1 {
    font-size: clamp(3.3rem, 6.7vw, 5.25rem);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 4rem;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 12.5vw, 6rem);
  }

  .hero-description {
    margin-top: 2rem;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    min-height: 64px;
  }

  .tool-link {
    min-height: 44px;
    gap: 0.75rem;
    padding-inline: 0.85rem;
  }

  .hero {
    gap: 3rem;
    padding-block: 3rem;
  }

  .eyebrow {
    margin-bottom: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.8rem);
    line-height: 0.88;
  }

  .hero-description {
    max-width: 28rem;
  }

  .primary-action {
    width: 100%;
    justify-content: space-between;
  }

  .product-preview figcaption {
    display: grid;
    gap: 0.8rem;
  }

  .footer-shell {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-link,
  .primary-action,
  .product-preview,
  .preview-window img {
    transition: none;
  }

  .marquee-track {
    width: auto;
  }

  .marquee-group {
    flex-wrap: wrap;
  }

  .marquee-group:nth-child(2) {
    display: none;
  }
}
