
:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --fg: #0b1020;
  --muted: #6b7385;
  --primary: #2563eb;
  --primary-soft: rgba(37,99,235,0.08);
  --border-subtle: #e0e4f0;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15,23,42,0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: var(--fg);
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb 52%, #e5e7eb 100%);
}

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245,247,251,0.88);
  border-bottom: 1px solid rgba(226,232,240,0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #e0f2fe, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 600;
  font-size: 15px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1f2937;
  text-decoration: none;
  opacity: 0.95;
}

.nav-link:hover {
  background: rgba(15,23,42,0.06);
}

.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  font-size: 11px;
  background: #f9fafb;
  cursor: pointer;
}

.lang-btn.lang-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* HERO */

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.hero-lead {
  font-size: 15px;
  color: var(--muted);
  max-width: 460px;
}

.hero-actions {
  margin: 22px 0 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 40px rgba(37,99,235,0.35);
}

.btn.ghost {
  background: rgba(15,23,42,0.02);
  border-color: rgba(148,163,184,0.5);
  color: #111827;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-list li {
  margin-bottom: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: radial-gradient(circle at top left, #eff6ff, #0f172a);
  border-radius: 24px;
  padding: 18px 18px 20px;
  width: 100%;
  max-width: 360px;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card-label {
  font-size: 11px;
  color: #bfdbfe;
  margin-bottom: 14px;
}

.wave {
  height: 72px;
  margin-bottom: 18px;
  border-radius: 999px;
  background-image: linear-gradient(90deg, rgba(56,189,248,0.1), rgba(37,99,235,0.85), rgba(56,189,248,0.1));
  mask-image: radial-gradient(circle at 10px 50%, transparent 6px, black 8px);
}

.stack-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #cbd5f5;
}

/* Sections */

.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
}

.section-header {
  text-align: left;
  max-width: 620px;
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.section-lead {
  font-size: 14px;
  color: var(--muted);
}

/* Stack diagram */

.stack-diagram {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 14px 45px rgba(15,23,42,0.06);
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stack-node {
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 12px;
}

.stack-node-accent {
  background: #2563eb;
  color: #fff;
}

.stack-arrow {
  font-size: 13px;
  color: #9ca3af;
}

.stack-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}

/* Cards */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.suite-card {
  display: block;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-lg);
  padding: 18px 18px 18px;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 14px 40px rgba(15,23,42,0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.suite-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.6);
  box-shadow: 0 22px 50px rgba(15,23,42,0.12);
}

.suite-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.suite-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.suite-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.suite-card ul {
  padding-left: 18px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Logos row */

.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.03);
  font-size: 12px;
}

/* Impact metrics */

.impact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1.1fr);
  gap: 26px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.metric-card {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(226,232,240,0.9);
}

.metric-number {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.metric-desc {
  font-size: 12px;
  color: var(--muted);
}

/* Page hero / common pages */

.page-hero {
  padding: 40px 0 10px;
}

.page-hero h1 {
  font-size: 30px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
}

.two-col h3 {
  margin-top: 0;
}

.contact-form {
  max-width: 640px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.form-grid label {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(209,213,219,0.9);
  padding: 8px 10px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(37,99,235,0.4);
  border-color: transparent;
}

.muted {
  font-size: 12px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  margin-top: 40px;
  padding: 32px 0 20px;
  background: rgba(15,23,42,0.96);
  color: #e5e7eb;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: #9ca3af;
  max-width: 360px;
}

.footer-cols {
  display: flex;
  gap: 36px;
}

.footer-cols h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.footer-cols a {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 4px;
}

.footer-cols a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  margin-top: 18px;
  font-size: 11px;
  color: #6b7280;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .impact-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .metrics-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .cards-3 {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 640px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .form-grid {
    grid-template-columns: minmax(0,1fr);
  }
}


/* --- Premium surfaces for subpages --- */

.surface-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  align-items: flex-start;
  margin-top: 40px;
}

.surface-card {
  border-radius: 20px;
  padding: 28px 28px;
  background: #ffffff;
  border: 1px solid rgba(226,232,240,0.6);
  box-shadow: 0 22px 55px rgba(15,23,42,0.08);
  transition: all 0.18s ease;
}

.surface-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 55px rgba(15,23,42,0.12);
}

.surface-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.surface-card p {
  font-size: 15px;
  color: var(--muted);
}

.surface-card ul {
  margin-top: 12px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Background for alternate sections */
.section.section-alt {
  background: linear-gradient(180deg,
    rgba(248,250,252,0.98),
    rgba(241,245,249,0.98)
  );
}


/* High-tech subpage layouts */

.pill-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.pill {
  padding:6px 14px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(148,163,184,.4);
  color:rgba(15,23,42,.75);
}

.metrics-row {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-top:26px;
}
.metric-card {
  flex:1 1 180px;
  min-width:180px;
  border-radius:18px;
  padding:16px 18px;
  background:radial-gradient(circle at top left,#eef2ff,#ffffff);
  border:1px solid rgba(148,163,184,.35);
}
.metric-card h4 {
  margin:0 0 4px;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(15,23,42,.6);
}
.metric-card strong {
  display:block;
  font-size:22px;
}

.tag-strip {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.tag-chip {
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.03);
  border:1px dashed rgba(148,163,184,.6);
}

.stat-grid-3 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:22px;
  margin-top:30px;
}
.stat-card {
  border-radius:18px;
  padding:18px 20px;
  background:linear-gradient(150deg,#0f172a 0%,#111827 40%,#020617 100%);
  color:#e5f0ff;
  box-shadow:0 22px 55px rgba(15,23,42,.75);
}
.stat-card h3 {
  margin:0 0 6px;
  font-size:20px;
}
.stat-card p {
  margin:0;
  font-size:13px;
  color:rgba(226,232,240,.86);
}

.split-layout {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1.1fr);
  gap:30px;
}
@media (max-width:900px){
  .split-layout {
    grid-template-columns:1fr;
  }
}

/* keep previous card style for sections that use it */
.surface-grid-2 {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:26px;
  align-items:flex-start;
  margin-top:32px;
}
.surface-card {
  border-radius:20px;
  padding:24px 24px;
  background:#ffffff;
  border:1px solid rgba(226,232,240,0.7);
  box-shadow:0 18px 45px rgba(15,23,42,0.08);
}
.surface-card h3 {
  margin-top:0;
  margin-bottom:10px;
}

.section.section-alt {
  background:linear-gradient(180deg,rgba(248,250,252,.98),rgba(241,245,249,.98));
}


/* ============================================
   DATA STUDIO — HIGH-TECH ANALYTICS COMPONENTS
   ============================================ */

.analytics-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 35px;
}

.analytics-card {
  border-radius: 20px;
  padding: 22px 26px;
  background: linear-gradient(145deg,#0f172a,#1e293b 50%,#020617);
  color: #f1f5f9;
  box-shadow: 0 28px 50px rgba(15,23,42,0.45);
  border: 1px solid rgba(148,163,184,0.25);
  transition: all .18s ease;
}
.analytics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 55px rgba(15,23,42,0.6);
}

.analytics-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.analytics-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(241,245,249,0.88);
}

/* Role chips */
.role-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.role-chip {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(15,23,42,.07);
  border: 1px solid rgba(148,163,184,.4);
  color: rgba(15,23,42,.75);
}

