:root {
  --bg-dark: #070913;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(16, 185, 129, 0.35);
  
  --primary: #10b981;
  --primary-cyan: #06b6d4;
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Glow Background Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: #10b981;
  top: -150px;
  right: -100px;
}
.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: #06b6d4;
  bottom: 10%;
  left: -200px;
}
.bg-glow-3 {
  width: 450px;
  height: 450px;
  background: #3b82f6;
  top: 40%;
  right: 15%;
  opacity: 0.2;
}

/* Glassmorphism */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

/* Typography & Gradients */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #030712;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Header */
.header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto;
  max-width: 1200px;
  width: 92%;
  border-radius: var(--radius-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.logo-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-select {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Layout */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 80px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 40px;
  padding: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Interactive Simulator Section */
.simulator-section {
  margin: 60px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.simulator-box {
  padding: 28px;
}

.sim-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sim-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-preset-btn:hover, .sim-preset-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
  color: var(--text-main);
}

.sim-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.sim-url-input {
  flex: 1;
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-main);
  font-family: var(--font-code);
  font-size: 0.95rem;
  outline: none;
}

.sim-url-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.sim-results-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.audit-score-card {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 6px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.score-circle.grade-A { border-color: #10b981; color: #10b981; box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); }
.score-circle.grade-B { border-color: #3b82f6; color: #3b82f6; box-shadow: 0 0 25px rgba(59, 130, 246, 0.4); }
.score-circle.grade-C { border-color: #f59e0b; color: #f59e0b; box-shadow: 0 0 25px rgba(245, 158, 11, 0.4); }
.score-circle.grade-F { border-color: #f43f5e; color: #f43f5e; box-shadow: 0 0 25px rgba(244, 63, 94, 0.4); }

.score-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.audit-details-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.audit-category {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cat-title {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-count {
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.cat-count.badge-safe { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.cat-count.badge-warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.cat-count.badge-danger { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }

.tracker-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tracker-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracker-pill .type-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.tag-analytics { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tag-ad { background: rgba(244, 63, 94, 0.2); color: #f87171; }
.tag-fingerprint { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tag-essential { background: rgba(16, 185, 129, 0.2); color: #34d399; }

/* Features Grid */
.features-section {
  margin: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* FAQs */
.faq-section {
  margin: 80px 0;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px;
  cursor: pointer;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-toggle {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: var(--primary);
}

/* Privacy Document Pages (privacy.html & terms.html) */
.doc-section {
  padding: 40px 0;
}

.doc-card {
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.doc-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.doc-date {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.doc-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-main);
}

.doc-content p, .doc-content ul {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.doc-content ul {
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 868px) {
  .hero-title { font-size: 2.4rem; }
  .sim-results-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .doc-card { padding: 24px; }
}
