:root {
  --color-navy: #0A2540;
  --color-navy-deep: #06192C;
  --color-teal: #1FA8A0;
  --color-teal-soft: rgba(31, 168, 160, 0.08);
  --color-text-heading: #0A2540;
  --color-text-body: #475569;
  --color-text-muted: #94A3B8;
  --color-bg: #FDFDFD;
  --color-bg-soft: #F8FAFC;
  --color-border: #E2E8F0;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-pill: 999px;
  --radius-card: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Hero === */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 40px 24px 24px;
  justify-content: center;
  position: relative;
}

.parent-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 24px;
  line-height: 0;
  transition: opacity 0.2s;
}

.parent-logo:hover { opacity: 0.7; }

.parent-logo-img {
  width: 100px;
  height: auto;
  display: block;
}

.brand-art {
  margin: 0 0 28px;
  line-height: 0;
}

.brand-art-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}

.tagline {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-heading);
  line-height: 1.35;
  margin-bottom: 12px;
  max-width: 480px;
  letter-spacing: -0.01em;
}

.subline {
  font-size: 17px;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 440px;
}

/* === Action block — desktop QR vs mobile CTA === */

.action-block {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hide by default; JS toggles visibility */
.action-desktop,
.action-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Desktop QR */

.qr-container {
  background: white;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-image {
  width: 180px;
  height: 180px;
  display: block;
  image-rendering: pixelated;
}

.qr-caption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 16px;
  margin-bottom: 0;
}

.qr-fallback {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-top: 20px;
  margin-bottom: 24px;
}

.qr-fallback-link {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 500;
}

.qr-fallback-link:hover {
  text-decoration: underline;
}

/* Mobile CTA */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-navy);
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.18);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.22);
  background: #0d2d4d;
}
.cta:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(10, 37, 64, 0.15); }
.cta-arrow { font-weight: 400; transition: transform 0.2s; }
.cta:hover .cta-arrow { transform: translateX(3px); }

.no-telegram-trigger {
  background: none;
  border: none;
  color: var(--color-teal);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 168, 160, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.no-telegram-trigger:hover {
  color: var(--color-navy);
  text-decoration-color: var(--color-navy);
}

.no-telegram-panel {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  max-width: 300px;
  text-align: left;
}

.install-instructions {
  margin-bottom: 8px;
  font-size: 14px;
}

.install-instructions:last-of-type { margin-bottom: 0; }
.install-instructions a { color: var(--color-teal); text-decoration: none; }
.install-instructions a:hover { text-decoration: underline; }

.install-followup {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* === Learn more affordance === */

.learn-more-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 12px;
  padding: 8px;
  margin-top: 12px;
  transition: color 0.2s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.learn-more-anchor:hover {
  color: var(--color-teal);
}

.learn-more-chevron {
  font-size: 16px;
  margin-bottom: 2px;
  animation: bob 2.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.learn-more-text {
  font-weight: 600;
}

/* === Below-fold: About + FAQ === */

.below-fold {
  padding: 72px 24px 56px;
  max-width: 560px;
  margin: 0 auto;
}

.below-fold-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.about-block {
  margin-bottom: 56px;
}

.about-text {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.7;
}

.about-text a {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 500;
}

.about-text a:hover {
  text-decoration: underline;
}

.faq-block {
  margin-bottom: 32px;
}

.faq-item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 14px;
  color: var(--color-text-body);
  line-height: 1.65;
}

/* === Footer === */

.page-footer {
  margin-top: auto;
  padding: 32px 24px 28px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-built-by { margin-bottom: 4px; }
.footer-built-by a { color: var(--color-text-body); text-decoration: none; }
.footer-built-by a:hover { color: var(--color-teal); }

/* === Responsive === */

@media (max-width: 640px) {
  .hero { padding: 32px 20px 20px; }
  .brand-art-img { max-width: 220px; }
  .tagline { font-size: 20px; }
}

@media (min-width: 768px) {
  .hero {
    padding: 48px 32px 32px;
  }

  .brand-art-img {
    max-width: 360px;
  }

  .tagline {
    font-size: 28px;
  }

  .subline {
    font-size: 18px;
    max-width: 460px;
  }

  .below-fold {
    padding: 80px 32px 64px;
  }

  .below-fold-heading {
    font-size: 24px;
  }
}
