/* ============================================
   Don't Let YouTube Track You -- Website Styles
   Modern dark theme with glassmorphism & gradients
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

/* ===== CSS Custom Properties ===== */
:root {
  --bg-base: #070712;
  --bg-elevated: #0f0f23;
  --bg-card: rgba(26, 26, 46, 0.6);
  --bg-card-hover: rgba(34, 34, 60, 0.85);

  --text-primary: #f3f3f9;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a85;

  --accent: #ff2b2b;
  --accent-hover: #ff4848;
  --accent-soft: rgba(255, 43, 43, 0.14);
  --accent-glow: rgba(255, 43, 43, 0.35);

  --gradient-hero: linear-gradient(135deg, #ff2b2b 0%, #ff6b6b 55%, #ff9e6b 100%);
  --gradient-red: linear-gradient(135deg, #ff2b2b, #cc0000);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 48px var(--accent-glow);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Typography ===== */
body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

/* ===== Animated Background ===== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 800px 600px at 15% -5%, rgba(255, 43, 43, 0.18), transparent 60%),
    radial-gradient(ellipse 900px 700px at 100% 20%, rgba(120, 0, 180, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(0, 120, 215, 0.10), transparent 60%),
    var(--bg-base);
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 85%);
  pointer-events: none;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* ===== Site Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background-color: rgba(7, 7, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--text-primary);
  opacity: 0.85;
}

.nav-brand svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-github:hover {
  border-color: var(--border-strong);
  background-color: rgba(255, 255, 255, 0.04);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 43, 43, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(255, 43, 43, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background-color: rgba(255, 255, 255, 0.03);
}

.btn-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 7rem 0 6rem;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-dot 2.2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fade-up 0.7s var(--ease) both;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.hero .subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  animation: fade-up 0.8s 0.1s var(--ease) both;
}

.hero .btn-group {
  justify-content: center;
  animation: fade-up 0.9s 0.2s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  animation: fade-up 1s 0.3s var(--ease) both;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta span {
  color: var(--accent);
  font-weight: 700;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ===== Features ===== */
.section-features {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 50%, transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 43, 43, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background-color: var(--bg-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== How It Works ===== */
.section-steps {
  padding: 5rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step {
  padding: 2rem 1.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.step-number {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-soft);
  border-radius: 999px;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ===== Privacy Section ===== */
.privacy-section {
  padding: 4rem 0 5rem;
}

.privacy-card {
  background: linear-gradient(135deg, rgba(255, 43, 43, 0.06), rgba(120, 0, 180, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.privacy-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 43, 43, 0.18), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.privacy-card > * {
  position: relative;
  z-index: 1;
}

.privacy-card p {
  max-width: 680px;
  margin: 1rem auto 2rem;
  font-size: 1.05rem;
}

.privacy-links {
  display: inline-flex;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== FAQ Section ===== */
.section-faq {
  padding: 4rem 0 5rem;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.faq-item[open] {
  border-color: var(--accent-soft);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  animation: faq-fade 0.3s var(--ease);
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p {
  margin-top: 0.85rem;
}

.faq-answer ul {
  padding-left: 1.25rem;
  margin: 0;
}

.faq-answer li {
  margin-bottom: 0.55rem;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--text-primary);
  font-weight: 600;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.faq-answer a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.faq-answer code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

@keyframes faq-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .faq-item summary {
    padding: 1rem 1.1rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1.1rem 1.15rem;
    font-size: 0.95rem;
  }
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 5rem 0 6rem;
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-section .btn-group {
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background-color: rgba(7, 7, 18, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.footer-brand:hover {
  color: var(--text-primary);
  opacity: 0.85;
}

.footer-brand svg {
  width: 30px;
  height: 30px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-copy a:hover {
  color: var(--accent);
}

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

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .nav-links a:not(.nav-github) {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 0.85rem 1.4rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .hero .btn-group,
  .cta-section .btn-group,
  .privacy-links {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-brand span {
    display: none;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
