/* ==========================================================================
   mini-on-ai — Dark Premium Design System
   Inspired by Linear / Vercel / Raycast
   ========================================================================== */

/* Variables
   ========================================================================== */
:root {
  --bg:           #08080F;
  --surface:      #0F0F1A;
  --card:         #13131F;
  --card-hover:   #1A1A2E;
  --brand:        #6366F1;
  --brand-hover:  #4F46E5;
  --brand-glow:   rgba(99,102,241,0.15);
  --text:         #F1F5F9;
  --text-muted:   #64748B;
  --border:       rgba(255,255,255,0.07);
  --border-brand: rgba(99,102,241,0.5);
  --radius:       12px;
  --font:         'Inter', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
}

body.light-mode {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --card-hover: #F9FAFB;
  --text: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --border-brand: rgba(99,102,241,0.4);
  --brand-glow: rgba(99,102,241,0.1);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Header — frosted glass
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

body.light-mode .site-header {
  background: rgba(250,250,250,0.85);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--text);
}

.site-logo svg text {
  fill: var(--text);
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link-cta {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.15s;
}

.nav-link-cta:hover {
  background: var(--brand-hover);
}

.product-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* Theme toggle
   ========================================================================== */
.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  border-color: var(--border-brand);
  color: var(--brand);
}

/* keep dark-mode-toggle as alias */
.dark-mode-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.dark-mode-toggle:hover {
  border-color: var(--border-brand);
  color: var(--brand);
}

/* Launch bar
   ========================================================================== */
.launch-bar {
  background: rgba(99,102,241,0.08);
  border-bottom: 1px solid rgba(99,102,241,0.2);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.launch-bar a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.launch-bar a:hover { text-decoration: underline; }

/* Featured flagship product
   ========================================================================== */
.featured-product {
  padding: 40px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.featured-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.featured-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.featured-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.featured-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.btn-featured {
  align-self: flex-start;
  margin-top: 4px;
}

/* Hero — gradient orb, gradient headline
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1,
.hero-headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #F1F5F9 0%, #818CF8 60%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p,
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-cta-primary {
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.hero-cta-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.hero-cta-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-brand);
}

.hero-cta-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.hero-cta-free:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* keep hero-dark for backward compat */
.hero-dark {
  background: transparent;
}

/* Catalog / search / filter
   ========================================================================== */
.catalog {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.catalog-header {
  margin-bottom: 32px;
}

.catalog-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

#catalogCount {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
  max-width: 400px;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 36px 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--border-brand);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: none;
  line-height: 1;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-btn.active {
  background: var(--brand-glow);
  border-color: var(--brand);
  color: var(--brand);
}

.filter-count {
  font-size: 12px;
  opacity: 0.7;
  margin-left: 4px;
}

/* Product grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Product card — text-only, left accent, glow on hover
   ========================================================================== */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cat-color, #6366F1);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--border-brand), 0 0 24px var(--brand-glow);
  transform: translateY(-2px);
}

.product-card.filter-hidden {
  display: none;
}

.card-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-category,
.card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-color, var(--brand));
}

.card-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.card-title,
.product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.card-title a,
.product-title a {
  color: var(--text);
  transition: color 0.15s;
}

.card-title a:hover,
.product-title a:hover {
  color: var(--brand);
}

.card-desc,
.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.card-tags,
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-cta,
.gumroad-btn {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  border: 1px solid var(--border-brand);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  background: transparent;
}

.card-cta:hover,
.gumroad-btn:hover {
  background: var(--brand);
  color: #fff;
}

/* keep old product-card-body */
.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* category badge / tag */
.category-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-color, var(--brand));
  border: 1px solid var(--cat-color, var(--brand));
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0.85;
}

.tag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

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

