/* YouTube Auto-Dub — product site styles (shared by index.html and privacy-policy.html) */
:root {
  --bg: #0b0f19;
  --bg-soft: #111827;
  --bg-card: #131c2e;
  --line: #1f2937;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Sinhala", "Noto Sans Tamil", sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

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

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

/* ---- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav a:hover { color: #fff; background: var(--bg-soft); text-decoration: none; }
.nav .nav-dev {
  color: #fff;
  border: 1px solid #334155;
}
.nav .nav-dev:hover { border-color: var(--accent); }

/* ---- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35); }
.btn-primary:hover { background: #0369a1; }
.btn-ghost { color: #fff; border-color: #334155; }
.btn-ghost:hover { border-color: var(--accent); }

/* ---- Hero */
.hero {
  padding: 64px 0 40px;
  background: radial-gradient(1000px 420px at 50% -10%, rgba(56, 189, 248, 0.18), transparent 70%);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
}
.hero h1 {
  margin: 18px auto 14px;
  max-width: 820px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
  color: #fff;
}
.hero h1 span { color: var(--accent); }
.hero .lead {
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: 18px;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-image {
  margin: 40px auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* ---- Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 34px); color: #fff; margin: 0 0 10px; line-height: 1.25; }
.section-head p { color: var(--muted); margin: 0; }

/* ---- Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  font-size: 20px;
  margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.steps h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Screenshots */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.gallery figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }
.gallery figcaption strong { color: #fff; }

/* ---- Languages */
.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.lang-cloud li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 14px;
}
.lang-cloud li.hl { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ---- FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---- Call to action band */
.cta-band {
  text-align: center;
  background: linear-gradient(160deg, #0c4a6e, #0b0f19 70%);
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 10px; }
.cta-band p { color: var(--muted); margin: 0 auto 24px; max-width: 620px; }

/* ---- Developer */
.developer {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.developer h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.developer p { margin: 0; color: var(--muted); }
.developer .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.coffee img { height: 44px; width: auto; }

/* ---- Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }

/* ---- Privacy policy page */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { color: #fff; font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: #cbd5e1; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .summary-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
}
.doc .summary-box ul { margin: 8px 0 0; }
.table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: #fff; background: var(--bg-soft); }
.doc code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; font-size: 14px; }

@media (max-width: 640px) {
  .nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
  .hero { padding-top: 40px; }
  section { padding: 48px 0; }
}
