:root {
  color-scheme: dark;
  --bg: #06100b;
  --panel: rgba(5, 12, 10, 0.68);
  --line: rgba(141, 255, 115, 0.24);
  --text: #f2fff2;
  --muted: rgba(242, 255, 242, 0.66);
  --green: #9dff52;
  --mint: #28ffd1;
  --pink: #ff5ccd;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(157, 255, 82, 0.07), transparent 38%),
    linear-gradient(245deg, rgba(40, 255, 209, 0.11), transparent 44%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  padding: max(22px, env(safe-area-inset-top)) clamp(18px, 4vw, 56px) max(24px, env(safe-area-inset-bottom));
  flex-direction: column;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 6% -16% 1%;
  z-index: -3;
  background:
    linear-gradient(104deg, transparent 8%, rgba(157, 255, 82, 0.24) 11%, transparent 16%),
    linear-gradient(114deg, transparent 58%, rgba(255, 92, 205, 0.18) 62%, transparent 69%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 88px);
  transform: skewY(-9deg);
  opacity: 0.95;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% 5% -12%;
  z-index: -2;
  height: 32%;
  background:
    linear-gradient(90deg, transparent, rgba(40, 255, 209, 0.16), transparent),
    repeating-linear-gradient(0deg, rgba(157, 255, 82, 0.17) 0 1px, transparent 1px 18px);
  filter: blur(1px);
  transform: perspective(800px) rotateX(64deg);
}

.noise,
.scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: -1;
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(circle at 17% 29%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(circle at 83% 61%, rgba(157, 255, 82, 0.32) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

.scan {
  z-index: 0;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, 0.035) 9px 10px);
  opacity: 0.38;
}

.topbar,
.hero-grid,
.bottom-counter {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.brand {
  display: grid;
  gap: 3px;
  letter-spacing: 0;
  min-width: 0;
}

.brand span,
.kicker,
.bottom-counter span,
.vr-chip {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand strong {
  font-size: clamp(1.02rem, 4.8vw, 1.55rem);
  line-height: 0.95;
}

.iphone-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(3, 10, 8, 0.72);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.iphone-pill.is-ready {
  color: #051109;
  background: linear-gradient(135deg, var(--green), var(--mint), var(--pink));
}

.hero-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) 0;
}

.copy-block {
  display: grid;
  gap: 18px;
  max-width: 660px;
  min-width: 0;
}

h1 {
  display: grid;
  gap: 0.03em;
  max-width: 8.6ch;
  margin: 0;
  font-size: clamp(3.8rem, 11.2vw, 7.45rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  text-shadow:
    0 0 26px rgba(157, 255, 82, 0.22),
    0 0 60px rgba(40, 255, 209, 0.14);
}

h1 span {
  display: block;
}

.tagline {
  max-width: 34ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.12rem, 4.2vw, 2.1rem);
  font-weight: 800;
}

.device-note {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(157, 255, 82, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.device-note.is-ready {
  color: #dffff1;
  border-color: rgba(40, 255, 209, 0.42);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 6px;
}

.primary-action,
.secondary-action {
  min-height: 58px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: 0;
}

.primary-action {
  display: inline-grid;
  grid-template-columns: 30px auto;
  align-items: center;
  gap: 10px;
  padding: 0 24px 0 15px;
  background: linear-gradient(135deg, var(--green), var(--mint) 54%, var(--pink));
  color: #06100b;
  box-shadow: 0 22px 54px rgba(40, 255, 209, 0.24);
}

.primary-action img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 22px;
  background: rgba(3, 10, 8, 0.7);
  color: var(--text);
}

.vr-card {
  position: relative;
  justify-self: center;
  max-width: 100%;
  min-width: 0;
  width: min(520px, 100%);
  aspect-ratio: 0.92;
  border: 1px solid rgba(157, 255, 82, 0.26);
  border-radius: 30px;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(157, 255, 82, 0.12), rgba(40, 255, 209, 0.05)),
    rgba(4, 11, 8, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.vr-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 42%, rgba(157, 255, 82, 0.38) 48%, transparent 54%),
    radial-gradient(circle at 22% 78%, rgba(255, 92, 205, 0.25), transparent 34%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: 52% 50%;
}

.mask-art {
  position: relative;
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: min(34%, 178px);
  aspect-ratio: 1;
  border: 1px solid rgba(157, 255, 82, 0.34);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.vr-chip {
  color: var(--green);
}

.vr-card-copy {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 3px;
  max-width: 44%;
  border: 1px solid rgba(157, 255, 82, 0.2);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(2, 8, 6, 0.72);
  backdrop-filter: blur(14px);
}

.vr-card-copy strong {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 0.95;
}

.vr-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bottom-counter {
  display: grid;
  width: min(460px, 100%);
  margin: 0 auto;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px 18px;
  background: rgba(3, 10, 8, 0.74);
}

.bottom-counter strong {
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  line-height: 0.96;
}

.bottom-counter em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 760px) {
  .hero {
    padding-inline: 16px;
  }

  .topbar {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 8px;
  }

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

  .iphone-pill {
    position: static;
    width: 94px;
    min-height: 40px;
    padding: 0 9px;
    white-space: normal;
    text-align: center;
    font-size: 0.64rem;
    line-height: 1.05;
  }

  .iphone-pill {
    color: transparent;
  }

  .iphone-pill::before {
    content: "iPHONE\A ONLY";
    color: var(--text);
    white-space: pre;
  }

  .iphone-pill.is-ready::before {
    color: #051109;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 18px 0 18px;
  }

  .copy-block {
    gap: 12px;
  }

  h1 {
    max-width: 7.4ch;
    font-size: clamp(2.9rem, 15vw, 4.05rem);
    line-height: 0.82;
  }

  .tagline {
    font-size: 1.02rem;
  }

  .device-note {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    justify-content: center;
    width: 100%;
  }

  .vr-card {
    width: min(330px, calc(100vw - 32px));
    order: -1;
    transform: rotate(1deg);
  }

  .vr-card-copy {
    left: 14px;
    bottom: 14px;
    max-width: 54%;
    padding: 11px 12px;
  }

  .mask-art {
    right: 10px;
    bottom: 10px;
    width: 31%;
    border-radius: 16px;
  }

  .bottom-counter {
    margin-top: auto;
    padding: 10px 14px;
  }

  .bottom-counter span {
    font-size: 0.64rem;
  }

  .bottom-counter strong {
    font-size: clamp(2rem, 13vw, 3.1rem);
  }

  .bottom-counter em {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: light-slip 7s ease-in-out infinite alternate;
  }

  .vr-card {
    animation: card-float 5s ease-in-out infinite;
  }
}

@keyframes light-slip {
  from {
    transform: translate3d(-2%, 0, 0) skewY(-9deg);
  }
  to {
    transform: translate3d(2%, -1%, 0) skewY(-9deg);
  }
}

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}
