/* =========================================================
   CYLENTEX 2026 BRAND SYSTEM
   Premium Advisory | AI Operationalization | Executive Transformation
   Works with Bootstrap + existing css/styles.css
   ========================================================= */

/* -----------------------------
   1. Design Tokens
------------------------------ */

:root {
  --cx-dark: #050b14;
  --cx-black: #02060b;
  --cx-navy: #071827;
  --cx-navy-2: #08111d;
  --cx-blue: #00b7ff;
  --cx-cyan: #33e6ff;
  --cx-cyan-soft: rgba(51, 230, 255, 0.16);
  --cx-lime: #a7d129;
  --cx-lime-bright: #d9ff57;
  --cx-white: #ffffff;
  --cx-light: #f4f8fb;
  --cx-muted: #8ea7b8;
  --cx-muted-2: #bfd0dc;

  --cx-card: rgba(255, 255, 255, 0.075);
  --cx-card-dark: rgba(2, 6, 11, 0.62);
  --cx-border: rgba(51, 230, 255, 0.22);
  --cx-border-strong: rgba(51, 230, 255, 0.55);
  --cx-lime-border: rgba(167, 209, 41, 0.35);

  --cx-shadow-blue: 0 0 45px rgba(0, 183, 255, 0.13);
  --cx-shadow-blue-hover: 0 0 32px rgba(0, 183, 255, 0.18);
  --cx-shadow-lime: 0 0 28px rgba(167, 209, 41, 0.12);

  --cx-radius-lg: 1.6rem;
  --cx-radius-md: 1.4rem;
  --cx-radius-sm: 1rem;

  --cx-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -----------------------------
   2. Global Base
------------------------------ */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cx-dark);
  color: var(--cx-white);
  font-family: var(--cx-font-body);
}

img {
  max-width: 100%;
}

a {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

a:hover {
  text-decoration: none;
}

/* Keep linked cards clean */

.cx-card a,
a .cx-card {
  color: inherit;
}

a .cx-card p {
  color: var(--cx-muted-2);
}

/* -----------------------------
   3. Navbar
------------------------------ */

.navbar {
  background: rgba(3, 7, 13, 0.96) !important;
  border-bottom: 1px solid rgba(51, 230, 255, 0.12);
}

.navbar-brand img {
  max-height: 48px;
  width: auto;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--cx-cyan);
}

/* -----------------------------
   4. Typography Utilities
------------------------------ */

.cx-eyebrow {
  color: var(--cx-cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.82rem;
}

.cx-eyebrow-lime,
.vector-eyebrow-lime {
  color: var(--cx-lime);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.82rem;
}

.cx-muted {
  color: var(--cx-muted);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff, #6beeff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-lime {
  color: var(--cx-lime);
}

.text-cyan {
  color: var(--cx-cyan);
}

.cx-lead-narrow {
  max-width: 820px;
}

/* -----------------------------
   5. Section Backgrounds
------------------------------ */

.cx-section-dark {
  background:
    radial-gradient(circle at top right, rgba(0, 183, 255, 0.13), transparent 32%),
    linear-gradient(180deg, var(--cx-dark) 0%, var(--cx-navy) 100%);
}

.cx-section-mid {
  background: linear-gradient(180deg, var(--cx-navy) 0%, var(--cx-navy-2) 100%);
}

.cx-section-black {
  background: linear-gradient(180deg, var(--cx-black) 0%, var(--cx-dark) 100%);
}

.cx-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 230, 255, 0.42), transparent);
}

/* -----------------------------
   6. Hero Systems
   Use HTML variable:
   style="--hero-image: url('/images/file.jpg');"
------------------------------ */

.cx-hero,
.vector-hero {
  min-height: 88vh;
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 20, 0.96) 0%,
      rgba(5, 11, 20, 0.82) 42%,
      rgba(5, 11, 20, 0.28) 100%
    ),
    var(--hero-image) center center / cover no-repeat;
  display: flex;
  align-items: center;
}

