/* ---- DESIGN TOKENS ---- */
:root {
  --bg: #0a0a0f;
  --bg-raised: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8f0;
  --fg-muted: #8888a0;
  --accent: #f43f5e;
  --accent-glow: rgba(244, 63, 94, 0.15);
  --accent-soft: #fb7185;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 28px;
}
.accent { color: var(--accent); }
.lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ---- HERO CTA BUTTONS ---- */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--accent-soft); transform: translateY(-1px); }

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 24px;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 28px;
}
.problem p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.problem-accent {
  color: var(--fg) !important;
  font-weight: 600;
  font-size: 1.2rem !important;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--border-hover); }
.feature-icon {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 100px 24px;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.how h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 60px;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: left;
}
.how-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.how-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}
.how-step-text h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.how-step-text p { color: var(--fg-muted); font-size: 0.95rem; }

/* ---- CLOSING ---- */
.closing {
  padding: 100px 24px;
  text-align: center;
}
.closing-inner { max-width: 560px; margin: 0 auto; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.closing p { color: var(--fg-muted); font-size: 1.1rem; margin-bottom: 40px; }

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--fg); background: rgba(255,255,255,0.06); }
.nav-search-btn {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.15s;
  margin-left: 8px;
}
.nav-search-btn:hover { opacity: 0.85; }

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.footer-note { color: var(--fg-muted); font-size: 0.85rem; }

/* ---- SEARCH PAGE ---- */
.search-page {
  min-height: 100vh;
}
.search-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}
.search-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.search-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.search-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.search-input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.search-input::placeholder { color: var(--fg-muted); }
.search-input:focus { border-color: var(--accent-soft); }
.category-select {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 160px;
}
.category-select:focus { border-color: var(--accent-soft); }
.search-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.search-btn:hover { opacity: 0.85; }

.search-results-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}
.results-meta {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.results-meta strong { color: var(--fg); }

/* ---- CREATOR GRID ---- */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ---- CREATOR CARD ---- */
.creator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.creator-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.creator-preview {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.creator-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.creator-preview-placeholder {
  font-size: 48px;
  opacity: 0.5;
}
.creator-active-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 100px;
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.creator-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.creator-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.creator-handle {
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: -6px;
}
.creator-bio {
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.creator-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.creator-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 100px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-display);
}
.creator-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.creator-price.free { color: #34d399; }
.creator-footer {
  padding: 0 20px 20px;
}
.creator-cta {
  display: block;
  width: 100%;
  padding: 10px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.creator-cta:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent);
  color: #fff;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--fg-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.empty-state p { font-size: 0.95rem; }

/* ---- CATEGORY PAGE ---- */
.categories-page {
  min-height: 100vh;
}
.categories-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.categories-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.categories-header-inner { position: relative; z-index: 1; }
.categories-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.categories-header p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}
.categories-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}
.category-section {
  margin-bottom: 16px;
}
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.category-row:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.category-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.category-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.category-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.category-info p {
  color: var(--fg-muted);
  font-size: 13px;
}
.category-subcategory-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.subcategory-pill {
  padding: 2px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--font-display);
}
.category-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.category-arrow {
  color: var(--accent);
  font-size: 18px;
  font-weight: 300;
}

/* ---- FEATURED CREATOR BADGE ---- */
.creator-card--featured {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15), 0 4px 24px rgba(251, 191, 36, 0.06);
  position: relative;
}
.creator-card--featured:hover {
  border-color: rgba(251, 191, 36, 0.6);
}
.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 100px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

/* ---- FEATURED SECTION ---- */
.featured-section {
  margin-bottom: 16px;
}
.featured-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.featured-section-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ---- FOOTER DISCLOSURE ---- */
.footer-disclosure {
  color: var(--fg-muted);
  font-size: 12px;
  opacity: 0.65;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .search-controls { flex-direction: column; }
  .search-input-wrap, .category-select { width: 100%; }
  .category-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .category-row-right { align-self: flex-end; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ====== CATEGORY LANDING PAGE ====== */
.category-landing-page {
  min-height: 100vh;
}

/* Header */
.category-landing-header {
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
}
.category-landing-header-inner {
  max-width: 900px;
  margin: 0 auto;
}
.category-landing-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.category-landing-breadcrumb a {
  color: var(--accent-soft);
  text-decoration: none;
}
.category-landing-breadcrumb a:hover { text-decoration: underline; }
.category-landing-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.category-landing-subtitle {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.category-landing-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-display);
}
.category-landing-stats strong { color: var(--fg); }
.stat-dot { color: var(--border); }

/* Inline search bar */
.category-landing-search-bar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.category-landing-search-inner {
  max-width: 900px;
  margin: 0 auto;
}
.category-inline-search {
  display: flex;
  gap: 12px;
  align-items: center;
}
.category-inline-search .search-input-wrap { flex: 1; }

/* Results */
.category-landing-results {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

/* SEO prose block */
.category-seo-block {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}
.category-seo-inner {
  max-width: 760px;
  margin: 0 auto;
}
.category-seo-inner h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--fg);
}
.category-seo-inner p {
  color: var(--fg-muted);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.category-subcategory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--fg-muted);
}
.category-subcategory-tags strong { color: var(--fg); margin-right: 4px; }
.seo-tag {
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-soft);
  text-decoration: none;
  font-family: var(--font-display);
  transition: background 0.15s;
}
.seo-tag:hover { background: rgba(255,255,255,0.08); }

/* Related categories */
.related-categories-block {
  padding: 48px 24px 64px;
}
.related-categories-inner {
  max-width: 900px;
  margin: 0 auto;
}
.related-categories-inner h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--fg);
}
.related-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.related-category-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.related-category-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent-soft);
}
.related-cat-icon { font-size: 18px; flex-shrink: 0; }
.related-cat-name { flex: 1; font-weight: 500; }
.related-cat-arrow { color: var(--accent); font-size: 14px; opacity: 0.6; }
.view-all-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}
.view-all-link:hover { text-decoration: underline; }

/* Landing responsive */
@media (max-width: 640px) {
  .category-inline-search { flex-direction: column; }
  .category-inline-search .search-input-wrap { width: 100%; }
  .category-inline-search .search-btn { width: 100%; }
  .related-categories-grid { grid-template-columns: 1fr 1fr; }
}
