/* ════════════════════════════════════════════════════
   Allied ESM — Shared Stylesheet
   Global variables, resets, navigation, FAQ accordion
════════════════════════════════════════════════════ */

/* ── Self-hosted Geist font (variable font, all weights) ── */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-VariableFont_wght.woff2') format('woff2'),
       url('/fonts/Geist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ── Skip navigation link (WCAG 2.1 Level A) ── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--brand-purple, #9810fa);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

:root {
  /* Brand colours */
  --brand-purple:   #9810fa;
  --brand-purple-2: #8B5CF6;
  --purple-100:     #f3e8ff;

  /* Neutral scale */
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* ── BREAKPOINTS (reference)
   md:  768px  |  lg: 1024px  |  xl: 1280px  ── */

/* ── Z-INDEX SCALE
   50 = sticky header  |  100 = dropdowns
   150 = mobile nav    |  200 = hamburger  ── */

/* ── GLOBAL RESET ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; }

/* ── CONTAINER ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* ── NAVIGATION ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--purple-100);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; height: 48px; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.875rem; font-weight: 600; color: var(--zinc-700); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover,
.nav-links a.active { color: var(--brand-purple-2); }
.btn-nav {
  display: inline-block; background: transparent;
  border: 1px solid var(--brand-purple-2); color: var(--brand-purple-2);
  padding: 8px 24px; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: background 0.3s, color 0.3s, border-color 0.3s; white-space: nowrap;
}
.btn-nav:hover { background: var(--brand-purple-2); color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--purple-100); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); min-width: 180px; z-index: 100;
  padding-top: 12px; padding-bottom: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 0.875rem; font-weight: 600;
  color: var(--zinc-700); text-decoration: none; transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--brand-purple-2); background: var(--purple-100); }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--zinc-800);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}
.mobile-nav.is-open {
  display: block;
  pointer-events: auto;
}
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  overflow-y: auto;
  padding: 24px 0 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.is-open .mobile-nav-drawer {
  transform: translateX(0);
}
.mobile-nav-close {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 16px;
}
.mobile-nav-close button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--zinc-700);
  line-height: 1;
}
.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav-links > li {
  border-bottom: 1px solid #f3e8ff;
}
.mobile-nav-links > li > a,
.mobile-nav-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--zinc-800);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.mobile-nav-links > li > a:hover,
.mobile-nav-section-toggle:hover { color: var(--brand-purple-2); }
.mobile-nav-chevron {
  font-size: 0.75rem;
  transition: transform 0.25s;
  margin-left: 8px;
}
.mobile-nav-section-toggle.is-open .mobile-nav-chevron {
  transform: rotate(180deg);
}
.mobile-nav-submenu {
  display: none;
  background: #faf5ff;
  padding: 4px 0 8px;
}
.mobile-nav-submenu.is-open { display: block; }
.mobile-nav-submenu a {
  display: block;
  padding: 10px 36px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-700);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-submenu a:hover { color: var(--brand-purple-2); }
.mobile-nav-cta {
  padding: 24px 24px 0;
}
.mobile-nav-cta a {
  display: block;
  text-align: center;
  background: var(--brand-purple);
  color: #fff;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-nav-cta a:hover { background: var(--brand-purple-2); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── FAQ ACCORDION ── */
details.faq-item { border-bottom: 1px solid #e5e7eb; }
details.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1rem; color: #18181b;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-arrow { transition: transform 0.2s ease; }
details.faq-item .faq-body { padding-bottom: 20px; color: #52525b; line-height: 1.7; font-size: 0.95rem; }

/* ════════════════════════════════════════════════════
   CASE STUDY PAGES
════════════════════════════════════════════════════ */

/* Badge */
.cs-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple-100); color: var(--brand-purple);
  font-size: 0.8rem; font-weight: 700; padding: 6px 14px;
  border-radius: 999px; margin-bottom: 20px;
}
.cs-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-purple);
}

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #e9d5ff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.stat-card .stat-number {
  font-size: 2rem; font-weight: 800; color: var(--brand-purple); line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.8rem; font-weight: 600; color: #6b7280; margin-top: 6px;
}

/* Section label pill — light backgrounds (white/off-white sections) */
.section-label,
.section-label-light {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-purple); background: var(--purple-100);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}

/* Section label pill — dark backgrounds (black/dark sections) */
.section-label-dark {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #a78bfa; background: rgba(152, 16, 250, 0.15);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 16px;
}

/* Content sections */
.content-section h2 {
  font-size: 1.6rem; font-weight: 800; color: #111827; margin-bottom: 16px; line-height: 1.3;
}
.content-section p {
  color: #4b5563; font-size: 1rem; line-height: 1.75; margin-bottom: 16px;
}

/* Quote block */
.quote-block {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-left: 4px solid var(--brand-purple);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 28px 0;
}
.quote-block p {
  font-size: 1.05rem; font-style: italic; color: #374151; line-height: 1.7; margin-bottom: 10px;
}
.quote-block .attribution {
  font-size: 0.875rem; font-weight: 600; color: var(--brand-purple); font-style: normal;
}

/* Result list */
.result-list { list-style: none; padding: 0; margin: 20px 0; }
.result-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #f3f4f6;
  color: #374151; font-size: 0.95rem; line-height: 1.6;
}
.result-list li:last-child { border-bottom: none; }
.result-list li .check {
  flex-shrink: 0; width: 22px; height: 22px;
  background: var(--brand-purple); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.result-list li .check svg { width: 12px; height: 12px; }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--purple-100);
  padding: 10px 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--zinc-500);
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-list li + li::before {
  content: '›';
  color: var(--zinc-500);
  font-size: 0.85rem;
  margin-right: 2px;
}
.breadcrumb-list a {
  color: var(--zinc-700);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-list a:hover { color: var(--brand-purple-2); }
.breadcrumb-list .current { color: var(--zinc-500); }

/* Breadcrumb on dark article / news hero */
.article-hero .breadcrumb-bar {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.06);
}
.article-hero .breadcrumb-list a {
  color: #a78bfa;
}
.article-hero .breadcrumb-list a:hover {
  color: #c084fc;
}
.article-hero .breadcrumb-list .current,
.article-hero .breadcrumb-list li + li::before {
  color: #6b7280;
}

/* Sidebar info cards */
.info-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.info-card h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #9ca3af; margin-bottom: 8px;
}
.info-card p { font-size: 0.95rem; font-weight: 600; color: #111827; }
.info-card .tag {
  display: inline-block; background: var(--purple-100); color: var(--brand-purple);
  font-size: 0.78rem; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; margin: 2px 2px 2px 0;
}

/* ════════════════════════════════════════════════════
   CASE STUDY LISTING — CARDS
════════════════════════════════════════════════════ */

.cs-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(152,16,250,0.12);
}

.cs-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9;
  background: #f3f4f6;
}
.cs-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform 0.3s ease;
}
.cs-card:hover .cs-card-img img { transform: scale(1.03); }

/* HaloITSM badge — top right of card image */
.cs-halo-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  border-radius: 8px; padding: 5px 10px;
  display: flex; align-items: center;
}

/* Allied ESM badge — top right of card image (Allied ESM case studies) */
.cs-allied-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(152,16,250,0.75); backdrop-filter: blur(6px);
  border-radius: 8px; padding: 5px 10px;
  display: flex; align-items: center;
}

/* Category label — bottom left of card image */
.cs-category-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.03em;
}

.cs-card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 20px 22px 22px;
}
.cs-read-time {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; color: #9ca3af;
  margin-bottom: 10px;
}
.cs-card-title {
  font-size: 1rem; font-weight: 800; color: #111827;
  line-height: 1.4; margin-bottom: 10px;
}
.cs-card-desc {
  font-size: 0.875rem; color: #6b7280; line-height: 1.65;
  flex: 1; margin-bottom: 16px;
}
.cs-read-link {
  font-size: 0.85rem; font-weight: 700;
  color: var(--brand-purple);
  display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s ease;
}
.cs-card:hover .cs-read-link { gap: 8px; }

/* ════════════════════════════════════════════════════
   SHARED BUTTONS
════════════════════════════════════════════════════ */

/* Primary — transparent with purple border, for light backgrounds */
.btn-primary {
  position: relative;
  display: inline-block;
  background: transparent;
  border: 2px solid var(--brand-purple);
  color: var(--brand-purple);
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: box-shadow 0.3s, color 0.3s;
  overflow: hidden;
}
.btn-primary:hover { box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(152, 16, 250, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after { opacity: 1; }

/* Secondary — white outline, for dark backgrounds */
.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s;
}
.btn-secondary:hover { border-color: #fff; }

/* Solid — filled purple */
.btn-primary-solid {
  display: inline-block;
  background: var(--brand-purple);
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary-solid:hover { opacity: 0.88; }

/* CTA buttons — for purple gradient backgrounds */
.btn-cta-primary {
  display: inline-block;
  background: #fff;
  color: var(--brand-purple);
  border: 2px solid #fff;
  padding: 12px 28px;
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn-cta-primary:hover { background: transparent; color: #fff; }

.btn-cta-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 12px 28px;
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s;
}
.btn-cta-secondary:hover { border-color: #fff; }

/* ════════════════════════════════════════════════════
   HERO LAYOUT (shared base)
════════════════════════════════════════════════════ */

.hero {
  background: #fff;
  padding: 60px 0 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--zinc-800);
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--brand-purple); }
@media (max-width: 1024px) { .hero h1 { font-size: 3rem; } }
@media (max-width: 768px)  { .hero h1 { font-size: 2.25rem; } }
.hero p {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Decorative graphic placeholder used across hero sections */
.hero-graphic {
  background: linear-gradient(135deg, #f3f0ff 0%, #e9e6ff 100%);
  border-radius: 20px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.hero-graphic::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(152, 16, 250, 0.06);
  border-radius: 50%;
}
.hero-graphic-icon { font-size: 3.5rem; z-index: 1; }
.hero-graphic-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-purple-2);
  letter-spacing: 0.04em;
  z-index: 1;
}

/* ════════════════════════════════════════════════════
   CTA SECTION (purple gradient — shared)
════════════════════════════════════════════════════ */

.cta-section {
  background: linear-gradient(135deg, #7b10d4 0%, var(--brand-purple) 50%, var(--brand-purple-2) 100%);
  padding: 80px 24px;
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════
   SITE FOOTER
════════════════════════════════════════════════════ */

.site-footer {
  background: #000;
  color: #fff;
  border-top: 1px solid var(--gray-800);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: #9ca3af; font-size: 0.875rem; line-height: 1.75; max-width: 300px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 40px; height: 40px;
  background: var(--gray-800);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #d1d5db;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.social-icon:hover { color: #fff; transform: scale(1.1); }
.social-icon.linkedin:hover  { background: #2563eb; }
.social-icon.twitter:hover   { background: #0ea5e9; }
.social-icon.instagram:hover { background: #9333ea; }
.social-icon.whatsapp:hover  { background: #4ade80; }
.footer-col h4 {
  color: #e5e7eb; font-size: 1rem; font-weight: 700;
  margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--brand-purple);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #d1d5db; text-decoration: none;
  font-size: 0.875rem; transition: color 0.3s;
}
.footer-col ul li a:hover { color: #a78bfa; }
.footer-contact p { color: #9ca3af; font-size: 0.875rem; line-height: 1.75; }
.footer-email {
  color: #a78bfa; text-decoration: none;
  font-size: 0.875rem; display: block; margin-top: 8px;
  transition: color 0.3s;
}
.footer-email:hover { color: #c4b5fd; }
.footer-copyright {
  border-top: 1px solid var(--gray-800);
  padding: 20px 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.75rem;
}

/* ════════════════════════════════════════════════════
   FOCUS STYLES (accessibility)
════════════════════════════════════════════════════ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Cookie notice — bottom pill ─────────────────────────────────────────── */
#cookie-bar {
  display: none; /* shown by JS only if not yet dismissed */
  position: fixed;
  bottom: 24px;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); /* iOS safe area */
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 14px 20px;
  align-items: center;
  flex-wrap: wrap; /* allow wrapping on small screens */
  gap: 10px 14px;
  font-size: 0.82rem;
  color: #9ca3af;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  max-width: calc(100vw - 48px);
}
#cookie-bar a { color: #a78bfa; text-decoration: underline; text-underline-offset: 2px; }
.cookie-dismiss {
  background: none;
  border: 1px solid #333;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;    /* bigger touch target for iOS */
  min-height: 44px;     /* Apple HIG minimum tap target */
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.cookie-dismiss:hover { background: #1f2937; color: #fff; }


/* ════════════════════════════════════════════════════
   SHARED: FILTER / SEARCH / RESULTS BAR
   Used on content.html and news.html
════════════════════════════════════════════════════ */

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.filter-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 10px 14px 10px 40px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input::placeholder { color: #6b7280; }
.search-input:focus { border-color: #7c3aed; }
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  color: #9ca3af;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.filter-pill:hover { border-color: #7c3aed; color: #c084fc; }
.filter-pill.active {
  background: rgba(152,16,250,0.2);
  border-color: #9810fa;
  color: #c084fc;
}
.sort-select {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  color: #9ca3af;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.sort-select:focus { border-color: #7c3aed; }
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid #1f1f1f;
}
.results-count {
  font-size: 0.8rem;
  color: #6b7280;
}
.results-count span { color: #a78bfa; font-weight: 700; }
.empty-state {
  display: none;
  text-align: center;
  padding: 64px 0;
}
.empty-state svg { margin: 0 auto 20px; color: #374151; }
.empty-state p { color: #6b7280; font-size: 0.95rem; }
.empty-state strong { display: block; color: #9ca3af; font-size: 1.1rem; margin-bottom: 8px; }

/* ════════════════════════════════════════════════════
   TEAM PAGE (team.html)
════════════════════════════════════════════════════ */

/* Hero stat badges */
.hero-stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.stat-badge {
  background: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.stat-icon {
  width: 36px; height: 36px;
  background: rgba(152,16,250,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.stat-label { font-size: 0.72rem; color: #888; line-height: 1.2; }
.stat-value { font-size: 0.9rem; font-weight: 700; color: #111; }

/* Team section */
.team-section {
  background: #000;
  padding: 48px 0;
  color: #fff;
}
.team-section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.team-section .sub {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.team-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}
.team-card-avatar {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #111827 0%, #1e1133 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-card-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(17,24,39,0.5), transparent);
}
.avatar-initials {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(152,16,250,0.45);
  letter-spacing: -0.02em;
  z-index: 1;
}
.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-card-body { padding: 20px 24px 24px; }
.team-card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.team-card-linkedin:hover { color: #a78bfa; }
.team-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.team-card-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-purple-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.team-card-bio {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.65;
  margin-bottom: 16px;
}
.flag { font-size: 0.85em; vertical-align: middle; margin-left: 2px; }
.team-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.team-card-tags .tag {
  display: inline-block;
  background: rgba(152,16,250,0.12);
  color: #a78bfa;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Associates section */
.associates-section {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 64px;
  color: #fff;
}
.associates-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.associates-section .sub {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.associates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.associate-card {
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.associate-card:hover {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.1);
}
.associate-card-avatar {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #0d0d0d 0%, #130d20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}
.associate-initials {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(139, 92, 246, 0.4);
  letter-spacing: -0.02em;
}
.associate-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.associate-card-body { padding: 16px 18px 18px; }
.associate-card-bio {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 10px;
}
.associate-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.associate-tag {
  display: inline-block;
  background: rgba(139,92,246,0.08);
  color: rgba(139,92,246,0.7);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.associate-card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(139, 92, 246, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.associate-card-linkedin:hover { color: #a78bfa; }
.associate-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.associate-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(139, 92, 246, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Values section — scoped to avoid conflict with halo-saf .value-card */
.values-section {
  background: #fff;
  padding: 48px 0;
}
.values-section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--zinc-800);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.values-section .sub {
  color: #71717a;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 520px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.values-section .value-card {
  background: #faf5ff;
  border: 1px solid var(--purple-100);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.values-section .value-card:hover {
  border-color: var(--brand-purple-2);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
  transform: scale(1.02);
}
.value-icon {
  width: 48px; height: 48px;
  background: rgba(152,16,250,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.values-section .value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--zinc-800);
  margin-bottom: 8px;
}
.values-section .value-card p {
  font-size: 0.85rem;
  color: #71717a;
  line-height: 1.65;
}

/* Testimonial section */
.testimonial-section {
  background: #000;
  padding: 48px 0;
}
.testimonial-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .testimonial-inner { grid-template-columns: 1fr; }
}
.testimonial-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.testimonial-heading .accent { color: var(--brand-purple-2); }
.testimonial-sub {
  font-size: 1rem;
  color: #9ca3af;
  margin-top: 12px;
  line-height: 1.6;
}
.testimonial-card {
  background: rgba(17, 24, 39, 0.5);
  border-left: 4px solid var(--brand-purple);
  border-radius: 16px;
  padding: 28px 32px;
  border-top: 1px solid var(--gray-800);
  border-right: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}
.testimonial-card p {
  color: #e5e7eb;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.testimonial-card .attribution {
  color: #9ca3af;
  font-size: 0.85rem;
  font-style: normal;
}

/* Global reach section */
.global-section {
  background: #fff;
  padding: 48px 0;
}
.global-section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--zinc-800);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.global-section .sub {
  color: #71717a;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
}
.regions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .regions-grid { grid-template-columns: 1fr; }
}
.region-card {
  background: #faf5ff;
  border: 1px solid var(--purple-100);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.region-card-bg-map {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.region-card > *:not(.region-card-bg-map) {
  position: relative;
  z-index: 1;
}
.region-card:hover {
  border-color: var(--brand-purple-2);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}
.region-flag {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1;
}
.region-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zinc-800);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.region-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-purple-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.region-card p {
  font-size: 0.9rem;
  color: #71717a;
  line-height: 1.7;
  margin-bottom: 20px;
}
.region-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.region-detail-icon {
  width: 28px; height: 28px;
  background: rgba(152,16,250,0.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.region-detail-text {
  font-size: 0.85rem;
  color: #52525b;
  line-height: 1.5;
}
.global-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--purple-100);
  padding-top: 40px;
}
.global-stat {
  text-align: center;
  padding: 20px;
}
.global-stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-purple);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.global-stat-label {
  font-size: 0.85rem;
  color: #71717a;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════
   HALO SAF PAGE (halo/halo-saf.html)
════════════════════════════════════════════════════ */

/* Service value cards */
.value-card {
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  border-color: #c4b5fd;
  box-shadow: 0 8px 30px rgba(152,16,250,0.08);
}

/* Gradient stat numbers */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #9810fa, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Automation tag pill */
.auto-tag {
  display: inline-block;
  background: #9810fa;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
}

/* SAF flow diagram */
.saf-flow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.saf-flow-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.saf-flow-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 16px;
}
.saf-pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.saf-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 3px solid #ef4444;
  border-radius: 0;
  padding: 12px 14px;
}
.saf-trigger-icon {
  width: 32px; height: 32px;
  background: rgba(239,68,68,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.saf-trigger-text { flex: 1; min-width: 0; }
.saf-trigger-label { font-size: 0.65rem; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.saf-trigger-name { font-size: 0.82rem; font-weight: 700; color: #111827; margin-top: 2px; }
.saf-trigger-badge {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  background: #fee2e2; color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; flex-shrink: 0;
}
.saf-flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 36px;
  position: relative;
  overflow: hidden;
}
.saf-flow-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, #d1d5db, #9810fa66);
}
.saf-flow-dot {
  position: absolute;
  width: 7px; height: 7px;
  background: #9810fa;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  animation: travel-down 1.6s ease-in-out infinite;
}
@keyframes travel-down {
  0% { top: -10px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.saf-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.saf-engine-inner {
  position: relative;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.saf-engine-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, #9810fa, #8B5CF6, #9810fa) border-box;
  animation: spin-ring 3s linear infinite;
}
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.saf-engine-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
}
.saf-engine-inner::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(152,16,250,0.08), rgba(139,92,246,0.06));
  animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.saf-engine-meta {
  display: flex;
  gap: 6px;
  font-size: 0.68rem;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 5px 12px;
  border-radius: 20px;
}
.saf-branches {
  display: flex;
  justify-content: space-between;
  position: relative;
  height: 30px;
  margin: 0 20px;
}
.saf-branch-line {
  position: absolute;
  height: 1px;
  background: #e5e7eb;
  top: 0;
}
.saf-bl-1 { left: 50%; right: 80%; top: 0; width: 1px; height: 100%; background: linear-gradient(to bottom, #9810fa66, #e5e7eb); }
.saf-bl-2 { left: 50%; right: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(to bottom, #9810fa66, #e5e7eb); }
.saf-bl-3 { left: 50%; right: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(to bottom, #9810fa66, #e5e7eb); }
.saf-branch-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: #9810fa;
  border-radius: 50%;
}
.saf-bd-1 { animation: branch-travel 2s 0s ease-in-out infinite; }
.saf-bd-2 { animation: branch-travel 2s 0.4s ease-in-out infinite; }
.saf-bd-3 { animation: branch-travel 2s 0.8s ease-in-out infinite; }
@keyframes branch-travel {
  0% { top: 0; left: calc(33% - 3px); opacity: 0; }
  10% { opacity: 1; }
  33% { top: 100%; left: calc(8% - 3px); opacity: 1; }
  34% { opacity: 0; top: 100%; left: calc(50% - 3px); }
  40% { top: 0; left: calc(50% - 3px); opacity: 0; }
  50% { opacity: 1; }
  67% { top: 100%; left: calc(50% - 3px); opacity: 1; }
  68% { opacity: 0; top: 100%; left: calc(83% - 3px); }
  74% { top: 0; left: calc(83% - 3px); opacity: 0; }
  84% { opacity: 1; }
  100% { top: 100%; left: calc(83% - 3px); opacity: 0; }
}
.saf-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.saf-output {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  animation: card-appear 0.5s ease both;
}
.saf-out-1 { animation-delay: 0.6s; border-top: 2px solid #9810fa; }
.saf-out-2 { animation-delay: 0.9s; border-top: 2px solid #10b981; }
.saf-out-3 { animation-delay: 1.2s; border-top: 2px solid #f59e0b; }
@keyframes card-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.saf-out-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.saf-out-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}
.saf-out-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.saf-out-check {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #9810fa;
}
.saf-flow-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.68rem;
  color: #9ca3af;
  font-style: italic;
}
.stage-pill {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 14px;
  transition: border-color 0.3s;
}
.stage-pill:hover { border-color: #9810fa; }
.stage-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #9810fa, #8B5CF6);
  color: #fff;
}
.halo-partner-bar {
  background: #000;
  border-top: 2px solid #9810fa;
}

/* ════════════════════════════════════════════════════
   CONTENT PAGE (content.html)
════════════════════════════════════════════════════ */

/* Hero overrides — scoped to .hero--content so other pages are unaffected */
.hero--content { padding: 72px 0 56px; }
.hero--content .hero-inner { gap: 64px; }
@media (max-width: 900px) {
  .hero--content .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero--content h1 { font-size: 3.5rem; margin-bottom: 20px; }
@media (max-width: 1024px) { .hero--content h1 { font-size: 2.75rem; } }
.hero--content p { font-size: 1.0625rem; line-height: 1.8; max-width: 520px; }

/* Hero illustration panel */
.hero-graphic-panel {
  background: linear-gradient(145deg, #f5f0ff 0%, #ede9ff 100%);
  border-radius: 24px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-graphic-panel::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(152,16,250,0.07);
  border-radius: 50%;
}
.hero-graphic-panel::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  background: rgba(139,92,246,0.06);
  border-radius: 50%;
}

/* Resources grid section */
.resources-section {
  background: #000;
  padding: 80px 0 96px;
}
.resources-section .section-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.resources-section .section-sub {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}
.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.resource-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  min-height: 220px;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(152,16,250,0.18);
  border-color: rgba(139,92,246,0.45);
}
.resource-card-image {
  width: 360px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a0a2e 0%, #0d1a3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .resource-card { flex-direction: column; }
  .resource-card-image { width: 100%; height: 200px; }
}
.resource-card-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}
.resource-tag {
  display: inline-block;
  background: rgba(152,16,250,0.18);
  color: #c084fc;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}
.resource-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}
.resource-card-summary {
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
  max-width: 640px;
}
.resource-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a78bfa;
  transition: color 0.2s;
}
.resource-card:hover .resource-card-cta { color: #c084fc; }
.resource-card-cta svg { transition: transform 0.2s; }
.resource-card:hover .resource-card-cta svg { transform: translateX(3px); }

/* CTA band */
.cta-band {
  background: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--zinc-800);
  margin-bottom: 16px;
}
.cta-band p {
  color: #555;
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════
   NEWS PAGE (news.html)
════════════════════════════════════════════════════ */

.news-section {
  background: #000;
  padding: 64px 0;
  color: #fff;
}
.news-section h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.news-section .sub {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.news-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}
.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, #111827 0%, #1e1133 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.news-card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(17,24,39,0.5), transparent);
}
.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.news-tag {
  display: inline-block;
  background: rgba(152,16,250,0.12);
  color: #a78bfa;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-date {
  font-size: 0.75rem;
  color: #6b7280;
}
.news-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.news-card-body p {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.65;
  flex: 1;
}
.news-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: #6b7280;
}
.news-card-footer span { color: #a78bfa; font-weight: 600; }

/* Coming soon / newsletter section */
.coming-soon-section {
  background: #fff;
  padding: 64px 0;
  text-align: center;
}
.coming-soon-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--zinc-800);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.coming-soon-section p {
  font-size: 1rem;
  color: #71717a;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 36px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--purple-100);
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--zinc-800);
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input:focus { border-color: var(--brand-purple-2); }
.newsletter-form button {
  padding: 12px 24px;
  background: var(--brand-purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter-form button:hover { background: var(--brand-purple-2); }

/* ── FOOTER GRID (6-col — not in compiled tailwind.css) ── */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