.cx-hero-content,
.vector-hero-content {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  max-width: 1040px;
}

.cx-hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 5.45rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 1040px;
  padding-bottom: 0.15em;
  overflow: visible;
}

.vector-hero h1 {
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  padding-bottom: 0.15em;
  overflow: visible;
}

.cx-hero .lead,
.vector-hero .lead {
  color: #d6e7f1;
  max-width: 790px;
}

/* Optional lighter overlay for pages with already-dark artwork */

.cx-hero-light-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(5, 11, 20, 0.90) 0%,
      rgba(5, 11, 20, 0.66) 45%,
      rgba(5, 11, 20, 0.18) 100%
    ),
    var(--hero-image) center center / cover no-repeat;
}

/* -----------------------------
   7. Cards
------------------------------ */

.cx-card {
  background: var(--cx-card);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-md);
  backdrop-filter: blur(10px);
  height: 100%;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cx-card:hover {
  transform: translateY(-6px);
  border-color: var(--cx-border-strong);
  box-shadow: var(--cx-shadow-blue-hover);
}

.cx-card h3,
.cx-card h4,
.cx-card h5 {
  color: var(--cx-white);
}

.cx-card p {
  color: var(--cx-muted-2);
}

.cx-card-lime {
  border-color: var(--cx-lime-border);
  box-shadow: var(--cx-shadow-lime);
}

.cx-card-dark {
  background: var(--cx-card-dark);
}

/* -----------------------------
   8. Icons / Pills
------------------------------ */

.cx-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(51, 230, 255, 0.10);
  border: 1px solid rgba(51, 230, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cx-cyan);
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.cx-icon-lime {
  background: rgba(167, 209, 41, 0.10);
  border-color: rgba(167, 209, 41, 0.38);
  color: var(--cx-lime);
}

.cx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(51, 230, 255, 0.24);
  color: #d9f7ff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.86rem;
  background: rgba(51, 230, 255, 0.07);
  margin: 0.2rem;
}

.cx-pill-lime {
  border-color: rgba(167, 209, 41, 0.35);
  color: #ecffb8;
  background: rgba(167, 209, 41, 0.08);
}

/* -----------------------------
   9. Buttons
------------------------------ */

.btn-cx-primary {
  background: linear-gradient(135deg, var(--cx-blue), var(--cx-cyan));
  border: none;
  color: #04101c;
  font-weight: 900;
}

.btn-cx-primary:hover,
.btn-cx-primary:focus {
  color: #04101c;
  filter: brightness(1.06);
}

.btn-cx-outline {
  border: 1px solid rgba(51, 230, 255, 0.55);
  color: #dffaff;
  font-weight: 800;
}

.btn-cx-outline:hover,
.btn-cx-outline:focus {
  background: rgba(51, 230, 255, 0.12);
  color: var(--cx-white);
}

.btn-vector {
  background: linear-gradient(135deg, var(--cx-lime), var(--cx-lime-bright));
  border: none;
  color: #071000;
  font-weight: 900;
}

.btn-vector:hover,
.btn-vector:focus {
  color: #071000;
  filter: brightness(1.06);
}

.btn-vector-outline {
  border: 1px solid rgba(167, 209, 41, 0.55);
  color: #ecffb8;
  font-weight: 800;
}

.btn-vector-outline:hover,
.btn-vector-outline:focus {
  background: rgba(167, 209, 41, 0.12);
  color: var(--cx-white);
}

/* -----------------------------
   10. Image Systems
------------------------------ */

/*
  Use this for most section images so file paths stay visible in HTML.

  IMPORTANT:
  - .cx-feature-image is intended for standard section visuals.
  - .cx-pathway-image is intended for branded AI Native pathway graphics.
  - Branded graphics should NOT be cropped, so .cx-pathway-image uses contain/auto.
*/

.cx-feature-image-wrap,
.cx-pathway-image-wrap {
  width: 100%;
  border-radius: var(--cx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--cx-border);
  box-shadow: var(--cx-shadow-blue);
  background: rgba(2, 6, 11, 0.72);
}

