/* ==========================================================================
   RESPAWNERZ FOR ANDROID — /app page styles
   Namespaced under .app-page so nothing here touches global site rules.
   All colors, spacing, and type values below are assumptions pulled from
   the homepage markup (theme-color #080c10, Montserrat Alt1, the // LABEL
   convention, the existing .container / .section rhythm). If style.css
   already defines root custom properties for background, text, accent,
   border, and radius, swap the values below for var() references to those
   instead of the hex fallbacks. See the integration notes for specifics.
   ========================================================================== */

.app-page {
  --app-bg: #080c10;
  --app-bg-alt: #0b1016;
  --app-surface: #10161d;
  --app-surface-hover: #141b23;
  --app-border: rgba(255, 255, 255, 0.08);
  --app-border-strong: rgba(255, 255, 255, 0.14);
  --app-text: #e9edf1;
  --app-text-muted: #93a0ac;
  --app-accent: #17e0e0;
  --app-accent-soft: rgba(23, 224, 224, 0.12);
  --app-accent-text: #0a1114;
  --app-radius-sm: 3px;
  --app-radius-md: 6px;
  --app-gap: 1.5rem;
  --app-section-pad: 5rem 0;
  background: var(--app-bg);
  color: var(--app-text);
}

.app-page section {
  padding: var(--app-section-pad);
}

.app-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.app-page a {
  color: inherit;
}

.app-page .app-eyebrow {
  display: inline-block;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--app-accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------- */
/* HERO                                                                   */
/* --------------------------------------------------------------------- */

.app-hero {
  padding-top: 4rem;
  border-bottom: 1px solid var(--app-border);
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, var(--app-accent-soft), transparent 70%),
    var(--app-bg);
}

.app-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.app-hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.app-hero-copy {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--app-text-muted);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.app-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.app-hero-meta span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--app-text-muted);
  border: 1px solid var(--app-border-strong);
  border-radius: var(--app-radius-sm);
  padding: 0.4rem 0.75rem;
  background: var(--app-surface);
}

.app-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------- */
/* LIQUID GLASS CTA BUTTONS                                              */
/* --------------------------------------------------------------------- */

.app-download-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  /* Frosted glass base */
  background: rgba(16, 22, 29, 0.38);
  color: var(--app-text);

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;

  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;

  padding: 0.9rem 1.6rem;
  text-decoration: none;

  /* Glass depth */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(3px) saturate(1.25);
  -webkit-backdrop-filter: blur(3px) saturate(1.25);

  overflow: hidden;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

/* Subtle glass highlight */
.app-download-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.10),
      transparent 38%,
      transparent 68%,
      rgba(23, 224, 224, 0.05)
    );

  opacity: 0.8;
  z-index: -1;
}

/* Keep the arrow/icon slightly accented */
.app-download-button i {
  color: var(--app-accent);
  transition: transform 0.2s ease;
}

.app-download-button:hover,
.app-download-button:focus-visible {
  transform: translateY(-2px);

  background: rgba(23, 224, 224, 0.09);
  border-color: rgba(23, 224, 224, 0.55);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(23, 224, 224, 0.08);
}

.app-download-button:hover i,
.app-download-button:focus-visible i {
  transform: translateX(3px);
}

.app-download-button:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}
.app-secondary-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--app-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--app-border-strong);
  padding-bottom: 2px;
}

.app-secondary-link:hover,
.app-secondary-link:focus-visible {
  color: var(--app-text);
  border-color: var(--app-accent);
}

/* Hero showcase composition, also reused as the standalone showcase section */

.app-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.app-showcase-grid {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.app-showcase-main {
  position: relative;
  z-index: 2;
  border-radius: 14px;
  border: 1px solid var(--app-border-strong);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  background: var(--app-surface);
}

.app-showcase-main img {
  display: block;
  width: 100%;
  height: auto;
}

.app-showcase-secondary {
  position: absolute;
  width: 46%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--app-border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  background: var(--app-surface);
}

.app-showcase-secondary img {
  display: block;
  width: 100%;
  height: auto;
}

.app-showcase-secondary.is-left {
  left: -12%;
  bottom: 6%;
  z-index: 1;
  transform: rotate(-4deg);
}

.app-showcase-secondary.is-right {
  right: -14%;
  top: 4%;
  z-index: 3;
  transform: rotate(4deg);
}

/* --------------------------------------------------------------------- */
/* PRODUCT INTRO                                                         */
/* --------------------------------------------------------------------- */

.app-intro {
  border-bottom: 1px solid var(--app-border);
}

.app-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 3rem;
  align-items: start;
}

