/* ============================================================
   HUBLANCE.AI — COMPONENTS
   All reusable UI components — Light Theme
   ============================================================ */

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.88);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(248, 249, 252, 0.96);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

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

/* Fallback text (shown if image fails) */
.nav__logo span {
  color: var(--primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-inline: auto;
}

.nav__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
  transition: color var(--dur) var(--ease);
  position: relative;
}

.nav__link:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  background: none;
  border: none;
  font-family: var(--font-body);
}

.nav__dropdown-toggle:hover {
  color: var(--text);
}

.nav__dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.nav__dropdown:hover .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-lg);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--text-2);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav__dropdown-item:hover {
  background: var(--primary-dim);
  color: var(--primary);
}

.nav__dropdown-item-label {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.nav__dropdown-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--dur) var(--ease);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-top: calc(64px + 96px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-light) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

/* Fades grid at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  max-width: 820px;
}

/* Ambient background layer */
.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__ambient svg {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  margin-bottom: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__label-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__headline em {
  font-style: normal;
  color: var(--page-accent, var(--primary));
}

.hero__subhead {
  font-size: var(--text-body-lg);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__micro {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__micro::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--border-light);
}

/* Hero text max-width for readability */
.hero__subhead {
  max-width: 620px;
}

/* ── Problem Section ──────────────────────────────────────── */

/* Human presence background treatment */
.section--with-image {
  position: relative;
}

.section--with-image .section-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  z-index: 0;
}

.section--with-image > .container {
  position: relative;
  z-index: 1;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.problem__col {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--dur) var(--ease);
  background: var(--surface);
}

.problem__col:last-child {
  border-right: none;
}

.problem__col:hover {
  background: var(--surface-2);
}

.problem__col-num {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-faint);
  line-height: 1;
  margin-bottom: 24px;
}

.problem__col-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.problem__col-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Category Section ─────────────────────────────────────── */
.category__inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.category__headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.category__headline .not {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-light);
}

.category__body {
  font-size: var(--text-body-lg);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.category__statement {
  display: inline-block;
  padding: 20px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.5;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.category__statement strong {
  color: var(--text);
}

/* ── AI Native Section ────────────────────────────────────── */
.ai-native__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ai-native__body {
  font-size: var(--text-body-lg);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 32px;
}

.ai-native__closer {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  padding-top: 24px;
  border-top: 2px solid var(--page-accent, var(--primary));
}

.ai-native__table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ai-native__table table {
  width: 100%;
  border-collapse: collapse;
}

.ai-native__table thead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.ai-native__table th {
  padding: 14px 20px;
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.ai-native__table th:first-child {
  color: var(--text-faint);
}

.ai-native__table td {
  padding: 16px 20px;
  font-size: var(--text-sm);
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  background: var(--surface);
}

.ai-native__table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.ai-native__table td.is-hublance {
  color: var(--page-accent, var(--primary));
  font-weight: 500;
}

.ai-native__table tr:last-child td {
  border-bottom: none;
}

/* ── Business Impact Cards ────────────────────────────────── */
.impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.impact__card {
  padding: 40px 32px;
  background: var(--surface);
  transition: background var(--dur) var(--ease);
  position: relative;
}

.impact__card:hover {
  background: var(--surface-2);
}

.impact__card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  color: var(--page-accent, var(--primary));
}

.impact__card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.impact__card-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── System Diagram Section ───────────────────────────────── */
.system__inner {
  position: relative;
}

.system__headline {
  text-align: center;
  margin-bottom: 64px;
}

.system__diagram-wrap {
  max-width: 860px;
  margin-inline: auto;
  position: relative;
}

.system__diagram-svg {
  width: 100%;
  height: auto;
}

/* Nodes */
.diagram-node {
  cursor: pointer;
}

.diagram-node rect {
  transition: fill 0.2s ease;
}

.diagram-node:hover rect {
  filter: brightness(0.96);
}

.diagram-node text {
  pointer-events: none;
}

/* Tooltip */
.diagram-tooltip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--text-2);
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.15s var(--ease);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.diagram-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.diagram-tooltip-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

/* ── Product Suite Cards ──────────────────────────────────── */
.products__subtitle {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 56px;
  letter-spacing: -0.01em;
}

.product-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--page-accent, var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.product-card:hover {
  border-color: var(--border-light);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card__tag {
  font-size: var(--text-label);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.product-card__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 28px;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--page-accent, var(--primary));
  font-weight: 500;
  transition: gap var(--dur) var(--ease);
}

.product-card:hover .product-card__link {
  gap: 10px;
}

.product-card__link svg {
  width: 14px;
  height: 14px;
}

/* ── Use Cases ────────────────────────────────────────────── */
.usecases__tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--surface-2);
}

.usecase__tab {
  flex: 1;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border-right: 1px solid var(--border);
  text-align: left;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.usecase__tab:last-child {
  border-right: none;
}

.usecase__tab.active {
  color: var(--page-accent, var(--primary));
  background: var(--surface);
  border-bottom-color: var(--page-accent, var(--primary));
}

.usecase__tab:hover:not(.active) {
  color: var(--text);
  background: var(--surface);
}

.usecases__content {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.usecase__panel {
  display: none;
  padding: 48px;
}

.usecase__panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.usecase__step {
  position: relative;
}

.usecase__step-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.usecase__step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-accent, var(--primary));
  margin-bottom: 10px;
}

.usecase__step-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.usecase__step-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.usecase__arrow {
  position: absolute;
  right: -32px;
  top: 40px;
  color: var(--text-faint);
  font-size: 18px;
}

/* ── Enterprise Readiness ─────────────────────────────────── */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.trust__item {
  padding: 36px 32px;
  background: var(--surface);
  transition: background var(--dur) var(--ease);
}

.trust__item:hover {
  background: var(--surface-2);
}

.trust__item-icon {
  width: 32px;
  height: 32px;
  color: var(--page-accent, var(--primary));
  margin-bottom: 20px;
}

.trust__item-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.trust__item-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta__headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.cta__subhead {
  font-size: var(--text-body-lg);
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 40px;
}

.cta__micro {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 260px;
}

.footer__col-title {
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-faint);
}

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
}

.section-header__headline {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-header__body {
  font-size: var(--text-body-lg);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
}

.section-header--center .section-header__body {
  margin-inline: auto;
}

/* ── Hero Ambient ─────────────────────────────────────────── */
.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Page Hero strip (for inner pages) ───────────────────── */
.page-hero-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--page-accent, var(--primary)), transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ── Stat numbers ─────────────────────────────────────────── */
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--page-accent, var(--primary));
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Badge / Tag pills ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge--primary {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(79, 98, 217, 0.15);
}

.badge--accent {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ── Responsive Overrides ─────────────────────────────────── */
@media (max-width: 1024px) {
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner  { max-width: 100%; }
  .ai-native__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links    { display: none; }
  .nav__toggle   { display: flex; }
  .problem__grid { grid-template-columns: 1fr; }
  .problem__col  { border-right: none; border-bottom: 1px solid var(--border); }
  .problem__col:last-child { border-bottom: none; }
  .trust__grid   { grid-template-columns: 1fr; }
  .usecase__panel.active { grid-template-columns: 1fr; gap: 32px; }
  .usecase__arrow { display: none; }
  .usecases__tabs { flex-direction: column; }
  .usecase__tab { border-right: none; border-bottom: 1px solid var(--border); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .impact__grid { grid-template-columns: 1fr; }
}