/* Standard feature images can still use 16:9 framing */

.cx-feature-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* Branded pathway images should display fully without cropping */

.cx-pathway-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Optional image ratio utilities */

.cx-feature-image.tall,
.cx-pathway-image.tall {
  aspect-ratio: 4 / 3;
}

/* Legacy compatibility for pages already using background-image divs */

.cx-image-panel {
  min-height: 420px;
  border-radius: var(--cx-radius-lg);
  border: 1px solid var(--cx-border);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--cx-shadow-blue);
}

/* CSS-variable background image panel */

.cx-bg-panel {
  min-height: 460px;
  border-radius: var(--cx-radius-lg);
  border: 1px solid var(--cx-border);
  background:
    linear-gradient(90deg, rgba(5, 11, 20, 0.18), rgba(5, 11, 20, 0.04)),
    var(--panel-image) center center / cover no-repeat;
  box-shadow: var(--cx-shadow-blue);
}

/* -----------------------------
   11. Pathway / Process Components
------------------------------ */

.cx-pathway-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cx-pathway-card .cx-card {
  flex-grow: 1;
}

.cx-pathway-copy {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cx-pathway-copy p:last-of-type {
  flex-grow: 1;
}

.vector-process-step {
  position: relative;
}

.vector-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 209, 41, 0.10);
  border: 1px solid rgba(167, 209, 41, 0.42);
  color: var(--cx-lime);
  font-weight: 900;
  margin-bottom: 1rem;
}

/* -----------------------------
   12. CTA Sections
   Use HTML variable:
   style="--cta-image: url('/images/file.jpg');"
------------------------------ */

.cx-cta,
.vector-cta {
  background:
    linear-gradient(90deg, rgba(5, 11, 20, 0.95), rgba(5, 11, 20, 0.76)),
    var(--cta-image) center center / cover no-repeat;
}

/* Fallback if no CTA image variable is set */

.cx-cta:not([style]),
.vector-cta:not([style]) {
  background:
    radial-gradient(circle at top right, rgba(0, 183, 255, 0.13), transparent 32%),
    linear-gradient(180deg, var(--cx-dark) 0%, var(--cx-navy) 100%);
}

/* -----------------------------
   13. Footer
------------------------------ */

footer {
  background: #03070d;
  border-top: 1px solid rgba(51, 230, 255, 0.10);
}

footer img {
  max-height: 54px;
  width: auto;
}

/* -----------------------------
   14. Responsive Rules
------------------------------ */

