:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0B1220;
  --ink-muted: #55607A;
  --accent: #2563EB;
  --accent-deep: #1D3A8A;
  --border: #E2E8F0;
  --max-width: 1080px;

  /* Secondary accents, used purposefully (not decoratively) to add variety
     and help scan content types apart: teal for guides, violet for
     comparisons, amber for announcements. */
  --teal: #0D9488;
  --violet: #7C3AED;
  --amber: #D97706;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--accent); }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}

.brand svg { width: 26px; height: 26px; }

.beta-badge {
  display: inline-block;
  background: var(--amber);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  font-size: 15px;
}

.nav-links a { margin-left: 28px; }
.nav-links a:first-child { margin-left: 0; }

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); }

.lang-switch a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
}

.coffee-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
}

.coffee-link:hover {
  background: var(--accent);
  color: white;
}

.github-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
}

.github-link:hover { color: var(--ink); border-color: var(--ink-muted); }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 88px;
}

.hero .wrap {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: center;
}

.hero .wrap > div:first-child {
  flex: 1.1;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero-art {
  display: flex;
  justify-content: center;
  flex: 0.9;
}

.hero-art svg { width: 280px; height: 280px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn:active {
  transform: translateY(0) scale(0.97);
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-disabled {
  background: #CBD5E1;
  color: #475569;
  cursor: default;
  pointer-events: none;
}

.btn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-note {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  max-width: 40ch;
}

.section-sub {
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 40px;
}

/* ---------- Features ---------- */

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature {
  width: 50%;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  box-sizing: border-box;
}

.feature:nth-child(4n+2) { border-left-color: var(--teal); }
.feature:nth-child(4n+3) { border-left-color: var(--violet); }
.feature:nth-child(4n+4) { border-left-color: var(--amber); }

.feature:nth-child(odd) { padding-right: 24px; }

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 15px;
}

/* ---------- Privacy band ---------- */

.band-dark {
  background: var(--ink);
  color: #E7ECF7;
}

.band-dark .section-sub { color: #9AA6C3; }

.privacy-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-top: 8px;
}

.privacy-points div {
  width: calc(50% - 20px);
  box-sizing: border-box;
}

.privacy-points div h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #FFFFFF;
}

.privacy-points div p {
  margin: 0;
  font-size: 14.5px;
  color: #9AA6C3;
}

/* ---------- Free forever ---------- */

.free-forever {
  text-align: center;
  padding: 72px 0;
}

.free-forever .tagline {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin: 0 auto 14px;
}

.free-forever p {
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- Screenshots placeholder ---------- */

.screenshot-placeholder {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 64px 24px;
  text-align: center;
  color: var(--ink-muted);
  background: var(--surface);
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--ink-muted);
}

/* ---------- Download band ---------- */

.download-band {
  background: linear-gradient(135deg, #DBEAFE 0%, #EDE9FE 100%);
  border: none;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.download-band h2 {
  font-size: 26px;
  margin: 0 0 10px;
  border-left: none !important;
  padding-left: 0 !important;
}

.download-band p {
  color: var(--ink-muted);
  margin: 0 0 26px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--ink-muted);
  font-size: 13.5px;
}

footer .foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

footer .disclosure {
  max-width: 60ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero .wrap { flex-direction: column; }
  .hero-art { order: -1; }
  .hero-art svg { width: 200px; height: 200px; }
  .hero h1 { font-size: 32px; }
  .feature { width: 100%; }
  .feature:nth-child(odd) { padding-right: 0; }
  .privacy-points div { width: 100%; }
  .nav .wrap { flex-wrap: wrap; row-gap: 12px; }
  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }
  .nav-links a { margin: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Feature card hover ---------- */

.feature {
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateX(4px);
}

/* ---------- Content pages (Privacy, About, Blog articles) ---------- */

.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px 96px;
}

.content-page h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.content-page .page-lead {
  color: var(--ink-muted);
  font-size: 17px;
  margin: 0 0 40px;
}

.content-page h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.content-page p {
  margin: 0 0 18px;
}

.content-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.content-page li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover { color: var(--ink); }

/* ---------- Blog index ---------- */

.blog-list {
  border-top: 1px solid var(--border);
}

.blog-item {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.blog-item .blog-date {
  color: var(--ink-muted);
  font-size: 13.5px;
  margin-bottom: 6px;
}

.blog-item h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.blog-item p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 15px;
}

.blog-item:hover h3 { color: var(--accent); }

.article-meta {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.cta-box {
  background: linear-gradient(135deg, #DBEAFE, #F5F3FF);
  border: none;
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
}

.cta-box p { margin: 0 0 14px; font-weight: 500; }
.cta-box p:last-child { margin-bottom: 0; }

/* ---------- Blog cards (prettier than a plain hairline list) ---------- */

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: var(--accent);
}

.blog-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.blog-tag-guide { background: var(--teal); }
.blog-tag-comparison { background: var(--violet); }
.blog-tag-announcement { background: var(--amber); }
.blog-tag-mobile { background: #E11D48; }

.blog-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.blog-card p {
  color: var(--ink-muted);
  margin: 0 0 10px;
  font-size: 15px;
}

.blog-card .blog-read-more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.blog-card:hover h3 { color: var(--accent); }

.blog-card-pinned {
  border: 2px solid var(--amber);
}

.pinned-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 6px;
}

/* ---------- Article header ---------- */

.article-header {
  margin-bottom: 8px;
}

.article-tag {
  display: inline-block;
  background: var(--accent-deep);
  color: white;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-tag-guide { background: var(--teal); }
.article-tag-comparison { background: var(--violet); }
.article-tag-announcement { background: var(--amber); }
.article-tag-mobile { background: #E11D48; }
