.app-page-body {
  background: var(--page);
}

/* Hero */
.app-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: linear-gradient(135deg, #0f2744 0%, #1a4a7a 42%, #e8874a 100%);
  color: #fff;
}

.app-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 180, 80, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 18% 78%, rgba(80, 160, 255, 0.25) 0%, transparent 40%);
  pointer-events: none;
}

.app-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.app-hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.app-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.app-hero-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin-bottom: 16px;
}

.app-hero-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.app-hero-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.app-hero-stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.app-hero-cta {
  background: #fff;
  color: var(--anchor);
  border-color: #fff;
}

.app-hero-cta:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--anchor-hover);
}

.app-hero-icon-wrap {
  padding: 8px;
}

.app-hero-icon {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 28px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Features */
.app-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.app-feature-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}

.app-feature-card:hover {
  border-color: rgba(31, 58, 82, 0.25);
  transform: translateY(-2px);
}

.app-feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.app-feature-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-60);
}

/* Downloads */
.app-downloads-section {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.app-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ink);
}

.app-dl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--page);
}

.app-dl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.app-dl-table th {
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(28, 25, 23, 0.03);
}

.app-dl-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.app-dl-table tr:last-child td {
  border-bottom: none;
}

.app-dl-row:hover {
  background: rgba(31, 58, 82, 0.03);
}

.app-dl-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--anchor);
  text-decoration: none;
}

.app-dl-link:hover {
  text-decoration: underline;
}

.app-dl-size {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-60);
  margin-top: 4px;
}

.app-dl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 4px;
  background: var(--ember);
  color: #fff;
  font-size: 11px;
  vertical-align: middle;
}

.app-dl-badge-latest {
  background: var(--moss);
}

.app-dl-action {
  text-align: right;
  white-space: nowrap;
}

.app-requirements,
.app-sha-note,
.app-empty-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--ink-60);
}

.app-sha-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
}

/* Unsigned / Gatekeeper */
.app-unsigned-section {
  background: linear-gradient(180deg, rgba(184, 92, 56, 0.06) 0%, var(--page) 100%);
  border-block: 1px solid rgba(184, 92, 56, 0.18);
}

.app-unsigned-callout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 28px;
  margin-bottom: 40px;
  background: #fff;
  border: 1px solid rgba(184, 92, 56, 0.25);
  border-left: 4px solid var(--ember);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(184, 92, 56, 0.08);
}

.app-unsigned-callout-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.app-unsigned-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.app-unsigned-intro {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-60);
  max-width: 68ch;
}

.app-unsigned-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.app-unsigned-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.app-unsigned-step.is-reversed .app-unsigned-copy {
  order: 2;
}

.app-unsigned-step.is-reversed .app-unsigned-figure {
  order: 1;
}

.app-unsigned-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.app-unsigned-step-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-60);
}

.app-unsigned-figure {
  margin: 0;
}

.app-unsigned-figure .mac-scene {
  width: 100%;
}

.app-unsigned-img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.1);
}

.app-unsigned-caption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-60);
  text-align: center;
  font-style: italic;
}

.app-steps-compact {
  max-width: 560px;
}

/* Install & permissions */
.app-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.app-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.app-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.app-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--anchor);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
}

.app-note {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-60);
}

.app-helper-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.app-perm-name {
  font-weight: 500;
  color: var(--ink);
  width: 38%;
}

/* Privacy */
.app-privacy-section {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.app-privacy-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-60);
  margin-bottom: 28px;
  max-width: 60ch;
}

.app-privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.app-privacy-item {
  padding: 20px;
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.app-privacy-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-privacy-body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-60);
}

.app-privacy-footer {
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

/* Meta / license */
.app-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.app-meta-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-meta-list div {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
}

.app-meta-list dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  min-width: 88px;
}

.app-meta-list dd {
  color: var(--ink);
}

.app-contact {
  margin-top: 12px;
  font-size: 0.9375rem;
}

