:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-low: #1c1b1b;
  --surface-high: #353534;
  --text: #e5e2e1;
  --muted: #c6c6c7;
  --muted-strong: #e9bcb6;
  --brand: #e50914;
  --brand-hover: #ff0000;
  --brand-dark: #690003;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --shadow-red: rgba(229, 9, 20, 0.2);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button {
  font: inherit;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.background-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.background-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.02);
  opacity: 0.52;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(229, 9, 20, 0.2), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(0, 114, 215, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.96));
  backdrop-filter: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: calc(100vh - 10px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 7vw, 96px);
  padding: 24px clamp(20px, 5vw, 64px) 10px;
}

.phone-column,
.content-column {
  flex: 1;
}

.phone-column {
  display: flex;
  justify-content: flex-end;
}

.phone-stage {
  position: relative;
  width: clamp(260px, 24vw, 330px);
  animation: float 8s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  padding: 3px;
  border: 4px solid var(--surface-high);
  border-radius: 18px;
  background: #0e0e0e;
  box-shadow: 0 0 44px rgba(229, 9, 20, 0.14), 0 22px 54px rgba(0, 0, 0, 0.34);
}

.phone-frame img {
  width: 100%;
  height: 101%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 0;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 5, 6, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 28px rgba(229, 9, 20, 0.14);
}

.floating-card-right {
  top: 25%;
  right: -36px;
}

.floating-card-left {
  left: -36px;
  bottom: 25%;
}

.floating-card .material-symbols-outlined {
  color: var(--brand);
}

.floating-card p {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.floating-card span:last-child {
  font-size: 10px;
  color: rgba(229, 226, 225, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.content-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 620px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.app-icon {
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-high);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 24px;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.publisher {
  margin: 10px 0 4px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px 0;
}

.stat-item {
  min-width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.stat-item strong {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.stat-item > span {
  color: rgba(198, 198, 199, 0.72);
  font-size: 11px;
  font-weight: 600;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating .material-symbols-outlined {
  font-size: 16px;
}

.age-badge {
  width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px !important;
}

.divider {
  width: 1px;
  height: 34px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
}

.cta-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.install-button {
  min-width: 168px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(229, 9, 20, 0.2);
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.install-button:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.install-button:active {
  transform: scale(0.98);
}

.install-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.secondary-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.icon-action:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ff4d55;
}

.icon-action .material-symbols-outlined {
  transition: transform 180ms ease;
}

.icon-action:hover .material-symbols-outlined {
  transform: scale(1.1);
}

#reviewsBtn .material-symbols-outlined {
  animation: down-pulse 1.4s ease-in-out infinite;
}

.description {
  max-width: 580px;
}

.description p {
  margin: 0;
  color: rgba(229, 226, 225, 0.82);
  font-size: 16px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
}

.compatibility {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  color: rgba(233, 188, 182, 0.66);
  font-size: 12px;
}

.compatibility div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compatibility .material-symbols-outlined {
  font-size: 20px;
}

.reviews-section {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: none;
  margin: 10px 0 72px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  contain: layout paint;
  background:
    radial-gradient(circle at 18% 18%, rgba(229, 9, 20, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  padding: clamp(18px, 3vw, 34px) 0;
  opacity: 0.72;
  transform: translateY(12px);
  transition: opacity 1200ms ease, transform 1200ms ease, filter 1200ms ease;
  filter: blur(1px);
}

.reviews-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reviews-section::before,
.reviews-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(16px, 5vw, 80px);
  pointer-events: none;
}

.reviews-section::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.98), transparent);
}

.reviews-section::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 10, 10, 0.98), transparent);
}

.reviews-marquee {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  overflow: hidden;
  transform: rotate(-1deg);
}

.reviews-marquee-second {
  margin-top: 18px;
  transform: rotate(1deg);
}

.reviews-marquee-third {
  margin-top: 18px;
  transform: rotate(-0.45deg);
}

.reviews-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 4px 0;
  animation: reviews-float-left 190s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.reviews-track::after {
  content: "";
  display: block;
  width: 1px;
}

.reviews-track-right {
  animation-name: reviews-float-right;
  animation-duration: 220s;
}

.reviews-track-slow {
  animation-duration: 250s;
}

.review-card {
  width: 300px;
  min-height: 154px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(14, 14, 14, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: none;
  padding: 18px;
}

.review-card-soft {
  background: rgba(255, 255, 255, 0.055);
}

.review-card-loading {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}

.review-card-loading::before,
.review-card-loading::after {
  content: "";
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.review-card-loading::before {
  width: 62%;
  height: 13px;
  margin-bottom: 18px;
}

.review-card-loading::after {
  width: 88%;
  height: 52px;
}

.review-card-loading {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.035) 100%
  );
  background-size: 220% 100%;
  animation: shimmer 2.4s infinite linear;
}

.review-stars {
  color: #ffcf66;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.review-card p {
  margin: 12px 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.review-card span {
  color: rgba(198, 198, 199, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px);
  pointer-events: none;
  opacity: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.92);
  color: #fff;
  padding: 12px 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 14px;
  font-weight: 700;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.install-body {
  min-height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}

.shader-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
}

