/* ── Home / Landing Page ─────────────────────────────────────────────────── */

.home-shell .page-body { display: none; }
.home-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.home-hero {
  background: var(--gradient-hero);
  padding: 60px 48px 60px;
  position: relative;
  overflow: hidden;
}
.home-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero-inner { flex: 1; max-width: 640px; min-width: 0; z-index: 1; }
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.home-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.7;transform:scale(1.3)} }
.home-hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 16px;
  font-family: 'Fraunces', serif;
}
.home-hero-title em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: #B9F6CA;
}
.home-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 500px;
}
.home-hero-cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.home-cta-primary {
  display: inline-block;
  padding: 13px 28px;
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none !important;
}
.home-cta-primary:hover { background: #f3f4f6; transform: translateY(-1px); }
.home-cta-secondary {
  display: inline-block;
  padding: 13px 24px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none !important;
}
.home-cta-secondary:hover { background: rgba(255,255,255,0.25); }
.home-cta-outline {
  display: inline-block;
  padding: 13px 24px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none !important;
}
.home-cta-outline:hover { background: var(--primary); color: #fff; }

/* Search */
.home-hero-search { margin-bottom: 28px; }
.home-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  gap: 10px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}
.home-search-icon { color: rgba(255,255,255,0.7); flex-shrink: 0; width: 18px; height: 18px; }
.home-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.home-search-input::placeholder { color: rgba(255,255,255,0.55); }
.home-search-btn {
  padding: 9px 20px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.home-search-btn:hover { background: #f3f4f6; }
.home-popular-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-pop-label { font-size: 12px; color: rgba(255,255,255,0.6); }
.home-pop-chip {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 99px;
  padding: 3px 11px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none !important;
}
.home-pop-chip:hover { background: rgba(255,255,255,0.22); }

/* Stats bar */
.home-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.home-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.home-stat-num { font-size: 22px; font-weight: 800; color: #fff; }
.home-stat-label { font-size: 11px; color: rgba(255,255,255,0.6); }
.home-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); margin: 0 16px; }

/* Hero illustration */
.home-hero-illustration { flex-shrink: 0; width: 300px; height: 260px; z-index: 1; opacity: 0.9; }
.home-hero-illustration svg { width: 100%; height: 100%; }

/* ── Section wrapper ──────────────────────────────────────────────────────── */
.home-section {
  padding: 64px 48px;
}
.home-section-inner { max-width: 1100px; margin: 0 auto; }
.home-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.home-section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  line-height: 1.25;
  font-family: 'Fraunces', serif;
}
.home-section-title em { font-style: italic; color: var(--accent); }
.home-section-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: -24px 0 32px;
  max-width: 640px;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.home-how { background: var(--bg-nav); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.home-step {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.home-step-icon { width: 44px; height: 44px; margin-bottom: 12px; }
.home-step-icon svg { width: 44px; height: 44px; }
.home-step-num { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }
.home-step h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.home-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.home-step-arrow { font-size: 24px; color: var(--text-faint); flex-shrink: 0; margin-top: 50px; }

/* ── Feature grid ─────────────────────────────────────────────────────────── */
.home-features { background: var(--bg-page); }
.home-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.home-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow 0.15s;
}
.home-feat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.home-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.home-feat-icon svg { width: 22px; height: 22px; }
.home-feat-purple { background: #E6F0FB; color: var(--primary); }
.home-feat-green  { background: #D1FAE5; color: #059669; }
.home-feat-pink   { background: #FCE7F3; color: #9d174d; }
.home-feat-blue   { background: #DBEAFE; color: #1d4ed8; }
.home-feat-orange { background: #FEF3C7; color: #92400e; }
.home-feat-teal   { background: #CCFBF1; color: #0f766e; }
.home-feat-card h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.home-feat-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* ── Browse by bucket ─────────────────────────────────────────────────────── */
.home-buckets { background: var(--bg-page); }
.home-bucket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-bucket-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.home-bucket-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.home-bucket-link { display: block; color: inherit; text-decoration: none !important; }
.home-bucket-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.home-bucket-icon img { width: 22px; height: 22px; }
.home-bucket-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.home-bucket-count { font-size: 13px; font-weight: 700; color: var(--accent); }
.home-bucket-count span { font-weight: 500; color: var(--text-secondary); }
.home-bucket-tg {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none !important;
}
.home-bucket-tg svg { flex-shrink: 0; color: var(--primary); }
.home-bucket-tg span { margin-left: auto; }
.home-bucket-tg:hover { color: var(--primary-hover); }

body.dark-mode .home-buckets { background: #060608; }
body.dark-mode .home-bucket-card {
  background: #0e0e11;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .home-bucket-card:hover {
  border-color: rgba(0,102,204,0.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
body.dark-mode .home-bucket-icon { background: rgba(255,255,255,0.06); }

/* dark mode feat icons */
body.dark-mode .home-feat-purple { background: rgba(0,102,204,0.18); }
body.dark-mode .home-feat-green  { background: rgba(5,150,105,0.18); }
body.dark-mode .home-feat-pink   { background: rgba(157,23,77,0.18); }
body.dark-mode .home-feat-blue   { background: rgba(29,78,216,0.18); }
body.dark-mode .home-feat-orange { background: rgba(146,64,14,0.18); }
body.dark-mode .home-feat-teal   { background: rgba(15,118,110,0.18); }

/* dark mode hero — token-driven (see --gradient-hero dark variant) */
body.dark-mode .home-hero {
  background: var(--gradient-hero);
}
body.dark-mode .home-mob-hero {
  background: var(--gradient-hero);
}
body.dark-mode .home-stats-bar {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .home-search-wrap {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
body.dark-mode .home-search-wrap input { background: transparent; color: #fff; }
body.dark-mode .home-cta-band {
  background: var(--gradient-hero);
}

/* dark mode section depth */
body.dark-mode .home-how {
  background: #0a0a0c;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .home-step {
  background: #111114;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .home-features { background: #060608; }
body.dark-mode .home-feat-card {
  background: #0e0e11;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .home-feat-card:hover {
  border-color: rgba(0,102,204,0.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
body.dark-mode .home-footer {
  background: #0a0a0c;
  border-color: rgba(255,255,255,0.06);
}

/* ── CTA Band ─────────────────────────────────────────────────────────────── */
.home-cta-band {
  background: var(--gradient-accent);
  padding: 64px 48px;
}
.home-cta-band-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.home-cta-band h2 { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 12px; font-family: 'Fraunces', serif; }
.home-cta-band p { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 28px; }
.home-cta-band-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.home-footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 32px 48px;
}
.home-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.home-footer-brand { display: flex; align-items: center; gap: 10px; }
.home-footer-brand-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.home-footer-brand-sub { font-size: 11px; color: var(--text-muted); }
.home-footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.home-footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.12s; }
.home-footer-links a:hover { color: var(--accent); }
.home-footer-copy { font-size: 11px; color: var(--text-faint); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .home-hero { padding: 40px 28px; }
  .home-hero-content { flex-direction: column; }
  .home-hero-illustration { display: none; }
  .home-hero-title { font-size: 34px; }
  .home-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .home-bucket-grid { grid-template-columns: repeat(2, 1fr); }
  .home-section { padding: 48px 28px; }
  .home-step-arrow { display: none; }
}
@media (max-width: 640px) {
  /* Hide desktop, show mobile */
  .app-shell.home-shell { display: none !important; }
  .home-mob-shell { display: flex !important; }
}

/* ── Mobile Home Shell ────────────────────────────────────────────────────── */
.home-mob-shell {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-page);
  font-family: 'Inter', sans-serif;
  padding-bottom: 64px;
}
.home-mob-hero {
  background: var(--gradient-accent);
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-mob-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  align-self: flex-start;
}
.home-mob-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  font-family: 'Fraunces', serif;
}
.home-mob-title em { font-family: 'Fraunces', Georgia, serif; font-style: italic; color: #B9F6CA; }
.home-mob-sub { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5; }
.home-mob-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.7);
}
.home-mob-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.home-mob-search-input::placeholder { color: rgba(255,255,255,0.5); }
.home-mob-cta-row { display: flex; gap: 10px; }

/* Stats row */
.home-mob-stats {
  display: flex;
  padding: 16px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-nav);
}
.home-mob-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.home-mob-stat-num { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.home-mob-stat-label { font-size: 10px; color: var(--text-muted); }

/* Quick links grid */
.home-mob-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.home-mob-quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--text-primary);
  text-decoration: none !important;
  transition: border-color 0.15s;
  font-size: 13px;
  font-weight: 600;
}
.home-mob-quick-card svg { color: var(--accent); stroke: var(--accent); }
.home-mob-quick-card:hover { border-color: var(--accent); }

/* Browse by bucket (mobile) */
.home-mob-buckets { padding: 4px 16px 16px; }
.home-mob-buckets-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 12px 0 10px;
}
.home-mob-bucket-list { display: flex; flex-direction: column; gap: 10px; }
.home-mob-bucket-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-mob-bucket-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none !important;
}
.home-mob-bucket-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-card-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-mob-bucket-icon img { width: 20px; height: 20px; }
.home-mob-bucket-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-mob-bucket-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.home-mob-bucket-count { font-size: 11px; font-weight: 600; color: var(--accent); }
.home-mob-bucket-tg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-card-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ── Shared mobile nav (home page — no tenders.css loaded) ─────────────── */
.home-mob-shell .mob-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.home-mob-shell .mob-topbar-brand { display: flex; align-items: center; gap: 10px; }
.home-mob-shell .mob-topbar-logo {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); overflow: hidden;
}
.home-mob-shell .mob-topbar-titles { display: flex; flex-direction: column; line-height: 1.1; }
.home-mob-shell .mob-topbar-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.home-mob-shell .mob-topbar-sub  { font-size: 11px; color: var(--text-muted); }
.home-mob-shell .mob-topbar-actions { display: flex; align-items: center; gap: 6px; }
.home-mob-shell .mob-topbar-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: none; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