.app-license-block {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.app-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-hero-cta-alt {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.app-hero-cta-alt:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.app-hero.is-orchestral {
  background: linear-gradient(135deg, #0d0d0f 0%, #1a1a28 38%, #162a3a 100%);
}

.app-hero.is-orchestral .app-hero-glow {
  background:
    radial-gradient(circle at 72% 18%, rgba(6, 182, 212, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 22% 72%, rgba(139, 92, 246, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 48% 88%, rgba(245, 158, 11, 0.14) 0%, transparent 36%);
}

.app-hero.is-flyhent {
  background: linear-gradient(135deg, #0c4a6e 0%, #2563eb 45%, #38bdf8 100%);
}

.app-hero.is-flyhent .app-hero-glow {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(14, 165, 233, 0.25) 0%, transparent 40%);
}

.app-hero.is-bunke {
  background: linear-gradient(145deg, #f5f0e8 0%, #ebe4d8 55%, #e5dccf 100%);
  color: #1c1917;
}

.app-hero.is-bunke .app-hero-glow {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(28, 25, 23, 0.04) 0%, transparent 38%);
}

.app-hero.is-bunke .app-hero-tagline,
.app-hero.is-bunke .app-hero-intro,
.app-hero.is-bunke .app-hero-stat-label {
  color: rgba(28, 25, 23, 0.72);
}

.app-hero.is-bunke .app-hero-title,
.app-hero.is-bunke .app-hero-stat-value {
  color: #1c1917;
}

.app-hero.is-bunke .app-hero-stats {
  background: rgba(28, 25, 23, 0.06);
  border-color: rgba(28, 25, 23, 0.1);
}

.app-hero.is-bunke .app-hero-cta {
  background: #1c1917;
  color: #f5f0e8;
  border-color: #1c1917;
}

.app-hero.is-bunke .app-hero-cta:hover {
  background: #292524;
  color: #f5f0e8;
}

.app-hero.is-bunke .app-hero-icon {
  box-shadow:
    0 24px 48px rgba(28, 25, 23, 0.12),
    0 0 0 1px rgba(28, 25, 23, 0.08);
}

.app-hero.is-bunke .app-hero-cta-alt {
  background: rgba(28, 25, 23, 0.06);
  color: #1c1917;
  border-color: rgba(28, 25, 23, 0.18);
}

.app-spotlight-section .app-spotlight.is-bunke {
  background: linear-gradient(135deg, rgba(245, 240, 232, 0.9), rgba(235, 228, 216, 0.65));
  border-color: rgba(28, 25, 23, 0.12);
}

.app-web-access {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--page);
}

.app-web-access-btn {
  margin-bottom: 12px;
}

.app-web-access-url {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  color: var(--ink-60);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.app-spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(252, 211, 77, 0.05));
}

.app-spotlight-icon {
  display: block;
  width: min(100%, 208px);
  border-radius: 28px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.app-spotlight-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(52, 211, 153, 0.14);
  border-radius: 999px;
}

.app-spotlight-points {
  margin: 16px 0 0;
  padding-left: 1.25rem;
  color: var(--ink-60);
}

.app-spotlight-points li + li {
  margin-top: 6px;
}

.app-spotlight-note {
  margin-top: 16px;
}

.app-faq {
  max-width: 48rem;
}

.app-faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.app-faq-q {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.app-faq-q::-webkit-details-marker {
  display: none;
}

.app-faq-a {
  margin: 10px 0 0;
  color: var(--ink-60);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .app-hero-cta-row {
    justify-content: center;
  }

  .app-spotlight {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-spotlight-media {
    justify-self: center;
  }

  .app-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-hero-intro {
    margin-inline: auto;
  }

  .app-hero-icon-wrap {
    justify-self: center;
  }

  .app-split,
  .app-meta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .app-unsigned-step,
  .app-unsigned-step.is-reversed {
    grid-template-columns: 1fr;
  }

  .app-unsigned-step.is-reversed .app-unsigned-copy,
  .app-unsigned-step.is-reversed .app-unsigned-figure {
    order: unset;
  }

  .app-unsigned-figure {
    justify-self: center;
  }

  .app-dl-action {
    text-align: left;
  }
}