/* Section spacing rules for Data Studio */
.section-dense {
  padding-top: 40px;
  padding-bottom: 40px;
}



/* Tighter vertical spacing variant for dense product pages */
.section-tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Voices: compact 2x2 product grid */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Reuse surface cards but slightly lighter shadow on Voices */
.voices-grid .surface-card {
  box-shadow: 0 14px 38px rgba(15,23,42,0.10);
}


/* ======================================
   MOBILE TUNING — global subpage layout
   ====================================== */
@media (max-width: 768px) {

  .page-hero {
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .page-hero h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .page-hero .section-lead {
    font-size: 15px;
  }

  .section,
  .section-alt,
  .section-tight,
  .section.section-alt,
  .section.section-dense {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .surface-card,
  .analytics-card,
  .stat-card {
    border-radius: 18px;
    padding: 18px 18px;
  }

  .voices-grid,
  .surface-grid-2,
  .analytics-grid-3,
  .stat-grid-3 {
    gap: 18px;
    margin-top: 20px;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pill-row {
    gap: 8px;
    margin-top: 14px;
  }

  .pill {
    font-size: 11px;
    padding: 5px 10px;
  }

  .tag-strip,
  .role-strip {
    gap: 8px;
  }

}


/* NAV: responsive header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg,rgba(248,250,252,0.94),rgba(239,246,255,0.94));
  border-bottom: 1px solid rgba(226,232,240,0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%,#4f46e5,#1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5edff;
  font-weight: 600;
  font-size: 16px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f172a;
}

.nav-brand-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.nav-links a:hover {
  color: #1d4ed8;
}

.nav-toggle-input {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.9);
}

.nav-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

/* mobile menu container */
.mobile-nav {
  display: none;
  padding-bottom: 8px;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.mobile-nav-inner a {
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  padding: 6px 0;
}

.mobile-nav-inner a:hover {
  color: #1d4ed8;
}

/* mobile specific behaviour */
@media (max-width: 768px) {
  .nav-inner {
    padding: 10px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.22s ease, opacity 0.18s ease;
  }

  .nav-toggle-input:checked ~ .mobile-nav {
    max-height: 320px;
    opacity: 1;
  }
}


/* MOBILE NAV REFINEMENTS */
@media (max-width: 768px) {

  .site-header {
    padding: 0;
    border-bottom: 1px solid rgba(226,232,240,0.9);
  }

  .nav-inner {
    padding: 8px 0;
  }

  .nav-brand-mark {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .nav-brand-title {
    font-size: 13px;
  }

  .nav-brand-subtitle {
    font-size: 11px;
  }

  .nav-toggle {
    width: 34px;
    height: 30px;
    border-radius: 999px;
  }

  .nav-toggle span {
    width: 16px;
    height: 2px;
  }

  .mobile-nav {
    background: linear-gradient(180deg, rgba(248,250,252,0.97), rgba(239,246,255,0.96));
    border-bottom: 1px solid rgba(226,232,240,0.9);
  }

  .mobile-nav-inner {
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .mobile-nav-inner a {
    padding: 6px 0;
    font-size: 14px;
  }
}


/* MOBILE NAV OVERRIDE V2 – force compact header */
@media (max-width: 768px) {

  .site-header {
    border-bottom: 1px solid rgba(226,232,240,0.95);
    padding: 0;
  }

  .nav-inner {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .nav-brand-mark {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .nav-brand-title {
    font-size: 13px;
    line-height: 1.1;
  }

  .nav-brand-subtitle {
    display: none; /* hide subtitle on mobile to save height */
  }

  .nav-toggle {
    width: 32px;
    height: 28px;
    border-radius: 999px;
  }

  .nav-toggle span {
    width: 16px;
    height: 2px;
  }

  .mobile-nav {
    background: rgba(248,250,252,0.98);
  }

  .mobile-nav-inner {
    padding-top: 2px;
    padding-bottom: 6px;
  }

  .mobile-nav-inner a {
    font-size: 14px;
    padding: 5px 0;
  }

  /* Hero spacing slightly reduced on mobile because header is sticky */
  .page-hero {
    padding-top: 44px;
    padding-bottom: 28px;
  }
}


/* ---------------------------------------------------------
   MOBILE HEADER — FINAL COMPACT VERSION (V3)
--------------------------------------------------------- */
@media (max-width: 768px) {

  /* Header container */
  .site-header {
    height: 52px !important;
    padding: 0 !important;
  }

  .nav-inner {
    height: 52px !important;
    padding: 4px 10px !important;
  }

  /* Brand/logo */
  .nav-brand {
    gap: 6px !important;
  }

  .nav-brand-mark {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
  }

  .nav-brand-title {
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .nav-brand-subtitle {
    display: none !important;
  }

  /* Burger button */
  .nav-toggle {
    width: 30px !important;
    height: 28px !important;
    border-radius: 999px !important;
  }

  .nav-toggle span {
    width: 14px !important;
    height: 2px !important;
  }

  /* Reduce HERO top spacing */
  .page-hero {
    padding-top: 24px !important;
  }

  /* Tighten mobile text spacing */
  .page-hero h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .page-hero p {
    margin-top: 6px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
}



/* ===== AFTA NAV V4: desktop + mobile burger ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg,rgba(248,250,252,0.96),rgba(239,246,255,0.96));
  border-bottom: 1px solid rgba(226,232,240,0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%,#4f46e5,#1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5edff;
  font-weight: 600;
  font-size: 15px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f172a;
}

.nav-brand-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.nav-links a:hover {
  color: #1d4ed8;
}

/* burger toggle */
.nav-toggle-input {
  display: none;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.9);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

/* mobile dropdown panel */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height .22s ease, opacity .18s ease;
  background: rgba(248,250,252,0.98);
  border-bottom: 1px solid rgba(226,232,240,0.9);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0 10px 0;
}

.mobile-nav-inner a {
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  padding: 4px 0;
}

/* RESPONSIVE BEHAVIOUR */
@media (max-width: 768px) {
  .nav-inner {
    padding: 6px 0;
  }

  .nav-brand-subtitle {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* when checkbox is checked, reveal panel */
  .nav-toggle-input:checked ~ .mobile-nav {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .page-hero {
    padding-top: 28px;
  }
}


/* ================================
   AFTA NAV V5 — HIGH-TECH MOBILE MENU
   ================================ */

/* OVERLAY BACKDROP */
.mobile-overlay {
  display: none;
}

@media (max-width: 768px) {
  /* Activate overlay when nav is open */
  .nav-toggle-input:checked ~ .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(6px);
    z-index: 45;
  }

  /* Mobile menu container */
  .mobile-nav {
    position: absolute !important;
    top: 58px !important;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    border-radius: 0 0 18px 18px;
    padding: 18px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.28s ease;
    z-index: 50;
  }

  /* When opened */
  .nav-toggle-input:checked ~ .mobile-nav {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .mobile-nav-inner a {
    font-size: 17px;
    font-weight: 500;
    color: #0f172a;
    padding-bottom: 2px;
    text-decoration: none;
  }

  /* Fix header spacing */
  .site-header {
    padding-bottom: 6px;
  }
}

/* LOCK PAGE SCROLL WHEN MENU IS OPEN */
html.nav-open {
  overflow: hidden !important;
}



/* HERO VISUAL V2 — high-tech signal card */
.hero-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 24px 30px 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(148, 163, 255, 0.45), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
  box-shadow:
    0 26px 70px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.12;
  background-image:
    linear-gradient(120deg, rgba(148,163,184,0.4) 1px, transparent 1px),
    linear-gradient(210deg, rgba(15,23,42,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-visual-card-inner {
  position: relative;
  z-index: 1;
}

.hero-visual-label {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.85);
  margin-bottom: 18px;
}

/* animated pill bar */
.hero-visual-bar {
  position: relative;
  border-radius: 999px;
  height: 88px;
  background:
    linear-gradient(90deg, #1e293b, #1d4ed8, #0f172a);
  background-size: 220% 100%;
  animation: heroBarShift 9s ease-in-out infinite alternate;
  box-shadow:
    0 0 0 1px rgba(30, 64, 175, 0.4),
    0 26px 45px rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

.hero-visual-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(255,255,255,0.35), transparent 55%);
  mix-blend-mode: screen;
}

/* moving particle */
.hero-visual-dot {
  position: absolute;
  top: 50%;
  left: 6%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #e5edff 0, #93c5fd 35%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(0.3px);
  animation: heroDotTravel 7s ease-in-out infinite alternate;
}

/* modes list */
.hero-visual-modes {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero-visual-modes li {
  font-size: 15px;
  color: rgba(226, 232, 255, 0.92);
  margin-bottom: 4px;
}

/* subtle prefix arrows stay readable */
.hero-visual-modes li span {
  opacity: 0.95;
}

/* animations */
@keyframes heroBarShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 60% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes heroDotTravel {
  0%   { left: 9%;  opacity: 0.95; }
  40%  { left: 52%; opacity: 1;   }
  80%  { left: 92%; opacity: 0.85;}
  100% { left: 92%; opacity: 0.6; }
}

/* responsive tweak */
@media (max-width: 768px) {
  .hero-visual-card {
    padding: 18px 18px 20px;
    border-radius: 26px;
  }
  .hero-visual-bar {
    height: 64px;
  }
  .hero-visual-label {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero-visual-modes li {
    font-size: 14px;
  }
}


/* =========================================
   HOME LAYOUT V2 — high-tech stacked bands
   ========================================= */
.page-home {
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.45), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.92), #020617);
  color: #0f172a;
}

.page-home main {
  position: relative;
  z-index: 0;
}

/* generic section rhythm on homepage */
.page-home main > section {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
}

/* subtle layered bands */
.page-home main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: 1120px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(248,250,252,0.96), rgba(239,246,255,0.92));
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(226,232,240,0.7);
  z-index: -1;
}

/* alternate band for second / fourth sections to look more "platform" like */
.page-home main > section:nth-of-type(2)::before,
.page-home main > section:nth-of-type(4)::before {
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,0.14), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(15,23,42,0.9), rgba(15,23,42,1));
  box-shadow:
    0 30px 90px rgba(15,23,42,0.45),
    0 0 0 1px rgba(30,64,175,0.3);
}

/* keep hero sitting directly on page background (no band) */
.page-home main > section.hero::before {
  display: none;
}

/* tighten product / stack sections cards on home only */
.page-home .surface-card {
  border-radius: 22px;
  box-shadow:
    0 20px 55px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(226,232,240,0.7);
}

/* optional stat / feature rows alignment */
.page-home .stat-grid-3,
.page-home .analytics-grid-3,
.page-home .product-suite-grid {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

/* mobile tuning for home */
@media (max-width: 768px) {
  .page-home main > section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-home main > section::before {
    border-radius: 22px;
  }
}


/* =========================================
   HOME LAYOUT V3 — light, high-tech, no black
   ========================================= */
.page-home {
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.55), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(219, 234, 254, 0.9), #eef2ff);
}

/* keep text readable but not pure black */
.page-home body,
.page-home main,
.page-home .hero-copy,
.page-home .surface-card {
  color: #1f2937;
}

.page-home main {
  position: relative;
  z-index: 0;
}

/* generic section rhythm on homepage */
.page-home main > section {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
}

/* soft white / light-blue panels instead of dark bands */
.page-home main > section::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: 1120px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,246,255,0.96));
  box-shadow:
    0 18px 50px rgba(148, 163, 184, 0.25),
    0 0 0 1px rgba(191, 219, 254, 0.7);
  z-index: -1;
}

/* slightly cooler tone for alternating sections, still light */
.page-home main > section:nth-of-type(2)::before,
.page-home main > section:nth-of-type(4)::before {
  background:
    linear-gradient(145deg, rgba(239,246,255,0.98), rgba(224,242,254,0.96));
  box-shadow:
    0 20px 55px rgba(148,163,184,0.25),
    0 0 0 1px rgba(129, 199, 245, 0.7);
}

/* hero sits directly on the global background */
.page-home main > section.hero::before {
  display: none;
}

/* cards on homepage — lighter, no heavy dark shadows */
.page-home .surface-card {
  border-radius: 20px;
  background: rgba(255,255,255,0.98);
  box-shadow:
    0 12px 32px rgba(148, 163, 184, 0.28),
    0 0 0 1px rgba(209, 213, 219, 0.7);
}

/* keep the hero visual card bright (no pure black) */
.page-home .hero-visual-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.7), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.9), rgba(79, 70, 229, 0.95));
  box-shadow:
    0 22px 60px rgba(129, 140, 248, 0.6),
    0 0 0 1px rgba(191, 219, 254, 0.6);
}

.page-home .hero-visual-bar {
  background: linear-gradient(90deg, #dbeafe, #818cf8, #38bdf8);
  box-shadow:
    0 0 0 1px rgba(129,140,248,0.6),
    0 18px 40px rgba(129,140,248,0.7);
}

/* mobile tuning for home */
@media (max-width: 768px) {
  .page-home main > section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-home main > section::before {
    border-radius: 20px;
  }
}


/* =========================================
   HOME LAYOUT V4 — white base, refined layout
   ========================================= */

/* Always keep homepage base white */
.page-home {
  background: #ffffff !important;
}

/* Sections: clean vertical rhythm, no colored bands */
.page-home main > section {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Kill previous ::before panels / gradients on home sections */
.page-home main > section::before {
  display: none !important;
  content: none !important;
}

/* Keep hero spacing a bit tighter (since header is sticky) */
.page-home main > section.hero {
  padding-top: 40px;
  padding-bottom: 56px;
}

/* Cards on homepage — subtle, light, tech-y */
.page-home .surface-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 10px 28px rgba(148, 163, 184, 0.16),
    0 0 0 1px rgba(226, 232, 240, 0.9);
}

/* Constrain key grids to a clean content width */
.page-home .product-suite-grid,
.page-home .stat-grid-3,
.page-home .analytics-grid-3,
.page-home .somali-stack-grid,
.page-home .section-inner {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* Section headings: consistent spacing on home */
.page-home h2.section-title,
.page-home .section-header h2 {
  margin-bottom: 10px;
}

.page-home .section-header p,
.page-home .section-lead {
  margin-top: 4px;
  max-width: 640px;
}

/* Mobile tuning: reduce vertical padding a bit */
@media (max-width: 768px) {
  .page-home main > section {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}


/* =========================================
   HERO VISUAL STYLE 1 — Blue Pulse Waveform
   (keeps existing markup, only restyles)
   ========================================= */

.hero-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 24px 30px 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.85), transparent 60%),
    linear-gradient(145deg, #e0f2fe, #dbeafe, #e5e7ff);
  box-shadow:
    0 22px 55px rgba(148, 163, 184, 0.45),
    0 0 0 1px rgba(191, 219, 254, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-visual-card-inner {
  position: relative;
  z-index: 1;
}

.hero-visual-label {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.7);
  margin-bottom: 18px;
}

/* pill bar container */
.hero-visual-bar {
  position: relative;
  border-radius: 999px;
  height: 84px;
  background: linear-gradient(90deg, #eff6ff, #e0f2fe);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.95),
    0 18px 40px rgba(148, 163, 184, 0.45);
}

/* animated waveform layer */
.hero-visual-bar::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle at 0% 50%, rgba(59,130,246,0.95) 0, transparent 55%),
    radial-gradient(circle at 35% 40%, rgba(129,140,248,0.55) 0, transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(56,189,248,0.65) 0, transparent 55%),
    radial-gradient(circle at 100% 50%, rgba(96,165,250,0.95) 0, transparent 55%);
  background-size: 220% 120%;
  background-repeat: no-repeat;
  animation: heroWaveFlow 9s ease-in-out infinite alternate;
  opacity: 1;
  mix-blend-mode: screen;
}

/* soft highlight passing over bar */
.hero-visual-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.65), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* subtle moving particle */
.hero-visual-dot {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0, #e0f2fe 45%, transparent 75%);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 32px rgba(191, 219, 254, 0.95),
    0 0 0 1px rgba(255,255,255,0.9);
  animation: heroDotDrift 7.5s ease-in-out infinite alternate;
}

/* modes list under the bar */
.hero-visual-modes {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-visual-modes li {
  font-size: 15px;
  color: rgba(15, 23, 42, 0.82);
  margin-bottom: 4px;
}

/* keep arrow prefix readable */
.hero-visual-modes li span {
  opacity: 0.95;
}

/* wave animation */
@keyframes heroWaveFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 70% 48%; }
  100% { background-position: 120% 52%; }
}