.install-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.install-card {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.install-progress-wrap {
  position: relative;
  width: clamp(218px, 42vw, 270px);
  height: clamp(218px, 42vw, 270px);
  display: grid;
  place-items: center;
  margin-bottom: 32px;
}

.install-icon-wrap {
  position: relative;
  z-index: 3;
  width: 82%;
  height: 82%;
  overflow: hidden;
  border: 2px solid var(--surface-high);
  border-radius: 50%;
  background: #0e0e0e;
  padding: 4px;
  animation: glow-pulse 4s infinite ease-in-out;
}

.install-icon-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.progress-ring {
  position: absolute;
  inset: -2px;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.progress-ring-bg {
  stroke: var(--surface-high);
}

.progress-ring-value {
  stroke: var(--brand);
  stroke-dasharray: 659.7;
  stroke-dashoffset: 659.7;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 420ms ease;
  filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.55));
}

.install-content {
  width: 100%;
  text-align: center;
}

.install-kicker {
  margin-bottom: 10px;
}

.install-content h1 {
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.04em;
}

.install-content h1 span {
  color: var(--brand);
}

.install-linear {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-high);
  margin: 24px 0 12px;
}

.install-linear div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #ff6b72, var(--brand));
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  transition: width 420ms ease;
}

.install-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(233, 188, 182, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.install-meta div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.install-meta .material-symbols-outlined {
  font-size: 16px;
}

.install-status {
  margin: 26px 0 24px;
  color: rgba(229, 226, 225, 0.72);
  line-height: 1.6;
}

.install-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
}

.install-round,
.install-cancel,
.install-complete-btn {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, filter 180ms ease;
}

.install-round,
.install-cancel {
  opacity: 1;
}

.install-actions.is-complete .install-round,
.install-actions.is-complete .install-cancel {
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 260ms ease, transform 260ms ease;
}

.install-round {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--surface-low);
  color: var(--text);
}

.install-cancel {
  min-width: 142px;
  height: 50px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(229, 9, 20, 0.2);
}

.install-complete-btn {
  min-width: 178px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #20d36b, #0fa84d);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 18px 44px rgba(32, 211, 107, 0.24);
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}

.install-complete-btn.is-visible {
  animation: completeButtonIn 520ms cubic-bezier(0.2, 1, 0.22, 1) forwards;
}

.install-round:hover,
.install-cancel:hover,
.install-complete-btn:hover {
  transform: translateY(-1px);
}

.install-cancel:hover,
.install-complete-btn:hover {
  filter: brightness(1.12);
}

@keyframes completeButtonIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes down-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(229, 9, 20, 0.22);
  }
  50% {
    box-shadow: 0 0 48px rgba(229, 9, 20, 0.48);
  }
}

@keyframes reviews-float-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes reviews-float-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes review-card-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .page-shell {
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    padding-top: 30px;
    padding-bottom: 10px;
  }

  .phone-column {
    display: flex;
    justify-content: center;
    order: 2;
    width: 100%;
  }

  .phone-stage {
    width: clamp(150px, 42vw, 210px);
  }

  .floating-card {
    min-width: 112px;
    padding: 7px 9px;
    gap: 7px;
    border-radius: 10px;
  }

  .floating-card .material-symbols-outlined {
    font-size: 18px;
  }

  .floating-card p,
  .floating-card span:last-child {
    font-size: 9px;
  }

  .content-column {
    align-items: center;
    text-align: center;
  }

  .app-header {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .app-icon {
    width: 98px;
    height: 98px;
    border-radius: 22px;
  }

  .app-icon img {
    border-radius: 18px;
  }

  .stats-row {
    justify-content: center;
    gap: 24px;
  }

  .cta-row {
    max-width: 440px;
    flex-direction: column;
  }

  .install-button {
    width: 100%;
  }

  .secondary-actions {
    justify-content: center;
  }

  .tag-list {
    justify-content: center;
  }

  .compatibility {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .reviews-section {
    width: 100vw;
    margin-top: 10px;
    margin-bottom: 42px;
  }

  .reviews-section::before,
  .reviews-section::after {
    width: 54px;
  }

  .reviews-track {
    gap: 10px;
    animation-duration: 170s;
  }

  .reviews-track-right {
    animation-duration: 200s;
  }

  .reviews-track-slow {
    animation-duration: 230s;
  }

  .review-card {
    width: 260px;
    min-height: 148px;
    padding: 16px;
  }
}

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

  .phone-stage {
    width: clamp(120px, 38vw, 170px);
  }

  .floating-card-right {
    right: -22px;
  }

  .floating-card-left {
    left: -22px;
  }

  .stats-row {
    width: 100%;
    gap: 18px;
  }

  .divider {
    height: 30px;
  }

  .secondary-actions {
    width: 100%;
    justify-content: space-between;
  }

  .icon-action {
    flex: 1;
    justify-content: center;
  }

  .reviews-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .review-card {
    width: 235px;
  }

  .install-shell {
    padding: 16px;
  }

  .install-card {
    padding: 0;
  }

  .install-progress-wrap {
    width: 218px;
    height: 218px;
    margin-bottom: 24px;
  }

  .install-meta {
    flex-direction: column;
    gap: 8px;
  }
}
