:root {
  color-scheme: dark;
  --ink: #101010;
  --ink-soft: #171717;
  --paper: #f7f9fb;
  --muted: #b9c0c7;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --red: #ff3d57;
  --cyan: #22d3ee;
  --green: #2bb673;
  --amber: #fbbf24;
  --orange: #ff7a45;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #101010 0%, #15120f 33%, #101412 66%, #111111 100%);
  background-size: 68px 68px, 68px 68px, 100% 100%;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 61, 87, 0.16) 20%, transparent 42%),
    linear-gradient(300deg, transparent 16%, rgba(34, 211, 238, 0.12) 45%, transparent 70%),
    linear-gradient(20deg, transparent 20%, rgba(43, 182, 115, 0.12) 65%, transparent 86%);
  animation: beamShift 14s linear infinite;
}

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

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

h1,
h2,
h3,
p,
a,
span {
  overflow-wrap: break-word;
}

#motionCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.72);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  background: rgba(16, 16, 16, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  min-width: 188px;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 61, 87, 0.95), rgba(251, 191, 36, 0.92)),
    #ff3d57;
  color: #101010;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.77rem;
}

.top-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.top-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.top-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header-cta,
.button,
.store-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.header-cta {
  min-width: 118px;
  padding: 0 18px;
  background: var(--paper);
  color: #101010;
}

.button {
  padding: 14px 18px;
}

.button::before,
.store-link::before {
  position: absolute;
  inset: -40%;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.42), transparent 28%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.button:hover::before,
.store-link:hover::before {
  opacity: 1;
}

.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, var(--red), var(--orange) 48%, var(--amber)),
    var(--red);
  color: #101010;
  box-shadow: 0 18px 45px rgba(255, 61, 87, 0.24);
}

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

.section-panel {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.hero > *,
.about > *,
.featured-grid > *,
.contact-band > *,
.section-heading,
.app-card {
  min-width: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  align-items: center;
  gap: 42px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  padding: 136px 0 54px;
}

.hero::after {
  position: absolute;
  right: 8%;
  bottom: 2%;
  width: 42%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
  animation: lineTravel 5s ease-in-out infinite;
}

.eyebrow,
.app-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about h2,
.contact-band h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: 4.35rem;
  text-wrap: balance;
}

.hero h1::selection,
.section-heading h2::selection {
  background: var(--amber);
  color: #101010;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #d9dee3;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics {
  display: grid;
  max-width: 650px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
}

.hero-metrics div {
  min-height: 106px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.hero-metrics dt {
  color: var(--amber);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-showcase {
  perspective: 1200px;
}

.signature-stage {
  position: relative;
  min-height: 560px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(16, 16, 16, 0.42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  transform: rotateX(4deg) rotateY(-7deg);
  transform-style: preserve-3d;
  animation: stageFloat 7s ease-in-out infinite;
}

.feature-graphic {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.phone-cluster {
  position: absolute;
  right: 6%;
  bottom: 3%;
  display: flex;
  width: 78%;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  transform: translateZ(88px);
}

.phone-cluster img {
  width: 30%;
  border: 7px solid #090909;
  border-radius: 24px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
  animation: phoneFloat 4.8s ease-in-out infinite;
}

.phone-cluster img:nth-child(2) {
  width: 34%;
  animation-delay: -1.4s;
}

.phone-cluster img:nth-child(3) {
  animation-delay: -2.7s;
}

.scan-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 28%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--cyan), transparent);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.7);
  animation: scan 3.8s ease-in-out infinite;
}

.app-rail {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.rail-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 18px;
  animation: marquee 38s linear infinite;
}

.rail-track img {
  width: 250px;
  aspect-ratio: 512 / 250;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.92;
}

.about,
.contact-band {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  padding: 110px 0;
}

.about h2,
.contact-band h2,
.section-heading h2 {
  font-size: 3.15rem;
  text-wrap: balance;
}

.about-copy p {
  margin: 0 0 18px;
  color: #d9dee3;
  font-size: 1.08rem;
}

.text-link,
.site-link {
  color: var(--amber);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.4);
  text-underline-offset: 5px;
}

.featured,
.apps {
  padding: 98px 0;
}

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

.section-heading p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #d9dee3;
  font-size: 1.08rem;
}

.featured-grid {
  display: grid;
  align-items: center;
  gap: 42px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
}

.featured-phone {
  display: grid;
  min-height: 640px;
  place-items: center;
}

.phone-shell {
  position: relative;
  width: min(330px, 82vw);
  aspect-ratio: 286 / 512;
  padding: 14px;
  border: 1px solid #303030;
  border-radius: 34px;
  background: #070707;
  box-shadow:
    inset 0 0 0 2px #1c1c1c,
    0 32px 80px rgba(0, 0, 0, 0.5);
  animation: deviceLean 6s ease-in-out infinite;
}

.phone-shell::before {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  width: 70px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  content: "";
  background: #050505;
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #111111;
}

.shot-stack {
  animation: verticalShots 12s steps(4, end) infinite;
}

.shot-stack img {
  width: 100%;
}

