/* ===============================================
   BizAI Market — Shared Design System v1
   Warm Pragmatic palette + Inter/Instrument Serif
   =============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #FBFAF7;
  --surface: #FFFFFF;
  --surface-raised: #F9F8F5;
  --ink: #18181B;
  --ink-soft: #52525B;
  --ink-mute: #A1A1AA;
  --border-hair: #F4F4F5;
  --border: #E4E4E7;
  --border-emph: #18181B;
  --sage: #00875A;
  --sunrise: #E55934;
  --iris: #6D28D9;
  --sunshine: #F7B500;
  --info: #2563EB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.07);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.10);
  --serif: 'Instrument Serif', Georgia, ui-serif, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }
.italic { font-style: italic; }
.caption { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.text-mute { color: var(--ink-mute); }
.text-soft { color: var(--ink-soft); }
.text-sage { color: var(--sage); }
.text-sunrise { color: var(--sunrise); }
.text-iris { color: var(--iris); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: all .2s var(--ease); white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-raised); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 12px; }
.btn-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(3px); }

.input { width: 100%; padding: 12px 16px; background: var(--surface-raised); border: 1px solid transparent; border-radius: 12px; outline: none; transition: all .2s var(--ease); }
.input:focus { background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(24,24,27,.06); }

.announce {
  background: var(--ink); color: var(--canvas);
  font-size: 13px; padding: 10px 24px; text-align: center; font-weight: 500;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; opacity: .75; }
.announce a:hover { opacity: 1; }
.announce-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); margin-right: 8px; animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: var(--canvas); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.logo span { color: var(--ink-mute); font-weight: 500; font-size: 13px; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-soft); border-radius: 8px; transition: all .15s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface-raised); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; background: var(--surface-raised); border-radius: 8px; padding: 3px; font-size: 12px; font-weight: 600; }
.lang-switch button { background: transparent; border: none; padding: 6px 10px; border-radius: 6px; color: var(--ink-mute); }
.lang-switch button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.section { padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; gap: 32px; flex-wrap: wrap; }
.section-head-left { max-width: 720px; }
.section-eyebrow { font-size: 12px; font-weight: 600; color: var(--sage); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
h1, h2, h3, h4 { color: var(--ink); }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.015em; }
.section h2 .italic { font-style: italic; color: var(--ink-soft); }
.section-desc { margin-top: 16px; font-size: 17px; color: var(--ink-soft); line-height: 1.5; }

/* Solution Card */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; transition: all .2s var(--ease);
  position: relative; text-decoration: none; color: inherit;
}
.sol:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #D4D4D8; }
.sol-featured { border-color: transparent; }
.sol-featured::before { content: ''; position: absolute; inset: 0; padding: 1px; border-radius: 16px; background: linear-gradient(135deg, var(--sunrise), var(--sunshine), var(--sage)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.sol-badge { position: absolute; top: 12px; right: 12px; font-size: 10px; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-weight: 600; letter-spacing: 0.03em; }
.sol-badge-hot { background: linear-gradient(135deg, var(--sunrise), var(--sunshine)); color: var(--ink); }
.sol-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sol-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.sol-vendor { font-size: 11px; color: var(--ink-mute); }
.sol-verified { display: inline-flex; align-items: center; gap: 3px; color: var(--sage); font-weight: 600; }
.sol-verified::before { content: '✓'; font-size: 10px; }
.sol-name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.sol-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.55; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sol-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 16px; }
.sol-chip { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--surface-raised); color: var(--ink-soft); font-weight: 500; }
.sol-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-hair); }
.sol-price { font-family: var(--mono); font-weight: 700; font-size: 17px; color: var(--ink); }
.sol-price small { color: var(--ink-mute); font-weight: 500; font-size: 11px; margin-left: 2px; }
.sol-cta { font-size: 12px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.sol-cta::after { content: '→'; transition: transform .15s var(--ease); }
.sol:hover .sol-cta::after { transform: translateX(2px); }

/* Category pill (filter bar) */
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap; transition: all .15s var(--ease); cursor: pointer;
}
.cat-pill:hover { border-color: var(--ink); color: var(--ink); }
.cat-pill.active { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.cat-pill-count { font-size: 11px; color: var(--ink-mute); font-family: var(--mono); }
.cat-pill.active .cat-pill-count { color: rgba(255,255,255,.6); }

/* Footer */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border-hair); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 64px; }
.footer-brand { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); margin-bottom: 12px; }
.footer-brand-sub { font-size: 14px; color: var(--ink-soft); max-width: 320px; line-height: 1.5; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { padding-top: 32px; border-top: 1px solid var(--border-hair); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-mute); }
.footer-legal a { color: var(--ink-soft); margin-left: 20px; }
.footer-legal a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
  .sol-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .sol-grid { grid-template-columns: 1fr; }
}
