:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --text: #f3f2ef;
  --muted: #a1a1a6;
  --muted-2: #707076;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #ff3358;
  --accent-hover: #ff4a6c;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

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

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

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.button svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
}

.brand-mark svg {
  width: 14px;
  height: 14px;
  fill: #0b0b0c;
  transform: translateX(1px);
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.hero {
  padding: 64px 0 84px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
}

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

.hero-qr {
  display: flex;
  flex-direction: column;
  flex: none;
  gap: 10px;
  width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  scroll-margin-top: 100px;
}

.hero-qr:target {
  border-color: var(--line-strong);
}

.hero-qr-image {
  display: block;
  width: 100%;
  height: auto;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.hero-qr-copy {
  display: block;
  padding: 0 1px 1px;
}

.hero-qr-copy strong,
.hero-qr-copy span {
  display: block;
}

.hero-qr-copy strong {
  font-size: 12.5px;
  font-weight: 600;
}

.hero-qr-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.hero-title {
  max-width: 980px;
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-title span {
  color: var(--accent);
}

.hero-lead {
  max-width: 570px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.hero-note {
  color: var(--muted-2);
  font-size: 12.5px;
}

.feed {
  margin-top: 50px;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.feed-head h2 {
  font-size: 15px;
  font-weight: 600;
}

.feed-head span {
  color: var(--muted-2);
  font-size: 12.5px;
}

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

.video-slot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid #2a2a2e;
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.video-slot > video,
.video-slot > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-slot > video {
  background: #000;
}

.video-slot:hover {
  border-color: #55555c;
}

.features {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.features-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.features-head h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.features-head p {
  color: var(--muted);
  font-size: 14.5px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 38px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
}

.feature p {
  max-width: 340px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.download {
  padding: 76px 0 84px;
  border-top: 1px solid var(--line);
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.download-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.download-copy p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--text);
  border-radius: 8px;
  background: var(--text);
  color: #0b0b0c;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.store-btn:hover {
  border-color: #fff;
  background: #fff;
}

.store-icon {
  width: 21px;
  height: 21px;
  flex: none;
}

.store-btn span {
  display: block;
}

.store-btn small {
  display: block;
  margin-bottom: 1px;
  color: #5c5c62;
  font-size: 9px;
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.download-note {
  color: var(--muted-2);
  font-size: 11.5px;
}

a.mobile-cta {
  display: none !important;
}

html.is-mobile-device .desktop-only,
html.is-mobile-device .hero-qr {
  display: none !important;
}

html.is-mobile-device a.mobile-cta {
  display: inline-flex !important;
}

.android-only {
  max-width: 260px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

.install-dialog {
  position: relative;
  width: min(calc(100% - 32px), 520px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #151517;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  animation: dialog-in 0.2s ease-out;
}

.install-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.dialog-close:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.dialog-close svg {
  width: 15px;
  height: 15px;
}

.install-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-dialog h2 {
  max-width: 420px;
  margin-top: 11px;
  padding-right: 24px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 16px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 53, 93, 0.28);
  border-radius: 50%;
  background: rgba(255, 53, 93, 0.12);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  flex: none;
}

.install-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dialog-done {
  width: 100%;
  margin-top: 22px;
}

@media (max-width: 960px) {
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }

  .desktop-only,
  .hero-qr {
    display: none !important;
  }

  a.mobile-cta {
    display: inline-flex !important;
  }

  .video-grid {
    display: flex;
    gap: 10px;
    margin-inline: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .video-grid::-webkit-scrollbar {
    display: none;
  }

  .video-slot {
    flex: 0 0 min(68vw, 260px);
    scroll-snap-align: start;
  }

  .feature-grid {
    gap: 28px;
  }

  .download-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .download-actions {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .features-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 28px;
  }

  .feature p {
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .header-inner {
    height: 60px;
  }

  .hero {
    padding: 42px 0 60px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9.2vw, 2.9rem);
    letter-spacing: -0.035em;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 22px;
  }

  .feed {
    margin-top: 38px;
  }

  .video-slot {
    flex-basis: min(76vw, 260px);
    border-radius: 8px;
  }

  .features {
    padding: 60px 0;
  }

  .features-head h2 {
    font-size: 24px;
  }

  .download {
    padding: 60px 0 66px;
  }

  .store-btn {
    width: 100%;
    max-width: 320px;
  }

  .install-dialog {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .install-dialog h2 {
    font-size: 20px;
    padding-right: 20px;
  }

  .install-steps {
    gap: 14px;
    margin-top: 22px;
  }

  .install-steps li {
    font-size: 15px;
  }

  .install-note {
    margin-top: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
