/* ============================================================
   BINGO Design System 2026
   Proprietary visual language — intelligent ecosystem aesthetic
   Not a clone of any social / SaaS / marketplace product.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&display=swap');

:root {
  /* Brand — deep ink + signal teal (not purple, not terracotta cream) */
  --bingo-ink: #0b1220;
  --bingo-ink-soft: #152033;
  --bingo-signal: #0d9488;
  --bingo-signal-strong: #0f766e;
  --bingo-signal-soft: #14b8a6;
  --bingo-ember: #c2410c;
  --bingo-ai: #0369a1;

  /* Light surfaces */
  --bg: #f3f5f8;
  --bg-elevated: #ffffff;
  --bg-sunken: #e8edf3;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --text: #0b1220;
  --text-muted: #5b6b7c;
  --text-faint: #8a97a8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --accent: var(--bingo-signal);
  --accent-hover: var(--bingo-signal-strong);
  --accent-soft: rgba(13, 148, 136, 0.12);
  --success: #15803d;
  --warning: #b45309;
  --error: #b91c1c;
  --ai: var(--bingo-ai);
  --ai-soft: rgba(3, 105, 161, 0.1);
  --trust: #0f766e;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.06);
  --shadow-lg: 0 20px 48px rgba(11, 18, 32, 0.1);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --nav-height: 64px;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 160ms;
  --motion: 280ms;
  --hero-mesh: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(13, 148, 136, 0.18), transparent 55%),
               radial-gradient(ellipse 70% 50% at 85% 10%, rgba(3, 105, 161, 0.12), transparent 50%),
               radial-gradient(ellipse 60% 40% at 70% 80%, rgba(194, 65, 12, 0.06), transparent 45%),
               linear-gradient(165deg, #eef4f7 0%, #f7f8fa 45%, #e8f0f2 100%);
}

[data-theme="dark"] {
  --bg: #050505;
  --bg-elevated: #141416;
  --bg-sunken: #0a0a0a;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1c1c1f;
  --text: #f5f5f4;
  --text-muted: #8a8a8e;
  --text-faint: #6b6b70;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --ai-soft: rgba(56, 189, 248, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  --hero-mesh: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(45, 212, 191, 0.14), transparent 55%),
               radial-gradient(ellipse 70% 50% at 85% 10%, rgba(56, 189, 248, 0.1), transparent 50%),
               linear-gradient(165deg, #050505 0%, #0a0a0a 45%, #0c0c0e 100%);
}

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

html {
  scroll-behavior: smooth;
}

body.bingo-ecosystem {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.bingo-ecosystem h1,
.bingo-ecosystem h2,
.bingo-ecosystem h3,
.bingo-ecosystem .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

/* —— Brand mark —— */
.bingo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
}
.bingo-mark__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #fff url("../logo/logo-icon.png") center / cover no-repeat;
  color: transparent;
  font-size: 0;
}
.bingo-mark__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

/* —— Buttons —— */
.b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease), background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.b-btn:active { transform: scale(0.98); }
.b-btn--primary {
  background: var(--bingo-ink);
  color: #fff;
}
[data-theme="dark"] .b-btn--primary {
  background: var(--bingo-signal);
  color: #041210;
}
.b-btn--primary:hover { background: var(--bingo-ink-soft); box-shadow: var(--shadow-md); }
[data-theme="dark"] .b-btn--primary:hover { background: var(--accent-hover); }
.b-btn--accent {
  background: var(--accent);
  color: #fff;
}
.b-btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.b-btn--ghost:hover { background: var(--surface-3); }
.b-btn--lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.b-btn--sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* —— AI Discovery Input —— */
.bingo-ask {
  position: relative;
  width: 100%;
  max-width: 720px;
}
.bingo-ask__field {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.55rem 0.55rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--motion), box-shadow var(--motion);
}
.bingo-ask__field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md);
}
.bingo-ask__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  min-width: 0;
}
.bingo-ask__input::placeholder { color: var(--text-faint); }
.bingo-ask__submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: var(--bingo-ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
[data-theme="dark"] .bingo-ask__submit { background: var(--bingo-signal); color: #041210; }
.bingo-ask__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}
.bingo-ask__hint {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.bingo-ask__hint:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: transparent;
}

/* —— Trust badge —— */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--trust);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
}
.trust-badge__score { font-variant-numeric: tabular-nums; }
.ai-match {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: var(--ai-soft);
  color: var(--ai);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
}

/* —— Cards (interaction containers only) —— */
.b-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.b-panel--interactive:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* —— Command palette —— */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 18, 0.45);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 2rem;
}
.cmdk-overlay.is-open { display: flex; animation: bingo-fade 0.2s var(--ease); }
.cmdk {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cmdk__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  outline: none;
}
.cmdk__list {
  max-height: 320px;
  overflow: auto;
  padding: 0.5rem;
}
.cmdk__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.cmdk__item:hover,
.cmdk__item.is-active {
  background: var(--accent-soft);
}
.cmdk__meta {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* —— Theme toggle (disabled — light only) —— */
.theme-toggle,
#themeToggle {
  display: none !important;
}

/* —— Motion —— */
@keyframes bingo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bingo-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes bingo-pulse-line {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.animate-rise {
  animation: bingo-rise 0.7s var(--ease) both;
}
.animate-rise-d1 { animation-delay: 0.08s; }
.animate-rise-d2 { animation-delay: 0.16s; }
.animate-rise-d3 { animation-delay: 0.24s; }
.animate-rise-d4 { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Public site chrome —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.site-nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav__links a:hover { color: var(--text); }
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 860px) {
  .site-nav__links { display: none; }
}
