/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --primary:         #6366F1;
  --primary-dark:    #4F46E5;
  --secondary:       #8B5CF6;
  --accent:          #F472B6;
  --success:         #10B981;
  --error:           #EF4444;

  --bg-start:        #F0F4FF;
  --bg-end:          #FDF4FF;

  --text-primary:    #1E293B;
  --text-muted:      #64748B;

  --surface:         #FFFFFF;
  --surface-variant: #F1F5F9;
  --outline:         #E2E8F0;

  --radius-card:     12px;
  --radius-btn:      28px;
  --shadow-card:     0 4px 16px rgba(99, 102, 241, 0.10);
  --shadow-btn:      0 4px 12px rgba(99, 102, 241, 0.30);

  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-start:        #0F172A;
    --bg-end:          #1E1B4B;
    --text-primary:    #F1F5F9;
    --text-muted:      #94A3B8;
    --surface:         #1E293B;
    --surface-variant: #0F172A;
    --outline:         #334155;
    --shadow-card:     0 4px 16px rgba(0, 0, 0, 0.40);
  }
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
  background-attachment: fixed;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-full { width: 100%; justify-content: center; }

/* ── HEADER / NAV ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(15, 23, 42, 0.85);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-logo img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

/* ── LANGUAGE PICKER ───────────────────────────────────────── */
.lang-picker {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1.5px solid var(--outline);
  border-radius: 8px;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.lang-picker:hover  { border-color: var(--primary); }
.lang-picker:focus  { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-icon {
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* ── WHY BLINKZY ───────────────────────────────────────────── */
.why {
  padding: 4rem 0;
  background: var(--surface);
}

.why-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.why-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-card);
  padding: 2rem 2.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-btn);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
  margin-top: 0.25rem;
  max-width: 120px;
}

.why-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.why-text p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.why-cta-text {
  color: var(--text-primary) !important;
  font-size: 1.05rem;
}

/* ── FEATURES ──────────────────────────────────────────────── */
.features {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--outline);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ── DOWNLOAD ──────────────────────────────────────────────── */
.download {
  padding: 4rem 0 5rem;
  background: var(--surface);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.download-card {
  background: var(--surface-variant);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-card-android {
  border-color: var(--success);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.platform-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.download-card-android .platform-icon {
  color: var(--success);
}

.download-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.download-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.download-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.download-card-android .download-price {
  color: var(--success);
}

.download-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: var(--surface-variant);
  line-height: 1.4;
}

.download-note--warn {
  color: #92400e;
  background: #fef3c7;
}

@media (prefers-color-scheme: dark) {
  .download-note--warn {
    color: #fcd34d;
    background: rgba(252, 211, 77, 0.1);
  }
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-variant);
  border-top: 1px solid var(--outline);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.footer-logo img { border-radius: 6px; }

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); }

/* ── BLOG — shared styles (used by blog/*.html too) ────────── */
.blog-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-back {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}
.blog-back:hover { text-decoration: underline; }

/* Download CTA banner (used in blog posts) */
.post-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  color: #fff;
  margin-top: 3rem;
}
.post-cta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.post-cta p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
}
.post-cta .btn-outline {
  border-color: #fff;
  color: #fff;
}
.post-cta .btn-outline:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

/* ── ARTICLE PAGES ─────────────────────────────────────────── */
.article-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--outline);
}
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 740px;
  margin-bottom: 0.75rem;
}
.article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.article-body {
  max-width: 740px;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 1rem;
}
.article-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.article-body li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.article-body strong { color: var(--text-primary); }
.article-body a { color: var(--primary); }
.article-body a:hover { text-decoration: underline; }
.article-tip {
  background: var(--surface-variant);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.article-tip p { margin-bottom: 0; }

.related-posts {
  max-width: 740px;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}
.related-posts h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: background 0.15s;
}
.related-card:hover { background: var(--surface-variant); text-decoration: none; }
.related-card span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .why-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why-stat { flex-direction: row; gap: 1rem; padding: 1.25rem 1.75rem; }
  .stat-number { font-size: 2.5rem; }
  .stat-label { text-align: left; max-width: none; }

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

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