.app-intro h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin: 0;
}

.app-intro-copy {
  color: var(--app-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.app-intro-copy p + p {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------- */
/* FEATURE GRID                                                          */
/* --------------------------------------------------------------------- */

.app-features {
  border-bottom: 1px solid var(--app-border);
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.app-feature-card {
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  border-radius: var(--app-radius-md);
  padding: 1.5rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.app-feature-card:hover {
  border-color: var(--app-border-strong);
  background: var(--app-surface-hover);
}

.app-feature-card i {
  color: var(--app-accent);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
  display: block;
}

.app-feature-card h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.app-feature-card p {
  color: var(--app-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------- */
/* VERSION 2.0                                                           */
/* --------------------------------------------------------------------- */

.app-version {
  border-bottom: 1px solid var(--app-border);
}

.app-version-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.app-version-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.app-version-head p {
  color: var(--app-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.app-version-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2.5rem;
}

.app-version-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-version-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--app-border);
  font-size: 0.95rem;
  color: var(--app-text);
}

.app-version-list li:last-child {
  border-bottom: none;
}

.app-version-list i {
  color: var(--app-accent);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------- */
/* DOWNLOAD                                                              */
/* --------------------------------------------------------------------- */

.app-download {
  border-bottom: 1px solid var(--app-border);
  background: var(--app-bg-alt);
}

.app-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  border: 1px solid var(--app-border-strong);
  background: var(--app-surface);
  border-radius: var(--app-radius-md);
  padding: 2.25rem;
}

.app-download-info h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.app-download-info p {
  color: var(--app-text-muted);
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
}

.app-download-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--app-text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.app-download-spec strong {
  color: var(--app-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------- */
/* INSTALLATION                                                          */
/* --------------------------------------------------------------------- */

.app-installation {
  border-bottom: 1px solid var(--app-border);
}

.app-installation-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}

.app-installation-step {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  padding: 1.5rem;
}

.app-installation-step-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--app-accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.app-installation-step h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.app-installation-step p {
  color: var(--app-text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.app-installation-note {
  margin-top: 2rem;
  color: var(--app-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* --------------------------------------------------------------------- */
/* FEEDBACK                                                              */
/* --------------------------------------------------------------------- */

.app-feedback {
  border-bottom: 1px solid var(--app-border);
}

.app-feedback-card {
  border: 1px solid var(--app-border-strong);
  border-radius: var(--app-radius-md);
  background: var(--app-surface);
  padding: 3rem;
  text-align: left;
  max-width: 760px;
}

.app-feedback-card h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 0 0 1rem;
}

.app-feedback-card p {
  color: var(--app-text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.app-feedback-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-feedback-card ul li {
  font-size: 0.8rem;
  color: var(--app-text-muted);
  border: 1px solid var(--app-border-strong);
  border-radius: var(--app-radius-sm);
  padding: 0.35rem 0.7rem;
}

/* --------------------------------------------------------------------- */
/* FINAL CTA                                                             */
/* --------------------------------------------------------------------- */

.app-final-cta {
  text-align: center;
  padding: 4.5rem 0 5rem;
}

.app-final-cta .app-eyebrow {
  display: block;
}

.app-final-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
}

.app-final-cta .app-version-tag {
  color: var(--app-text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.app-final-cta .app-download-button {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------- */
/* RESPONSIVE                                                            */
/* --------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .app-hero-grid {
    grid-template-columns: 1fr;
  }

  .app-hero-visual {
    order: -1;
    min-height: 340px;
  }

  .app-intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .app-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-version-grid {
    grid-template-columns: 1fr;
  }

  .app-installation-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .app-page {
    --app-section-pad: 3.25rem 0;
  }

  .app-hero {
    padding-top: 2.5rem;
  }

  .app-showcase-grid {
    max-width: 280px;
  }

  .app-hero-visual {
    min-height: 280px;
  }

  .app-feature-grid {
    grid-template-columns: 1fr;
  }

  .app-installation-steps {
    grid-template-columns: 1fr;
  }

  .app-download-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
  }

  .app-download-button {
    width: 100%;
    justify-content: center;
  }

  .app-feedback-card {
    padding: 1.75rem;
  }

  .app-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-page * {
    transition: none !important;
  }
}
