:root {
  color-scheme: dark;
  --brand-red: #7a1220;
  --near-black: #0f0f10;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.15);
  --hairline: rgba(255, 255, 255, 0.18);
  --device-edge: #1b1b1d;
  --device-side: #050506;
  --device-screen: #070708;
  --font-display: "Outfit", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--near-black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 48% -8%, rgba(255, 255, 255, 0.035), transparent 18rem),
    linear-gradient(180deg, var(--brand-red) 0%, #3a0c14 28%, #160a0c 54%, #090909 82%, var(--near-black) 100%);
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.1) 0%, rgba(9, 9, 9, 0.5) 58%, rgba(9, 9, 9, 0.92) 100%),
    radial-gradient(ellipse at 55% 64%, rgba(122, 18, 32, 0.08), transparent 30rem);
}

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

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

.page-shell {
  width: min(100%, 1240px);
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 82px) clamp(20px, 5vw, 64px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 1.08fr);
  align-items: center;
  min-height: calc(100vh - 86px);
  gap: clamp(34px, 6vw, 92px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
  padding-bottom: clamp(16px, 4vw, 56px);
}

.hero__logo {
  width: clamp(102px, 13.75vw, 178px);
  height: auto;
  margin-bottom: clamp(12px, 1.8vw, 20px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.24));
}

.hero__wordmark,
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

.hero__wordmark {
  font-size: clamp(4rem, 9.7vw, 7.9rem);
  line-height: 0.82;
}

h1 {
  max-width: 12ch;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(2.8rem, 5.45vw, 5.1rem);
  line-height: 0.94;
}

.hero__subhead {
  max-width: 32rem;
  margin: clamp(18px, 2.8vw, 28px) 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  line-height: 1.45;
}

.hero__availability {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.62rem;
  margin: clamp(30px, 4vw, 48px) 0 0;
}

.hero__availability-text {
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.82rem, 1.2vw, 0.94rem);
  font-weight: 500;
  line-height: 1;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.35rem;
  padding: 0.46rem 0.78rem 0.48rem 0.66rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  color: #ffffff;
  background: #050505;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.app-store-badge__mark {
  width: 1.02rem;
  height: 1.24rem;
  background: #ffffff;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 28 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.2 18.1c0-3.6 3-5.3 3.1-5.4-1.7-2.5-4.3-2.8-5.2-2.8-2.2-.2-4.3 1.3-5.4 1.3-1.1 0-2.8-1.3-4.7-1.2-2.4 0-4.6 1.4-5.8 3.5-2.5 4.3-.6 10.6 1.8 14.1 1.2 1.7 2.6 3.6 4.5 3.5 1.8-.1 2.5-1.1 4.6-1.1 2.2 0 2.8 1.1 4.7 1.1 1.9 0 3.2-1.7 4.4-3.4 1.4-2 1.9-3.9 2-4-.1-.1-3.9-1.5-4-5.6ZM18.7 7.6c1-1.2 1.7-2.9 1.5-4.6-1.5.1-3.3 1-4.3 2.2-1 1.1-1.8 2.8-1.6 4.5 1.7.1 3.4-.9 4.4-2.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 28 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.2 18.1c0-3.6 3-5.3 3.1-5.4-1.7-2.5-4.3-2.8-5.2-2.8-2.2-.2-4.3 1.3-5.4 1.3-1.1 0-2.8-1.3-4.7-1.2-2.4 0-4.6 1.4-5.8 3.5-2.5 4.3-.6 10.6 1.8 14.1 1.2 1.7 2.6 3.6 4.5 3.5 1.8-.1 2.5-1.1 4.6-1.1 2.2 0 2.8 1.1 4.7 1.1 1.9 0 3.2-1.7 4.4-3.4 1.4-2 1.9-3.9 2-4-.1-.1-3.9-1.5-4-5.6ZM18.7 7.6c1-1.2 1.7-2.9 1.5-4.6-1.5.1-3.3 1-4.3 2.2-1 1.1-1.8 2.8-1.6 4.5 1.7.1 3.4-.9 4.4-2.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app-store-badge__copy {
  display: grid;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.device-stage {
  position: relative;
  width: min(100%, 660px);
  min-height: clamp(540px, 67vw, 760px);
  justify-self: center;
  isolation: isolate;
}

.device-stage::before {
  position: absolute;
  right: 0;
  bottom: 7%;
  left: 0;
  z-index: -1;
  height: 22%;
  border-radius: 50%;
  content: "";
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.52), transparent 70%);
  filter: blur(10px);
}

.iphone {
  position: absolute;
  margin: 0;
  aspect-ratio: 962 / 1978;
  border-radius: 11.2% / 5.2%;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.48),
    0 10px 24px rgba(0, 0, 0, 0.32);
}

.iphone__screen {
  position: absolute;
  top: 1.72%;
  right: 4.16%;
  bottom: 1.67%;
  left: 4.37%;
  overflow: hidden;
  z-index: 1;
  border-radius: 8.8% / 4.05%;
  background: var(--device-screen);
}

.iphone__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.iphone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone--front {
  left: 2%;
  bottom: 0;
  z-index: 2;
  width: clamp(250px, 29vw, 342px);
  transform: none;
}

.iphone--rear {
  right: 2%;
  bottom: 5.5%;
  z-index: 1;
  width: clamp(238px, 27.4vw, 324px);
  opacity: 1;
  filter: saturate(0.96) brightness(0.93);
  transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  min-height: 86px;
  padding: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .page-shell {
    min-height: auto;
    padding-top: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }

  .hero__content {
    align-items: center;
    max-width: none;
    padding-bottom: 0;
    text-align: center;
  }

  h1 {
    max-width: 8.5ch;
    margin-top: 48px;
  }

  .hero__subhead {
    max-width: 18rem;
  }

  .hero__availability {
    align-items: center;
  }

  .device-stage {
    min-height: clamp(500px, 126vw, 680px);
    margin: 8px 0 96px;
  }

  .iphone--front {
    left: 0;
    width: clamp(214px, 58vw, 318px);
    transform: none;
  }

  .iphone--rear {
    right: 0;
    bottom: 8%;
    width: clamp(208px, 56vw, 298px);
    transform: none;
  }

  .site-footer {
    flex-wrap: wrap;
    row-gap: 10px;
    padding-top: 10px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero__wordmark {
    font-size: clamp(3.7rem, 18vw, 4.8rem);
  }

  .hero__logo {
    margin-bottom: 6px;
  }

  .hero {
    gap: 0;
  }

  h1 {
    margin-top: 54px;
    font-size: clamp(2.35rem, 11.4vw, 3.2rem);
    line-height: 0.98;
  }

  .device-stage {
    width: 100%;
    min-height: 492px;
    margin-top: 76px;
    margin-bottom: 128px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .site-footer p {
    grid-column: 1 / -1;
  }
}
