/* ===== SHARED CSS VARS ===== */
:root {
  --bg: #000000;
  --text: #FCFCFC;
  --muted: #A8A8A8;
  --border: #2A2A2A;
  --card: #0A0A0A;
  --button: #FCFCFC;
  --feature-icon-bg: #6C5CE7;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; }

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}
.site-header-logo:hover { opacity: 0.8; }
.site-header-logo img { height: 28px; width: auto; }
.site-header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header-nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.site-header-nav a:hover,
.site-header-nav a.active { color: var(--text); }
.site-header-menu {
  display: none;
  position: relative;
}
.site-header-menu summary {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.site-header-menu summary::-webkit-details-marker { display: none; }
.site-header-menu summary:active { transform: scale(0.94); }
.site-header-menu summary svg {
  width: 22px;
  height: 22px;
  display: block;
}
.site-header-mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.38);
  padding: 10px;
  flex-direction: column;
  gap: 4px;
}
.site-header-menu[open] .site-header-mobile-menu { display: flex; }
.site-header-mobile-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  text-align: left;
}
.site-header-mobile-menu a:hover { background: rgba(255,255,255,0.08); }

/* ===== SITE FOOTER ===== */
.site-footer {
  padding: 56px 32px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: 80px;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  color: var(--text);
  transition: opacity 0.2s;
}
.footer-col ul li a:hover { opacity: 0.6; }
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ===== HERO SECTION ===== */
.page-hero {
  padding: 80px 32px 72px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.page-hero-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
}
.page-hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== SECTION / PAGE BODY ===== */
.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== FEATURES / TOOL GRID ===== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.tool-card {
  display: block;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.tool-card:hover {
  border-color: rgba(252,252,252,0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.tool-card-icon {
  width: 40px;
  height: 40px;
  background: var(--feature-icon-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.tool-card-icon svg { width: 20px; height: 20px; color: #fff; }
.tool-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.tool-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== PALETTE GRID ===== */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.palette-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.palette-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.palette-card-swatches {
  display: flex;
  height: 80px;
}
.palette-card-swatches .swatch {
  flex: 1;
  min-width: 0;
}
.palette-card-body {
  padding: 14px 16px;
}
.palette-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.palette-card-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.palette-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.mood-tag {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ===== COLOR SWATCH ===== */
.color-swatch {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.color-swatch-sq {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.2s;
}
.color-swatch-sq:hover { transform: scale(1.03); }
.color-swatch-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.02em;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 32px;
  text-align: center;
}
.faq-inner { max-width: 680px; margin: 0 auto; }
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
}
.faq-q svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== RELATED LINKS ===== */
.related-section {
  padding: 64px 32px;
  border-top: 1px solid var(--border);
}
.related-inner { max-width: 680px; margin: 0 auto; }
.related-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-align: center;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.related-item:hover {
  border-color: rgba(252,252,252,0.2);
  background: rgba(255,255,255,0.04);
}
.related-item-name {
  font-size: 14px;
  font-weight: 500;
}
.related-item-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.related-item-arrow {
  color: var(--muted);
  flex-shrink: 0;
}
.related-item-arrow svg { width: 16px; height: 16px; }

/* ===== AD SLOT (hidden by default) ===== */
.ad-slot { display: none; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a { color: var(--muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs-sep { opacity: 0.4; }

/* ===== SECTION LABEL + TITLE ===== */
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-align: center;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
  text-align: center;
}
.step-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--feature-icon-bg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== USE CASES ===== */
.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 40px 0;
}
.use-case-tag {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.use-case-tag:hover {
  border-color: rgba(252,252,252,0.2);
  color: var(--text);
}

/* ===== ARTICLE BODY ===== */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.article-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 14px;
}
.article-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-content ul {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-content ul li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--feature-icon-bg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .site-header-nav-desktop { display: none; }
  .site-header-menu { display: block; }
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .page-hero { padding: 56px 24px 48px; }
  .page-body { padding: 0 24px; }
  .faq-section { padding: 48px 24px; }
  .related-section { padding: 48px 24px; }
  .how-it-works { grid-template-columns: 1fr; gap: 32px; }
  .breadcrumbs { padding: 16px 24px 0; }
  .article-body { padding: 0 24px 60px; }
}

/* ===== FAQ ACCORDION JS ===== */
