/* PaperRss — Minimal Zine & Editorial Style System */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500&family=Noto+Serif+SC:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Paper Palette */
  --bg-paper: #f7f5ef;
  --bg-paper-elevated: #ffffff;
  --bg-paper-card: #f2efe5;
  --bg-paper-muted: #eae6d9;

  --text-main: #1c1a17;
  --text-muted: #666155;
  --text-subtle: #948e7f;

  --border-light: rgba(28, 26, 23, 0.08);
  --border-medium: rgba(28, 26, 23, 0.16);

  /* High-Chroma Color Anchors (Minimal Zine Style) */
  --color-cobalt: #1d4ed8;
  --color-crimson: #c92a2a;
  --color-accent: #2563eb;
  --color-seal: #d9480f;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Global */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-paper);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background: var(--bg-paper);
  background-image:
    radial-gradient(var(--border-light) 1px, transparent 0);
  background-size: 24px 24px;
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  justify-self: start;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.language-switcher {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher:hover {
  color: var(--text-main);
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  padding: 0.36rem 0.7rem;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-github:hover {
  background: rgba(0, 0, 0, 0.05);
}

.gh-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(28, 26, 23, 0.06);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.gh-star-icon {
  width: 11px;
  height: 11px;
  fill: #d97706;
}

.btn-download-primary {
  text-decoration: none;
  background: var(--color-cobalt);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.25);
  transition: transform 0.15s, background 0.2s;
}

.btn-download-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.secondary-feedback {
  background: transparent !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-medium);
}

.paypal-sponsor {
  align-items: center;
  justify-content: center;
}

.paypal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background: #0070ba;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 112, 186, 0.24);
}

.paypal-button:hover {
  background: #005ea6;
}

.install-title {
  margin-bottom: 1.5rem;
  text-align: left;
}

.install-title h2 {
  font-size: 1.8rem;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Minimal Zine Hero Section */
.hero {
  padding: 5rem 0 3.5rem 0;
  text-align: center;
  position: relative;
}

.hero-content {
  width: min(100%, 820px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center top;
  will-change: transform, filter, opacity;
}

.hero-app-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  margin: 0 0 1.15rem;
}

.hero-app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(28, 26, 23, 0.14);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  width: 100%;
  margin: 0 0 1.5rem;
  color: var(--text-main);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-cobalt);
  border-bottom: 2px solid var(--color-cobalt);
  padding-bottom: 2px;
}

.scramble-char {
  font-family: var(--font-mono);
  color: var(--color-cobalt);
  opacity: 0.78;
  font-size: 0.88em;
  display: inline-block;
  vertical-align: middle;
}

.settling-char {
  display: inline-block;
  color: inherit;
  vertical-align: baseline;
}

.scramble-title {
  cursor: pointer;
}

.scramble-target {
  display: inline-block;
  line-height: inherit;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  width: min(100%, 640px);
  max-width: 640px;
  margin: 0 0 2.25rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--text-main);
  color: #ffffff;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.hero-cta-main:hover {
  background: #33312c;
  transform: translateY(-2px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid var(--border-medium);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--bg-paper-elevated);
  transition: all 0.2s;
}

.hero-cta-secondary:hover {
  border-color: var(--text-main);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* Showcase Stage — Stacking Parallax */
.stage-section {
  position: relative;
  height: 190vh;
  margin-bottom: 2rem;
}

.stage-sticky-viewport {
  position: sticky;
  top: 4.5rem;
  width: 100%;
  height: calc(100vh - 6rem);
  max-height: 860px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-cards-wrapper {
  position: relative;
  width: 100%;
  max-width: 1120px;
}

.stage-card {
  width: 100%;
  border-radius: 14px;
}

.stage-card-base {
  position: relative;
  z-index: 1;
  transform-origin: center top;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.stage-card-scrim {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(247, 245, 239, 0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transform: translateZ(0);
}

.stage-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  transform-origin: center top;
  transform: translate3d(0, 115%, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.stage-image {
  width: 100%;
  display: block;
  height: auto;
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(28, 26, 23, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
}

.stage-card-overlay .stage-image {
  box-shadow: 0 -8px 25px rgba(28, 26, 23, 0.08), 0 22px 55px rgba(28, 26, 23, 0.20), 0 3px 10px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
  .stage-section {
    height: auto !important;
    padding: 1.5rem 0 3.5rem 0 !important;
    margin-bottom: 3rem !important;
  }

  .stage-sticky-viewport {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    overflow: visible !important;
  }

  .stage-cards-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
  }

  .stage-card {
    position: static !important;
    width: 100% !important;
    display: block !important;
  }

  .stage-card-base {
    position: static !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    margin-bottom: 0 !important;
  }

  .stage-card-overlay {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    margin-top: 0 !important;
    z-index: 1 !important;
  }

  #features {
    position: static !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    margin-bottom: 3rem !important;
  }

  .sponsor-section {
    position: static !important;
    transform: none !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    border: 1px dashed var(--border-medium) !important;
  }
}

/* Trust Rail */
.trust-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.8rem 0;
  margin-bottom: 5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-item strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Feature Sections (Zine Editorial Cards) */
#features {
  position: relative;
  z-index: 1;
  transform-origin: center top;
  will-change: transform, filter, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  margin-bottom: 3.5rem;
}

.section-title-group {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cobalt);
  margin-bottom: 0.5rem;
}

.section-title-group h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--bg-paper-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-crimson);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

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

.feature-card-img {
  width: 100%;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid var(--border-light);
}

.feature-card-gallery {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-card-gallery .feature-card-img {
  margin-top: 0;
}

/* Sponsor & Feedback Section */
.sponsor-section {
  position: relative;
  z-index: 5;
  background: var(--bg-paper-card);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin-top: -3.5rem;
  margin-bottom: 5rem;
  box-shadow: 0 -15px 40px rgba(28, 26, 23, 0.10), 0 25px 65px rgba(28, 26, 23, 0.16);
  transform-origin: center top;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sponsor-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-crimson);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.sponsor-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.sponsor-desc {
  max-width: 580px;
  margin: 0 auto 2rem auto;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.sponsor-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.qr-card {
  background: #ffffff;
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.qr-card img {
  width: 170px;
  height: 170px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  clip-path: inset(2px round 12px);
  overflow: hidden;
}

.qr-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.feedback-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--text-main);
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.feedback-btn:hover {
  opacity: 0.9;
}

/* Install Guide */
.install-section {
  position: relative;
  z-index: 6;
  background: var(--bg-paper);
  padding-top: 1rem;
  margin-bottom: 5rem;
}

.install-box {
  background: var(--bg-paper-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 2rem;
}

.install-methods {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.install-method-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.install-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.3rem;
  background: var(--bg-paper-card);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.install-cmd {
  background: var(--text-main);
  color: #f7f5ef;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  margin-top: 0.4rem;
  overflow-x: auto;
}

.install-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-medium);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.install-note a {
  color: var(--color-cobalt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-note a:hover {
  color: var(--text-main);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .btn-download-primary {
    padding: 0.42rem 0.75rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .brand {
    gap: 0.5rem;
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .language-switcher {
    font-size: 0.75rem;
  }

  .btn-download-primary {
    font-size: 0.8rem;
  }

  .btn-github {
    padding: 0.36rem 0.5rem;
  }

  .btn-github>span:first-child {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .stage-cards-wrapper {
    gap: 1.75rem !important;
  }
}