/* dot drifting smoothly across */
@keyframes heroDotDrift {
  0%   { left: 10%; opacity: 0.95; }
  40%  { left: 50%; opacity: 1.0; }
  80%  { left: 88%; opacity: 0.95; }
  100% { left: 90%; opacity: 0.7; }
}

/* responsive tweaks */
@media (max-width: 768px) {
  .hero-visual-card {
    padding: 18px 18px 20px;
    border-radius: 26px;
  }
  .hero-visual-bar {
    height: 64px;
  }
  .hero-visual-label {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero-visual-modes li {
    font-size: 14px;
  }
}


/* =========================================
   HERO VISUAL STYLE 2 — Flow Ribbon Pipeline
   (overrides previous hero-visual styles)
   ========================================= */

.hero-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 24px 30px 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(221, 239, 253, 0.95), #ffffff);
  box-shadow:
    0 24px 60px rgba(148, 163, 184, 0.45),
    0 0 0 1px rgba(209, 213, 219, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-visual-card-inner {
  position: relative;
  z-index: 1;
}

.hero-visual-label {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.72);
  margin-bottom: 18px;
}

/* FLOW RIBBON PIPELINE */
.hero-visual-bar {
  position: relative;
  border-radius: 999px;
  height: 88px;
  background: linear-gradient(115deg, #eff6ff, #e0f2fe, #eef2ff);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.95),
    0 20px 40px rgba(148, 163, 184, 0.45);
}

/* animated ribbon path */
.hero-visual-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      120deg,
      rgba(59,130,246,0.0) 0%,
      rgba(59,130,246,0.65) 20%,
      rgba(129,140,248,0.95) 50%,
      rgba(56,189,248,0.65) 80%,
      rgba(37,99,235,0.0) 100%
    );
  background-size: 220% 140%;
  background-position: -40% 50%;
  mix-blend-mode: screen;
  opacity: 1;
  filter: blur(2px);
  animation: heroRibbonFlow 8.5s ease-in-out infinite;
}

