/**
 * XEYROX Solutions Page — All Section Styles
 * Covers: hero, attention cards, feature spotlights,
 *         process steps, ecosystem, CTA banner
 */

/* ==========================================================================
   CINEMATIC OVERRIDES
   Exclude solution background layers from the cinematic hide/reveal system
   so section backgrounds remain visible at all times.
   ========================================================================== */
main>section.cinematic-section>.sol-hero-bg,
main>section.cinematic-section>.sol-ecosystem-bg,
main>section.cinematic-section>.sol-cta-bg {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ==========================================================================
   SHARED UTILITIES
   ========================================================================== */

.sol-eyebrow {
  display: block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--x-blue-700);
  margin-bottom: 14px;
  line-height: 1.2;
}

.sol-eyebrow-dark {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   SECTION 1 — HERO
   "Different work. Clearer ways forward."
   ========================================================================== */
.sol-hero-section {
  position: relative;
  background-color: var(--x-surface);
  min-height: calc(86vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--space-10);
  padding-bottom: var(--space-11);
}

/* Atmospheric Background */
.sol-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sol-hero-bg-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse 70% 60% at 50% 30%,
      rgba(21, 94, 239, 0.07) 0%,
      rgba(39, 200, 245, 0.05) 50%,
      rgba(255, 255, 255, 0) 80%);
  filter: blur(60px);
}

.sol-hero-bg-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 320px;
}

.sol-hero-wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hero Container + Content */
.sol-hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sol-hero-content {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Headline */
.sol-hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--x-navy-950);
  margin: 0 0 var(--space-3) 0;
}

.sol-hero-highlight {
  color: var(--x-blue-700);
}

/* Paragraph */
.sol-hero-paragraph {
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--x-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-5) auto;
}

/* CTA Group */
.sol-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTION 2 — ATTENTION CARDS
   "What needs your attention today?"
   ========================================================================== */
.sol-attention-section {
  background: var(--x-white);
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.sol-attention-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.sol-attention-header {
  max-width: 700px;
}

.sol-attention-heading {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--x-navy-950);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
}

.sol-attention-body {
  font-size: 17px;
  color: var(--x-text-secondary);
  line-height: 1.55;
}

/* Cards Grid */
.sol-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Individual Card */
.sol-attention-card {
  background: var(--x-white);
  border: 1px solid var(--x-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.sol-attention-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: #C4D5EA;
}

/* Icon Box */
.sol-ac-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #EFF4FE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 22px;
}

.sol-ac-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.sol-ac-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--x-blue-700);
}

/* Card Content */
.sol-ac-content {
  flex: 1;
  margin-bottom: 16px;
}

.sol-ac-title {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  color: var(--x-navy-950);
  margin-bottom: 8px;
  line-height: 1.3;
}

.sol-ac-body {
  font-size: 14px;
  color: var(--x-text-secondary);
  line-height: 1.5;
}

/* Divider */
.sol-ac-divider {
  height: 1px;
  background: var(--x-border);
  margin-bottom: 16px;
}

/* Card CTA */
.sol-ac-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--x-blue-700);
  text-decoration: none;
  transition: color 200ms ease;
}

.sol-ac-cta:hover {
  text-decoration: none;
  color: var(--x-blue-600);
}

.sol-ac-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.sol-ac-cta:hover .sol-ac-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   SECTIONS 3–5 — FEATURE SPOTLIGHTS
   ========================================================================== */
.sol-feature-section {
  background: var(--x-white);
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}

.sol-feature-visual-left {
  background-color: var(--x-surface);
}

.sol-feature-container {
  display: flex;
  align-items: center;
  gap: 72px;
}

/* Text Column */
.sol-feature-text-col {
  flex: 0 0 38%;
  max-width: 38%;
}

/* Visual Column */
.sol-feature-visual-col {
  flex: 0 0 56%;
  max-width: 56%;
}

/* Headline */
.sol-feature-headline {
  font-family: var(--font-primary);
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--x-navy-950);
  margin-bottom: var(--space-3);
}

.sol-feature-highlight {
  color: var(--x-blue-700);
}

.sol-feature-body {
  font-size: 16px;
  color: var(--x-text-secondary);
  line-height: 1.65;
  max-width: 420px;
}

