/* ==========================================================================
   components.css — AskMarket · Chedders Bootstrap Core DNA
   Navbar · Hero · Request Feed · Feature Cards · Status Groups
   Eco Cards · CTA Banner · Founder Note · Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-am {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  min-height: 44px;
  white-space: nowrap;
  user-select: none;
}

/* Primary — Accent teal */
.btn-am--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-am--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-am--primary:active { transform: translateY(0); }

/* Secondary */
.btn-am--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-am--secondary:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .btn-am--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .btn-am--secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Ghost */
.btn-am--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-am--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Sizes */
.btn-am--sm { font-size: 13px; padding: 8px 18px; min-height: 36px; }
.btn-am--lg { font-size: 15px; padding: 14px 30px; min-height: 52px; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  height: 60px;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.2s ease;
}

.site-nav.is-scrolled {
  box-shadow: 0 2px 16px var(--shadow);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.site-nav__logo-ask {
  color: var(--text);
  transition: color 0.2s ease;
}

.site-nav__logo-market {
  color: var(--accent);
  transition: color 0.2s ease;
}

.site-nav__logo:hover .site-nav__logo-ask,
.site-nav__logo:hover .site-nav__logo-market {
  opacity: 0.8;
}

/* Desktop Links */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__links a:hover { color: var(--text); background: var(--surface-2); }
.site-nav__links a.active { color: var(--text); font-weight: 600; }

/* Actions */
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.nav-hamburger:hover { background: var(--surface-2); }

/* Mobile Drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: 0 8px 24px var(--shadow);
}

.nav-mobile-drawer.is-open { display: block; }

.nav-mobile-drawer ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-drawer ul a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-mobile-drawer ul a:hover { background: var(--surface-2); }

.nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile-ctas .btn-am {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Hero App Preview — mimics AskMarket app UI
   -------------------------------------------------------------------------- */
.hero__visual { position: relative; }

.app-preview {
  background: #0d1b2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.app-preview__bar {
  background: #0b1827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-preview__logo {
  font-size: 14px;
  font-weight: 700;
}

.app-preview__logo span:first-child { color: #ffffff; }
.app-preview__logo span:last-child  { color: var(--accent); }

.app-preview__search {
  flex: 1;
  max-width: 200px;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.app-preview__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-request-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
}

.app-request-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.app-request-card__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.app-request-card__avatar--b { background: #7c3aed; }
.app-request-card__avatar--c { background: #2563eb; }

.app-request-card__user {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.app-request-card__loc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-left: auto;
}

.app-request-card__trending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.app-request-card__text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin-bottom: 9px;
}

.app-request-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-request-card__replies {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-request-card__offer {
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 4px 11px;
  border-radius: 4px;
  cursor: default;
}

.app-preview__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-preview__filter-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-chip {
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 3px 10px;
  border-radius: 20px;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-split__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-card__number {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Feature Cards
   -------------------------------------------------------------------------- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
  border-color: var(--accent-border);
}

.feature-card__icon { margin-bottom: 16px; }

.feature-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.feature-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Status Groups (Development Status)
   -------------------------------------------------------------------------- */
.status-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.status-group__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.status-item:last-child { border-bottom: none; }

.status-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-item__dot--done    { background: #22c55e; }
.status-item__dot--active  { background: #f59e0b; }
.status-item__dot--planned { background: var(--border); }

.status-item__label { flex: 1; font-size: 13px; color: var(--text); }

.status-item__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
}

.status-item__tag--done {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

[data-theme="dark"] .status-item__tag--done {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.status-item__tag--active {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

[data-theme="dark"] .status-item__tag--active {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.status-item__tag--planned {
  background: var(--badge-bg);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Why Section — numbered list
   -------------------------------------------------------------------------- */
.why-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.why-item:first-child { border-top: 1px solid var(--border); }

.why-item__number {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.why-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.why-item__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Ecosystem Cards
   -------------------------------------------------------------------------- */
.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eco-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 2px 10px var(--shadow);
}

.eco-card__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15px;
}

.eco-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.eco-card__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Sponsored Infrastructure Section
   -------------------------------------------------------------------------- */
.sponsored-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sponsored-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.sponsored-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}

.sponsored-item__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--primary);
  border-radius: 12px;
  padding: 52px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(14, 158, 122, 0.06);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(14, 158, 122, 0.04);
  pointer-events: none;
}

.cta-banner__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-banner .btn-am--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.cta-banner .btn-am--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.cta-banner__list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.cta-banner__list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-banner__list li::before { content: '–'; }

/* --------------------------------------------------------------------------
   Founder Note
   -------------------------------------------------------------------------- */
.founder-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  position: relative;
}

.founder-note::before {
  content: '';
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.founder-note__quote {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.founder-note__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.founder-note__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.founder-note__name  { font-size: 14px; font-weight: 600; color: var(--text); }
.founder-note__role  { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  transition: background-color 0.25s ease;
}

.site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.site-footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  margin-bottom: 10px;
}

.site-footer__brand-logo .logo-ask    { color: var(--text); }
.site-footer__brand-logo .logo-market { color: var(--accent); }

.site-footer__tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: 18px;
}

.site-footer__social {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__social a {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-footer__social a:hover {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--accent-border);
}

.site-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer__links a:hover { color: var(--text); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy  { font-size: 13px; color: var(--muted); }

.site-footer__legal {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer__legal a:hover { color: var(--text); }

/* ==========================================================================
   Assets / Screenshot Section
   ========================================================================== */

.assets-section__header {
  margin-top: 0;
  text-align: center;
  margin-bottom: 40px;
}

.assets-screenshot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px var(--shadow-md);
}

.assets-screenshot__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.assets-section__header .section-title {
  margin-top: 12px;
}
