:root {
  color-scheme: dark;
  --background: #06131b;
  --background-deep: #031017;
  --surface: #11222c;
  --surface-raised: #172b36;
  --text: #edf6fb;
  --muted: #91a7b4;
  --line: rgba(198, 226, 240, 0.14);
  --blue: #1596ff;
  --blue-strong: #0878e5;
  --orange: #ff6a2a;
  --green: #20c977;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 0%, rgba(21, 150, 255, 0.16), transparent 30rem),
    linear-gradient(155deg, #071822 0%, var(--background-deep) 55%, var(--background) 100%);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

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

.skip-link {
  position: absolute;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: #06131b;
  background: #edf6fb;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 19, 27, 0.9);
  backdrop-filter: blur(16px);
}

.development-notice {
  border-bottom: 1px solid rgba(255, 106, 42, 0.28);
  color: #ffd8c6;
  background: rgba(255, 106, 42, 0.12);
}

.development-notice .container {
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  padding-block: 0.35rem;
  text-align: center;
  font-size: 0.9rem;
}

.development-notice strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
}

.development-notice strong::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 42, 0.16);
  content: "";
}

.nav-row,
.main-nav,
.brand,
.hero-actions,
.footer-row,
.site-footer nav {
  display: flex;
  align-items: center;
}

.nav-row {
  min-height: 74px;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
}

.brand span {
  display: grid;
}

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

.brand small {
  color: var(--muted);
}

.main-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.15rem;
}

.main-nav > a:not(.button),
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.main-nav > a:hover,
.site-footer a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(159, 212, 250, 0.38);
  border-radius: 11px;
  padding: 0.65rem 1rem;
  color: var(--text);
  background: rgba(17, 34, 44, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-weight: 750;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: rgba(159, 212, 250, 0.72);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.button:focus-visible,
.google-play-badge:focus-visible,
.main-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(21, 150, 255, 0.55);
  outline-offset: 3px;
}

.button svg {
  width: 18px;
  fill: currentColor;
}

.google-play-badge {
  display: block;
  width: min(224px, 100%);
  aspect-ratio: 3.28;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background-color: #050505;
  background-image: url('/panelpilot-site/google-play-badge.png');
  background-repeat: no-repeat;
  background-position: center 51%;
  background-size: 112% auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, border-color 160ms ease;
}

.google-play-badge:hover {
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: #8fcaff;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lead,
.section-heading > p:last-child,
.audience-card p,
.video-copy > p:not(.eyebrow),
.download-panel p {
  color: var(--muted);
}

.lead {
  max-width: 59ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-actions .google-play-badge {
  width: 148px;
  height: 44px;
  aspect-ratio: auto;
  border-radius: 10px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin: 1.4rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
  list-style: none;
}

.trust-list li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: var(--green);
}

.phone-stage {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  padding-top: 74px;
}

.phone-glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(21, 150, 255, 0.16);
  filter: blur(38px);
}

.phone {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(159, 212, 250, 0.32);
  border-radius: 28px;
  padding: 7px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.phone img,
.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: inherit;
  object-fit: cover;
  object-position: top;
}

.phone-primary {
  width: min(270px, 72%);
}

.phone-secondary {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: min(180px, 46%);
  transform: rotate(3deg);
}

.stage-badge {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  width: 148px;
  height: 44px;
  aspect-ratio: auto;
  border-radius: 9px;
}

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.audience-card {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.3rem, 4vw, 2rem);
  background: rgba(17, 34, 44, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.audience-card .button {
  justify-self: start;
  margin-top: 0.8rem;
}

.audience-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.tag {
  width: fit-content;
  margin-bottom: 1rem;
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  color: #8fcaff;
  background: rgba(21, 150, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 4vw, 2.2rem);
}

.screenshot-card {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  margin: 0;
}

.screenshot-card img {
  width: min(100%, 260px);
  border: 1px solid var(--line);
  border-radius: 25px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.screenshot-card figcaption {
  font-weight: 750;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.download-section {
  padding-block: clamp(2rem, 6vw, 5rem);
}

.download-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.3rem;
  border: 1px solid rgba(21, 150, 255, 0.28);
  border-radius: 20px;
  padding: clamp(1.1rem, 4vw, 1.7rem);
  background: rgba(23, 43, 54, 0.88);
}

.download-panel > img {
  border-radius: 18px;
}

.download-panel h2,
.download-panel p {
  margin-bottom: 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  color: var(--muted);
}

.footer-row {
  justify-content: space-between;
  gap: 1rem;
}

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

@media (max-width: 820px) {
  .main-nav > a:not(.button) {
    display: none;
  }

  .hero,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .phone-stage {
    min-height: 650px;
    padding-top: 64px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, 1180px);
  }

  .brand small {
    display: none;
  }

  .development-notice .container {
    font-size: 0.8rem;
  }

  .main-nav {
    gap: 0.5rem;
  }

  .hero {
    padding-block: 2.8rem 4rem;
  }

  .audience-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

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

  .phone-stage {
    min-height: 600px;
    padding-top: 58px;
  }

  .phone-primary {
    width: min(240px, 70%);
  }

  .stage-badge {
    top: 0;
    width: 138px;
    height: 41px;
  }

  .download-panel > img {
    width: 58px;
  }

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

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

  .button,
  .google-play-badge {
    transition: none;
  }
}