/* subtle secondary texture */
.hero-visual-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(255,255,255,0.7), transparent 55%),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,0.55), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* traveling capsule along the ribbon */
.hero-visual-dot {
  position: absolute;
  top: 52%;
  left: 10%;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0, #e0f2fe 45%, transparent 75%);
  box-shadow:
    0 0 32px rgba(191, 219, 254, 0.95),
    0 0 0 1px rgba(255,255,255,0.9);
  transform: translate(-50%, -50%);
  animation: heroDotPipeline 7.2s ease-in-out infinite alternate;
}

/* bullet list under bar */
.hero-visual-modes {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-visual-modes li {
  font-size: 15px;
  color: rgba(15, 23, 42, 0.84);
  margin-bottom: 4px;
}

.hero-visual-modes li span {
  opacity: 0.95;
}

/* ANIMATIONS */

@keyframes heroRibbonFlow {
  0%   { background-position: -40% 52%; }
  40%  { background-position: 20% 48%; }
  80%  { background-position: 90% 52%; }
  100% { background-position: 110% 50%; }
}

@keyframes heroDotPipeline {
  0%   { left: 12%; opacity: 1; }
  35%  { left: 45%; opacity: 1.0; }
  70%  { left: 82%; opacity: 1; }
  100% { left: 88%; opacity: 0.8; }
}

/* responsive tweaks */
@media (max-width: 768px) {
  .hero-visual-card {
    padding: 18px 18px 20px;
    border-radius: 26px;
  }
  .hero-visual-bar {
    height: 64px;
  }
  .hero-visual-label {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero-visual-modes li {
    font-size: 14px;
  }
}


/* =========================================
   HERO VISUAL MODE CYCLE — 3 phases
   Phases:
   1) Audio → Text (ASR)
   2) Text → Voice (TTS)
   3) Text → Embeddings
   ========================================= */

.hero-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 24px 30px 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(239, 246, 255, 0.95), #ffffff);
  box-shadow:
    0 24px 60px rgba(148, 163, 184, 0.35),
    0 0 0 1px rgba(209, 213, 219, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-visual-card-inner {
  position: relative;
  z-index: 1;
}

.hero-visual-label {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.7);
  margin-bottom: 18px;
}

/* MAIN BAR WITH 3 PHASES */
.hero-visual-bar {
  position: relative;
  border-radius: 999px;
  height: 88px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.9),
    0 20px 44px rgba(148, 163, 184, 0.45);
  animation: heroBarPhases 18s ease-in-out infinite;
}

/* texture for waveform / pulses / grid */
.hero-visual-bar::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-size: 260% 160%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 1;
  animation: heroBarTexturePhases 18s ease-in-out infinite;
}

