:root {
  --bg: #080d12;
  --bg-soft: #0d151d;
  --panel: #121b25;
  --panel-strong: #172330;
  --text: #f6f8fb;
  --muted: #aab4c0;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #42baff;
  --blue-strong: #2497ff;
  --green: #4bd38a;
  --amber: #f4b84d;
  --red: #ff5a63;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #080d12;
  color: var(--text);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--text);
  color: #05080c;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(8, 13, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(36, 151, 255, 0.26);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  padding: 10px 14px;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.menu-button svg {
  width: 22px;
  height: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: calc(100vh - 188px);
  padding: clamp(26px, 4vw, 46px) clamp(18px, 5vw, 76px) 16px;
  overflow: hidden;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(75, 211, 138, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 22px;
  color: #dce7f1;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.25;
}

.hero-actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: #03111d;
  box-shadow: 0 18px 38px rgba(36, 151, 255, 0.28);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 22px 0 0;
}

.metrics div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.metrics dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.metrics dd {
  margin: 6px 0 0;
  font-size: 23px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-media {
  position: relative;
  width: min(100%, 560px);
  justify-self: center;
  align-self: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12% 4% -4%;
  border-radius: 24px;
  background: rgba(66, 186, 255, 0.18);
  filter: blur(46px);
}

.hero-media img {
  position: relative;
  width: 100%;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(var(--shadow));
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 76px) clamp(68px, 7vw, 104px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-band div {
  min-height: 112px;
  background: rgba(18, 27, 37, 0.86);
  padding: 22px;
}

.trust-band strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.trust-band span {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: clamp(64px, 8vw, 118px) clamp(18px, 5vw, 76px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 27, 37, 0.78);
  padding: 24px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.55;
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(66, 186, 255, 0.4);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(66, 186, 255, 0.1);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-icon-green {
  border-color: rgba(75, 211, 138, 0.42);
  color: var(--green);
  background: rgba(75, 211, 138, 0.1);
}

.feature-icon-amber {
  border-color: rgba(244, 184, 77, 0.42);
  color: var(--amber);
  background: rgba(244, 184, 77, 0.1);
}

.feature-icon-red {
  border-color: rgba(255, 90, 99, 0.42);
  color: var(--red);
  background: rgba(255, 90, 99, 0.1);
}

.catalog-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  padding: clamp(64px, 8vw, 118px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(66, 186, 255, 0.1), transparent 50%),
    var(--bg-soft);
  overflow: hidden;
}

.catalog-copy {
  max-width: 640px;
}

.catalog-copy p {
  color: #d5dee8;
  font-size: 19px;
  line-height: 1.6;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(75, 211, 138, 0.1);
}

.preview-stack {
  position: relative;
  min-height: 520px;
}

.preview-tv {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.preview-tv-front {
  left: 0;
  top: 0;
  z-index: 2;
  width: min(54vw, 620px);
  max-width: 82%;
}

.preview-tv-back {
  right: 0;
  top: 190px;
  width: min(44vw, 520px);
  max-width: 72%;
  opacity: 0.82;
}

.screens-section {
  overflow: hidden;
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(66, 186, 255, 0.55);
  color: var(--blue);
  outline: none;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.screenshot-gallery {
  display: grid;
  grid-auto-columns: minmax(320px, 520px);
  grid-auto-flow: column;
  gap: 16px;
  margin-inline: calc(clamp(18px, 5vw, 76px) * -1);
  overflow-x: auto;
  padding: 6px clamp(18px, 5vw, 76px) 26px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--blue) transparent;
}

.screenshot-card {
  scroll-snap-align: start;
  margin: 0;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow);
}

.screenshot-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 750;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 76px) clamp(46px, 6vw, 78px);
  border: 1px solid rgba(66, 186, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 186, 255, 0.16), rgba(75, 211, 138, 0.07)),
    var(--panel);
  padding: clamp(26px, 5vw, 54px);
}

.install p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #d5dee8;
  font-size: 18px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 76px) 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  max-width: 760px;
  margin-bottom: 0;
  line-height: 1.45;
}

.site-footer a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .hero,
  .catalog-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-media {
    align-self: center;
  }

  .hero-media img {
    max-height: none;
  }

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

  .preview-stack {
    min-height: 520px;
  }

  .preview-tv-front {
    width: min(100%, 680px);
    max-width: 82%;
  }

  .preview-tv-back {
    top: 190px;
    width: min(78%, 560px);
    max-width: 78%;
  }

  .install {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .menu-button {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: 68px 12px auto;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 21, 29, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  body.menu-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    border-radius: 6px;
    padding: 14px;
  }

  .hero {
    padding-inline: 16px;
    padding-bottom: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(48px, 13vw, 54px);
    line-height: 0.96;
  }

  .hero-lead {
    font-size: 20px;
  }

  .button {
    width: 100%;
  }

  .metrics {
    display: flex;
    gap: 10px;
    margin-inline: -16px;
    overflow-x: auto;
    padding-inline: 16px;
    scroll-snap-type: x mandatory;
  }

  .metrics div {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }

  .hero-media {
    width: 100%;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #04080d;
  }

  .hero-media::before {
    display: none;
  }

  .hero-media img {
    width: 100%;
    max-height: none;
    border-radius: 8px;
    object-fit: cover;
    object-position: top center;
    transform: none;
  }

  .trust-band {
    grid-template-columns: 1fr;
    margin-inline: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 210px;
  }

  .catalog-preview,
  .section {
    padding-inline: 16px;
  }

  .preview-stack {
    min-height: 330px;
  }

  .preview-tv-front {
    left: 0;
    width: 94%;
    max-width: none;
  }

  .preview-tv-back {
    top: 136px;
    width: 78%;
    max-width: none;
  }

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

  .screenshot-gallery {
    grid-auto-columns: minmax(280px, 86vw);
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .install {
    margin-inline: 16px;
  }

  .install-actions {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
