:root {
  --bg: #05070b;
  --bg-soft: #0c1118;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f7f2;
  --text-muted: #b9c0c8;
  --text-subtle: #838c98;
  --teal: #50e3c2;
  --amber: #f4b247;
  --blue: #7aa7ff;
  --max-width: 1120px;
  --radius-card: 8px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(#000, transparent 72%);
  pointer-events: none;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 4.4rem;
  font-weight: 720;
}

h2 {
  font-size: 2.35rem;
  font-weight: 680;
}

h3 {
  font-size: 1.22rem;
  font-weight: 650;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

::selection {
  background: rgba(80, 227, 194, 0.3);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.narrow {
  max-width: 820px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 670;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  flex: 0 0 auto;
}

.hero {
  min-height: 600px;
  display: grid;
  align-items: end;
  padding-block: 72px 78px;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.72) 44%, rgba(5, 7, 11, 0.24)),
    linear-gradient(0deg, var(--bg), rgba(5, 7, 11, 0.1) 30%),
    url("/images/splats-hero-sr22.png");
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, max(1100px, 116vw) auto;
  background-position: center, center, center 56%;
}

.hero-content {
  max-width: 760px;
}

.app-icon {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  margin-bottom: 1.2rem;
}

.eyebrow {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.lede {
  color: var(--text);
  font-size: 1.28rem;
  max-width: 64ch;
  margin-top: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

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

.button-primary {
  color: #03110d;
  background: var(--teal);
}

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

.section {
  padding-block: 82px;
}

.section-tight {
  padding-top: 24px;
}

.section-muted {
  background: rgba(255, 255, 255, 0.035);
  border-block: 1px solid var(--line);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-header p {
  margin-top: 0.9rem;
}

.testflight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(30rem, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(80, 227, 194, 0.1), rgba(122, 167, 255, 0.08)),
    var(--surface);
}

.testflight-card > div:first-child {
  max-width: 43rem;
}

.testflight-card h2 {
  margin-bottom: 0.45rem;
}

.testflight-card p:last-child {
  margin-bottom: 0;
}

.testflight-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: end;
  min-width: 0;
  width: min(100%, 34rem);
  gap: 0.95rem;
}

.testflight-actions > .button {
  align-self: flex-start;
}

.testflight-copy {
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.url-pill {
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  flex: 1 1 0;
  width: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-wrap: normal;
  scrollbar-width: none;
  white-space: nowrap;
  user-select: all;
}

.url-pill::-webkit-scrollbar {
  display: none;
}

.url-pill:focus-visible {
  outline: 2px solid rgba(80, 227, 194, 0.6);
  outline-offset: -2px;
}

.copy-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 7.75rem;
  inline-size: 7.75rem;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0.62rem 0.75rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: rgba(80, 227, 194, 0.16);
  outline: none;
}

.copy-button.is-copied {
  color: #d8fff6;
  background: rgba(80, 227, 194, 0.2);
}

.copy-button-label-short {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card,
.detail-card {
  min-height: 190px;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.feature-card p,
.detail-card p {
  margin-top: 0.7rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.format-showcase {
  display: grid;
  gap: 36px;
}

.format-copy {
  max-width: 720px;
}

.scene-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
}

.scene-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.scene-preview figcaption {
  padding: 0.85rem 1rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.scene-carousel {
  --gallery-image-height: clamp(280px, 58vw, 660px);
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
}

.scene-carousel-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.scene-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.scene-carousel-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  margin: 0;
  overflow: hidden;
  scroll-snap-align: center;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: var(--gallery-image-height);
  object-fit: contain;
}

.carousel-control {
  appearance: none;
  position: absolute;
  z-index: 2;
  top: calc(var(--gallery-image-height) / 2);
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 12, 14, 0.72);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  border-color: rgba(80, 227, 194, 0.9);
  background: rgba(17, 26, 28, 0.88);
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

.carousel-control-previous {
  left: clamp(0.75rem, 2vw, 1.25rem);
}

.carousel-control-next {
  right: clamp(0.75rem, 2vw, 1.25rem);
}

.carousel-control-symbol {
  display: block;
  margin-top: -0.12em;
  font-size: 2rem;
  line-height: 1;
}

.carousel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.carousel-dot {
  appearance: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition:
    width 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  outline: none;
}

.carousel-dot:hover::before,
.carousel-dot:focus-visible::before {
  border-color: rgba(80, 227, 194, 0.9);
}

.carousel-dot.is-active::before {
  width: 28px;
  border-color: rgba(80, 227, 194, 0.95);
  background: var(--teal);
}

.carousel-toggle {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.carousel-toggle::before,
.carousel-toggle::after {
  content: "";
  display: block;
}

.carousel-toggle::before {
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor;
  transform: translateX(-3px);
}

.carousel-toggle::after {
  display: none;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-block: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.carousel-toggle:hover,
.carousel-toggle:focus-visible {
  border-color: rgba(80, 227, 194, 0.9);
  background: rgba(80, 227, 194, 0.12);
  color: #d8fff6;
  outline: none;
}

.carousel-toggle.is-paused::before {
  display: none;
}

.carousel-toggle.is-paused::after {
  display: block;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 227, 194, 0.4);
  background: rgba(80, 227, 194, 0.1);
  color: #d8fff6;
  font-family: var(--mono);
  font-size: 0.86rem;
}

.page-hero {
  padding-block: 88px 42px;
}

.page-hero h1 {
  font-size: 3.6rem;
}

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

.detail-rows {
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
  gap: 1rem;
}

.detail-key {
  color: var(--text-subtle);
}

.detail-value {
  color: var(--text);
}

.policy {
  max-width: 820px;
}

.policy-block {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.policy-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
}

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

.footer-inner p {
  margin: 0.2rem 0 0;
  color: var(--text-subtle);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

@media (max-width: 820px) {
  h1,
  .page-hero h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 520px;
    padding-block: 68px 54px;
    background:
      linear-gradient(90deg, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.7)),
      linear-gradient(0deg, var(--bg), rgba(5, 7, 11, 0.1) 30%),
      url("/images/splats-hero-sr22.png");
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center, center, center 54%;
  }

  .split,
  .details-grid,
  .testflight-card {
    grid-template-columns: 1fr;
  }

  .testflight-actions {
    justify-self: stretch;
    width: 100%;
  }
}

@media (min-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 220px;
    padding: 1.15rem;
  }

  .feature-card h3 {
    font-size: 1.08rem;
  }

  .feature-card p {
    font-size: 0.95rem;
  }
}

@media (min-width: 1180px) {
  .carousel-control {
    display: grid;
  }

  .carousel-control-previous {
    left: -3rem;
  }

  .carousel-control-next {
    right: -3rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-inline: 18px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .section {
    padding-block: 58px;
  }

  .page-hero {
    padding-block: 64px 26px;
  }

  .scene-carousel {
    --gallery-image-height: clamp(220px, 72vw, 340px);
  }

  .carousel-control {
    width: 2.35rem;
    height: 2.35rem;
  }

  .carousel-control-symbol {
    font-size: 1.72rem;
  }

  .testflight-copy {
    width: 100%;
  }

  .url-pill {
    flex: 1 1 auto;
    display: block;
    width: auto;
    min-height: unset;
    padding-inline: 0.75rem;
    font-size: 0.74rem;
    line-height: 1.45;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .copy-button {
    align-self: stretch;
    flex-basis: 5rem;
    inline-size: 5rem;
    padding-inline: 0.5rem;
    font-size: 0.78rem;
  }

  .copy-button-label-full {
    display: none;
  }

  .copy-button-label-short {
    display: inline;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
