:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-2: #0b0f12;
  --surface: #12171b;
  --surface-2: #181f24;
  --text: #f5f8fa;
  --muted: #aab4ba;
  --faint: #6f7a82;
  --line: rgba(225, 235, 240, 0.16);
  --line-strong: rgba(20, 166, 255, 0.58);
  --prime-blue: #11a8ff;
  --prime-blue-dark: #07679d;
  --lime: #caff2f;
  --sale: #79c988;
  --danger: #ef382f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --max: 1180px;
  --radius: 8px;
  --mono: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.86), rgba(5, 6, 7, 1) 42%),
    linear-gradient(90deg, rgba(17, 168, 255, 0.05), rgba(202, 255, 47, 0.03));
  color: var(--text);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 70%);
}

img,
svg,
iframe {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
  transition: width 180ms ease, padding 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  object-fit: cover;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  gap: 42px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--text);
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.heading-link:hover,
.site-footer a:hover {
  color: var(--prime-blue);
}

.header-cta,
.button,
.product-actions a,
.product-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.header-cta,
.button,
.product-actions a {
  padding: 0 20px;
}

.button-primary {
  border-color: var(--prime-blue);
  background: var(--prime-blue);
  color: #02111c;
}

.button-ghost,
.header-cta,
.product-actions a,
.product-actions button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button-primary:hover {
  background: #49c0ff;
  transform: translateY(-1px);
}

.button-ghost:hover,
.header-cta:hover,
.product-actions a:hover,
.product-actions button:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
}

.nav-toggle svg {
  width: 22px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.mobile-nav {
  position: sticky;
  top: 69px;
  z-index: 25;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.97);
}

.mobile-nav a {
  min-width: 0;
  padding: 14px 6px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 6, 7, 0.72) 42%, rgba(5, 6, 7, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.08) 0%, rgba(5, 6, 7, 0.82) 100%),
    url("assets/prime/hero-prime.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 700px;
  margin: 0 auto;
  padding: 82px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--prime-blue);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.preset-copy h2,
.support-section h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: 4.65rem;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  max-width: 530px;
  margin: 42px 0 0;
}

.hero-stats div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 6, 7, 0.5);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  margin: 0;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  border-bottom: 1px solid var(--line);
}

.section-inner,
.support-inner,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-inner {
  padding: 72px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.section-heading h2,
.preset-copy h2,
.support-section h2 {
  font-size: 2.15rem;
}

.section-heading p:not(.eyebrow),
.preset-copy p:not(.eyebrow),
.support-section p {
  max-width: 590px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.heading-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--prime-blue);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-card div {
  padding: 22px;
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.24;
}

.guide-card p:not(.product-type) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.guide-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--prime-blue);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.badge,
.image-count {
  position: absolute;
  z-index: 2;
  border-radius: 4px;
  font-weight: 800;
}

.badge {
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  background: rgba(17, 168, 255, 0.92);
  color: #03121c;
}

.image-count {
  left: 16px;
  bottom: 16px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--text);
  font-size: 0.78rem;
}

.product-info {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 22px;
}

.product-type {
  margin: 0 0 10px;
  color: var(--prime-blue);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info h3,
.video-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.24;
}

.product-info p:not(.product-type) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.price-row strong {
  font-size: 1.28rem;
}

.price-row span {
  color: var(--faint);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: line-through;
}

.price-row em {
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(121, 201, 136, 0.18);
  color: var(--sale);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.product-actions button {
  min-width: 70px;
  padding: 0 14px;
}

.preset-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  align-items: center;
}

.preset-copy .button {
  margin-top: 24px;
}

.preset-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preset-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: #111;
}

.preset-gallery .wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7.2;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.video-card h3 {
  padding: 18px;
}

.support-section {
  background:
    linear-gradient(90deg, rgba(17, 168, 255, 0.14), transparent 48%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}

.support-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
  padding: 78px 0;
}

.support-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 27, 0.82);
  box-shadow: var(--shadow);
}

.support-panel label {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-panel select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #070a0c;
  color: var(--text);
  outline: none;
}

.support-panel select:focus {
  border-color: var(--line-strong);
}

.support-panel p {
  min-height: 26px;
  margin: 0;
  color: var(--muted);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 36px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.blog-hero,
.article-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 54px;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 870px;
  margin: 0;
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.blog-hero p,
.article-hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.article-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 76px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.article-body {
  color: var(--text);
}

.article-body h2 {
  margin: 36px 0 12px;
  font-family: var(--mono);
  font-size: 1.72rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.article-cta {
  display: grid;
  gap: 14px;
  margin: 38px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(17, 168, 255, 0.16), transparent),
    var(--surface);
}

.article-cta h2 {
  margin: 0;
}

.article-cta p {
  margin: 0;
}

.article-meta {
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    justify-self: end;
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .hero,
  .hero-inner {
    min-height: 640px;
  }

  .hero h1 {
    max-width: 700px;
    font-size: 3.7rem;
  }

  .section-heading {
    grid-template-columns: 1fr auto;
  }

  .section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -12px;
  }

  .product-grid,
  .video-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preset-layout,
  .support-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-inner,
  .support-inner,
  .site-footer,
  .hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    gap: 12px;
  }

  .brand span {
    font-size: 1.05rem;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-backdrop {
    background-image:
      linear-gradient(180deg, rgba(5, 6, 7, 0.64), rgba(5, 6, 7, 0.95) 72%),
      url("assets/prime/hero-prime.jpg");
    background-position: 61% center;
  }

  .hero-inner {
    justify-content: flex-end;
    padding: 56px 0 44px;
  }

  .hero h1 {
    font-size: 2.36rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    gap: 8px;
    margin-top: 22px;
  }

  .hero-stats div {
    padding: 12px 10px;
  }

  .hero-stats dt {
    font-size: 1.2rem;
  }

  .hero-stats dd {
    margin-top: 4px;
    font-size: 0.76rem;
  }

  .section-inner {
    padding: 54px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .section-heading h2,
  .preset-copy h2,
  .support-section h2,
  .blog-hero h1,
  .article-hero h1 {
    font-size: 1.78rem;
  }

  .heading-link {
    justify-self: start;
  }

  .product-grid,
  .video-grid,
  .guide-grid,
  .preset-gallery {
    grid-template-columns: 1fr;
  }

  .product-info {
    min-height: auto;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-actions button {
    width: 100%;
  }

  .preset-gallery .wide {
    aspect-ratio: 16 / 10;
  }

  .support-inner {
    padding: 58px 0;
  }

  .support-panel {
    padding: 20px;
  }

  .blog-hero,
  .article-hero,
  .article-shell {
    width: min(100% - 28px, var(--max));
  }

  .blog-hero,
  .article-hero {
    padding: 52px 0 38px;
  }

  .article-cover {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 420px) {
  .mobile-nav a {
    font-size: 0.62rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero h1 {
    font-size: 2.22rem;
  }
}
