/*
Theme Name: Advanced Download Manager
Theme URI: https://advanceddownloadmanager.net
Author: Advanced Download Manager
Description: Modern, light landing theme for the Advanced Download Manager (ADM) desktop app and browser add-ons.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: adm
*/

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-soft-2: #eef4fa;
  --ink: #16283a;
  --ink-soft: #5a7186;
  --brand: #1091d6;
  --brand-dark: #0a6ea6;
  --border: #e4edf5;
  --shadow: 0 10px 30px rgba(16, 38, 58, 0.09);
  --shadow-sm: 0 4px 14px rgba(16, 38, 58, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }

/* ---------- Icon tiles (line icons, solid tints) ---------- */
.ic { border-radius: 14px; display: grid; place-items: center; flex: none; }
.ic svg { width: 26px; height: 26px; }
.ic.blue    { background: #e7f2fb; color: #1091d6; }
.ic.magenta { background: #fbe6f2; color: #c9178a; }
.ic.orange  { background: #fdece0; color: #d95f14; }
.ic.green   { background: #e7f5ec; color: #1f8f47; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 650; font-size: 16px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(16, 145, 214, .26); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 70px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; white-space: nowrap; flex: none; }
.nav-links { display: flex; gap: 24px; margin-left: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 550; font-size: 15px; white-space: nowrap; transition: color .15s ease; }
.nav-links a:hover { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-form { display: inline-flex; margin: 0; }
.lang-switch { appearance: none; -webkit-appearance: none; height: 38px; line-height: 1; background-color: #fff; border: 1px solid var(--border); color: var(--ink); border-radius: 999px; padding: 0 34px 0 14px; font-size: 14px; font-weight: 550; cursor: pointer; max-width: 160px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7186' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.lang-switch:hover { border-color: var(--brand); }
.lang-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); color: var(--brand-dark);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 650;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.pill svg { width: 15px; height: 15px; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

.hero-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; }
.hero-card .row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: var(--bg-soft); margin-bottom: 12px; }
.hero-card .row:last-child { margin-bottom: 0; }
.hero-card .ic { width: 42px; height: 42px; border-radius: 10px; }
.hero-card .ic svg { width: 22px; height: 22px; }
.hero-card .row b { display: block; font-size: 15px; }
.hero-card .row span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.section-head h2 { font-size: 38px; letter-spacing: -.02em; margin: 10px 0 14px; }
.section-head p { font-size: 17px; color: var(--ink-soft); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { width: 52px; height: 52px; margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ---------- How it works ---------- */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 40px; }
.arch-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.arch-card .ic { width: 54px; height: 54px; margin-bottom: 16px; }
.arch-card h3 { font-size: 21px; margin-bottom: 10px; }
.arch-card > p { color: var(--ink-soft); margin-bottom: 18px; }
.arch-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.arch-card li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); align-items: flex-start; }
.arch-card li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.flow-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.flow-step .n { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 750; color: #fff; background: var(--brand); margin-bottom: 12px; }
.flow-step b { display: block; margin-bottom: 6px; font-size: 16px; }
.flow-step p { color: var(--ink-soft); font-size: 13.5px; }

.how-note { display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; color: var(--ink-soft); font-size: 15px; background: var(--bg-soft-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 22px; max-width: 820px; margin: 0 auto; }
.how-note svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ---------- Download ---------- */
.dl-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.dl-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.dl-card .os { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dl-card .os .logo { width: 34px; height: 34px; }
.dl-card .os h3 { font-size: 20px; }
.dl-card .ver { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.dl-buttons { display: flex; flex-direction: column; gap: 10px; }
.dl-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); font-weight: 600; transition: border-color .15s ease, background .15s ease; }
.dl-btn:hover { border-color: var(--brand); background: #fff; }
.dl-btn svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.dl-btn .fmt { color: var(--ink-soft); font-size: 13px; font-weight: 500; margin-left: auto; }
.dl-btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.dl-btn.primary svg { color: #fff; }
.dl-btn.primary .fmt { color: rgba(255,255,255,.85); }

.req-card { background: var(--bg-soft-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.req-card h3 { font-size: 18px; margin-bottom: 14px; }
.req-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.req-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); align-items: flex-start; }
.req-list li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }

/* ---------- Extensions ---------- */
.ext-note { display: flex; align-items: center; gap: 12px; background: var(--bg-soft-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; max-width: 780px; margin: 0 auto 34px; font-size: 15px; color: var(--ink); }
.ext-note svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.ext-note a { color: var(--brand-dark); text-decoration: underline; }
.ext-note strong { color: var(--ink); font-weight: 650; }
.ext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ext-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; }
.ext-card .ic { width: 60px; height: 60px; margin-bottom: 16px; }
.ext-card .ic svg { width: 30px; height: 30px; }
.ext-card h3 { font-size: 19px; margin-bottom: 6px; }
.ext-card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.ext-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.badge-soon { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--border); padding: 10px 0; border-radius: 999px; width: 100%; }

/* ---------- CTA ---------- */
.cta { background: var(--brand); border-radius: 24px; padding: 56px; text-align: center; color: #fff; }
.cta h2 { font-size: 34px; margin-bottom: 12px; letter-spacing: -.02em; }
.cta p { font-size: 17px; opacity: .92; margin-bottom: 26px; }
.cta .btn { background: #fff; color: var(--brand-dark); }
.cta .btn:hover { transform: translateY(-2px); }
.cta .btn svg { color: var(--brand-dark); }

/* ---------- SEO content ---------- */
.seo-inner { max-width: 820px; margin: 0 auto; }
.seo-inner h2 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 16px; }
.seo-inner h3 { font-size: 19px; margin: 26px 0 8px; }
.seo-inner p { color: var(--ink-soft); margin-bottom: 14px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-soft); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--brand); }

/* ---------- Prose (long-form pages: privacy, terms) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 40px; letter-spacing: -.02em; margin-bottom: 28px; }
.prose h2 { font-size: 23px; letter-spacing: -.01em; margin: 38px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p { color: var(--ink); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; color: var(--ink); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand-dark); text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose .updated { color: var(--ink-soft); font-size: 14px; margin: -16px 0 30px; }
.prose .note { background: var(--bg-soft-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 18px 0; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .dl-wrap, .arch, .flow { grid-template-columns: 1fr; }
  .features, .ext-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .cta { padding: 40px 24px; }
}
