
/* MarketHub Autonomous AI Software & RPA Solutions Engineering Platform */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --accent: #10b981;
  --accent-dark: #059669;
  --bg-dark: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border: #374151;
  --border-focus: #3b82f6;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

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

html, body {
  overflow-x: clip !important;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
header {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background: #000;
  color: #9ca3af;
  padding: 6px 24px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2937;
}

.top-bar .trust-pills {
  display: flex;
  gap: 16px;
}

.top-bar .pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logos img {
  height: 42px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  border: 1px solid #374151;
}

.brand-titles h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-titles p {
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Persona Selector */
.persona-box {
  background: #1f2937;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.persona-box select {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.whatsapp-btn {
  background: #25d366;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 48px 24px 32px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.15), transparent 70%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.4);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto 28px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-stat-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 10px;
  text-align: center;
}

.hero-stat-card .val {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.hero-stat-card .lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Catalog Controls */
.controls-bar {
  max-width: 1400px;
  margin: 32px auto 24px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #1f2937;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-light);
}

.search-input-box {
  position: relative;
  width: 320px;
}

.search-input-box input {
  width: 100%;
  background: #111827;
  border: 1px solid var(--border);
  padding: 10px 16px 10px 38px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

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

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

/* Product Grid */
.products-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  box-sizing: border-box;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover::before {
  opacity: 1;
}

.card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cat-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(37, 99, 235, 0.15);
  padding: 3px 10px;
  border-radius: 4px;
}

.sku-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
  flex-grow: 1;
}

.specs-list {
  list-style: none;
  margin-bottom: 20px;
  border-top: 1px solid #1f2937;
  padding-top: 12px;
}

.specs-list li {
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.specs-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
}

/* Pricing Section in Card */
.pricing-block {
  background: #1f2937;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setup-price-box .lbl, .sub-price-box .lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.setup-price-box .amt {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.sub-price-box {
  text-align: right;
}

.sub-price-box .amt {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-details {
  background: #374151;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-details:hover {
  background: #4b5563;
}

.btn-order {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-order:hover {
  background: var(--primary-dark);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

/* Clearinghouse Channels */
.clearing-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.channel-btn {
  background: #1f2937;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.channel-btn:hover, .channel-btn.active {
  border-color: var(--primary);
  background: #283548;
}

.channel-icon {
  font-size: 20px;
}

.channel-info .title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.channel-info .sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logos img {
  height: 32px;
  width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-container { flex-direction: column; gap: 12px; text-align: center; }
  .brand { flex-direction: column; gap: 8px; }
  .header-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero h2 { font-size: 26px; }
  .footer-top { grid-template-columns: 1fr; }
  .controls-bar { flex-direction: column; align-items: stretch; }
  .search-input-box { width: 100%; }
  .clearing-channels { grid-template-columns: 1fr; }
  .card-actions { grid-template-columns: 1fr; }
  .products-container { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding: 0 16px; }
}

@media (max-width: 480px) {
  .products-container { grid-template-columns: 1fr; padding: 0 12px; }
}

