/* ============================================================
   gallery-dlp Windows Helper — style.css
   Theme: dark + green accent #16a34a
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #16a34a;
  --green-hover:  #15803d;
  --green-dim:    #14532d;
  --green-glow:   rgba(22,163,74,.18);

  --dark-1:  #0a0a0a;
  --dark-2:  #111111;
  --dark-3:  #181818;
  --dark-4:  #1f1f1f;

  --border-dark:  #2a2a2a;
  --border-light: #e5e7eb;

  --text:    #f3f4f6;
  --muted:   #6b7280;
  --off-white: #f9fafb;

  --radius-sm: 8px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--dark-1);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: .88em;
  background: var(--dark-4);
  color: #a3e635;
  padding: 2px 6px;
  border-radius: 4px;
}

kbd {
  display: inline-block;
  font-size: .78em;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 1px 6px;
  color: #d1d5db;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: var(--green-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-dark);
}
.btn-ghost:hover { background: var(--dark-3); border-color: #444; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; color: #fff; }

.nav-logo {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  font-size: 13px;
  color: #9ca3af;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--dark-3);
}

.nav-cta {
  font-size: 13px;
  font-weight: 700;
  background: var(--green);
  color: #fff;
  padding: 7px 14px;
  border-radius: 7px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.nav-cta:hover { background: var(--green-hover); text-decoration: none; color: #fff; }

/* ── Hero ── */
.hero {
  padding: 72px 0 64px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(22,163,74,.12) 0%, transparent 70%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: .03em;
}
.hero-tag-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: .35; }
}

.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 780px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: 17px;
  color: #9ca3af;
  max-width: 620px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 12px;
  color: #4b5563;
}
.hero-meta a { color: #6b7280; }
.hero-meta a:hover { color: #9ca3af; }

/* ── Trust bar ── */
.trust-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 0;
  overflow-x: auto;
}
.trust-items {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .02em;
}
.trust-item svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Sections ── */
.section-dark  { background: var(--dark-1); padding: 56px 0; border-top: 1px solid var(--border-dark); }
.section-light { background: var(--off-white); padding: 56px 0; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  color: #fff;
}
.section-light .section-title { color: #111; }

.section-sub {
  font-size: 15px;
  color: #9ca3af;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.section-light .section-sub { color: #4b5563; }

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat-card {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .2s;
}
.feat-card:hover { border-color: var(--green-dim); }

.feat-icon {
  width: 40px; height: 40px;
  background: var(--green-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feat-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
  line-height: 1.4;
}
.feat-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity .2s;
}
.step-card:hover::before { opacity: 1; }

.step-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
}
.step-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
}
.step-card a { color: var(--green); }

/* ── Command blocks ── */
.cmd-list { display: flex; flex-direction: column; gap: 12px; }

.cmd-block {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.cmd-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 8px;
}

code.code {
  display: block;
  font-size: 13px;
  color: #a3e635;
  background: var(--dark-1);
  border: 1px solid #1f2a1f;
  border-radius: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  white-space: pre;
}

/* ── Cards ── */
.card-dark {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-light {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* ── Guide links ── */
.guides-grid { display: flex; flex-direction: column; gap: 8px; }

.guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.guide-link:hover {
  border-color: var(--green-dim);
  background: var(--dark-4);
  text-decoration: none;
}

.guide-link-l { display: flex; align-items: center; gap: 14px; }

.guide-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.guide-link h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.guide-link p {
  font-size: 12px;
  color: #6b7280;
}

.guide-arr {
  font-size: 20px;
  color: #374151;
  flex-shrink: 0;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 48px 0 40px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(22,163,74,.09) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-dark);
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 12px;
  max-width: 780px;
  line-height: 1.18;
}

.lead {
  font-size: 16px;
  color: #9ca3af;
  max-width: 620px;
  line-height: 1.65;
}
.lead a { color: var(--green); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 6px; }

details {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s;
}
details[open] { border-color: var(--green-dim); }

summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: #4b5563;
  flex-shrink: 0;
}
details[open] summary::after { content: '−'; color: var(--green); }

.faq-body {
  padding: 0 18px 16px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.75;
  border-top: 1px solid var(--border-dark);
  padding-top: 14px;
}
.faq-body a { color: var(--green); }
.faq-body code { font-size: .85em; }

/* ── Footer ── */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-dark);
  padding: 36px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #9ca3af;
}

.footer-logo {
  width: 24px; height: 24px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo svg { width: 13px; height: 13px; fill: #fff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  color: #4b5563;
  text-decoration: none;
}
.footer-links a:hover { color: #9ca3af; }

.footer-note {
  font-size: 11px;
  color: #374151;
  line-height: 1.65;
  max-width: 680px;
}
.footer-note a { color: #4b5563; }
.footer-note a:hover { color: #6b7280; }

/* ── Prose (privacy/terms) ── */
.prose h2 { font-size:17px; font-weight:700; color:#fff; margin:24px 0 8px; }
.prose p, .prose li { font-size:14px; color:#6b7280; line-height:1.8; }
.prose ul { padding-left:20px; margin:8px 0; }
.prose .card-dark { margin-bottom:2px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .hero h1       { font-size: 26px; }
  .nav-links     { display: none; }
  .hero          { padding: 48px 0 40px; }
}
