/* ========================================
   NOSTIOS PAGES — Apps, About, Support
   ======================================== */

/* ==================== APPS PAGE ==================== */
.app-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .app-detail-grid { grid-template-columns: 1fr; } }

.app-detail-card { padding: 36px; }
.app-detail-card .features { margin-top: 20px; }

/* Feature items, dots, text — defined in components.css */

.app-full-card { grid-column: 1 / -1; padding: 40px; text-align: center; }
.app-full-card p { max-width: 500px; margin: 0 auto 20px; }

/* ==================== ABOUT PAGE ==================== */
.about-manifesto {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 0 80px;
}
.about-manifesto p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 28px;
}
.about-manifesto p strong { color: var(--text-primary); font-weight: 500; }
.about-manifesto p em {
  font-style: normal;
  color: var(--accent);
}

.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 80px; }
@media (max-width: 700px) { .about-values { grid-template-columns: 1fr; } }

.value-card { padding: 28px; text-align: center; }
.value-icon { font-size: 28px; margin-bottom: 16px; }
.value-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.about-origin {
  background: linear-gradient(135deg, rgba(30,30,40,0.85) 0%, rgba(20,20,30,0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 48px;
  max-width: 680px;
  margin: 0 auto;
}
.about-origin h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 300; margin-bottom: 8px; }
.about-origin h3 strong { font-weight: 600; }
.about-origin .etymology {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.about-origin p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }

/* ==================== SUPPORT PAGE ==================== */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .support-grid { grid-template-columns: 1fr; } }

.support-card-icon { font-size: 28px; margin-bottom: 16px; }
.support-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.support-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

.contact-form-card { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
/* Form base styles (form-group, form-label, form-input, form-textarea) — defined in components.css */
.form-group.full { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 12px; margin-top: 8px; }

/* ==================== FAQ ==================== */
.faq-section { margin-top: 60px; }
/* FAQ styles are defined in components.css */

/* ==================== PRODUCT PAGE SHARED ==================== */
.product-hero .app-card-header { margin-bottom: 24px; }
.product-hero .app-card-title { font-size: 22px; }
.product-hero .features { margin-top: 28px; }
.product-hero .badge { margin-top: 24px; display: inline-block; }

/* Phone mockup placeholder (decorative) */
.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-phone {
  width: 200px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 16px;
  position: relative;
  background: rgba(20,20,30,0.6);
}
.screenshot-notch {
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  margin: 0 auto 16px;
}
.screenshot-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}
.screenshot-bar {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  width: 100%;
}
.screenshot-bar.short { width: 60%; }
.screenshot-block {
  height: 40px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
}
.screenshot-block.small { height: 28px; }

/* Screenshot placeholder block colors (decorative) */
.screenshot-block--warm-1 { background: rgba(240,168,94,0.2); }
.screenshot-block--warm-2 { background: rgba(240,168,94,0.15); }
.screenshot-block--warm-3 { background: rgba(240,168,94,0.1); }

/* Nostios app phone border variant */
.screenshot-phone--teal { border-color: rgba(78,205,196,0.3); }

/* ==================== SUPPORT PAGE ==================== */
.support-content {
  max-width: 720px;
  margin: 0 auto;
}

.support-note {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 40px;
}

/* ==================== GENERIC PAGE ==================== */
.post-meta { margin-top: 16px; }

.post-feature-image figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ==================== ERROR PAGE ==================== */
.error-header { padding: 180px 0 100px; text-align: center; }
.error-code {
  font-family: var(--font-heading);
  font-size: 100px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}
.error-header .page-subtitle { margin-bottom: 40px; }

/* ==================== RESONANCE LANDING PAGE ==================== */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-hero-screenshot { order: -1; }
}

.product-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-screenshot {
  width: 260px;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .hero-screenshot { width: 200px; }
}

.screenshot-gallery {
  margin-bottom: 60px;
  overflow: visible;
}
.screenshot-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshot-scroll::-webkit-scrollbar { display: none; }
/* screenshot-scroll now uses .screenshot-btn wrappers — see button styles below */

/* Screenshot gallery buttons */
.screenshot-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 18px;
  transition: transform 0.2s ease;
}
.screenshot-btn:hover { transform: scale(1.03); }
.screenshot-btn img {
  width: 180px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: block;
}
@media (max-width: 768px) {
  .screenshot-btn img { width: 140px; border-radius: 14px; }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: 20px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  font-family: var(--font-heading);
  cursor: pointer;
  z-index: 10000;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 10000;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  padding: 16px;
  user-select: none;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.product-cta {
  margin-bottom: 48px;
}

.resonance-footer-links {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.resonance-footer-links a {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.resonance-footer-links a:hover { color: var(--text-primary); }
.resonance-footer-links .divider {
  color: var(--text-muted);
  margin: 0 12px;
}

/* ==================== GAMES PAGE ==================== */
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .games-grid { grid-template-columns: 1fr; } }

.game-card { padding: 36px; }
.game-card .feature-dot {
  background: var(--warm);
  box-shadow: 0 0 8px var(--warm-glow);
}

/* ==================== HOMEPAGE PRODUCT CARDS ==================== */
.home-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .home-product-grid { grid-template-columns: 1fr; } }

.home-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}
.home-product-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.home-product-card .app-card-header { margin-bottom: 16px; }
.home-product-card .app-card-title { font-size: 16px; }
.home-product-card .app-card-sub { font-size: 12px; }

.home-product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Hero screenshot as actual image */
.hero-screenshot-img {
  width: 100%;
  max-width: 280px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.hero-screenshot-img:hover {
  transform: scale(1.02);
}
