:root {
  --primary-color: #6a8e7f; /* Sage Green */
  --bg-color: #fcfdfc;
  --text-color: #2c3e50;
  --accent-color: #f39c12; /* Soft Amber */
  --light-gray: #f4f7f6;
  --white: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --border-color: #f0f0f0;
}

[data-theme="dark"] {
  --bg-color: #1a1c1b;
  --text-color: #e4e6e5;
  --light-gray: #2d2f2e;
  --white: #1a1c1b;
  --card-bg: #242625;
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --border-color: #333635;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

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

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.logo span { color: #ccc; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--light-gray);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  color: var(--text-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: var(--white);
}

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.tagline {
  font-size: 1.25rem;
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 18px 36px;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.store-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.store-links a {
  color: #bdc3c7;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
}

/* Heatmap */
.heatmap-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.heatmap-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.heatmap-item {
  background: var(--card-bg);
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  animation: pulseHeatmap 4s infinite ease-in-out;
}

@keyframes pulseHeatmap {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); box-shadow: 0 10px 40px rgba(106, 142, 127, 0.1); }
  100% { transform: scale(1); }
}

.badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.badge-scam { background-color: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.badge-stale { background-color: rgba(76, 110, 245, 0.1); color: #4c6ef5; }

.url { font-family: monospace; font-weight: 700; }
.saved { color: #95a5a6; font-size: 0.9rem; }

/* Checker */
.checker-section {
  padding: 60px 0;
}

.card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
  border: 1px solid var(--border-color);
}

.checker-input {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.checker-input input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 50px;
  border: 2px solid var(--light-gray);
  background: var(--card-bg);
  color: var(--text-color);
  outline: none;
}

/* Anatomy */
.how-it-works { padding: 80px 0; text-align: center; }
.how-it-works h2 { margin-bottom: 40px; }

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: 800;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  :root {
    --hero-font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: var(--hero-font-size);
    letter-spacing: -1.5px;
  }

  .tagline {
    font-size: 1.1rem;
    padding: 0;
  }

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

  .btn-primary {
    width: 100%;
    padding: 16px 20px;
  }

  .heatmap-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .checker-input {
    flex-direction: column;
  }

  .card {
    padding: 30px 20px;
  }

  /* Hamburger Menu */
  .burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .burger-menu span {
    width: 100%;
    height: 3.5px;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 350px;
    background-color: var(--card-bg);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-divider {
    width: 60%;
    height: 1px;
  }

  /* Anatomy Timeline for Mobile */
  .anatomy-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 20px;
    text-align: left;
  }

  .anatomy-grid::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-gray);
  }

  .anatomy-step {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
  }

  .step-num {
    margin: 0 0 15px 0;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    box-shadow: 0 0 0 4px var(--card-bg), 0 0 0 6px var(--primary-color);
  }
}

/* Burger Animation */
.burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

footer {
  padding: 40px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #bdc3c7;
}

.hidden { display: none; }