.hero-visual-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 40%, rgba(255,255,255,0.7), transparent 55%),
    radial-gradient(circle at 88% 60%, rgba(255,255,255,0.6), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* MOVING DOT FOLLOWING PIPELINE */
.hero-visual-dot {
  position: absolute;
  top: 52%;
  left: 10%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0, #e0f2fe 45%, transparent 75%);
  box-shadow:
    0 0 32px rgba(191, 219, 254, 0.95),
    0 0 0 1px rgba(255,255,255,0.9);
  transform: translate(-50%, -50%);
  animation: heroDotPhases 18s ease-in-out infinite;
}

/* BULLET LIST */
.hero-visual-modes {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-visual-modes li {
  font-size: 15px;
  color: rgba(15, 23, 42, 0.6);
  margin-bottom: 4px;
  transition: color 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
  opacity: 0.6;
}

/* each bullet gets its own highlight animation */
.hero-visual-modes li:nth-child(1) {
  animation: heroBulletPhase1 18s infinite;
}

.hero-visual-modes li:nth-child(2) {
  animation: heroBulletPhase2 18s infinite;
}

.hero-visual-modes li:nth-child(3) {
  animation: heroBulletPhase3 18s infinite;
}

.hero-visual-modes li span {
  opacity: 1;
}

/* ==========================
   KEYFRAMES — BAR BASE COLOR
   ========================== */
/* 0–33% : ASR — waveform left→right
   33–66%: TTS — pulses from text to speaker
   66–100%: Embeddings — soft grid / clusters */

@keyframes heroBarPhases {
  0%, 30% {
    background: linear-gradient(115deg, #e0f2fe, #bfdbfe, #dbeafe);
  }
  33%, 63% {
    background: linear-gradient(115deg, #eef2ff, #e0f2fe, #ddd6fe);
  }
  66%, 100% {
    background: linear-gradient(115deg, #e0f2fe, #bae6fd, #cffafe);
  }
}

/* change internal texture per phase */
@keyframes heroBarTexturePhases {
  0%, 30% {
    /* ASR: waveform feeling */
    background-image:
      radial-gradient(circle at 0% 50%, rgba(59,130,246,0.65) 0, transparent 55%),
      radial-gradient(circle at 35% 40%, rgba(129,140,248,0.55) 0, transparent 55%),
      radial-gradient(circle at 70% 60%, rgba(56,189,248,0.65) 0, transparent 55%),
      radial-gradient(circle at 100% 50%, rgba(37,99,235,0.55) 0, transparent 55%);
    background-position: 0% 48%;
  }
  33%, 63% {
    /* TTS: pulse from center to right */
    background-image:
      radial-gradient(circle at 45% 50%, rgba(129,140,248,0.95) 0, transparent 55%),
      radial-gradient(circle at 85% 50%, rgba(56,189,248,0.95) 0, transparent 55%);
    background-position: 20% 50%;
  }
  66%, 100% {
    /* Embeddings: clustered dots / grid */
    background-image:
      radial-gradient(circle at 30% 40%, rgba(59,130,246,0.65) 0, transparent 55%),
      radial-gradient(circle at 55% 55%, rgba(37,99,235,0.55) 0, transparent 55%),
      radial-gradient(circle at 80% 60%, rgba(14,165,233,0.75) 0, transparent 55%);
    background-position: 35% 52%;
  }
}

/* DOT TRAVEL PATTERN */
@keyframes heroDotPhases {
  0% {
    left: 14%; opacity: 1;
  }
  25% {
    left: 86%; opacity: 1;
  }
  30% {
    left: 82%; opacity: 0.95;
  }
  33% {
    left: 82%; opacity: 0.95;
  }
  50% {
    left: 20%; opacity: 1;
  }
  63% {
    left: 24%; opacity: 0.95;
  }
  66% {
    left: 50%; opacity: 1;
  }
  83% {
    left: 65%; opacity: 1;
  }
  100% {
    left: 50%; opacity: 0.85;
  }
}

/* BULLET HIGHLIGHTS */

@keyframes heroBulletPhase1 {
  0%, 30% {
    color: rgba(15, 23, 42, 0.96);
    opacity: 1;
    transform: translateX(0);
  }
  35%, 100% {
    color: rgba(15, 23, 42, 0.55);
    opacity: 0.6;
    transform: translateX(0);
  }
}

@keyframes heroBulletPhase2 {
  0%, 30% {
    color: rgba(15, 23, 42, 0.55);
    opacity: 0.6;
  }
  33%, 63% {
    color: rgba(15, 23, 42, 0.96);
    opacity: 1;
    transform: translateX(2px);
  }
  68%, 100% {
    color: rgba(15, 23, 42, 0.55);
    opacity: 0.6;
    transform: translateX(0);
  }
}

@keyframes heroBulletPhase3 {
  0%, 63% {
    color: rgba(15, 23, 42, 0.55);
    opacity: 0.6;
  }
  66%, 100% {
    color: rgba(15, 23, 42, 0.96);
    opacity: 1;
    transform: translateX(2px);
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .hero-visual-card {
    padding: 18px 18px 20px;
    border-radius: 26px;
  }
  .hero-visual-bar {
    height: 64px;
  }
  .hero-visual-label {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero-visual-modes li {
    font-size: 14px;
  }
}


/* =========================================
   HERO VISUAL VISIBILITY BOOST V2
   Clearer bar + stronger but light blues
   ========================================= */

/* Card stays light but with more defined edge */
.hero-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 24px 30px 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.8), transparent 60%),
    linear-gradient(145deg, #ffffff, #eef2ff);
  box-shadow:
    0 20px 48px rgba(148,163,184,0.35),
    0 0 0 1px rgba(191,219,254,0.9);
}

/* BAR: clearly blue, no longer almost-white */
.hero-visual-bar {
  position: relative;
  border-radius: 999px;
  height: 84px;
  overflow: hidden;
  background: linear-gradient(90deg, #dbeafe, #93c5fd, #e0f2fe);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.45),
    0 18px 40px rgba(148,163,184,0.4);
}

/* Wave / ribbon texture — visibly blue now */
.hero-visual-bar::before {
  content: "";
  position: absolute;
  inset: -15%;
  background-image:
    radial-gradient(circle at 5% 50%, rgba(59,130,246,0.75) 0, transparent 55%),
    radial-gradient(circle at 40% 40%, rgba(129,140,248,0.75) 0, transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(56,189,248,0.75) 0, transparent 55%),
    radial-gradient(circle at 105% 50%, rgba(37,99,235,0.7) 0, transparent 55%);
  background-size: 220% 150%;
  background-position: 0% 50%;
  mix-blend-mode: screen;
  opacity: 1;
  animation: heroWaveStrong 9s ease-in-out infinite alternate;
}

/* Light sheen over the bar */
.hero-visual-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.65), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* Dot: brighter and clearer */
.hero-visual-dot {
  position: absolute;
  top: 52%;
  left: 12%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0, #e0f2fe 45%, transparent 75%);
  box-shadow:
    0 0 40px rgba(191,219,254,0.95),
    0 0 0 1px rgba(255,255,255,0.95);
  transform: translate(-50%, -50%);
  animation: heroDotStrong 7.5s ease-in-out infinite alternate;
}

/* Bullets: slightly darker by default */
.hero-visual-modes {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-visual-modes li {
  font-size: 15px;
  color: rgba(15,23,42,0.8);
  margin-bottom: 4px;
  opacity: 0.9;
}

.hero-visual-modes li span {
  opacity: 0.9;
}

/* Stronger wave animation */
@keyframes heroWaveStrong {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 60% 48%; }
  100% { background-position: 120% 52%; }
}

/* Dot travels clearly across */
@keyframes heroDotStrong {
  0%   { left: 12%; opacity: 1;   }
  40%  { left: 50%; opacity: 1;   }
  80%  { left: 88%; opacity: 0.95;}
  100% { left: 90%; opacity: 0.85;}
}

/* Mobile */
@media (max-width: 768px) {
  .hero-visual-card {
    padding: 18px 18px 20px;
    border-radius: 26px;
  }
  .hero-visual-bar {
    height: 64px;
  }
  .hero-visual-label {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero-visual-modes li {
    font-size: 14px;
  }
}


/* =========================================
   HERO VISUAL STYLE 3 — Neural Beam Scanner (Strong Cyan Neon)
   ========================================= */

/* Card: light, but with clear edge and subtle cyan glow */
.hero-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 24px 30px 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(191, 219, 254, 0.80), transparent 60%),
    linear-gradient(145deg, #ffffff, #f0f9ff);
  box-shadow:
    0 22px 50px rgba(148, 163, 184, 0.35),
    0 0 0 1px rgba(125, 211, 252, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-visual-card-inner {
  position: relative;
  z-index: 1;
}

.hero-visual-label {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.7);
  margin-bottom: 18px;
}

/* BAR: strong cyan neon outline, bright enough on white */
.hero-visual-bar {
  position: relative;
  border-radius: 999px;
  height: 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #ecfeff 0, #e0f2fe 40%, #cffafe 85%);
  border: 1px solid rgba(6, 182, 212, 0.95);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.55),
    0 16px 38px rgba(148, 163, 184, 0.45);
}

/* NEON SCANNING BEAM */
.hero-visual-bar::before {
  content: "";
  position: absolute;
  top: -5%;
  bottom: -5%;
  width: 60%;
  left: -60%;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.0),
    rgba(6, 182, 212, 0.9),
    rgba(45, 212, 191, 0.0)
  );
  filter: blur(1.2px);
  opacity: 0.98;
  animation: heroNeonScan 5.2s ease-in-out infinite;
}

/* subtle texture / particles */
.hero-visual-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 35%, rgba(255,255,255,0.7) 0, transparent 55%),
    radial-gradient(circle at 55% 60%, rgba(255,255,255,0.55) 0, transparent 55%),
    radial-gradient(circle at 85% 45%, rgba(125,211,252,0.55) 0, transparent 60%);
  opacity: 0.95;
}

/* DOT: strong cyan glow, clearly visible */
.hero-visual-dot {
  position: absolute;
  top: 52%;
  left: 10%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, #ecfeff 0, #06b6d4 40%, transparent 75%);
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.95),
    0 0 0 1px rgba(236, 252, 255, 1);
  transform: translate(-50%, -50%);
  animation: heroDotScan 5.2s ease-in-out infinite;
}

/* BULLETS: make sure they are readable and static (no old animations) */
.hero-visual-modes {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-visual-modes li {
  font-size: 15px;
  color: rgba(15, 23, 42, 0.85);
  margin-bottom: 4px;
  opacity: 0.95;
  animation: none !important;
}

.hero-visual-modes li span {
  opacity: 0.9;
}

/* ANIMATIONS */

/* Scanning beam moves across bar */
@keyframes heroNeonScan {
  0%   { left: -60%; }
  45%  { left: 10%; }
  100% { left: 80%; }
}

/* Dot follows pipeline, clearly visible */
@keyframes heroDotScan {
  0%   { left: 12%; opacity: 1;   }
  45%  { left: 50%; opacity: 1;   }
  100% { left: 88%; opacity: 0.9; }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-visual-card {
    padding: 18px 18px 20px;
    border-radius: 26px;
  }
  .hero-visual-bar {
    height: 64px;
  }
  .hero-visual-label {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero-visual-modes li {
    font-size: 14px;
  }
}


/* =========================================
   HOME HERO LAYOUT OMEGA — asymmetrical high-tech
   ========================================= */

.page-home .page-hero {
  background: #ffffff !important;
  padding-top: 52px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.page-home .hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 40px;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .hero-copy h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-home .hero-copy h1::after {
  content: "";
  display: block;
  margin-top: 12px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  opacity: 0.9;
}

.page-home .hero-copy p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 20px;
}

.page-home .hero-copy .hero-ctas,
.page-home .hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .hero-copy .btn-primary,
.page-home .hero-copy .btn-secondary {
  border-radius: 999px;
  padding-inline: 18px;
  padding-block: 9px;
  font-size: 14px;
}

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

.page-home .hero-visual-card {
  position: relative;
  border-radius: 30px;
  padding: 22px 24px 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(191,219,254,0.85), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(219,234,254,0.95), #ffffff);
  box-shadow:
    0 20px 52px rgba(148,163,184,0.45),
    0 0 0 1px rgba(191,219,254,0.85);
  transform: translateY(4px);
}

.page-home .hero-visual-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  color: rgba(15,23,42,0.7);
}

.page-home .hero-visual-bar {
  margin-bottom: 16px;
}

.page-home .hero-visual-modes {
  margin-top: 12px;
}

/* MOBILE */
@media (max-width: 900px) {
  .page-home .page-hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
  }

  .page-home .hero-copy h1 {
    font-size: 30px;
  }

  .page-home .hero-copy h1::after {
    width: 60px;
    margin-top: 10px;
  }

  .page-home .hero-copy p {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .page-home .hero-visual-card {
    transform: none;
    padding: 18px 18px 20px;
    border-radius: 24px;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .page-home .hero-copy h1 {
    font-size: 26px;
  }

  .page-home .hero-copy .hero-ctas,
  .page-home .hero-copy .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}


/* =========================================
   METRIC NUMBER ANIMATION V1 — count-up + pulse
   ========================================= */

.metric-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  position: relative;
  animation: metricPulse 2.4s ease-in-out infinite;
}

.metric-number::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,0.0), rgba(34,211,238,0.85), rgba(59,130,246,0.0));
  opacity: 0.0;
  animation: metricUnderline 2.4s ease-in-out infinite;
}

/* Soft scale + glow */
@keyframes metricPulse {
  0%   { transform: scale(1);   text-shadow: 0 0 0 rgba(34,211,238,0); }
  40%  { transform: scale(1.03); text-shadow: 0 0 14px rgba(34,211,238,0.55); }
  100% { transform: scale(1);   text-shadow: 0 0 0 rgba(34,211,238,0); }
}

/* Underline shimmer */
@keyframes metricUnderline {
  0%   { opacity: 0; transform: scaleX(0.4); }
  40%  { opacity: 0.9; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0.5); }
}

/* Optional: if metrics section has a container class, we can slightly adjust spacing there */
.metrics-grid,
.impact-metrics {
  row-gap: 18px;
}


/* =========================================
   AFTA CHATBOT WIDGET V1
   ========================================= */

.afta-chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #e0f2fe, #0ea5e9);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(191, 219, 254, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.afta-chat-launcher:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(191, 219, 254, 0.95);
}

.afta-chat-launcher-icon {
  font-size: 20px;
  color: #ffffff;
}

.afta-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 320px;
  max-height: 420px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(226, 232, 240, 0.9);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-size: 14px;
}

