/* RESET + BASE */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body.xcai-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050608;
  color: #E8EEF6;
  -webkit-font-smoothing: antialiased;
}

/* TOKENS */
:root {
  --xcai-primary: #155263;
  --xcai-secondary-1: #FF6F3C;
  --xcai-secondary-2: #FF9A3C;
  --xcai-secondary-3: #FFC93C;

  --xcai-black: #050608;
  --xcai-grey-900: #10141A;
  --xcai-grey-800: #171C24;
  --xcai-grey-700: #232834;
  --xcai-grey-600: #3A4252;
  --xcai-grey-500: #5B6475;
  --xcai-grey-400: #8791A3;
  --xcai-grey-300: #B3BDCC;
  --xcai-grey-200: #D5DDE8;
  --xcai-grey-100: #E8EEF6;
  --xcai-grey-50:  #F5F7FB;
  --xcai-white: #FFFFFF;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.38);
  --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.24);

  --container-width: 1120px;
  --section-padding-y: 5rem;
  --header-height: 80px;
}

/* LAYOUT */
.xcai-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding-y) 0;
  background: radial-gradient(circle at top left, rgba(21,82,99,0.35), transparent 55%);
}

.section-alt {
  background:
    radial-gradient(circle at top right, rgba(255,200,60,0.18), transparent 52%),
    linear-gradient(to bottom, #10141A, #050608);
  padding: var(--section-padding-y) 0;
}

.section-cta {
  background: radial-gradient(circle at top left, rgba(255,200,60,0.18), transparent 55%),
              linear-gradient(135deg, var(--xcai-primary), #0B2F3A);
  padding: 3.5rem 0;
}

.section-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

/* HEADER */
.xcai-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,6,8,0.96), rgba(5,6,8,0.84));
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.xcai-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
 padding: 0.4rem 0;
}

.xcai-logo img {
  height: 45px;
  display: block;
}

.xcai-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.xcai-nav a {
  color: var(--xcai-grey-100);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.92;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.12s ease;
}

.xcai-nav a:hover {
  color: var(--xcai-secondary-2);
  opacity: 1;
  transform: translateY(-1px);
}

/* Social icons */
.xcai-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--xcai-grey-100);
  text-decoration: none;
  opacity: 0.9;
  transition: background 0.18s ease, color 0.18s ease,
              transform 0.12s ease, border-color 0.18s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--xcai-secondary-2);
  transform: translateY(-1px);
  opacity: 1;
}

/* Mobile nav toggle */
.xcai-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
}

.xcai-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--xcai-grey-200);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--xcai-white);
}

h1 {
  font-size: 3.1rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h2 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

p {
  margin: 0;
  color: var(--xcai-grey-100);
  font-size: 1rem;
  line-height: 1.7;
}

.caption {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xcai-secondary-3);
  font-weight: 700;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.6rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease,
              transform 0.12s ease, box-shadow 0.18s ease,
              border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--xcai-secondary-1), var(--xcai-secondary-2));
  color: var(--xcai-black);
  box-shadow: 0 14px 32px rgba(0,0,0,0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--xcai-grey-100);
  border-color: rgba(255,255,255,0.18);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
}

/* HERO */
.hero {
  min-height: calc(100vh - var(--header-height));
  background:
    radial-gradient(circle at top left, rgba(56,34,15,0.92), transparent 60%),
    radial-gradient(circle at bottom right, rgba(4,52,63,0.98), #050608 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 2.5rem;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.hero-media-frame {
  width: 100%;
  max-width: 1400px;
  border-radius: 22px;
  overflow: hidden;
  background: #10141A;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 45px rgba(0,0,0,0.55);
  aspect-ratio: 16 / 4.8;
  position: relative;
}


.hero-media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;           /* preserves aspect ratio and fills frame */
  object-position: center 100%; /* adjust this value to reposition crop */
  will-change: transform;
  -webkit-backface-visibility: hidden;
}

