/* ============================================================
   HUBLANCE.AI — DESIGN SYSTEM
   Tokens, Typography, Resets, Utilities
   Light Theme — Premium AI Infrastructure
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Base colors — Light */
  --bg:           #F8F9FC;
  --surface:      #FFFFFF;
  --surface-2:    #F1F3F8;
  --surface-3:    #E8EBF3;
  --border:       #E2E6F0;
  --border-light: #CDD3E6;

  /* Brand primary — Indigo */
  --primary:      #4F62D9;
  --primary-dim:  rgba(79, 98, 217, 0.08);
  --primary-glow: rgba(79, 98, 217, 0.18);
  --primary-light: #6B7FE3;

  /* Accent — Teal/Emerald */
  --accent:       #10B981;
  --accent-dim:   rgba(16, 185, 129, 0.10);

  /* Warm amber — for highlights */
  --secondary:    #F59E0B;
  --secondary-dim:rgba(245, 158, 11, 0.10);

  /* Text scale — dark on light */
  --text:         #0F1629;
  --text-2:       #3A4260;
  --text-muted:   #7A83A6;
  --text-faint:   #BFC6DC;

  /* Typography */
  --font-head:    'Poppins', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Type scale */
  --text-display: clamp(48px, 6vw, 72px);
  --text-h1:      clamp(38px, 4.5vw, 54px);
  --text-h2:      clamp(28px, 3.5vw, 40px);
  --text-h3:      clamp(20px, 2.5vw, 26px);
  --text-body-lg: 18px;
  --text-body:    16px;
  --text-sm:      14px;
  --text-label:   11px;

  /* Spacing */
  --section-y:    112px;
  --container:    1240px;
  --gap:          32px;
  --gap-sm:       16px;

  /* Borders */
  --radius:       6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15, 22, 41, 0.06), 0 1px 2px rgba(15, 22, 41, 0.04);
  --shadow-md:  0 4px 16px rgba(15, 22, 41, 0.08), 0 2px 6px rgba(15, 22, 41, 0.04);
  --shadow-lg:  0 12px 40px rgba(15, 22, 41, 0.10), 0 4px 12px rgba(15, 22, 41, 0.06);

  /* Transitions */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --dur:          0.3s;
}

/* ── Per-page accent overrides ────────────────────────────── */
/* Each HTML file adds a data-page attribute to <html> */
[data-page="ai"] {
  --page-accent:   #6366F1;
  --page-accent-dim: rgba(99, 102, 241, 0.08);
}
[data-page="platform"] {
  --page-accent:   #4F62D9;
  --page-accent-dim: rgba(79, 98, 217, 0.08);
}
[data-page="talent-os"] {
  --page-accent:   #0EA5E9;
  --page-accent-dim: rgba(14, 165, 233, 0.08);
}
[data-page="hubos"] {
  --page-accent:   #8B5CF6;
  --page-accent-dim: rgba(139, 92, 246, 0.08);
}
[data-page="payroll-ai"] {
  --page-accent:   #10B981;
  --page-accent-dim: rgba(16, 185, 129, 0.08);
}
[data-page="hris"] {
  --page-accent:   #F59E0B;
  --page-accent-dim: rgba(245, 158, 11, 0.08);
}
[data-page="solutions"] {
  --page-accent:   #EC4899;
  --page-accent-dim: rgba(236, 72, 153, 0.08);
}
[data-page="about"] {
  --page-accent:   #14B8A6;
  --page-accent-dim: rgba(20, 184, 166, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }\
input, textarea { font-family: inherit; }

/* ── Typography Utilities ─────────────────────────────────── */
.font-head   { font-family: var(--font-head); }
.font-body   { font-family: var(--font-body); }

.text-display {
  font-family: var(--font-head);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.text-h1 {
  font-family: var(--font-head);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.text-h2 {
  font-family: var(--font-head);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.text-h3 {
  font-family: var(--font-head);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: 1.7;
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
}

.text-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.text-label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Color Utilities ──────────────────────────────────────── */
.text-primary   { color: var(--text); }
.text-secondary { color: var(--text-2); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent); }
.text-violet    { color: var(--primary); }
.text-amber     { color: var(--secondary); }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

.section {
  padding: var(--section-y) 0;
}

.section--alt {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--darker {
  background: var(--surface-2);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  font-family: 'Nunito', 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
  gap: 0;
}

/* Works for both <img> and inline <svg> logos */
.nav__logo img,
.nav__logo svg {
  height: 40px;
  width: auto;
  display: block;
  overflow: visible;
}

.logo__word {
  color: #6DECB9;
}

.logo__dot {
  color: #5B68E0;
  font-size: 0.45em;
  line-height: 1;
  margin: 0 1px;
  display: inline-flex;
  align-items: center;
  transform: translateY(1px);
}

.logo__ai {
  color: #5B68E0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ── Eyebrow / Label Row ──────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--page-accent, var(--primary));
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--page-accent, var(--primary));
}

/* ── Structural Line Divider ──────────────────────────────── */
.rule {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── Button System ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--page-accent, var(--primary));
  color: #FFFFFF;
  border: 1px solid var(--page-accent, var(--primary));
  box-shadow: 0 2px 8px rgba(79, 98, 217, 0.20);
}

.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 98, 217, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--page-accent, var(--primary));
  color: var(--page-accent, var(--primary));
  background: var(--page-accent-dim, var(--primary-dim));
  transform: translateY(-1px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-y: 72px; }
  .container { padding-inline: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
}