/* Dashboard Frame */
.sol-dashboard-frame {
  position: relative;
  border-radius: var(--radius-xl);
}

.sol-dashboard-panel {
  position: relative;
  background: var(--x-white);
  border: 1px solid var(--x-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(11, 23, 51, 0.11),
    0 8px 24px rgba(11, 23, 51, 0.06);
  overflow: hidden;
}

.sol-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

/* Pagination Dots */
.sol-feature-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-5);
}

.sol-feature-dot {
  width: 28px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--x-border);
  transition: background-color 240ms ease, width 240ms ease;
}

.sol-feature-dot--active {
  background: var(--x-blue-700);
  width: 36px;
}

/* ==========================================================================
   SECTION 6 — PROCESS STEPS
   "The right starting point makes a difference."
   ========================================================================== */
.sol-process-section {
  background: var(--x-white);
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.sol-process-header {
  max-width: 780px;
  margin-bottom: var(--space-7);
}

.sol-process-headline {
  font-family: var(--font-primary);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 800;
  color: var(--x-navy-950);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
}

.sol-process-highlight {
  color: var(--x-blue-700);
}

.sol-process-body {
  font-size: 16px;
  color: var(--x-text-secondary);
  line-height: 1.65;
  max-width: 620px;
}

/* Steps Row */
.sol-steps-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

/* Step Card */
.sol-step-card {
  flex: 1;
  background: var(--x-white);
  border: 1px solid var(--x-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px 28px;
  box-shadow: var(--shadow-card);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.sol-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

/* Step Number Badge */
.sol-step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--x-blue-100);
  color: var(--x-blue-700);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.sol-step-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--x-navy-950);
  line-height: 1.3;
}

.sol-step-body {
  font-size: 14px;
  color: var(--x-text-secondary);
  line-height: 1.55;
}

/* Connector Arrow Between Steps */
.sol-step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 52px;
  width: 44px;
  flex-shrink: 0;
  color: #C8D8E8;
  font-size: 22px;
}

/* ==========================================================================
   SECTION 7 — ECOSYSTEM
   "Different systems. One connected vision."
   ========================================================================== */
.sol-ecosystem-section {
  position: relative;
  background-color: #071326;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  overflow: hidden;
}

/* Background flow lines */
.sol-ecosystem-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sol-eco-bg-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* Main container */
.sol-ecosystem-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Text Column */
.sol-ecosystem-text-col {
  flex: 0 0 40%;
  max-width: 40%;
}

.sol-ecosystem-headline {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.sol-ecosystem-highlight {
  color: #27C8F5;
}

.sol-ecosystem-body {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.sol-ecosystem-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: #27C8F5;
  text-decoration: none;
  transition: color 220ms ease;
}

.sol-ecosystem-cta:hover {
  color: rgba(39, 200, 245, 0.75);
  text-decoration: none;
}

.sol-eco-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.sol-ecosystem-cta:hover .sol-eco-arrow {
  transform: translateX(4px);
}

/* Visual Column */
.sol-ecosystem-visual-col {
  flex: 0 0 54%;
  max-width: 54%;
}

/* ─── Network Diagram (CSS Grid layout) ─── */
/* 
   Layout: 3-row × 3-col grid
   Col 1: left nodes   Col 2: center hub   Col 3: right nodes
   Row 1: top nodes    Row 2: mid nodes    Row 3: bottom nodes
*/
.sol-eco-network {
  position: relative;
  width: 100%;
  background: #08162A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* SVG connector lines sit behind everything */
.sol-eco-lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: 24px;
  overflow: visible;
}

.sol-eco-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto;
  gap: 16px;
  align-items: center;
}

/* Left nodes column */
.sol-eco-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

/* Right nodes column */
.sol-eco-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Center hub column */
.sol-eco-col-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

