/* ClickBridge.ai — site.css
   v2 site overhaul. Single shared stylesheet for every page.
   Palette inherited from v1 + new dark gradient hero band. */

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

:root {
  --ink: #1a1a2e;
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-tint: #f0f5ff;
  --border: #e5e7eb;
  --brand: #1a56db;
  --brand-soft: #e8effe;
  --brand-deep: #0b1530;
  --brand-deep-2: #15234d;
  --accent: #5da9ff;
  --danger: #d94a34;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1080px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; height: auto; display: block; }

/* ---------- Nav ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  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(--ink);
}
.nav__brand:hover { text-decoration: none; }
.nav__logo { width: 36px; height: 36px; border-radius: 8px; }
.nav__name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--brand); text-decoration: none; }
.nav__links a.active { color: var(--brand); }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

/* ---------- Hero variants ---------- */
.hero {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
}
.hero__inner { max-width: 720px; margin: 0 auto; }
.hero__badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* Dark animated-logo hero band — homepage only */
.hero-band {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(93,169,255,0.18), transparent 60%),
    linear-gradient(180deg, var(--brand-deep) 0%, var(--brand-deep-2) 100%);
  color: #fff;
  padding: 72px 24px 88px;
  text-align: center;
  overflow: hidden;
}
.hero-band__video-wrap {
  width: min(560px, 88vw);
  margin: 0 auto 28px;
  aspect-ratio: 1296 / 704;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  background: #0b1530;
}
.hero-band__video-wrap video,
.hero-band__video-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-band h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 18px;
  color: #fff;
}
.hero-band h1 .accent { color: var(--accent); }
.hero-band p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: #c9d4ec;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-band__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(26,86,219,0.35); }
.btn--primary:hover { background: #154bbf; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #0f0f1f; }
.btn--block { width: 100%; }

/* ---------- Section ---------- */
.section { padding: 72px 24px; }
.section--gray { background: var(--bg-soft); }
.section--dark { background: var(--brand-deep); color: #d9e2f5; }
.section--dark .section__header h2 { color: #fff; }
.section--dark .section__header p { color: #9fb1d6; }
.section__inner { max-width: var(--container); margin: 0 auto; }
.section__header { text-align: center; margin-bottom: 48px; }
.section__header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.section__header p { font-size: 16px; color: var(--ink-mute); max-width: 560px; margin: 0 auto; }

/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.service-card__icon {
  width: 48px; height: 48px;
  background: var(--brand-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.service-card__icon svg {
  width: 24px; height: 24px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.6; }

/* ---------- Category cards (now clickable) ---------- */
.categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .categories { grid-template-columns: repeat(3, 1fr); } }
.category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.category-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(26,86,219,0.12);
  text-decoration: none;
  transform: translateY(-2px);
}
.category-card__emoji { font-size: 32px; margin-bottom: 12px; display: block; }
.category-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.category-card p { font-size: 13px; color: var(--ink-mute); line-height: 1.5; }
.category-card__tag {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff5e6;
  color: #b75b00;
  padding: 3px 8px;
  border-radius: 100px;
}
.category-card--soon { opacity: 0.96; }

/* ---------- Sub-brand cards ---------- */
.network-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: #111111;
  color: #f8f4ea;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(17,17,17,0.12);
}
.network-stack { display: grid; gap: 18px; }
.network-card--language { background: #2e2920; }
.network-card--language .network-card__eyebrow { color: #d96b4a; }
.network-card--language .network-card__link { background: #b8462a; }
.network-card--language .network-card__link:hover { background: #8a3220; }
.network-card__eyebrow {
  color: #d94a34;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.network-card h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.15; margin-bottom: 10px; color: #fff; }
.network-card p { color: #d7d0c1; max-width: 640px; }
.network-card__link {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.network-card__link:hover { background: #b73928; text-decoration: none; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, #0f1c3d 0%, #1a3a78 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.newsletter h3 {
  color: #fff;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.newsletter p { color: #c9d4ec; margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }
.newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter__input {
  flex: 1 1 240px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}
.newsletter__input::placeholder { color: #9fb1d6; }
.newsletter__input:focus { outline: 2px solid var(--accent); background: rgba(255,255,255,0.14); }
.newsletter__btn { padding: 13px 24px; }
.newsletter__note {
  font-size: 12px;
  color: #9fb1d6;
  margin-top: 14px;
}
.newsletter__msg {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
  color: var(--accent);
}

/* ---------- Long-form prose (legal/about/coming-soon) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  color: #2f3340;
}
.prose h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: var(--ink);
}
.prose .lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 28px; }
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--ink);
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--ink);
}
.prose p, .prose ul, .prose ol { margin-bottom: 14px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .meta { color: var(--ink-mute); font-size: 14px; margin-bottom: 20px; }
.prose .callout {
  background: var(--bg-tint);
  border-left: 3px solid var(--brand);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 15px;
}

/* ---------- Hub picks list (Health / Finance / Education hubs) ---------- */
.pick-list { display: grid; gap: 18px; }
.pick {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.pick h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.pick p { font-size: 14px; color: var(--ink-mute); margin: 0; }
.pick__meta { font-size: 12px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #d1d5db;
  padding: 48px 24px 32px;
}
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { flex: 0 0 auto; }
.footer__brand-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer__brand-name img, .footer__brand-name svg { width: 28px; height: 28px; border-radius: 6px; }
.footer__brand p { font-size: 13px; color: #9ca3af; max-width: 280px; line-height: 1.5; }
.footer__nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__nav-group h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.footer__nav-group ul { list-style: none; }
.footer__nav-group li { margin-bottom: 8px; }
.footer__nav-group a {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
}
.footer__nav-group a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 13px; color: #6b7280; }
.footer__address { font-size: 12px; color: #6b7280; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav__toggle { display: block; }
  .hero { padding: 56px 24px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero-band { padding: 56px 20px 64px; }
  .services { grid-template-columns: 1fr; gap: 16px; }
  .categories { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .network-card { grid-template-columns: 1fr; padding: 24px; }
  .network-card__link { width: 100%; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__nav { gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .pick { grid-template-columns: 1fr; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-band__video-wrap video { display: none; }
  .hero-band__video-wrap img { display: block; }
  * { transition: none !important; }
}
