:root {
  --page: #f5f7fa;
  --surface: #ffffff;
  --ink: #1b1f24;
  --muted: #5a6472;
  --line: #e2e6ec;
  --accent: #0b6bcb;
  --signal: #e6c200;
  --teal: #0a4a6e;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --header-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0858a8;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.header-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.header-inner nav a,
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.header-inner nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  padding: 2.25rem 0 1.25rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(10, 74, 110, 0.18);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vfo-tick {
  width: 3px;
  height: 0.9em;
  background: var(--signal);
  border-radius: 1px;
}

.hero h1 {
  margin-top: 0.35rem;
  font-size: clamp(2.35rem, 7vw, 3.6rem);
  font-weight: 720;
}

.tagline {
  margin-top: 0.35rem;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 580;
  letter-spacing: -0.025em;
}

.lede {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  width: auto;
  height: 44px;
}

.platform {
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 12%;
  background: radial-gradient(ellipse at center, rgba(10, 74, 110, 0.28), transparent 68%);
  filter: blur(28px);
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  cursor: zoom-in;
}

/* Sections */

.section {
  padding: 2.75rem 0;
}

.section h2 {
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  font-weight: 680;
}

.section-lead {
  margin-top: 0.6rem;
  max-width: 40rem;
  color: var(--muted);
}

/* Highlight cards */

.cards {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card .screenshot {
  margin-top: 0.35rem;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #111;
}

/* Receivers / decoders */

.chip-list {
  list-style: none;
  padding: 0;
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9375rem;
}

.decoder-list {
  list-style: none;
  padding: 0;
  margin-top: 1.15rem;
  columns: 1;
  column-gap: 2.5rem;
}

.decoder-list li {
  break-inside: avoid;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.split {
  display: grid;
  gap: 1.75rem;
}

.split p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.get {
  padding-bottom: 3.25rem;
}

.get-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.35rem;
  text-align: center;
}

.get-inner p {
  margin: 0.55rem auto 1.15rem;
  max-width: 28rem;
  color: var(--muted);
}

.get-inner .store-badge {
  margin-inline: auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(10, 16, 22, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

/* Breakpoints */

@media (min-width: 700px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .decoder-list {
    columns: 2;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .get-inner {
    padding: 2.25rem 2rem;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 3.25rem 0 1.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(17rem, 0.86fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 2.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