.badge-free,
.badge-new,
.badge-bestseller {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-free {
  background: rgba(16,185,129,0.15);
  color: #10B981;
}

.badge-new {
  background: rgba(99,102,241,0.15);
  color: var(--brand);
}

.badge-bestseller {
  background: rgba(245,158,11,0.15);
  color: #F59E0B;
}

/* No thumbnails */
.product-thumbnail {
  display: none;
}

/* Catalog empty
   ========================================================================== */
.catalog-empty {
  display: none;
  grid-column: 1/-1;
  text-align: center;
  padding: 64px;
  color: var(--text-muted);
}

.catalog-empty.visible {
  display: block;
}

/* Build banner — dark card with glow
   ========================================================================== */
.build-banner {
  background: var(--card);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius);
  margin: 48px auto;
  max-width: 1100px;
  padding: 40px 48px;
  box-shadow: 0 0 40px var(--brand-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.build-banner-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.build-banner-text p {
  font-size: 15px;
  color: var(--text-muted);
}

.build-banner-cta {
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.build-banner-cta:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* keep old build-banner-inner for backward compat */
.build-banner-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Email capture / newsletter
   ========================================================================== */
.email-capture,
.newsletter-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
  text-align: center;
}

.email-capture-inner,
.newsletter-cta-inner {
  max-width: 480px;
  margin: 0 auto;
}

.email-capture-headline,
.newsletter-headline {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.email-capture-sub,
.newsletter-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.newsletter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 8px;
}

.email-capture-form,
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.email-capture-form input,
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}

.email-capture-form input:focus,
.newsletter-form input:focus {
  border-color: var(--border-brand);
}

.email-capture-form input::placeholder,
.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.email-capture-form button,
.newsletter-form button {
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.email-capture-form button:hover,
.newsletter-form button:hover {
  background: var(--brand-hover);
}

.form-message {
  font-size: 13px;
  margin-top: 8px;
}

.form-message.success {
  color: #10B981;
}

.form-message.error {
  color: #EF4444;
}

/* Buttons (general)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-brand);
}

/* Product detail page
   ========================================================================== */
.product-detail-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.product-breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.product-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.product-breadcrumb a:hover {
  color: var(--brand);
}

.product-detail-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-color, var(--brand));
  margin-bottom: 12px;
  display: block;
}

.product-detail-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.product-detail-price {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.product-detail-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  box-shadow: 0 0 24px var(--brand-glow);
  transition: background 0.15s, transform 0.15s;
  margin-bottom: 48px;
}

.product-detail-cta:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.product-upsell {
  margin: -24px 0 32px;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  background: var(--brand-glow);
  border-radius: 8px;
}

.product-upsell-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 6px;
}

.product-upsell-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.product-upsell-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.5;
}

.product-upsell-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.product-upsell-cta:hover {
  text-decoration: underline;
}

.product-gumroad-desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.product-gumroad-desc h2,
.product-gumroad-desc h3 {
  color: var(--text);
  margin: 20px 0 10px;
}

.product-gumroad-desc ul {
  padding-left: 20px;
}

.product-gumroad-desc li {
  margin-bottom: 6px;
}

.product-gumroad-desc code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--card);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Keep old selectors */
.product-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.product-hero {
  margin-bottom: 32px;
}

.product-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.product-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.gumroad-description {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.gumroad-description h2,
.gumroad-description h3 {
  color: var(--text);
  margin: 20px 0 10px;
}

/* Blog
   ========================================================================== */
.blog-listing-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-listing-header {
  margin-bottom: 40px;
}

.blog-listing-header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.blog-listing-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.blog-grid {
  display: grid;
  gap: 16px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: block;
}

.blog-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--border-brand), 0 0 20px var(--brand-glow);
  transform: translateY(-2px);
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.blog-post-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-post-header {
  margin-bottom: 36px;
}

.blog-post-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-post-header h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.blog-post-excerpt {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-post-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

.blog-post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.blog-post-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}

.blog-post-content p {
  margin-bottom: 16px;
}

.blog-post-content ul,
.blog-post-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.blog-post-content li {
  margin-bottom: 6px;
}

.blog-post-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

.blog-post-content a {
  color: var(--brand);
}

.blog-post-content a:hover {
  text-decoration: underline;
}

/* Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--brand);
}

/* Build Your Own page
   ========================================================================== */
.build-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.build-page-header {
  margin-bottom: 36px;
}

.build-page-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.build-page-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.build-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.build-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.build-textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  padding: 12px 14px;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color 0.15s;
}

.build-textarea:focus {
  border-color: var(--border-brand);
}

.build-textarea::placeholder {
  color: var(--text-muted);
}

.build-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.build-cat-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text);
  font-size: 14px;
}

.build-cat-btn:hover {
  border-color: var(--border-brand);
}