.hero-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21,82,99,0.75), rgba(0,0,0,0.4));
  mix-blend-mode: soft-light;
  opacity: 0.95;
  pointer-events: none;
}

.hero-kicker {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xcai-secondary-3);
  margin-bottom: 0.7rem;
}

.hero-title {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #FFF;
  white-space: nowrap;
}

.hero-subtitle {
  color: var(--grey100);
  max-width: 1150px;        /* increased from ~650px */
  margin: 1rem auto 0;     /* center align horizontally */
  text-align: center;      /* ensure visual centering */
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-ctas {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-pills {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.hero-pill {
  font-size: 0.9rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--xcai-grey-300);
  white-space: nowrap;
}

/* SECTIONS */
.section-header {
  margin-bottom: 2.6rem;
  max-width: 1000px;
}

.section-header .section-intro {
  margin-top: 0.9rem;
  color: var(--xcai-grey-50);
  font-size: 1rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 2.5rem;
}

/* GRID */
.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

/* CARDS / IMAGES */
.card {
  background: rgba(15,18,25,0.96);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 32px rgba(0,0,0,0.32);
  position: relative;
  overflow: hidden;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card-wide {
  grid-column: span 3;
}

.pill-card {
  background: linear-gradient(145deg, #111722, #050608);
}

.industry-card {
  background: linear-gradient(155deg, #10141A, #050608);
}

.industry-card-spotlight {
  border: 1px solid rgba(255,200,60,0.65);
  box-shadow: 0 16px 40px rgba(255,200,60,0.25);
}

.card-image {
  width: 100%;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 0.85rem;
  display: block;
  filter: saturate(1.1);
}

.section-banner-image {
  width: 100%;
  height: 50	px;              /* reduced from ~450px */
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 2rem;
  opacity: 0.92;
}

/* STEPS */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px dashed rgba(255,255,255,0.18);
  margin-left: 0.7rem;
}

.step {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--xcai-secondary-2);
  color: var(--xcai-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  left: -0.8rem;
}

.step-content h3 {
  margin-bottom: 0.2rem;
}

/* PARTNERS */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.partner-pill {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.55rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: rgba(16,20,26,0.96);
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--xcai-grey-50);
}

.partner-desc {
  font-size: 0.8rem;
  color: var(--xcai-grey-300);
}

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.5rem;
}

.stat {
  padding: 1.3rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, #10141A, #050608);
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--xcai-secondary-3);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--xcai-grey-200);
}

/* SPLIT LAYOUT */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
}

.split-col p {
  color: var(--xcai-grey-50);
  font-size: 1rem;
}

.split .split-col h2 {
  white-space: normal;
}


/* Capabilities grid refinement */
.capabilities-grid {
  gap: 1.8rem;
}

.capability-card {
  padding: 1.6rem 1.5rem;
}

.capability-tag {
  margin-bottom: 0.4rem;
  opacity: 0.8;
}

.capability-card h3 {
  margin-bottom: 0.4rem;
}

.capability-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==== Eight Capabilities – New Layout ==== */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem;
}

/* Responsive: 2 columns on tablet, 1 on mobile */
@media (max-width: 1100px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}

.capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06), rgba(7, 9, 12, 0.96));
  border-radius: 18px;
  padding: 1.8rem 1.7rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  overflow: hidden;

  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

/* Top glow accent */
.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 2px solid rgba(251, 191, 36, 0.55); /* amber accent */
  opacity: 0.0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.14);
}

.capability-card:hover::before {
  opacity: 1;
}

/* Icon pill */
.capability-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.4));
}

.capability-icon img {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.92;
}

/* Tag + text */
.capability-tag {
  margin-bottom: 0.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.capability-card h3 {
  margin-bottom: 0.45rem;
}

.capability-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ==== Industries – image cards aligned with XCAI look ==== */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

/* Responsive layout */
@media (max-width: 1100px) {
  .industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

.industry-card {
  position: relative;
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.05), rgba(7, 9, 12, 0.97));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}