.afta-chat-widget.open {
  display: flex;
}

.afta-chat-header {
  padding: 10px 14px;
  background: linear-gradient(120deg, #0ea5e9, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.afta-chat-header-left {
  display: flex;
  flex-direction: column;
}

.afta-chat-title {
  font-weight: 600;
  font-size: 14px;
}

.afta-chat-subtitle {
  font-size: 12px;
  opacity: 0.86;
}

.afta-chat-close {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
}

.afta-chat-close:hover {
  opacity: 1;
}

.afta-chat-body {
  padding: 10px 12px;
  background: linear-gradient(180deg, #f9fafb, #eff6ff);
  flex: 1;
  overflow-y: auto;
}

.afta-chat-message {
  max-width: 80%;
  border-radius: 14px;
  padding: 8px 10px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.afta-chat-message.bot {
  background: #e0f2fe;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.afta-chat-message.user {
  margin-left: auto;
  background: #0ea5e9;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.afta-chat-footer {
  display: flex;
  padding: 8px 8px 9px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  gap: 6px;
}

.afta-chat-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}

.afta-chat-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3);
}

.afta-chat-send-btn {
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #0ea5e9, #3b82f6);
  color: #ffffff;
  font-size: 13px;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.afta-chat-send-btn:hover {
  filter: brightness(1.03);
}

/* Mobile: take more width, move up slightly */
@media (max-width: 480px) {
  .afta-chat-widget {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 76px;
  }
  .afta-chat-launcher {
    right: 16px;
    bottom: 16px;
  }
}


/* =========================================
   TECH ARCH SECTION V1 — Somali AI stack
   ========================================= */

.tech-arch-section {
  padding: 56px 0 60px;
  background: #ffffff;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.tech-arch-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.tech-arch-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.tech-arch-header h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.tech-arch-header p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

/* Horizontal flow */
.tech-arch-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 14px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.9), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(219, 234, 254, 0.6), #ffffff);
  box-shadow:
    0 18px 40px rgba(148, 163, 184, 0.28),
    0 0 0 1px rgba(191, 219, 254, 0.9);
}

/* Connector line behind nodes */
.tech-arch-connector {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bfdbfe, #60a5fa, #a5b4fc, #22d3ee);
  opacity: 0.9;
  pointer-events: none;
}

/* Nodes (layers) */
.tech-arch-node {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 14px 12px 14px;
  box-shadow:
    0 10px 24px rgba(148, 163, 184, 0.22),
    0 0 0 1px rgba(209, 213, 219, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-arch-node h3 {
  font-size: 15px;
  margin: 0 0 2px;
}

.tech-arch-tagline {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 4px;
}

.tech-arch-node ul {
  margin: 0;
  padding-left: 16px;
}

.tech-arch-node li {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}

/* Number badge */
.tech-arch-badge {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.4);
}

/* Subtle flow animation along connector */
.tech-arch-flow::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(14,165,233,0.9), rgba(255,255,255,0));
  background-size: 160% 100%;
  animation: techArchScan 6s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes techArchScan {
  0%   { background-position: -40% 0; opacity: 0.0; }
  15%  { opacity: 1; }
  50%  { background-position: 50% 0; opacity: 1; }
  85%  { opacity: 0.0; }
  100% { background-position: 140% 0; opacity: 0.0; }
}

.tech-arch-footer {
  max-width: 780px;
  font-size: 13px;
  color: #4b5563;
}

/* Responsive: stack layers on small screens */
@media (max-width: 900px) {
  .tech-arch-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }
  .tech-arch-connector,
  .tech-arch-flow::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .tech-arch-section {
    padding: 40px 0 44px;
  }
  .tech-arch-flow {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 10px 16px;
  }
}


/* =========================================
   EMBEDDING FIELD HERO ILLUSTRATION V1
   Animated semantic space inside hero card
   ========================================= */

.hero-embedding-field {
  position: relative;
  margin-top: 14px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(219,234,254,0.95), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(186,230,253,0.9), transparent 55%),
    #f9fafb;
  box-shadow:
    inset 0 0 0 1px rgba(191,219,254,0.9),
    0 14px 28px rgba(148,163,184,0.28);
}

/* Base layer container */
.hero-embedding-field .embed-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Subtle grid to feel like a latent space */
.embed-layer--grid::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    linear-gradient(to right, rgba(209,213,219,0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(209,213,219,0.28) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  filter: blur(0.3px);
}

/* Orbits: clusters that move slowly */
.embed-layer--orbits {
  display: block;
}

.embed-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, #eff6ff 0, #60a5fa 40%, rgba(14,165,233,0.0) 75%);
  box-shadow:
    0 0 26px rgba(37,99,235,0.35),
    0 0 0 1px rgba(219,234,254,0.9);
}

.embed-node--a {
  top: 26%;
  left: 20%;
  animation: embedOrbitA 14s ease-in-out infinite;
}

.embed-node--b {
  top: 60%;
  left: 52%;
  width: 15px;
  height: 15px;
  animation: embedOrbitB 16s ease-in-out infinite;
}

.embed-node--c {
  top: 34%;
  left: 78%;
  width: 20px;
  height: 20px;
  animation: embedOrbitC 18s ease-in-out infinite;
}

/* Particles: lightweight dots drifting */
.embed-layer--particles .embed-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #f9fafb 0, #93c5fd 40%, rgba(147,197,253,0.0) 75%);
  opacity: 0.8;
}

.embed-layer--particles .p1 { top: 18%; left: 32%; animation: embedDrift1 12s linear infinite; }
.embed-layer--particles .p2 { top: 68%; left: 18%; animation: embedDrift2 14s linear infinite; }
.embed-layer--particles .p3 { top: 44%; left: 44%; animation: embedDrift3 15s linear infinite; }
.embed-layer--particles .p4 { top: 24%; left: 66%; animation: embedDrift4 13s linear infinite; }
.embed-layer--particles .p5 { top: 72%; left: 70%; animation: embedDrift5 16s linear infinite; }
.embed-layer--particles .p6 { top: 52%; left: 88%; animation: embedDrift6 17s linear infinite; }

/* ORBIT ANIMATIONS */

@keyframes embedOrbitA {
  0%   { transform: translate(0, 0) scale(1);   opacity: 0.95; }
  25%  { transform: translate(18px, 6px) scale(1.05); opacity: 1; }
  50%  { transform: translate(6px, 20px) scale(0.98); opacity: 0.9; }
  75%  { transform: translate(-10px, 12px) scale(1.03); opacity: 0.95; }
  100% { transform: translate(0, 0) scale(1);   opacity: 0.95; }
}

