/* MediaGrab landing page — dark theme matching the app */
:root {
  --bg:        #0f0f0f;
  --bg-alt:    #171717;
  --card:      #1f1f1f;
  --border:    #2a2a2a;
  --text:      #f0f0f0;
  --text-dim:  #a3a3a3;
  --muted:     #737373;
  --accent:    #6366f1;
  --accent-hover: #818cf8;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.muted  { color: var(--muted); font-size: 0.9em; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ─── */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo span { color: var(--accent); }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--text-dim); font-size: 0.9rem; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* ─── Hero ─── */
.hero { padding: 72px 0 56px; text-align: center; background: radial-gradient(ellipse at top, rgba(99,102,241,0.12), transparent 60%); }
.hero h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 640px; margin: 0 auto 36px; }

.download-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 16px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  transition: transform 0.15s, background 0.15s; min-width: 200px;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-sub { font-size: 0.72rem; font-weight: 400; opacity: 0.8; margin-top: 4px; }
.version-note { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }

/* ─── Sections ─── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 1.9rem; text-align: center; margin-bottom: 40px; }

/* ─── Features ─── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ─── Steps ─── */
.steps { max-width: 640px; margin: 0 auto; padding-left: 24px; }
.steps li { margin-bottom: 14px; color: var(--text-dim); }
.steps strong { color: var(--text); }

/* ─── FAQ ─── */
.faq-item { max-width: 720px; margin: 0 auto 24px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--accent-hover); }
.faq-item p { color: var(--text-dim); font-size: 0.92rem; }

/* ─── Ad zones ─── */
.ad-zone-wrap { text-align: center; padding: 24px 0; }
.ad-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.ad-zone { display: inline-block; margin: 0 auto; }
.ad-leaderboard { min-height: 90px; max-width: 728px; width: 100%; }
.ad-rectangle  { min-height: 250px; width: 300px; }
/* Empty ad zones collapse gracefully — show a subtle placeholder only in dev */
.ad-zone:empty::before {
  content: "";
  display: block;
}

/* ─── Install instruction cards (under download buttons) ─── */
.install-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 36px; }
.install-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; text-align: left; }
.install-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.install-card ol { margin: 0 0 12px 20px; }
.install-card li { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 8px; line-height: 1.5; }
.install-card li strong { color: var(--text); }
.install-card code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }
.install-tip { color: var(--muted); font-size: 0.8rem; background: var(--bg-alt); border-radius: 8px; padding: 10px 12px; margin: 0; }

/* ─── App cards (homepage portal) ─── */
.app-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; color: var(--text); transition: transform 0.15s, border-color 0.15s;
}
a.app-card:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--accent); }
.app-icon { font-size: 2.6rem; margin-bottom: 12px; }
.app-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.app-tagline { color: var(--accent-hover); font-size: 0.9rem; margin-bottom: 10px; }
.app-card > p { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.app-platforms { display: flex; gap: 8px; margin: 14px 0; }
.badge { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 0.78rem; color: var(--text-dim); }
.app-cta { color: var(--accent-hover); font-weight: 600; font-size: 0.92rem; margin-top: auto; }
.app-card-soon { opacity: 0.5; border-style: dashed; }

/* ─── Footer ─── */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
.disclaimer { color: var(--muted); font-size: 0.82rem; max-width: 680px; margin: 0 auto 16px; }
.footer-links { margin-bottom: 12px; font-size: 0.9rem; }
.copyright { color: var(--muted); font-size: 0.8rem; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .site-header nav { gap: 14px; font-size: 0.8rem; }
  .btn { min-width: 160px; padding: 12px 20px; }
}