/* Glow outline layer */
.industry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(120deg, #22d3ee, #fbbf24) border-box; /* teal -> gold */
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transition: opacity 0.18s ease-out;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.14);
}

.industry-card:hover::before {
  opacity: 1;
}


/* Image area stays same, you can tweak height here if needed */
.industry-card-media img {
  display: block;
  width: 100%;
  height: 205px;  /* adjust 190–210px depending on what looks best */
  object-fit: cover;
}

/* Body + text – keep as you had */
.industry-card-body {
  padding: 1.3rem 1.5rem 1.5rem;
}

.industry-tag {
  margin-bottom: 0.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.industry-card h3 {
  margin-bottom: 0.4rem;
}

.industry-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}


/* FOOTER */
.xcai-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0 1.3rem;
  background: #050608;
}

.xcai-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.xcai-footer-inner span {
  color: #E8F0FF;
}

.xcai-footer-meta {
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .two-column {
    grid-template-columns: minmax(0,1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .split {
    grid-template-columns: minmax(0,1fr);
  }

  .hero-title {
    font-size: 2.1rem;
    white-space: normal;
  }

  .hero-media-frame {
    aspect-ratio: 16 / 5.3;
  }

  h2 {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-y: 3rem;
  }

  .xcai-header-inner {
    padding-inline: 1.5rem;
  }

  .xcai-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    padding: 0.9rem 1.5rem 1.4rem;
    background: rgba(5,6,8,0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .xcai-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .xcai-nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .xcai-nav-toggle.nav-open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }

  .xcai-nav-toggle.nav-open span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .grid-3,
  .grid-4,
  .stats-row {
    grid-template-columns: minmax(0,1fr);
  }

  .card-wide {
    grid-column: auto;
  }

  .xcai-footer-inner {
    flex-direction: column;
  }

  .hero-media-frame {
    aspect-ratio: 16 / 6.2;
  }
}

/* Dropdown navigation */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown > a {
  cursor: pointer;
}

/* Top-level dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(15, 20, 25, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  border-radius: 10px;
  display: none;
  padding: 0.7rem 0;
  min-width: 240px;
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.dropdown-menu a,
.submenu a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  color: #E8EEF6;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.submenu a:hover {
  background: rgba(255,255,255,0.08);
}

/* Show menu on hover (desktop) */
@media (hover: hover) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Submenu */
.submenu-parent {
  position: relative;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  color: #E8EEF6;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu-parent:hover {
  background: rgba(255,255,255,0.08);
}

.submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: rgba(15,20,25,0.96);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  display: none;
  min-width: 240px;
  padding: 0.5rem 0;
}

.submenu-parent:hover .submenu {
  display: block;
}

/* Mobile-friendly: show dropdowns when nav is open and item is tapped */
@media (max-width: 768px) {
  .dropdown-menu,
  .submenu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border: none;
    background: transparent;
    padding-left: 0.7rem;
  }

  .dropdown-menu {
    display: none;
  }

  .dropdown.open > .dropdown-menu {
    display: block;
  }

  .submenu-parent {
    padding-left: 1.2rem;
  }

  .submenu {
    display: none;
  }

  .submenu-parent.open .submenu {
    display: block;
  }
}


/* ===============================
      SOLUTIONS HERO
================================= */

/* optional: slight variation if you want */
.hero-solutions .hero-media-frame img {
  height: 70vh; /* match homepage feel; adjust if needed */
}

.solutions-hero-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  opacity: 0.85;
}

.solutions-hero-text {
  position: relative;
  margin-top: -5rem;
  text-align: center;
}

.solutions-hero-text h1 {
  font-size: 2.4rem;
  max-width: 900px;
  margin: 0.6rem auto 1rem;
}

.solutions-hero-sub {
  max-width: 820px;
  margin: 0 auto 2rem;
  color: var(--grey90);
  line-height: 1.65;
}

/* ===== Solutions hero – fixed alignment, no overlap ===== */

.solutions-hero {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at top, rgba(21,82,99,0.4), #0b1318 55%);
}

