/* =============================================================
   Duplicate Photo Cleaner AI — shared stylesheet
   ============================================================= */

:root {
  --bg: #0b1120;
  --bg-soft: #111a2e;
  --card: #16213c;
  --card-2: #1b2745;
  --border: #253357;
  --text: #e6ecff;
  --muted: #9fb0d0;
  --brand: #3b82f6;
  --brand-2: #06b6d4;
  --accent: #22c55e;
  --accent-2: #a855f7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px var(--brand);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 28px -12px var(--brand);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-lg { padding: 15px 28px; font-size: 16px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 26px; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; right: -140px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(59,130,246,.35), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(168,85,247,.22), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.35);
  color: #bfdbfe;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 30px; color: var(--muted); font-size: 14px;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Phone mockup ---------- */
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone {
  width: 270px;
  height: 550px;
  border-radius: 40px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 8px solid #0a0f1e;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  padding: 16px 14px;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #0a0f1e; border-radius: 0 0 14px 14px;
}
.phone-screen {
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(180deg, #0e1a33, #0b1428);
  padding: 34px 14px 14px;
  overflow: hidden;
}
.mock-title { font-weight: 800; font-size: 16px; margin: 6px 4px 4px; }
.mock-sub { color: var(--muted); font-size: 12px; margin: 0 4px 14px; }
.mock-stat {
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(6,182,212,.15));
  border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.mock-stat b { font-size: 24px; display: block; }
.mock-stat small { color: var(--muted); font-size: 11px; }
.mock-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; margin-bottom: 8px;
}
.mock-thumb {
  width: 42px; height: 42px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #334155, #475569);
}
.mock-thumb.b { background: linear-gradient(135deg, #1d4ed8, #06b6d4); }
.mock-thumb.c { background: linear-gradient(135deg, #7c3aed, #db2777); }
.mock-line { height: 8px; border-radius: 6px; background: #2b3a5e; margin-bottom: 6px; }
.mock-line.short { width: 55%; }
.mock-check {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  color: #04210f; font-size: 13px; font-weight: 900; flex: none;
}
.mock-btn {
  margin-top: 10px; text-align: center; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 999px; padding: 11px; color: #fff;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 70px 0; }
.section-tight { padding: 50px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.kicker {
  color: var(--brand-2); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px;
}
.bg-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.5); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(59,130,246,.14); border: 1px solid rgba(59,130,246,.3);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3,1fr); }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat b { font-size: clamp(28px, 4vw, 40px); display: block; background: linear-gradient(135deg,#60a5fa,#22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--brand-2); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(6,182,212,.14));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 30px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; }
.cta-band p { color: var(--muted); font-size: 17px; margin: 0 auto 26px; max-width: 560px; }

/* ---------- Article / prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: #cdd8f0; font-size: 17px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius); margin: 24px 0; border: 1px solid var(--border); }
.prose blockquote {
  border-left: 4px solid var(--brand); margin: 24px 0; padding: 6px 20px;
  background: var(--card); border-radius: 0 10px 10px 0; color: var(--muted);
}
.prose code { background: var(--card-2); padding: 2px 7px; border-radius: 6px; font-size: 15px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.tag {
  display: inline-block; background: rgba(59,130,246,.14); color: #bfdbfe;
  border: 1px solid rgba(59,130,246,.3); padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin: 22px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Blog cards ---------- */
.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.5); text-decoration: none; }
.post-thumb { height: 150px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 44px; }
.post-thumb.p { background: linear-gradient(135deg, #7c3aed, #db2777); }
.post-thumb.g { background: linear-gradient(135deg, #059669, #06b6d4); }
.post-body { padding: 22px; }
.post-body h3 { margin: 0 0 8px; font-size: 19px; color: var(--text); }
.post-body p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.read-more { font-weight: 700; color: var(--brand-2); font-size: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 14px; letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 54px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #c3cfea; font-size: 15px; }
.footer-about p { color: var(--muted); font-size: 15px; margin: 12px 0 0; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .phone-wrap { margin-top: 20px; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 18px;
    transform: translateY(-140%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}