@keyframes embedOrbitB {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
  30%  { transform: translate(-14px, -10px) scale(1.05); opacity: 1; }
  60%  { transform: translate(10px, -4px) scale(0.96); opacity: 0.85; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
}

@keyframes embedOrbitC {
  0%   { transform: translate(0, 0) scale(1.02); opacity: 0.95; }
  20%  { transform: translate(-12px, 10px) scale(1.08); opacity: 1; }
  55%  { transform: translate(-4px, -6px) scale(0.97); opacity: 0.9; }
  100% { transform: translate(0, 0) scale(1.02); opacity: 0.95; }
}

/* DRIFT ANIMATIONS (small, slow movement) */

@keyframes embedDrift1 {
  0%   { transform: translate(0, 0);        opacity: 0.8; }
  50%  { transform: translate(12px, 8px);   opacity: 1;   }
  100% { transform: translate(0, 0);        opacity: 0.8; }
}

@keyframes embedDrift2 {
  0%   { transform: translate(0, 0);        opacity: 0.75; }
  50%  { transform: translate(10px, -6px);  opacity: 1;    }
  100% { transform: translate(0, 0);        opacity: 0.75; }
}

@keyframes embedDrift3 {
  0%   { transform: translate(0, 0);        opacity: 0.7; }
  50%  { transform: translate(-10px, 10px); opacity: 0.95; }
  100% { transform: translate(0, 0);        opacity: 0.7; }
}

@keyframes embedDrift4 {
  0%   { transform: translate(0, 0);        opacity: 0.8; }
  50%  { transform: translate(8px, 6px);    opacity: 1;   }
  100% { transform: translate(0, 0);        opacity: 0.8; }
}

@keyframes embedDrift5 {
  0%   { transform: translate(0, 0);        opacity: 0.75; }
  50%  { transform: translate(-12px, -4px); opacity: 1;    }
  100% { transform: translate(0, 0);        opacity: 0.75; }
}

@keyframes embedDrift6 {
  0%   { transform: translate(0, 0);         opacity: 0.7; }
  50%  { transform: translate(-8px, 10px);   opacity: 0.95;}
  100% { transform: translate(0, 0);         opacity: 0.7; }
}


/* =========================================
   HERO CAPABILITY PILLS STRIP V1
   Under-CTA high-tech chips
   ========================================= */

.hero-cap-pills-row {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, rgba(219,234,254,0.7), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(191,219,254,0.9), transparent 55%),
              #ffffff;
  box-shadow:
    0 0 0 1px rgba(191,219,254,0.9),
    0 12px 24px rgba(148,163,184,0.3);
}

.hero-cap-pill {
  font-size: 14px;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #0f172a;
  box-shadow:
    0 0 0 1px rgba(148,163,184,0.45),
    0 6px 14px rgba(148,163,184,0.45);
  white-space: nowrap;
}

@media (hover:hover) and (pointer:fine) {
  .hero-cap-pill {
    transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
  }
  .hero-cap-pill:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow:
      0 0 0 1px rgba(59,130,246,0.55),
      0 10px 22px rgba(59,130,246,0.35);
  }
}

@media (max-width: 640px) {
  .hero-cap-pills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 12px;
    gap: 8px;
  }
  .hero-cap-pill {
    font-size: 13px;
    padding: 6px 12px;
  }
}


/* =========================================
   HERO CTA STRIP V2
   Premium primary + secondary buttons
   ========================================= */

.hero-cta-row {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.hero-cta-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(191, 219, 254, 0.8);
}

.hero-cta-secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow:
    0 8px 20px rgba(148, 163, 184, 0.25),
    0 0 0 1px rgba(226, 232, 240, 0.9);
}

@media (hover:hover) and (pointer:fine) {
  .hero-cta {
    transition:
      transform 160ms ease-out,
      box-shadow 160ms ease-out,
      background 160ms ease-out,
      border-color 160ms ease-out,
      color 160ms ease-out;
  }

  .hero-cta-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    box-shadow:
      0 16px 32px rgba(37, 99, 235, 0.45),
      0 0 0 1px rgba(191, 219, 254, 0.95);
  }

  .hero-cta-secondary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #f9fafb, #eff6ff);
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow:
      0 12px 26px rgba(148, 163, 184, 0.35),
      0 0 0 1px rgba(191, 219, 254, 0.9);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero-cta-row {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  .hero-cta {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 10px 18px;
  }
}


/* =========================================
   AFTA_ASSISTANT_MOBILE_TWEAKS_V1
   Make AFTA AI Assistant compact on mobile
   ========================================= */
@media (max-width: 768px) {
  /* Shell: smaller, floating card bottom-right */
  .assistant-shell {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: auto;
    width: min(360px, 90vw);
    max-height: 260px;
    border-radius: 18px;
    box-shadow:
      0 14px 40px rgba(15, 23, 42, 0.25),
      0 0 0 1px rgba(191, 219, 254, 0.9);
    overflow: hidden;
    z-index: 40;
  }

  /* Header: slimmer */
  .assistant-header {
    padding: 8px 10px;
    font-size: 13px;
  }

  .assistant-header h3 {
    font-size: 14px;
  }

  .assistant-header span {
    font-size: 11px;
  }

  /* Body: less padding & scrollable */
  .assistant-body {
    padding: 10px 10px 6px;
    font-size: 13px;
    line-height: 1.35;
    max-height: 150px;
    overflow-y: auto;
  }

  /* Input row: tighter */
  .assistant-input-row {
    padding: 6px 8px 8px;
  }

  .assistant-input-row input[type="text"],
  .assistant-input-row input {
    font-size: 13px;
    padding: 7px 10px;
  }

  .assistant-input-row button {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .assistant-shell {
    right: 8px;
    bottom: 8px;
    width: min(330px, 94vw);
    max-height: 230px;
  }

  .assistant-body {
    max-height: 135px;
  }
}


/* =======================================================
   HERO CTA STRIP V3 — high-tech enterprise layout
   Applies to: Try the demo / Contact sales + capability pills
   ======================================================= */

.page-home .hero-copy {
  max-width: 620px;
}

/* CTA row */
.page-home .hero-copy .hero-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* Primary / secondary buttons */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    border-color 0.16s ease-out,
    color 0.16s ease-out;
}

.hero-cta-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
  box-shadow:
    0 14px 30px rgba(37, 99, 235, 0.40),
    0 0 0 1px rgba(191, 219, 254, 0.9);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(229, 231, 235, 1);
}

/* Hover states */
.hero-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(191, 219, 254, 1);
}

.hero-cta-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(191, 219, 254, 0.9);
}

/* Capability pill strip container */
.hero-cap-strip {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.9), transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(226, 232, 240, 0.9), transparent 70%),
    #f5f7ff;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(219, 234, 254, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Row of pills inside the strip */
.hero-cap-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Individual capability pill */
.hero-cap-pill {
  min-width: 112px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f9fbff;
  border: 1px solid rgba(191, 219, 254, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(148, 163, 184, 0.26);
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background 0.16s ease-out;
}

.hero-cap-pill:hover {
  transform: translateY(-1px);
  background: #eef2ff;
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow:
    0 16px 30px rgba(148, 163, 184, 0.32);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .page-home .hero-copy .hero-cta-row {
    margin-top: 22px;
  }

  .hero-cap-strip {
    margin-top: 16px;
    border-radius: 20px;
    padding: 10px 10px;
    width: 100%;
    justify-content: center;
  }

  .hero-cap-pills-row {
    justify-content: center;
  }

  .hero-cap-pill {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }
}


/* MOBILE_HEADER_SUBTITLE_V3 — show subtitle on mobile */
@media (max-width: 768px) {
  .site-header-inner {
    align-items: center;
  }

  .site-logo-block {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .site-logo-title,
  .site-header-title {
    font-size: 16px;
  }

  .site-logo-subtitle,
  .site-header-subtitle {
    display: block !important;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-top: 1px;
  }
}