.solutions-hero-image {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.solutions-hero-text-wrapper {
  padding: 2.8rem 0 4rem;
}

.solutions-hero-text {
  text-align: center;
}

.solutions-hero-text h1 {
  font-size: 2.4rem;
  max-width: 900px;
  margin: 0.6rem auto 1rem;
}

.solutions-hero-sub {
  max-width: 820px;
  margin: 0 auto 2rem;
  color: var(--grey90);
  line-height: 1.65;
}


/* ===== Solutions overview – gradient tiles instead of image cards ===== */

.solutions-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.solutions-overview-item {
  padding: 1.4rem 1.2rem;
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(255,159,60,0.18), rgba(21,82,99,0.95));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.solutions-overview-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.solutions-overview-item p {
  font-size: 0.9rem;
  color: var(--grey90);
}

/* Responsive for overview grid */
@media (max-width: 1100px) {
  .solutions-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .solutions-overview-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Deep-dive sections – unify image heights & spacing ===== */


/* ===== Solutions deep-dive sections – final card layout ===== */

/* ===== Solutions deep-dive sections – balanced layout ===== */

.solutions-deep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5 rem;
  margin-bottom: 2rem;
}

.solutions-deep.alt {
  flex-direction: row-reverse;
}

.solutions-deep-text {
  flex: 1 1 60%;
  max-width: 640px;              /* prevents super-wide headings from stretching */
}

.solutions-deep-text h2 {
  font-size: 2rem;
  line-height: 1.2;
  max-width: 600px;       /* sweet spot */
  word-break: normal;
  white-space: normal;
}

.solutions-deep-text ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  line-height: 1.6;
}

/* IMAGE COLUMN AS A CONSISTENT CARD */
.solutions-deep-img {
  flex: 0 0 26%;
  max-width: 360px;              /* slightly smaller card for better balance */
}

.solutions-deep-img img {
  width: 100%;
  aspect-ratio: 16 / 9;          /* uniform height across all sections */
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* Stack on smaller screens */
@media (max-width: 1024px) {
  .solutions-deep,
  .solutions-deep.alt {
    flex-direction: column;
  }

  .solutions-deep-text {
    max-width: none;
  }

  .solutions-deep-img {
    flex-basis: auto;
    width: 100%;
    max-width: none;
  }
}

/* ===== Page-specific hero tweaks ===== */

.hero-industries .hero-media-frame img,
.hero-partners .hero-media-frame img,
.hero-about .hero-media-frame img,
.hero-contact .hero-media-frame img {
  height: 65vh;
}

/* ===== Industries grid ===== */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.industries-tile {
  padding: 1.6rem 1.4rem;
  border-radius: 16px;
  background: radial-gradient(circle at top left,
    rgba(255,159,60,0.18), rgba(21,82,99,0.95));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.industries-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.industries-tile p {
  color: var(--grey90);
  margin-bottom: 0.6rem;
}

.industries-tile ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

@media (max-width: 1000px) {
  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}



/* Partners hero animated background */
.hero-partners {
  background: linear-gradient(135deg, #0E0F11, #041B1C, #24130A);
  background-size: 320% 320%;
  animation: xcaiPartnerHeroGradient 28s ease-in-out infinite;
}

@keyframes xcaiPartnerHeroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Ecosystem hero media */
.hero-media-ecosystem {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-media-ecosystem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(255,255,255,0.22), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Ecosystem strip under hero text */
.hero-ecosystem-strip {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-ecosystem-strip .strip-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero-ecosystem-strip .strip-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}


.partner-strip-icon {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));
}


.hero-ecosystem-strip {
  justify-content: center;
}

.hero-ecosystem-strip .strip-icons {
  gap: 0.5rem; /* tighter spacing */
}

.partner-strip-icon {
  width: 18px;  /* smaller icon size */
  height: 18px;
  opacity: 0.9; /* slightly stronger visibility */
}


/* Ensure hero layout behaves nicely on mobile */
@media (max-width: 900px) {
  .hero-partners .hero-inner {
    flex-direction: column-reverse;
    gap: 1.8rem;
  }

  .hero-media-ecosystem {
    max-height: 280px;
  }
}


/* ===== Partners grid (2 per row, high contrast) ===== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2.2rem;
}

.partners-card {
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.08),
      rgba(20, 22, 28, 0.65)
    );
  backdrop-filter: blur(10px);
  
  border-radius: 18px;
  padding: 1.8rem 1.6rem;

  border: 1px solid rgba(255, 255, 255, 0.10);

  /* Premium soft glow */
  box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.partners-card h3 {
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.partners-card p,
.partners-card li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
}

.partners-card ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.partners-card h3 {
  margin-bottom: 0.45rem;
  color: #FFFFFF;
}

.partners-card p,
.partners-card li {
  color: var(--xcai-grey-100);
  font-size: 0.95rem;
}

.partners-card ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  line-height: 1.6;
}


.partner-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.85;
}
.partners-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Ecosystem diagram ===== */

