/* ===== Design System: Glow UI ===== */
:root {
  --green: #1DB954;
  --green-hover: #1ed760;
  --white: #FFFFFF;
  --black: #121212;
  --gray-1: #B3B3B3;
  --gray-2: #535353;
  --gray-3: #404040;
  --gray-4: #282828;
  --gray-5: #212121;
  --gray-6: #121212;
  --font: 'Inter', sans-serif;
  --bg: #121212;
  --bg-card: #181818;
  --bg-hover: #282828;
  --border: #404040;
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #535353;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-card: #F5F5F5;
  --bg-hover: #E8E8E8;
  --border: #D0D0D0;
  --text-primary: #121212;
  --text-secondary: #666666;
  --text-muted: #999999;
  --black: #FFFFFF;
  --white: #121212;
  --gray-1: #666666;
  --gray-2: #999999;
  --gray-3: #D0D0D0;
  --gray-4: #E8E8E8;
  --gray-5: #F0F0F0;
  --gray-6: #FFFFFF;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Header ===== */
.header {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.8);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--bg-hover);
}

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

.logo {
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 32px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Section Common ===== */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ===== Intro ===== */
.intro {
  padding: 48px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.intro-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== Categories ===== */
.categories {
  padding: 48px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 24px;
  transition: all 0.2s;
}

.category-card:hover {
  background: var(--bg-hover);
}

.category-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.category-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Category Bar (Sticky) ===== */
.category-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.category-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar {
  display: none;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: max-content;
}

.pill {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pill:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}

.pill--active {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}

.pill-icon { font-size: 14px; line-height: 1; }
.pill-label { line-height: 1; }
.pill-count {
  background: rgba(0,0,0,0.15);
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.pill--active .pill-count { background: rgba(0,0,0,0.25); }

/* ===== Service Grid ===== */
.services {
  padding: 0 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}

.service-card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.service-card-icon {
  font-size: 32px;
  line-height: 1;
}

.service-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.service-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-card-badge {
  display: inline-block;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  width: fit-content;
}

.service-card:hover .service-card-badge {
  background: var(--gray-3);
}

.service-card::after {
  content: '\2192';
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

.service-card:hover::after {
  opacity: 1;
}

/* Empty State */
.service-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  background: var(--bg-card);
  border-radius: 6px;
}

.service-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.service-empty-text {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ===== Why Section ===== */
.why-section {
  padding: 48px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 24px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green);
}

.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 48px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

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

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Ad Slot ===== */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  max-width: 728px;
  margin: 0 auto 32px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 48px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  color: var(--green);
  font-weight: 800;
  font-size: 18px;
  display: block;
  margin-bottom: 12px;
}

.footer-about-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-group a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

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

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    height: 56px;
  }

  .category-bar {
    top: 56px;
  }

  .category-bar-inner {
    padding: 10px 16px;
  }

  .hero {
    padding: 48px 16px 32px;
  }

  .hero-title {
    font-size: 32px;
  }

  .intro, .categories, .services, .why-section, .faq-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 24px;
  }

  .ad-slot {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

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