.featured-content {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 61, 87, 0.12), rgba(34, 211, 238, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.featured-icon {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

.featured-content h3 {
  margin: 24px 0 10px;
  font-size: 2.1rem;
  line-height: 1.05;
}

.featured-content p {
  color: #d9dee3;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: #eef2f6;
}

.feature-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  content: "";
  background: var(--red);
  box-shadow: 14px 0 0 var(--cyan);
}

.download-panel {
  display: grid;
  align-items: center;
  gap: 18px;
  grid-template-columns: 130px minmax(0, 1fr);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.download-panel img,
.qr-strip img {
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
}

.download-panel strong,
.download-panel span {
  display: block;
}

.download-panel span {
  margin-bottom: 14px;
  color: var(--muted);
}

.apps-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(16, 16, 16, 0.78);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.app-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 20%), color-mix(in srgb, var(--accent), transparent 58%), transparent 30%),
    linear-gradient(120deg, transparent 0%, color-mix(in srgb, var(--accent), transparent 82%) 46%, transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.app-card:hover {
  border-color: color-mix(in srgb, var(--accent), white 22%);
  box-shadow: 0 28px 70px color-mix(in srgb, var(--accent), transparent 78%);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-card-media {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.app-feature {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 500ms ease;
}

.app-card:hover .app-feature {
  transform: scale(1.08);
}

.mini-phone {
  position: absolute;
  right: 20px;
  bottom: -22px;
  width: 92px;
  height: 164px;
  overflow: hidden;
  border: 5px solid #090909;
  border-radius: 18px;
  background: #111111;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.44);
}

.mini-phone-track {
  animation: miniShots 11s steps(4, end) infinite;
}

.mini-phone-track img {
  width: 100%;
  height: 164px;
  object-fit: cover;
}

.app-card-body {
  padding: 22px;
}

.app-title-row {
  display: grid;
  align-items: center;
  gap: 14px;
  grid-template-columns: 58px minmax(0, 1fr);
  margin-bottom: 16px;
}

.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.app-label {
  margin-bottom: 4px;
  color: var(--accent);
}

.app-title-row h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.app-card-body > p {
  min-height: 104px;
  margin: 0;
  color: #d9dee3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-row span {
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 46%);
  border-radius: 6px;
  color: #f7f9fb;
  font-size: 0.82rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent), transparent 88%);
}

.store-row {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}

.store-link {
  min-height: 46px;
  padding: 12px 14px;
  background: var(--accent);
  color: #101010;
  font-size: 0.92rem;
}

.site-link {
  font-size: 0.9rem;
}

.qr-strip {
  display: grid;
  align-items: center;
  gap: 14px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.qr-strip img {
  width: 96px;
}

.contact-band {
  align-items: center;
  padding-bottom: 126px;
}

.contact-band .button {
  justify-self: end;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 32px), var(--max));
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes beamShift {
  0% {
    transform: translateX(-4%) translateY(-3%);
  }
  50% {
    transform: translateX(4%) translateY(3%);
  }
  100% {
    transform: translateX(-4%) translateY(-3%);
  }
}

@keyframes lineTravel {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-18%);
  }
  50% {
    opacity: 1;
    transform: translateX(18%);
  }
}

@keyframes stageFloat {
  0%,
  100% {
    transform: rotateX(4deg) rotateY(-7deg) translateY(0);
  }
  50% {
    transform: rotateX(1deg) rotateY(-3deg) translateY(-14px);
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-58px);
    opacity: 0;
  }
  45%,
  55% {
    opacity: 1;
  }
  50% {
    transform: translateY(250px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes deviceLean {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-16px);
  }
}

@keyframes verticalShots {
  to {
    transform: translateY(-2048px);
  }
}

@keyframes miniShots {
  to {
    transform: translateY(-656px);
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 128px;
  }

  .hero h1 {
    font-size: 3.65rem;
  }

  .signature-stage {
    min-height: 500px;
    transform: none;
  }

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

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  .top-nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

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

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-metrics,
  .about,
  .featured-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .about,
  .featured,
  .apps,
  .contact-band {
    padding: 72px 0;
  }

  .about h2,
  .contact-band h2,
  .section-heading h2 {
    font-size: 2.45rem;
  }

  .signature-stage {
    min-height: 440px;
  }

  .featured-phone {
    min-height: 560px;
  }

  .contact-band .button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .section-panel {
    width: min(calc(100% - 20px), var(--max));
  }

  .site-header {
    gap: 10px;
    padding: 8px;
  }

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

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    display: none;
  }

  .hero h1 {
    font-size: 2.1rem;
    text-wrap: wrap;
  }

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

  .hero-lede {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .signature-stage {
    min-height: 380px;
    padding: 12px;
  }

  .phone-cluster {
    right: 1%;
    width: 96%;
    gap: 8px;
  }

  .phone-cluster img {
    border-width: 4px;
    border-radius: 16px;
  }

  .rail-track img {
    width: 210px;
  }

  .about h2,
  .contact-band h2,
  .section-heading h2 {
    font-size: 2rem;
    text-wrap: wrap;
  }

  .featured-content {
    padding: 22px;
  }

  .download-panel,
  .store-row,
  .qr-strip {
    grid-template-columns: 1fr;
  }

  .download-panel img,
  .qr-strip img {
    width: 122px;
  }

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

  .app-card-body > p {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

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

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