.ecosystem-diagram {
  background: radial-gradient(circle at top,
    rgba(255,201,60,0.16), rgba(15,20,25,0.98));
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

/* Partners page ecosystem layout fix */
.split.ecosystem-split {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.split.ecosystem-split .split-col:first-child {
  flex: 0 0 53% !important;   /* Left column wider */
  max-width: 53%;
}

.split.ecosystem-split .split-col:last-child {
  flex: 0 0 47% !important;   /* Right card narrower */
  max-width: 47%;
}



/* Leadership Cards */
.leadership-card {
  text-align: center;
}

.leader-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #fff;
  opacity: 0.9;
}

/* ===== Contact layout ===== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
}

.contact-info ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
}

.contact-details p {
  margin-top: 1.2rem;
}

.contact-form-card {
  background: var(--grey20);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15,20,25,0.9);
  color: var(--grey100);
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--grey70);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}


.avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.name-placeholder {
  font-size: 0.85rem;
  color: var(--grey90);
  margin-bottom: 0.5rem;
}

/* ===== Insight article layout ===== */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 3rem;
}

.article-meta {
  font-size: 0.9rem;
}

.article-meta-sub {
  color: var(--grey90);
  margin-bottom: 1rem;
}

.article-meta-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

.article-meta-list li {
  margin-bottom: 0.4rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.article-tags .tag {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-backlink a {
  font-size: 0.85rem;
  color: var(--grey80);
  text-decoration: none;
}

.article-backlink a:hover {
  text-decoration: underline;
}

.article-main h2 {
  font-size: 1.6rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.article-main h3 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.article-main p {
  margin-bottom: 0.8rem;
}

.article-main ul {
  margin-bottom: 1rem;
  padding-left: 1.1rem;
}

.article-cta-inline {
  margin-top: 1.5rem;
}

/* Responsive layout for article */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-meta {
    order: -1;
  }
}


/* ===============================
   INDUSTRIES PAGE REFINEMENTS
   (layout + color only)
================================= */

/* Slightly tighter intro for industries overview */
.section.industries-overview .section-header .section-intro {
  max-width: 760px;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

/* Highlight tile vs regular tiles in industries grid */
.industries-tile.tile-accent {
  background: linear-gradient(145deg, var(--xcai-secondary-1), var(--xcai-secondary-2));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 42px rgba(0,0,0,0.55);
}

.industries-tile.tile-accent h3,
.industries-tile.tile-accent p,
.industries-tile.tile-accent li {
  color: var(--xcai-black);
}

/* Softer warm tiles for other industries */
.industries-tile.tile-muted {
  background: radial-gradient(circle at top left,
    rgba(255,200,60,0.2), rgba(16,20,26,0.98));
  border: 1px solid rgba(255,255,255,0.08);
}

/* Make industries tile text slightly more compact */
.industries-tile p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.industries-tile ul {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Extra spacing for industries deep-dive block on this page */
.section.section-industries-details .solutions-deep {
  margin-bottom: 3.2rem;
}
