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

/* DARK MODE VARIABLES */
:root {
  --bg-primary: #fafafa;
  --bg-secondary: white;
  --text-primary: #111;
  --text-secondary: #666;
  --card-bg: white;
  --border-color: #eee;
  --hero-bg: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

body.dark-mode {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #f0f0f0;
  --text-secondary: #aaa;
  --card-bg: #2d2d2d;
  --border-color: #444;
  --hero-bg: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
}

/* NAV */
.nav {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav h2 {
  font-size: 1.4rem;
}

.nav span {
  color: #c9a45c;
}

.dark-mode-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.dark-mode-toggle:hover {
  background: #c9a45c;
  border-color: #c9a45c;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: var(--hero-bg);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1rem;
}

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

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: #111;
  color: white;
}

body.dark-mode .btn-primary {
  background: #c9a45c;
  color: #111;
}

.btn-primary:hover {
  background: #c9a45c;
  color: #111;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* SEARCH SECTION */
.search-section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.search-bar {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s;
}

.search-bar:focus {
  outline: none;
  border-color: #c9a45c;
  box-shadow: 0 0 0 3px rgba(201,164,92,0.1);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--border-color);
  border: none;
  border-radius: 40px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  color: var(--text-primary);
}

.filter-btn.active {
  background: #111;
  color: white;
}

body.dark-mode .filter-btn.active {
  background: #c9a45c;
  color: #111;
}

.filter-btn:hover {
  background: #c9a45c;
  color: #111;
}

/* SECTION */
.section {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.sub {
  color: var(--text-secondary);
  margin-top: 5px;
}

/* BRANDS GRID */
.brands {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* BRAND CARD */
.card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--border-color);
}

.card-content {
  padding: 18px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  background: #f5c542;
  padding: 4px 10px;
  font-size: 0.7rem;
  border-radius: 20px;
  font-weight: 600;
  color: #111;
}

.location {
  color: #c9a45c;
  font-size: 0.8rem;
  margin: 8px 0;
  font-weight: 500;
}

.hook {
  font-size: 0.85rem;
  margin: 10px 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.tags span {
  background: var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
}

.buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.btn-ig, .btn-wa {
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}

.btn-ig {
  background: #e1306c;
  color: white;
}

.btn-ig:hover {
  background: #c01e55;
}

.btn-wa {
  background: #25d366;
  color: white;
}

.btn-wa:hover {
  background: #1da851;
}

.view-link {
  display: inline-block;
  margin-top: 12px;
  color: #c9a45c;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.view-link:hover {
  text-decoration: underline;
}

/* WHY LIST SECTION */
.why-list {
  background: var(--border-color);
  padding: 60px 20px;
  margin-top: 40px;
}

.why-list-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.why-list h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-card {
  background: var(--card-bg);
  padding: 30px 20px;
  border-radius: 20px;
  transition: transform 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* JOIN SECTION */
.join {
  text-align: center;
  padding: 60px 20px;
  background: #111;
  color: white;
}

body.dark-mode .join {
  background: #c9a45c;
  color: #111;
}

.join h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.join p {
  color: #aaa;
  margin-bottom: 24px;
}

body.dark-mode .join p {
  color: #333;
}

.join .btn-primary {
  background: #c9a45c;
  color: #111;
}

.join .btn-primary:hover {
  background: white;
  color: #111;
}

body.dark-mode .join .btn-primary {
  background: #111;
  color: #c9a45c;
}

/* EMAIL SIGNUP */
.email-signup {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
}

.email-signup h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.email-signup p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.email-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  min-width: 250px;
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.email-form input:focus {
  outline: none;
  border-color: #c9a45c;
}

.email-form button {
  padding: 12px 28px;
}

.email-message {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  max-width: 550px;
  margin: 20px auto;
  background: var(--card-bg);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 20;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.modal-close:hover {
  background: #c9a45c;
  transform: scale(1.05);
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 380px;
  background: var(--border-color);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--border-color);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 15;
}

.slide-btn:hover {
  background: #c9a45c;
  color: #111;
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

.dots-container {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 15;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background: #c9a45c;
  width: 20px;
  border-radius: 4px;
}

.modal-body {
  padding: 24px;
}

.modal-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-location {
  color: #c9a45c;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.modal-tags span {
  background: var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
}

.modal-bio {
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.modal-founder {
  background: var(--border-color);
  padding: 16px;
  border-radius: 16px;
  margin: 16px 0;
}

.modal-founder h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #c9a45c;
}

.modal-founder p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-links a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .brands-grid {
    grid-template-columns: 1fr;
  }
  
  .slideshow-container {
    height: 320px;
  }
  
  .modal-brand-name {
    font-size: 1.4rem;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .filter-btn {
    flex: 1;
    text-align: center;
    min-width: 80px;
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .email-form input,
  .email-form button {
    width: 100%;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
}