/* ═══════════════════════════════════════════════════════
   03-utilities.css — AJG AI Solutions
   Reveal, badge, chip, btn, typography, eyebrow, etc.
   ═══════════════════════════════════════════════════════ */

/* ── Reveal / scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease-in, transform .7s ease-in;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-in, transform 0.7s ease-in;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease-in, transform 0.55s ease-in;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

/* Stagger delays */
.fade-stagger > *:nth-child(1) { transition-delay: 0s; }
.fade-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.fade-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.fade-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.fade-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.fade-stagger > *:nth-child(6) { transition-delay: 0.5s; }
.fade-stagger > *:nth-child(7) { transition-delay: 0.6s; }
.fade-stagger > *:nth-child(8) { transition-delay: 0.7s; }

/* ── Typography ── */
h1 {
  font-family: 'Manrope', Inter, ui-sans-serif, system-ui, sans-serif;
  margin: 18px 0 0;
  max-width: 860px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-size: clamp(52px, 4.9vw, 80px);
}

h2 {
  font-family: 'Manrope', Inter, ui-sans-serif, system-ui, sans-serif;
  margin: 18px 0 0;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.16;
  letter-spacing: -.03em;
}

/* ── Highlight gradient text ── */
.highlight {
  background: linear-gradient(135deg, #dde9ff 0%, #35d8ff 30%, #1e50d0 60%, #35d8ff 85%, #dde9ff 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-gradient 6s ease-in-out infinite;
}

.highlight-grey {
  background: linear-gradient(135deg, #505050 0%, #a0a0a8 35%, #636363 60%, #b0b0b8 80%, #505050 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-gradient 6s ease-in-out infinite;
}

/* ── Labels ── */
.micro-label, .eyebrow {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.4;
}
.eyebrow {
  color: rgba(103,232,249,.82);
  letter-spacing: .34em;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  margin-right: 10px;
  flex-shrink: 0;
}
.eyeline {
  margin: 16px 0 0;
  max-width: 620px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.68);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  animation: badgeFloat 4.5s ease-in-out infinite;
  max-width: fit-content;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 24px rgba(103,232,249,1);
  animation: pulse 1.8s infinite;
  flex: 0 0 auto;
}

/* ── Chip ── */
.chip {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.60);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.3;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

/* ── Buttons ── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  transition: .3s ease;
  border: 0;
  white-space: nowrap;
}
.btn.primary {
  background: #38bdf8;
  color: #050816;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(56,189,248,.28);
}
.btn.primary:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(56,189,248,.38);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn.secondary {
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn.secondary:hover {
  transform: translateY(-4px);
  border-color: rgba(103,232,249,.35);
  background: rgba(255,255,255,.10);
  box-shadow: 0 24px 70px rgba(8,145,178,.22);
}

/* WhatsApp text-link */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: rgba(255,255,255,0.60);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 10px 0;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-wa svg { flex-shrink: 0; opacity: 0.7; transition: opacity 0.2s ease; }
.btn-wa:hover { color: rgba(255,255,255,0.90); }
.btn-wa:hover svg { opacity: 1; }

@media (max-width: 768px) {
  .btn-wa {
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

/* ── Tooltip ── */
.tooltip-wrap {
  flex: 0 0 auto;
  align-self: flex-start;
}
.tooltip-btn {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.74);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tooltip-chevron {
  font-style: normal;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1;
  transition: transform .28s ease;
  display: inline-block;
}
.tooltip-wrap.open .tooltip-chevron {
  transform: rotate(90deg);
}
.tooltip {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .32s ease, opacity .28s ease, margin-top .28s ease;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 0;
}
.tooltip-wrap.open .tooltip {
  max-height: 120px;
  opacity: 1;
  margin-top: 10px;
}
.tooltip-wrap.open .tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Floating card ── */
.floating {
  position: relative;
  z-index: 4;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(103,232,249,.14);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 12px 15px;
  box-shadow: 0 18px 60px rgba(3,7,18,.42);
  animation: floatCard 5.8s ease-in-out infinite;
  margin-bottom: 14px;
}
.floating.top {
  top: auto;
  right: auto;
}
.floating-title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.90);
  line-height: 1.35;
}
.floating-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.58);
}

/* ── Node dot ── */
.node {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 18px rgba(103,232,249,1);
  flex: 0 0 auto;
}

/* ── Cursor border glow ── */
.mj-glow { position: relative; }
