/* 24 Hubs — Landing page */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&f[]=satoshi@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink:        oklch(18% 0.02 255);
  --ink-soft:   oklch(38% 0.02 255);
  --ink-mute:   oklch(58% 0.015 255);
  --rule:       oklch(88% 0.01 250);
  --rule-soft:  oklch(94% 0.008 250);
  --paper:      oklch(98.5% 0.005 85);
  --paper-warm: oklch(96% 0.012 85);
  --sand:       oklch(93% 0.035 85);
  --mist:       oklch(95% 0.02 240);

  --blue-50:    oklch(96% 0.02 250);
  --blue-100:   oklch(90% 0.05 250);
  --blue-300:   oklch(72% 0.13 252);
  --blue-500:   oklch(55% 0.18 255);
  --blue-600:   oklch(48% 0.18 258);
  --blue-700:   oklch(38% 0.16 260);
  --blue-900:   oklch(22% 0.08 260);

  --serif: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1280px;
  --pad:  clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Type */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.0;
  text-wrap: balance;
}
.display em,
.display i,
em {
  font-style: normal;
  color: var(--blue-600);
  font-weight: inherit;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
}
.btn .arrow {
  display: inline-block;
  transition: transform 180ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Hairlines & dividers */
.hr {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* Section padding */
section { padding: clamp(64px, 9vw, 120px) 0; }

/* Numbered eyebrow */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-eyebrow .num {
  color: var(--blue-600);
}
.section-eyebrow .dash {
  width: 28px;
  height: 1px;
  background: var(--ink-mute);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── World-class upgrades ───────────────────────────────────────────── */

/* Reveal variants with spring easing */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 640ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.in { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.in { opacity: 1; transform: none; }

/* Stagger delays */
.delay-1 { transition-delay: 80ms !important; }
.delay-2 { transition-delay: 160ms !important; }
.delay-3 { transition-delay: 240ms !important; }
.delay-4 { transition-delay: 320ms !important; }
.delay-5 { transition-delay: 400ms !important; }

/* Prefers-reduced-motion: kill all transitions */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-scale {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  * { animation-duration: 0.01ms !important; }
}

/* ── Focus ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Background textures ────────────────────────────────────────────── */
.dot-pattern {
  background-image: radial-gradient(
    circle,
    oklch(75% 0.012 250 / 0.55) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
}
.grid-pattern {
  background-image:
    linear-gradient(oklch(82% 0.01 250 / 0.45) 1px, transparent 1px),
    linear-gradient(90deg, oklch(82% 0.01 250 / 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Hero mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, oklch(88% 0.06 252 / 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 5%,  oklch(93% 0.035 85 / 0.5)  0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 5%  85%, oklch(92% 0.025 240 / 0.4) 0%, transparent 55%);
}

/* ── Enhanced buttons ───────────────────────────────────────────────── */
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 2px 6px rgba(0,0,0,0.14);
}
.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 4px 16px rgba(0,0,0,0.22);
  transform: translateY(-1.5px);
}

/* ── Card glow hover ────────────────────────────────────────────────── */
.card-hover {
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease !important;
}
.card-hover:hover {
  box-shadow: 0 0 0 1.5px var(--ink), 0 8px 32px oklch(55% 0.18 255 / 0.08), 0 2px 8px rgba(0,0,0,0.06) !important;
  transform: translateY(-3px) !important;
  border-color: var(--ink) !important;
}

/* ── Logo pills ─────────────────────────────────────────────────────── */
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
  flex-shrink: 0;
}
.logo-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-warm);
}
.logo-pill .logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
  flex-shrink: 0;
}

/* ── Pulsing live dot ───────────────────────────────────────────────── */
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 3px oklch(65% 0.18 145 / 0.25), 0 0 10px oklch(65% 0.18 145 / 0.3); }
  50%       { box-shadow: 0 0 0 7px oklch(65% 0.18 145 / 0.1),  0 0 20px oklch(65% 0.18 145 / 0.2); }
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(65% 0.18 145);
  animation: pulse-ring 2.2s ease-in-out infinite;
}

/* ── Animated gradient border (CTA) ────────────────────────────────── */
@property --ga {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-gradient { to { --ga: 360deg; } }
.gradient-ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--ga),
    oklch(55% 0.18 255),
    oklch(72% 0.13 252),
    oklch(65% 0.18 145),
    oklch(72% 0.13 252),
    oklch(55% 0.18 255)
  );
  animation: spin-gradient 5s linear infinite;
  pointer-events: none;
}
.gradient-ring::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--ink);
}

/* ── Section badge ──────────────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ── Stat counters ──────────────────────────────────────────────────── */
@keyframes stat-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.stat-animate { animation: stat-rise 600ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── Mobile nav ─────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 160ms;
}
.hamburger:hover { background: var(--paper-warm); }
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 72px;
  background: var(--paper);
  z-index: 48;
  padding: 32px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--rule);
}
.mobile-nav.open { transform: none; }
.mobile-nav a {
  font-size: 22px;
  font-family: var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 160ms;
}
.mobile-nav a:hover { color: var(--ink); }

/* ── Responsive breakpoints ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr !important; }
  .hero-visual-wrap { display: none !important; }
  .hero-stats { grid-template-columns: repeat(3, 1fr) !important; }
  .problem-layout { grid-template-columns: 1fr !important; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hiw-tabs { overflow-x: auto; }
  .hiw-content { grid-template-columns: 1fr !important; }
  .hubs-featured { grid-template-columns: repeat(2, 1fr) !important; }
  .hubs-index { grid-template-columns: repeat(2, 1fr) !important; }
  .sectors-layout { grid-template-columns: 1fr !important; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .insights-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .cs-layout { grid-template-columns: 1fr !important; }
  .auth-layout { grid-template-columns: 1fr !important; }
  .ip-layout { grid-template-columns: 1fr !important; }
  .leadership-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 500px) {
  .hubs-featured { grid-template-columns: 1fr !important; }
  .pillars-grid  { grid-template-columns: 1fr !important; }
  .hero-stats    { grid-template-columns: 1fr !important; }
  .numbers-grid  { grid-template-columns: 1fr !important; }
  .footer-grid   { grid-template-columns: 1fr !important; }
}

/* ── Custom scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }
