/* ============================================
   MandAI - Risk Intelligence landing site
   MandAI WordPress theme stylesheet
   ============================================ */

:root {
  --navy-950: #030711;
  --navy-900: #070c18;
  --navy-850: #0a1020;
  --navy-800: #101827;
  --ink: #111827;
  --slate: #6d7686;
  --slate-dark: #3e4656;
  --line: #d9deea;
  --line-dark: rgba(255,255,255,.12);
  --paper: #f5f7fb;
  --white: #ffffff;
  --purple: #6154f2;
  --purple-2: #8e74ff;
  --blue: #5a8dff;
  --cyan: #6be0ff;
  --danger: #f15d6a;
  --warning: #f6c74d;
  --success: #59d69a;
  --gradient: linear-gradient(135deg, var(--purple), var(--blue));
  --gradient-soft: linear-gradient(135deg, rgba(97,84,242,.22), rgba(90,141,255,.14));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1160px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 18px 45px rgba(11, 18, 32, .16);
  --shadow-dark: 0 24px 70px rgba(0,0,0,.38);
  --nav-height: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  min-width: 320px;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { letter-spacing: -.045em; line-height: 1.04; }
h1 { font-size: clamp(3rem, 6vw, 5.9rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.7vw, 4rem); font-weight: 400; }
h3 { font-size: clamp(1.16rem, 1.7vw, 1.55rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; letter-spacing: -.02em; }
p { color: rgba(255,255,255,.68); }
.section-light p, .challenge p { color: var(--slate-dark); }
.label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #6259d8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.label.centered { display: flex; justify-content: center; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-link {
  color: var(--slate-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.text-link:hover { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient);
  box-shadow: 0 18px 36px rgba(97,84,242,.32);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 22px 46px rgba(97,84,242,.45); }
.btn-outline {
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.btn-outline:hover { border-color: rgba(255,255,255,.46); background: rgba(255,255,255,.06); }
.btn-dark {
  background: rgba(6, 10, 20, .42);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.btn-ghost { background: transparent; color: #fff; opacity: .86; }
.btn-arrow::after { content: '→'; margin-left: 14px; font-size: 1.1em; transition: transform .2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.navbar.scrolled {
  background: rgba(3, 7, 17, .86);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 44px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
}
.nav-inner, .navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav-logo img { height: 57px; width: auto; max-width: 180px; object-fit: contain; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: max-content;
}
.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.1em;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f2dd6 0%, #7d6dff 48%, #53d8ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 16px 30px rgba(97,84,242,.24);
  position: relative;
  overflow: hidden;
}
.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  background: rgba(3,7,17,.42);
  border-radius: 4px;
  transform: rotate(26deg);
}
.logo-mark::before { width: 9px; height: 28px; left: 8px; top: 5px; }
.logo-mark::after { width: 9px; height: 28px; right: 7px; top: 5px; }
.logo-mark { font-size: 0; }
.logo-copy { display: flex; flex-direction: column; line-height: 1; }
.logo-copy strong { font-size: 1.52rem; letter-spacing: -.055em; }
.logo-copy small { margin-top: 5px; font-size: .55rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.64); }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}
.nav-links > li > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: rgba(255,255,255,.78);
  font-family: 'Space Grotesk', var(--font);
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  border-radius: var(--radius-xs);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { min-height: 44px; padding: 0 22px; }
.nav-dropdown { position: relative; }
.dropdown-toggle::after { content: '⌄'; margin-left: 8px; font-size: .85rem; opacity: .9; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 270px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(7,12,24,.96);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  font-weight: 650;
}
.dropdown-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 690px;
  padding: 160px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 45%, rgba(90,141,255,.24), transparent 29%),
    radial-gradient(circle at 52% 15%, rgba(97,84,242,.2), transparent 28%),
    linear-gradient(180deg, #020611 0%, #07101d 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 76%);
}
.hero-media {
  position: absolute;
  right: max(0px, calc((100vw - var(--container)) / 2 - 35px));
  top: 95px;
  width: min(58vw, 720px);
  height: 560px;
  background-image:
    linear-gradient(90deg, rgba(3,7,17,0) 58%, rgba(3,7,17,.1)),
    url('/blog/hero-earth-new.jpg');
  background-size: cover;
  background-position: center;
  opacity: .98;
  filter: saturate(1.1) contrast(1.05);
  border-radius: 42% 0 0 46%;
  mask-image: radial-gradient(ellipse at center, #000 48%, rgba(0,0,0,.82) 62%, transparent 78%);
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 46% 46%, transparent 0 42%, rgba(96,116,255,.24) 43%, transparent 45% 100%);
  mix-blend-mode: screen;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}
.hero-content { max-width: 650px; }
.hero-content p {
  max-width: 560px;
  margin: 24px 0 34px;
  font-size: 1.06rem;
  color: rgba(255,255,255,.78);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.intel-panel {
  align-self: center;
  justify-self: end;
  width: 300px;
  margin-top: 45px;
  padding: 24px 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(15,24,42,.76);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(20px);
}
.intel-panel h2 {
  margin-bottom: 14px;
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
.intel-item {
  display: grid;
  grid-template-columns: 38px 1fr 12px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.intel-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125,109,255,.28);
  border-radius: 10px;
  color: #7d6dff;
  background: rgba(125,109,255,.08);
  font-weight: 800;
}
.intel-item strong { display: block; color: #fff; font-size: .84rem; line-height: 1.15; }
.intel-item small { position: relative; color: rgba(255,255,255,.62); font-size: .72rem; }
.intel-item small::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--warning);
}
.intel-item:nth-of-type(2) small::before { background: var(--danger); }
.intel-item em { color: rgba(255,255,255,.5); font-size: 1.5rem; font-style: normal; }

/* ---------- Light sections ---------- */
.section-light {
  background: var(--paper);
  color: var(--ink);
}
.challenge {
  position: relative;
  padding: 70px 0 36px;
  overflow: hidden;
}
.challenge::after {
  content: none;
  display: none;
}
.challenge-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.challenge-title { padding-right: 44px; border-right: 1px solid var(--line); }
.challenge-title h2 { max-width: 430px; font-size: clamp(2.2rem, 4.2vw, 4.5rem); }
.challenge-copy { max-width: 560px; font-size: 1.02rem; }
.challenge-copy p + p { margin-top: 14px; }
.solutions { padding: 28px 0 56px; }
.solution-grid, .insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  position: relative;
  min-height: 312px;
  padding: 34px 30px 28px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
}
.solution-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2,7,18,.95), rgba(3,11,23,.7) 52%, rgba(7,13,29,.42));
}
.solution-card:hover img { transform: scale(1.07); }
.solution-card .card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 52px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: #9f95ff;
  font-size: 1.45rem;
}
.solution-card h3 { margin-bottom: 18px; }
.solution-card li { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.9; }
.solution-card strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: #7f72ff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.solution-card strong span { transition: transform .2s ease; }
.solution-card:hover strong span { transform: translateX(4px); }