/* Product Node Card */
.sol-eco-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0D203D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 18px;
  width: 146px;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sol-eco-card:hover {
  background: #12284C;
  border-color: rgba(39, 200, 245, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
}

.sol-eco-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.sol-eco-dot--cyan {
  background-color: #00D2D3;
  box-shadow: 0 0 8px rgba(0, 210, 211, 0.7);
}

.sol-eco-dot--green {
  background-color: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.sol-eco-card-title {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

/* Center Hub */
.sol-eco-hub {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 96px;
}

.sol-eco-hub-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sol-eco-hub-text {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0B1B3D;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 8 — CTA BANNER
   "Your next step starts with the right tool."
   ========================================================================== */
.sol-cta-section {
  position: relative;
  padding: 128px 160px;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #f7fafc;
  background-image:
    radial-gradient(ellipse 65% 55% at 5% 35%, rgba(200, 246, 255, 0.72) 0%, rgba(225, 248, 255, 0.28) 45%, transparent 75%),
    radial-gradient(ellipse 60% 65% at 95% 85%, rgba(187, 247, 208, 0.75) 0%, rgba(220, 252, 231, 0.3) 50%, transparent 75%),
    linear-gradient(135deg, #f0fafd 0%, #fbfdfd 48%, #f0faf4 100%);
}

.sol-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(255, 255, 255, 0.65) 0%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

.sol-cta-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Multi-color headline */
.sol-cta-headline {
  font-family: var(--font-primary);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 16px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.35em;
  row-gap: 0.15em;
}

.sol-cta-green {
  color: #22C55E;
}

.sol-cta-navy {
  color: #111827;
}

.sol-cta-cyan {
  color: #0284C7;
}

.sol-cta-body {
  font-size: 18px;
  color: #475467;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 0 32px 0;
}

/* Green-cyan gradient CTA button */
.sol-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  background: linear-gradient(90deg, #22C55E 0%, #0284C7 100%) !important;
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  text-decoration: none !important;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.28);
}

.sol-cta-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.38);
  text-decoration: none !important;
}

.sol-cta-btn .btn-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform 220ms ease;
}

.sol-cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .sol-cta-section {
    padding: 96px 48px;
  }

  .sol-feature-container {
    gap: 48px;
  }

  .sol-ecosystem-container {
    gap: 48px;
  }

  .sol-eco-hub {
    min-width: 90px;
  }

  .sol-eco-hub-logo {
    width: 60px;
  }
}

@media (max-width: 960px) {

  .sol-ecosystem-text-col,
  .sol-ecosystem-visual-col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .sol-ecosystem-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sol-ecosystem-body {
    max-width: 600px;
    margin-inline: auto;
  }

  .sol-ecosystem-cta {
    justify-content: center;
  }

  .sol-ecosystem-container {
    flex-direction: column;
    gap: var(--space-7);
  }

  .sol-eco-network {
    max-width: 560px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   RESPONSIVE — TABLET (≤ 900px)
   ========================================================================== */
@media (max-width: 900px) {

  /* Attention cards: 2 columns */
  .sol-attention-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature sections: stack vertically */
  .sol-feature-container {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
  }

  .sol-feature-text-col,
  .sol-feature-visual-col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .sol-feature-text-col {
    text-align: left;
  }

  .sol-feature-body {
    max-width: 100%;
  }

  /* visual-left: keep text above image on mobile */
  .sol-feature-visual-left .sol-feature-visual-col {
    order: 2;
  }

  .sol-feature-visual-left .sol-feature-text-col {
    order: 1;
  }

  /* Process steps: wrap */
  .sol-steps-row {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .sol-step-connector {
    display: none;
  }

  .sol-step-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 260px;
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .sol-hero-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-9);
    min-height: unset;
  }

  .sol-hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .sol-hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .sol-attention-grid {
    grid-template-columns: 1fr;
  }

  .sol-feature-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .sol-feature-headline {
    font-size: 28px;
  }

  .sol-step-card {
    flex: 0 0 100%;
  }

  /* Ecosystem — switch to single-column grid */
  .sol-eco-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sol-eco-col-left,
  .sol-eco-col-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .sol-eco-col-center {
    order: -1;
  }

  .sol-eco-hub {
    min-width: unset;
    width: fit-content;
  }

  .sol-eco-lines-svg {
    display: none;
  }

  .sol-cta-section {
    padding: 64px 20px;
  }

  .sol-cta-headline {
    font-size: 26px;
  }

  .sol-cta-body {
    font-size: 16px;
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

  .sol-attention-card,
  .sol-step-card,
  .sol-eco-node,
  .sol-cta-btn,
  .sol-ac-cta,
  .sol-ecosystem-cta,
  .sol-feature-dot {
    transition: none !important;
    transform: none !important;
  }
}