@media (max-width: 991.98px) {
  .navbar-brand img {
    max-height: 42px;
  }

  .cx-hero,
  .vector-hero {
    min-height: auto;
    background-position: center right;
  }

  .cx-hero h1 {
    font-size: clamp(2.25rem, 10vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .vector-hero h1 {
    font-size: clamp(3rem, 14vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .cx-hero-content,
  .vector-hero-content {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .cx-image-panel,
  .cx-bg-panel {
    min-height: 340px;
  }

  .cx-pathway-card {
    margin-bottom: 2rem;
  }

  .cx-pathway-copy {
    margin-top: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .cx-eyebrow,
  .cx-eyebrow-lime,
  .vector-eyebrow-lime {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  /*
    Standard feature images can still crop gently on mobile.
    Pathway images remain uncropped.
  */

  .cx-feature-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
  }

  .cx-pathway-image {
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .cx-pathway-card .cx-card {
    margin-top: 1rem !important;
  }

  .cx-pill {
    font-size: 0.78rem;
  }

  .display-4 {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  .display-5 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .btn-lg {
    width: 100%;
  }

  .d-flex.flex-wrap.gap-3 .btn-lg {
    width: 100%;
  }

  .cx-image-panel,
  .cx-bg-panel {
    min-height: 280px;
  }

  .cx-card {
    border-radius: 1.15rem;
  }

  .cx-feature-image-wrap,
  .cx-pathway-image-wrap {
    border-radius: 1.15rem;
  }
}

/* =========================================================
   AI Native Pathway Feature Cards
   Clean feature image + compact copy card
   ========================================================= */

.cx-pathway-feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cx-pathway-visual {
  width: 100%;
  border-radius: var(--cx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--cx-border);
  box-shadow: var(--cx-shadow-blue);
  background: rgba(2, 6, 11, 0.72);
  margin: 0;
}

.cx-pathway-visual-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.cx-pathway-content-card {
  height: auto;
  min-height: 0;
  padding: 1.6rem;
}

.cx-pathway-content-card p {
  margin-bottom: 1.15rem;
}

.cx-pathway-content-card .btn {
  margin-top: 0.35rem;
}

@media (min-width: 992px) {
  .cx-pathway-visual-img {
    min-height: 340px;
  }

  .cx-pathway-content-card {
    min-height: 260px;
  }
}

@media (max-width: 991.98px) {
  .cx-pathway-feature-card {
    gap: 1rem;
  }

  .cx-pathway-visual-img {
    min-height: 0;
  }

  .cx-pathway-content-card {
    padding: 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .cx-pathway-content-card {
    padding: 1.2rem;
  }
}

/* =========================================================
   Responsive Art Direction Images
   Desktop / Mobile image swap using <picture>
   ========================================================= */

.cx-responsive-art-wrap {
  width: 100%;
  border-radius: var(--cx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--cx-border);
  box-shadow: var(--cx-shadow-blue);
  background: rgba(2, 6, 11, 0.72);
}

.cx-responsive-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 575.98px) {
  .cx-responsive-art-wrap {
    border-radius: 1.15rem;
  }
}

/* =========================================================
   Cylentex Ecosystem Section
   ========================================================= */

#cylentex-ecosystem .cx-ecosystem-visual {
  background: rgba(2, 6, 11, 0.82);
}

#cylentex-ecosystem .cx-responsive-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.cx-ecosystem-card {
  position: relative;
  overflow: hidden;
}

.cx-ecosystem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(51, 230, 255, 0.12), transparent 35%),
    radial-gradient(circle at bottom left, rgba(167, 209, 41, 0.08), transparent 35%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cx-ecosystem-card:hover::before {
  opacity: 1;
}

.cx-ecosystem-card > * {
  position: relative;
  z-index: 1;
}

#cylentex-ecosystem .cx-card .small {
  line-height: 1.55;
}

@media (min-width: 992px) {
  #cylentex-ecosystem .row-cols-lg-5 > .col {
    flex: 0 0 auto;
    width: 20%;
  }
}

@media (max-width: 991.98px) {
  #cylentex-ecosystem .cx-ecosystem-visual {
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 767.98px) {
  #cylentex-ecosystem .cx-responsive-art-wrap {
    border-radius: 1.15rem;
  }

  #cylentex-ecosystem .cx-card {
    min-height: auto;
  }
}

.cx-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(
      90deg,
      rgba(5, 11, 20, 0.98) 0%,
      rgba(5, 11, 20, 0.86) 42%,
      rgba(5, 11, 20, 0.28) 100%
    ),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #050b14;
}

/* =========================================================
   Hero Art Safe Framing
   Use when the hero artwork has important detail near the top
   ========================================================= */

.cx-hero-art-safe {
  padding-top: 5.5rem;
  min-height: 92vh;
  background-position: center top;
}

.cx-hero-art-safe .cx-hero-content {
  padding-top: clamp(5.5rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

/* If the navbar is fixed or visually overlapping the hero */
.navbar.fixed-top + .cx-hero,
.navbar.fixed-top + header.cx-hero {
  margin-top: 0;
}

/* Mobile adjustment */
@media (max-width: 767.98px) {
  .cx-hero-art-safe {
    padding-top: 4.5rem;
    min-height: auto;
    background-position: center top;
  }

  .cx-hero-art-safe .cx-hero-content {
    padding-top: 5rem;
    padding-bottom: 4.5rem;
  }
}