/* ---------- Audience ---------- */
.audience { padding: 18px 0 62px; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audience-grid div {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  border-right: 1px solid var(--line);
  color: #424b5d;
}
.audience-grid div:last-child { border-right: 0; }
.audience-grid span { color: #6960db; font-size: 2rem; line-height: 1; }
.audience-grid strong { font-size: .9rem; line-height: 1.32; }

/* ---------- Approach ---------- */
.approach {
  position: relative;
  padding: 76px 0 80px;
  background:
    radial-gradient(circle at 38% 0%, rgba(97,84,242,.16), transparent 28%),
    linear-gradient(180deg, #050b18, #07101d);
  color: #fff;
  overflow: hidden;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 24px;
}
.approach-step { position: relative; padding-top: 24px; }
.approach-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 42px;
  right: -23px;
  width: calc(100% - 32px);
  height: 1px;
  background: linear-gradient(90deg, rgba(125,109,255,.5), rgba(125,109,255,.04));
}
.approach-step > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(125,109,255,.44);
  border-radius: 999px;
  background: rgba(4,9,20,.5);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}
.approach-step h3 { margin-bottom: 12px; font-size: 1.08rem; }
.approach-step p { max-width: 170px; font-size: .9rem; color: rgba(255,255,255,.66); }

/* ---------- Insights ---------- */
.insights-home { padding: 64px 0 36px; }
.section-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.insight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(23, 31, 47, .08);
}
.insight-card > img { width: 100%; height: 156px; object-fit: cover; }
.insight-card > div { position: relative; min-height: 192px; padding: 24px 26px 30px; }
.insight-card span {
  display: block;
  margin-bottom: 10px;
  color: #5b55d7;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.insight-card h3 { max-width: 310px; color: #101827; font-size: 1.18rem; line-height: 1.25; }
.insight-card p { margin-top: 12px; color: #5e6677; font-size: .88rem; }
.insight-card a {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f0f3fa;
  color: #172036;
  font-size: 1.22rem;
  transition: transform .2s ease, background .2s ease;
}
.insight-card:hover a { transform: translateX(4px); background: #e3e8f5; }

/* ---------- CTA ---------- */
.final-cta-section { padding: 0 0 54px; }
.final-cta {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 72% 50%, rgba(90,141,255,.22), transparent 26%),
    linear-gradient(135deg, #221a76, #4e42d0 58%, #5f55e6);
  color: #fff;
  box-shadow: 0 30px 65px rgba(78,66,208,.25);
}
.cta-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 42px rgba(107,224,255,.18);
  color: #fff;
  font-size: 1.8rem;
}
.final-cta h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.18; }
.cta-actions { display: grid; gap: 10px; min-width: 270px; }

/* ---------- Shared old page support ---------- */
.section { padding: 110px 0; background: var(--navy-950); color: #fff; }
.section-alt { background: var(--navy-900); }
.section-header { max-width: 840px; margin: 0 auto 52px; text-align: center; }
.section-header p { margin: 20px auto 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.glass-card, .pillar-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow-dark);
}
.glass-card p { margin-top: 12px; }
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(97,84,242,.14);
  color: #9387ff;
}
.feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 62px; }
.feature-image img { border-radius: 24px; box-shadow: var(--shadow-dark); }
.cta-banner {
  padding: 62px;
  text-align: center;
  border-radius: 24px;
  background: var(--gradient-soft);
  border: 1px solid rgba(255,255,255,.12);
}
.cta-banner p { margin: 18px auto 28px; }
.page-header {
  padding: 170px 0 88px;
  background: radial-gradient(circle at 70% 0%, rgba(97,84,242,.28), transparent 36%), linear-gradient(180deg, #040914, #07101d);
}
.page-header p { max-width: 760px; margin-top: 22px; font-size: 1.08rem; }
.form-group { display: grid; gap: 8px; margin-bottom: 18px; }
.form-group label { color: rgba(255,255,255,.76); font-size: .85rem; font-weight: 700; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: rgba(125,109,255,.7); }
.partners-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.social-links { display: flex; gap: 12px; }

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  background: linear-gradient(180deg, #030711, #02050b);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 34px;
}
.footer-brand p { max-width: 260px; margin-top: 20px; font-size: .88rem; color: rgba(255,255,255,.58); }
.linkedin {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  color: #fff;
  font-weight: 800;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 {
  margin-bottom: 10px;
  color: rgba(255,255,255,.92);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-links a, .footer-links span, .footer-links li {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  line-height: 1.45;
  transition: color .2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.44);
  font-size: .78rem;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.footer ul { list-style: none; }
.footer li + li { margin-top: 8px; }

/* ---------- Animations ---------- */
.reveal, .reveal-left, .reveal-right, .stagger-children > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .stagger-children.visible > * {
  opacity: 1;
  transform: translate(0,0);
}
.stagger-children.visible > *:nth-child(2) { transition-delay: .08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: .16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: .24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: .32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav-links { gap: 2px; }
  .nav-links > li > a { padding-inline: 10px; }
  .hero-grid { grid-template-columns: 1fr 280px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 920px) {
  .container { width: min(100% - 34px, var(--container)); }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 17px;
    right: 17px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(3,7,17,.96);
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(18px);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { justify-content: space-between; width: 100%; padding: 12px 14px; }
  .nav-cta { margin-top: 8px; }
  .nav-dropdown:hover .dropdown-menu { opacity: 0; pointer-events: none; transform: translateY(-6px); }
  .nav-dropdown.open .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: rgba(255,255,255,.045);
    box-shadow: none;
  }
  .hero { min-height: auto; padding: 132px 0 72px; }
  .hero-media { opacity: .34; right: -24%; top: 90px; width: 100vw; height: 560px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 680px; }
  .intel-panel { justify-self: start; width: min(100%, 380px); margin-top: 12px; }
  .challenge-grid, .feature-row { grid-template-columns: 1fr; gap: 26px; }
  .challenge-title { padding-right: 0; border-right: 0; }
  .challenge::after { width: 100%; opacity: .14; }
  .solution-grid, .insight-grid, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-grid div:nth-child(3) { border-right: 0; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-step::after { display: none; }
  .final-cta { grid-template-columns: 1fr; text-align: left; }
  .cta-actions { min-width: 0; width: min(100%, 360px); }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .logo-copy strong { font-size: 1.26rem; }
  .logo-copy small { font-size: .49rem; }
  .logo-mark { width: 34px; height: 34px; }
  .hero-content p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .intel-panel { width: 100%; }
  .challenge { padding-top: 56px; }
  .solutions { padding-top: 12px; }
  .solution-grid, .insight-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .audience-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-step p { max-width: none; }
  .section-head-inline { align-items: flex-start; flex-direction: column; }
  .final-cta { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-header { padding-top: 138px; }
}

/* === FIX DROPDOWN MENU SOLUTIONS === */
.navbar,
.nav-inner,
.nav-menu,
.nav-item,
.dropdown,
.has-dropdown {
  overflow: visible !important;
}

.dropdown,
.has-dropdown,
.nav-item {
  position: relative !important;
}

.dropdown-menu,
.nav-dropdown,
.submenu {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 999999 !important;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.dropdown:hover .nav-dropdown,
.dropdown:focus-within .nav-dropdown,
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.dropdown:hover .submenu,
.dropdown:focus-within .submenu,
.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Ponte invisibile tra bottone e dropdown */
.dropdown::after,
.has-dropdown::after,
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 28px;
  display: block;
}

/* === LOGO IMAGE === */
.nav-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px;
  line-height: 1 !important;
  text-decoration: none !important;
}

.nav-logo .site-logo,
.site-logo {
  height: 63px !important;
  width: auto !important;
  max-width: 260px !important;
  display: block !important;
  object-fit: contain !important;
  object-position: left center !important;
  flex-shrink: 0 !important;
}

.nav-inner {
  display: flex !important;
  align-items: center !important;
}

.footer .site-logo {
  height: 57px !important;
  width: auto !important;
}

@media (max-width: 768px) {
  .nav-logo .site-logo,
  .site-logo {
    height: 54px !important;
    max-width: 220px !important;
  }

  .footer .site-logo {
    height: 50px !important;
  }
}

/* === FORCE BIGGER LOGO - INDEX AND ALL PAGES === */
.navbar .nav-logo img.site-logo,
.nav-logo img.site-logo,
img.site-logo {
  height: 90px !important;
  max-height: none !important;
  width: auto !important;
  max-width: 360px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

.navbar .nav-inner,
.nav-inner {
  min-height: 105px !important;
  display: flex !important;
  align-items: center !important;
}

.navbar {
  min-height: 105px !important;
}

@media (max-width: 768px) {
  .navbar .nav-logo img.site-logo,
  .nav-logo img.site-logo,
  img.site-logo {
    height: 68px !important;
    max-width: 280px !important;
  }

  .navbar .nav-inner,
  .nav-inner,
  .navbar {
    min-height: 82px !important;
  }
}

/* MandAI - Expertise subtitle */
.mandai-expertise-subtitle {
max-width: 680px;
margin: 10px 0 34px;
color: #4b5565;
font-size: 18px;
font-weight: 500;
line-height: 1.55;
letter-spacing: -0.01em;
}

@media (max-width: 768px) {
.mandai-expertise-subtitle {
t-size: 16px;
: 8px 0 26px;
}
}

/* MandAI - Industries page */
.industry-card {
display: block;
text-decoration: none;
color: inherit;
min-height: 245px;
}

.industry-card h3 {
margin-bottom: 16px;
}

.industry-card p {
color: rgba(255,255,255,.72);
line-height: 1.7;
}

.industry-card:hover {
text-decoration: none;
}

/* MandAI Industries page */
.industry-card {
display: block;
text-decoration: none;
color: inherit;
min-height: 245px;
}

.industry-card h3 {
margin-bottom: 16px;
}

.industry-card p {
color: rgba(255,255,255,.72);
line-height: 1.7;
}

.industry-card:hover {
text-decoration: none;
}

/* MandAI - Industries page logo fix */
.industries-page .site-header .logo img {
width: 96px !important;
max-width: 96px !important;
height: auto !important;
display: block !important;
}

.industries-page .footer-logo {
width: 105px !important;
max-width: 105px !important;
height: auto !important;
display: block !important;
}

/* === Three-column transparent challenge layout === */
.challenge-tri{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.challenge-col{ background: transparent; }
.challenge-col-title{ padding-right: 36px; border-right: 1px solid var(--line); }
.challenge-col-title h2{ font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1.08; }
.challenge-col-copy{ padding-right: 36px; border-right: 1px solid var(--line); font-size: 1.02rem; }
.challenge-col-copy p + p{ margin-top: 14px; }
.challenge-col-media{ background: transparent; }
.challenge-col-media img{ width: 100%; height: auto; display: block; background: #F7F7F5; mix-blend-mode: multiply; }
.challenge-credit{ margin-top: 10px; font-size: 0.78rem; opacity: 0.65; }
.challenge-credit a{ color: inherit; text-decoration: underline; }
@media (max-width: 900px){
  .challenge-tri{ grid-template-columns: 1fr; gap: 28px; }
  .challenge-col-title, .challenge-col-copy{ padding-right: 0; border-right: none; }
}
/* === Risk Management split layout: text left, vertical image right === */
.rm-split{
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 56px;
  align-items: start;
}
.rm-split-text{ display: flex; flex-direction: column; gap: 40px; }
.rm-item h3{ margin: 6px 0 10px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.rm-item p{ font-size: 1.02rem; color: var(--slate-dark); }
.rm-split-media{ position: sticky; top: 100px; }
.rm-split-media img{ width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
@media (max-width: 900px){
  .rm-split{ grid-template-columns: 1fr; gap: 32px; }
  .rm-split-media{ position: static; order: -1; max-width: 340px; margin: 0 auto; }
}
/* === WEF editorial warm-white background for challenge section === */
.challenge.section-light{ background: #F7F7F5; }
.challenge-col-media{ background: #F7F7F5; }