/* ==========================================================================
   Video Downloader 8K — site styles.
   One file, no preprocessor, no external fonts (system stack = fast + zero
   CSP exceptions). Light, clean, trustworthy — the visual opposite of the
   spammy downloader sites we're competing with.
   ========================================================================== */

:root {
  --ink:        #0b1220;   /* near-black navy text            */
  --ink-soft:   #46505f;   /* secondary text                 */
  --bg:         #ffffff;
  --bg-alt:     #f5f7fb;   /* alternating section background  */
  --line:       #e3e8f0;
  --brand:      #2563eb;   /* primary blue                    */
  --brand-dark: #1d4ed8;
  --accent:     #06b6d4;   /* cyan accent                     */
  --hero-1:     #0b1220;
  --hero-2:     #15264a;
  --radius:     14px;
  --maxw:       1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: .8rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--brand-dark);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm  { padding: .45rem .9rem; font-size: .92rem; box-shadow: none; }
.btn-lg  { padding: 1rem 2rem; font-size: 1.15rem; }
.btn-disabled {
  background: #94a3b8; border-color: #94a3b8; box-shadow: none;
  cursor: not-allowed; pointer-events: none;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand-name { font-size: 1.02rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.btn { color: #fff; }

/* ---------------------------------------------------------------- hero */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, var(--hero-2), var(--hero-1));
  color: #fff;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero h1 { color: #fff; }
.hero .lede {
  max-width: 720px; margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #cdd7e6;
}
.hero strong { color: #fff; }
.cta { margin-bottom: 1.5rem; }
.cta-meta { color: #9fb0c7; font-size: .9rem; margin: .7rem 0 0; }
.trust-row {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem;
  color: #b9c6da; font-size: .95rem; font-weight: 600;
}

/* Product screenshot — bleeds down out of the dark hero into the page. */
.hero-shot { max-width: 920px; margin: 3rem auto -6rem; position: relative; z-index: 2; }
.hero-shot img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -15px rgba(2, 8, 23, .55);
}
/* Give the first section room to clear the overlapping screenshot. */
.hero + .section { padding-top: 8rem; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { text-align: center; }
.section-lede { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; color: var(--ink-soft); }

/* steps */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
}

/* chips */
.chip-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.chip-grid li {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.1rem; font-weight: 600; color: var(--ink); font-size: .95rem;
}

/* features */
.feature-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature h3 { color: var(--ink); }
.feature p { color: var(--ink-soft); margin: 0; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.2rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 1.1rem; margin: 0; }

/* final cta band */
.cta-band { background: linear-gradient(135deg, var(--hero-2), var(--hero-1)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .section-lede { color: #cdd7e6; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer-inner p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.footer-nav { display: flex; gap: 1.2rem; }
.footer-nav a { color: var(--ink-soft); font-size: .92rem; font-weight: 600; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 760px) {
  .nav { gap: .9rem; }
  .nav a:not(.btn) { display: none; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .hero-shot { margin-bottom: -3rem; }
  .hero + .section { padding-top: 5rem; }
}