.build-cat-btn.selected {
  border-color: var(--brand);
  background: var(--brand-glow);
}

.build-cat-btn .cat-icon {
  font-size: 20px;
  margin-bottom: 6px;
  display: block;
}

.build-cat-btn .cat-name {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.build-cat-btn .cat-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.build-submit {
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 0 20px var(--brand-glow);
}

.build-submit:hover {
  background: var(--brand-hover);
}

.build-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.build-state {
  display: none;
}

.build-state.active {
  display: block;
}

.build-preview {
  background: var(--surface);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius);
  padding: 28px;
}

.build-preview h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.build-preview-list {
  list-style: decimal;
  padding-left: 20px;
}

.build-preview-list li {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.build-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  margin: 20px 0 8px;
}

.build-checkout-btn {
  display: block;
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  box-shadow: 0 0 24px var(--brand-glow);
  margin-top: 20px;
}

.build-checkout-btn:hover {
  background: var(--brand-hover);
}

.build-success {
  text-align: center;
  padding: 40px 0;
}

.build-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.build-success h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.build-success p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.build-error {
  color: #EF4444;
  font-size: 14px;
  margin-top: 8px;
}

.build-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.build-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ATS Resume Checker
   ========================================================================== */
.ats-score-display {
  text-align: center;
  margin: 20px 0 24px;
}

.ats-score-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--border);
}

.ats-score-circle.ats-score-good { border-color: #22C55E; }
.ats-score-circle.ats-score-ok   { border-color: #EAB308; }
.ats-score-circle.ats-score-low  { border-color: #EF4444; }

.ats-score-number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.ats-score-good .ats-score-number { color: #22C55E; }
.ats-score-ok .ats-score-number   { color: #EAB308; }
.ats-score-low .ats-score-number  { color: #EF4444; }

.ats-score-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 4px;
}

.ats-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ats-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ats-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ats-keyword-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--brand);
}

.ats-keyword-missing {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.ats-teaser {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.ats-tips-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ats-tips-list li { margin-bottom: 4px; }

.ats-feedback-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ats-feedback-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}

.ats-bullet-improvement {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.ats-bullet-original {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.ats-bullet-arrow {
  text-align: center;
  color: var(--brand);
  font-size: 16px;
  margin: 6px 0;
}

.ats-bullet-improved {
  font-size: 13px;
  line-height: 1.5;
}

/* Tools & Services Section
   ========================================================================== */
.tools-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.tools-section-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.tool-card:hover {
  border-color: var(--brand);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.tool-card-icon { font-size: 24px; line-height: 1; }
.tool-card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tool-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.tool-card-cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  padding: 7px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}
.tool-card:hover .tool-card-cta { background: var(--brand-hover); }

/* Footer tools row */
.site-footer-tools {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer-tools a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer-tools a:hover {
  color: var(--brand);
}

/* Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .hero { padding: 64px 20px 48px; }
  .hero h1, .hero-headline { font-size: 28px; }
  .product-grid { grid-template-columns: 1fr; }
  .build-banner { padding: 28px 24px; flex-direction: column; text-align: center; }
  .hero-stats { gap: 24px; }
  .site-header-inner { padding: 0 16px; gap: 12px; }
  .catalog { padding: 32px 16px 48px; }
  .build-categories { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tools-section { padding: 0 16px 48px; }
  /* Hide secondary nav links — logo covers home, CTA stays visible */
  .nav-link { display: none; }
  /* Scale down logo so CTA + toggle fit */
  .site-logo svg { width: 140px; height: 28px; }
  /* Compact CTA button */
  .nav-link-cta { font-size: 12px; padding: 5px 10px; }
  /* Dark mode toggle */
  .dark-mode-toggle { font-size: 12px; padding: 5px 8px; }
}

@media (max-width: 420px) {
  /* Single column tools on very narrow phones */
  .tools-grid { grid-template-columns: 1fr; }
  .hero h1, .hero-headline { font-size: 24px; }
}

/* ── Blog post: related-products CTA (added 2026-05-27) ──────────────── */
.related-products {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 32px 24px;
  background: #0f1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
body.light-mode .related-products {
  background: #f8fafc;
}
.related-products-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 16px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color .15s, transform .15s;
}
.related-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.related-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.related-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}
.related-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}
.related-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
