/* ===== Variables ===== */
:root {
  --bg:             #0f1420;
  --bg-surface:     #19243a;
  --bg-hover:       #20304e;
  --bg-deep:        #121c30;
  --accent:         #4fc3f7;
  --accent-glow:    rgba(79,195,247,0.22);
  --text:           #e4eaf4;
  --text-muted:     #7a8da8;
  --text-dim:       #394a64;
  --border:         #1c2b45;
  --border-light:   #28405e;
  --green:          #4caf82;
  --gold:           #f0c040;
  --radius:         12px;
  --radius-sm:      8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.88em; color: var(--accent);
}
strong { color: var(--text); }

/* ===== Layout ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.site-nav {
  background: rgba(15,20,32,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-nav .container {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 15px; padding-bottom: 15px;
}
.nav-brand { color: var(--accent); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--text-muted); padding: 6px 13px;
  border-radius: 6px; font-size: 0.93rem;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: var(--bg-surface); text-decoration: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 28px;
  border-radius: var(--radius-sm); font-family: inherit;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s; border: none; line-height: 1;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #0c1522; }
.btn-primary:hover { box-shadow: 0 4px 22px var(--accent-glow); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-gold { background: var(--gold); color: #1a1200; }
.btn-disabled, .btn-disabled:hover {
  background: var(--bg-surface); color: var(--text-dim);
  cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border); padding: 26px 0;
  margin-top: 80px; color: var(--text-dim); font-size: 0.88rem;
}
.site-footer .container {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ===== Hero ===== */
.hero { padding: 80px 0 56px; text-align: center; }
.hero-eyebrow {
  display: inline-block; background: var(--bg-surface);
  border: 1px solid var(--border-light); color: var(--accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  color: var(--text); line-height: 1.18; margin-bottom: 18px; letter-spacing: -0.025em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 1.12rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.hero-note { font-size: 0.83rem; color: var(--text-dim); margin-top: 10px; }

/* ===== App window frame ===== */
.app-window {
  max-width: 860px; margin: 60px auto 0;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.75), 0 0 0 1px var(--border);
}
.app-bar {
  background: #16203a; height: 36px;
  display: flex; align-items: center; padding: 0 14px; gap: 7px;
  border-bottom: 1px solid var(--border);
}
.win-dot { width: 11px; height: 11px; border-radius: 50%; }
.win-r { background: #ff5f57; } .win-y { background: #ffbd2e; } .win-g { background: #28c840; }
.app-bar-title {
  flex: 1; text-align: center; font-size: 0.78rem;
  color: var(--text-dim); letter-spacing: 0.04em;
}
.app-window img { display: block; width: 100%; height: auto; }

/* ===== Feature pillars (index) ===== */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding: 64px 0; }
.pillar {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.15s, background 0.15s;
}
.pillar:hover { border-color: var(--border-light); background: var(--bg-hover); }
.pillar-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.pillar h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 8px; }
.pillar p { color: var(--text-muted); font-size: 0.91rem; line-height: 1.6; }

/* ===== Privacy banner ===== */
.privacy-banner {
  background: linear-gradient(100deg, #0c2318 0%, #0a1f35 100%);
  border: 1px solid #1a4030; border-radius: var(--radius);
  padding: 22px 28px; margin-bottom: 48px;
}
.privacy-banner h2 {
  color: var(--green); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.privacy-items { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; }
.privacy-items li {
  color: #8ecfae; font-size: 0.93rem;
  display: flex; align-items: center; gap: 8px;
}
.privacy-items li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ===== Feature grid ===== */
.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-heading { font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); margin-bottom: 32px; font-size: 0.97rem; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; margin-bottom: 52px;
}
.feature-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  transition: background 0.15s, border-color 0.15s;
}
.feature-card:hover { background: var(--bg-hover); border-color: var(--border-light); }
.feature-icon { font-size: 1.7rem; margin-bottom: 12px; display: block; }
.feature-card h3 { color: var(--text); font-size: 0.97rem; font-weight: 600; margin-bottom: 10px; }
.feature-card ul { list-style: none; }
.feature-card li {
  color: var(--text-muted); font-size: 0.87rem; line-height: 1.55;
  padding: 3px 0 3px 14px; position: relative;
}
.feature-card li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

/* ===== Premium box ===== */
.premium-box {
  background: var(--bg-deep); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 28px; margin-bottom: 44px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
}
.premium-box-text h2 { color: var(--gold); font-size: 1.1rem; margin-bottom: 8px; }
.premium-box-text p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }
.premium-box-text ul { list-style: none; }
.premium-box-text li {
  color: var(--text-muted); font-size: 0.9rem;
  padding: 3px 0 3px 16px; position: relative;
}
.premium-box-text li::before { content: '★'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 5px; }
.premium-box-cta { flex-shrink: 0; display: flex; align-items: center; }

/* ===== Download page ===== */
.version-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: 20px; padding: 4px 14px; font-size: 0.84rem; color: var(--text-muted);
}
.version-badge .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dl-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.dl-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: border-color 0.15s;
}
.dl-card:hover { border-color: var(--border-light); }
.dl-card.muted { opacity: 0.5; }
.dl-info { display: flex; align-items: center; gap: 16px; }
.dl-icon {
  width: 44px; height: 44px; background: var(--bg-deep);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.dl-name { color: var(--text); font-weight: 600; font-size: 1rem; margin-bottom: 3px; }
.dl-meta { color: var(--text-muted); font-size: 0.85rem; }
.terms-note { text-align: center; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 40px; }
.terms-note a { color: var(--text-muted); }
.terms-note a:hover { color: var(--accent); }

/* ===== Sponsor page ===== */
.sponsor-section { margin-bottom: 36px; }
.sponsor-section h2 {
  color: var(--accent); font-size: 1.1rem;
  padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.sponsor-section p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 16px; }
.sponsor-section ul { color: var(--text-muted); font-size: 0.93rem; padding-left: 20px; }
.sponsor-section li { margin-bottom: 6px; }
.sponsor-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sponsor-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; text-align: center;
  transition: background 0.15s, border-color 0.15s; display: block; color: var(--text);
}
.sponsor-card:hover { background: var(--bg-hover); border-color: var(--border-light); text-decoration: none; }
.sponsor-card.gold { border-color: var(--gold); }
.sc-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.sc-title { font-weight: 600; font-size: 0.97rem; margin-bottom: 4px; color: var(--accent); }
.sc-title-gold { color: var(--gold); }
.sc-desc { font-size: 0.85rem; color: var(--text-muted); }
.thanks { text-align: center; padding: 28px 0 0; color: var(--text-muted); font-size: 0.95rem; }
.thanks .heart { color: #e91e63; font-size: 1.5rem; margin-bottom: 8px; display: block; }

/* ===== CTA block ===== */
.cta-block { text-align: center; padding: 40px 0 10px; }
.cta-block .btn + .btn { margin-left: 12px; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { padding: 56px 0 40px; }
  .dl-card { flex-direction: column; align-items: flex-start; }
  .dl-card .btn { width: 100%; text-align: center; }
  .premium-box { flex-direction: column; }
  .site-nav .container { flex-wrap: wrap; gap: 6px; }
}
