:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #18182a;
  --fg: #e8e8ed;
  --fg-muted: #8a8a9a;
  --accent: #00e68a;
  --accent-dim: #00cc7a;
  --accent-glow: rgba(0, 230, 138, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 230, 138, 0.2);
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky footer: main content grows to fill available space */
.page-content {
  flex: 1;
}

/* ─── NAV ─── */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
}

/* ─── HERO ─── */
.hero {
  padding: 0 24px 80px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 230, 138, 0.08), transparent);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 60px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.h1-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.7;
}

.hero-grid {
  max-width: 1200px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stat {
  background: var(--bg-elevated);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

/* ─── PROBLEM ─── */
.problem {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.problem-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: sticky;
  top: 40px;
}

.problem-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.problem-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.problem-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.problem-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ─── CATEGORIES ─── */
.categories {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.categories-header {
  max-width: 1200px;
  margin: 0 auto 56px;
}

.categories-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.categories-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.category-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}

.category-card:hover {
  border-color: var(--border-accent);
}

.card-tall {
  grid-row: span 1;
}

.card-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.category-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.industry-strip {
  max-width: 1200px;
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.industry-tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ─── DIY Featured Callout ─── */
.diy-featured-callout {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(0,230,138,0.07) 0%, rgba(0,180,100,0.04) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 32px 36px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.diy-featured-callout:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0,230,138,0.11) 0%, rgba(0,180,100,0.07) 100%);
}

.diy-featured-left {
  flex: 1;
}

.diy-featured-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.diy-featured-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.diy-featured-desc {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 16px;
}

.diy-featured-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diy-featured-pill {
  background: rgba(0,230,138,0.08);
  border: 1px solid rgba(0,230,138,0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.diy-featured-right {
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.diy-featured-emoji {
  font-size: 3.5rem;
  line-height: 1;
}

.diy-featured-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Category cards as links */
a.category-card {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.card-link-hint {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.category-card:hover .card-link-hint {
  opacity: 1;
}

/* ─── HOW ─── */
.how {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

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

.how-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.how-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.how-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── CLOSING ─── */
.closing {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 230, 138, 0.04) 100%);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.closing-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.closing-accent {
  color: var(--accent);
}

.closing-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.closing-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.closing-stat {
  background: var(--bg-elevated);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.cs-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ─── FOOTER ─── */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-text {
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-copy {
  color: var(--fg-muted);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ─── HERO SEARCH BAR ─── */
.hero-search-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero-search-form {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.3);
}

.hero-search-icon {
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 14px 8px;
  min-width: 0;
}

.hero-search-input::placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}

.hero-search-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.hero-search-btn:hover {
  background: var(--accent-dim);
}

.hero-search-btn:active {
  transform: scale(0.97);
}

/* ─── AUTOCOMPLETE DROPDOWN ─── */
.hero-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
  padding: 8px;
}

.suggest-group {
  padding: 4px 0;
}

.suggest-group + .suggest-group {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 8px;
}

.suggest-group-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 6px 12px 4px;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.1s;
  cursor: pointer;
}

.suggest-item:hover,
.suggest-item.suggest-active {
  background: rgba(0, 230, 138, 0.06);
}

.suggest-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.suggest-text {
  font-size: 0.92rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
  flex-shrink: 0;
  text-transform: capitalize;
}

/* Specialist suggestion row */
.suggest-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.suggest-sp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.suggest-sp-name {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-sp-headline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── QUICK FILTER PILLS ─── */
.hero-quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-quick-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.hero-quick-pill {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.hero-quick-pill:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .problem-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .problem-left h2 {
    position: static;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }

  .card-tall {
    grid-row: span 1;
  }

  .diy-featured-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .diy-featured-right {
    flex-direction: row;
    align-self: flex-start;
  }
  
  .how-grid {
    grid-template-columns: 1fr;
  }
  
  .closing-stat-row {
    grid-template-columns: 1fr;
  }
  
  .industry-strip {
    gap: 8px;
  }
  
  .hero-content {
    padding-top: 32px;
  }

  .problem,
  .categories,
  .how,
  .closing {
    padding: 64px 20px;
  }

  .hero-search-form {
    padding: 4px 4px 4px 14px;
    border-radius: 12px;
  }

  .hero-search-input {
    font-size: 0.9rem;
    padding: 12px 6px;
  }

  .hero-search-btn {
    padding: 12px 20px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .hero-search-icon {
    margin-right: 8px;
  }

  .hero-search-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero-suggestions {
    border-radius: 12px;
    max-height: 320px;
  }

  .hero-quick-filters {
    gap: 6px;
  }

  .hero-match-cta {
    margin-top: 16px;
    justify-content: center;
  }
}

.hero-match-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(0, 230, 138, 0.06);
  border: 1px solid rgba(0, 230, 138, 0.15);
  border-radius: 100px;
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

.hero-match-cta-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

.hero-match-cta-link {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: opacity 0.15s;
}

.hero-match-cta-link:hover {
  opacity: 0.75;
}