/* ============================================
   AiBcheck.com — Global Styles
   Honest AiB Holdings, Inc.
   Dark enterprise aesthetic: Palantir gravitas + Stripe clarity
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #12131a;
  --bg-card: #181a24;
  --bg-card-hover: #1e2030;
  --text-primary: #e8eaf0;
  --text-secondary: #8b8fa3;
  --text-muted: #5a5e72;
  --accent: #4f8cff;
  --accent-glow: rgba(79, 140, 255, 0.15);
  --accent-green: #34d399;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;
  --accent-purple: #a78bfa;
  --border: #252736;
  --border-light: #2f3148;
  --gradient-hero: linear-gradient(135deg, #0a0b0f 0%, #111827 50%, #0f172a 100%);
  --gradient-accent: linear-gradient(135deg, #4f8cff 0%, #a78bfa 100%);
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.nav__logo span { color: var(--accent); }
.nav__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s;
}
.nav__cta:hover { opacity: 0.85; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.active { display: flex; }
}

/* ---- HERO ---- */
.hero {
  padding: 160px 24px 100px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
}
.hero__title em {
  font-style: normal;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 14px 0;
}
.btn--ghost:hover { text-decoration: underline; }

/* ---- SECTIONS ---- */
.section {
  padding: 100px 24px;
}
.section--alt {
  background: var(--bg-secondary);
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section__sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ---- PRODUCT CARDS GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.product-card__status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.status--live {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
}
.status--beta {
  background: rgba(79, 140, 255, 0.15);
  color: var(--accent);
}
.status--coming {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-amber);
}
.status--enterprise {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent-purple);
}
.product-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.product-card__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.product-card__tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__tech span {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(79, 140, 255, 0.1);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---- STATS BAR ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 60px;
}
.stat {
  background: var(--bg-secondary);
  padding: 32px;
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 0;
  opacity: 0.5;
}
.trust-bar span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ---- FEATURE LIST ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.feature__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- LEGAL PAGES ---- */
.legal-hero {
  padding: 140px 24px 60px;
  background: var(--gradient-hero);
}
.legal-hero__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 8px;
}
.legal-hero__updated {
  font-size: 14px;
  color: var(--text-muted);
}
.legal-content {
  padding: 60px 24px 100px;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}
.legal-content strong {
  color: var(--text-primary);
}
.legal-content ul {
  list-style: none;
  margin-bottom: 16px;
}
.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.7;
}
.legal-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.legal-content a {
  color: var(--accent);
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}
.legal-content .highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.legal-content .highlight-box p {
  margin-bottom: 8px;
}
.legal-content .highlight-box p:last-child {
  margin-bottom: 0;
}

/* ---- PRODUCT PAGE HERO ---- */
.product-hero {
  padding: 160px 24px 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.product-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.product-hero__back:hover { color: var(--accent); }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px;
  background: var(--bg-primary);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
}
.footer__col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__links {
  list-style: none;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-primary); }
.footer__bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-size: 12px;
  color: var(--text-muted);
}
.footer__legal-links {
  display: flex;
  gap: 24px;
}
.footer__legal-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}
.footer__legal-links a:hover { color: var(--text-secondary); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.6s ease forwards;
}
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-60 { margin-bottom: 60px; }

/* ---- PRODUCT CARD LOGO ---- */
.product-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-bottom: 16px;
  filter: grayscale(20%) brightness(1.1);
  transition: filter 0.2s;
}
.product-card:hover .product-card__logo {
  filter: grayscale(0%) brightness(1.2);
}
