/* =========================================================
   CONSIGNAX - CSS EXCLUSIVO
   Prefixo: csx-
========================================================= */

:root {
  --csx-bg: #04101f;
  --csx-panel: rgba(8, 32, 59, 0.82);
  --csx-line: rgba(57, 192, 255, 0.20);
  --csx-line-strong: rgba(45, 211, 255, 0.50);
  --csx-text: #f7fbff;
  --csx-muted: #b7c7dc;
  --csx-blue: #0f77e8;
  --csx-cyan: #24d4ff;
  --csx-cyan-soft: #80eaff;
  --csx-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.csx-page {
  background: var(--csx-bg);
  color: var(--csx-text);
}

.csx-page main {
  overflow: hidden;
}

.csx-page section {
  padding-left: 0;
  padding-right: 0;
}

.csx-page h1,
.csx-page h2,
.csx-page h3,
.csx-page p {
  color: inherit;
}

.csx-page .header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.94);
}

.csx-page .header:not(.scrolled) .nav-link:hover {
  color: #ffffff;
}

.csx-container {
  width: min(1320px, 94%);
  margin: 0 auto;
}

/* HERO */

.csx-hero {
  position: relative;
  min-height: 940px;
  padding: 150px 0 72px;
  overflow: hidden;
  background-image:
    linear-gradient(
      90deg,
      rgba(4, 16, 31, 0.97) 0%,
      rgba(4, 16, 31, 0.91) 24%,
      rgba(4, 16, 31, 0.65) 43%,
      rgba(4, 16, 31, 0.24) 68%,
      rgba(4, 16, 31, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 16, 31, 0.10) 0%,
      rgba(4, 16, 31, 0.04) 62%,
      var(--csx-bg) 100%
    ),
    url("../assets/images/consignax-hero.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.csx-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(36, 212, 255, 0.10), transparent 28%),
    linear-gradient(rgba(36, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 212, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(90deg, black 0%, transparent 76%);
  pointer-events: none;
}

.csx-hero-content {
  position: relative;
  z-index: 2;
  min-height: 700px;
  display: flex;
  align-items: center;
}

.csx-hero-copy {
  width: min(620px, 100%);
}

.csx-eyebrow {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid rgba(62, 202, 255, 0.26);
  border-radius: 999px;
  background: rgba(5, 30, 58, 0.64);
  color: var(--csx-cyan-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.csx-hero-copy h1 {
  margin: 26px 0 14px;
  color: #ffffff;
  font-size: clamp(72px, 8vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.46);
}

.csx-hero-copy h1 span {
  background: linear-gradient(135deg, #0b61cf, var(--csx-cyan), #baf4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.csx-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--csx-cyan-soft) !important;
  font-size: 18px;
  font-weight: 700;
}

.csx-hero-tags i {
  color: var(--csx-cyan);
  font-style: normal;
}

.csx-hero-description {
  max-width: 590px;
  margin: 22px 0 0;
  color: #d7e6f5 !important;
  font-size: 18px;
  line-height: 1.75;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.csx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.csx-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  transition: 0.25s ease;
}

.csx-button:hover {
  transform: translateY(-3px);
}

.csx-button-primary {
  background: linear-gradient(135deg, #075ebf, #0f8fe8, #28d4ff);
  box-shadow: 0 18px 50px rgba(15, 143, 232, 0.34);
}

.csx-button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

/* CAPABILITIES */

.csx-capabilities {
  padding: 36px 0 84px;
  background: var(--csx-bg);
}

.csx-capability-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--csx-line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(6, 27, 51, 0.82);
  box-shadow: var(--csx-shadow);
}

.csx-capability-strip article {
  min-height: 155px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--csx-line);
  text-align: center;
}

.csx-capability-strip article:last-child {
  border-right: 0;
}

.csx-capability-strip article > span {
  min-height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--csx-cyan);
  font-size: 34px;
  font-weight: 900;
}

.csx-capability-strip b {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.csx-capability-strip small {
  display: block;
  margin-top: 7px;
  color: var(--csx-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* COMMON */

.csx-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at top right, rgba(36, 212, 255, 0.05), transparent 30%),
    var(--csx-bg);
}

.csx-heading {
  max-width: 840px;
  margin: 0 auto 50px;
  text-align: center;
}

.csx-heading > span,
.csx-panel-title > span,
.csx-final-box > div > span {
  color: var(--csx-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.csx-heading h2,
.csx-panel-title h2 {
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.csx-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--csx-muted) !important;
  font-size: 18px;
  line-height: 1.7;
}

/* AUDIENCE */

.csx-audience {
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  color: #10213d;
}

.csx-audience .csx-heading p {
  color: #637089 !important;
}

.csx-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.csx-audience-grid article {
  min-height: 410px;
  padding: 30px;
  border: 1px solid rgba(14, 91, 173, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(9, 36, 90, 0.10);
}

.csx-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: #e9f6ff;
  color: #0873d3;
  font-size: 30px;
}

.csx-audience-grid h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.csx-audience-grid p {
  color: #607089 !important;
  line-height: 1.65;
}

.csx-audience-grid ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.csx-audience-grid li {
  position: relative;
  margin: 14px 0;
  padding-left: 24px;
  color: #213451;
}

.csx-audience-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0c9fe8;
  font-weight: 900;
}

/* FLOW */

.csx-flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.csx-flow-grid::before {
  content: "";
  position: absolute;
  top: 72px;
  left: 11%;
  right: 11%;
  height: 2px;
  z-index: 0;
  background: linear-gradient(90deg, #0a6bd7, var(--csx-cyan));
}

.csx-flow-grid article {
  position: relative;
  z-index: 1;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--csx-line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(13, 42, 75, 0.88), rgba(5, 23, 43, 0.94));
}

.csx-flow-grid i {
  display: block;
  color: #7e9cbf;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.csx-flow-grid article > span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 18px 0 24px;
  border: 1px solid var(--csx-line-strong);
  border-radius: 20px;
  background: #08213f;
  color: var(--csx-cyan);
  font-size: 34px;
}

.csx-flow-grid h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.csx-flow-grid p {
  margin: 0;
  color: var(--csx-muted) !important;
  line-height: 1.65;
}

/* DIFFERENTIALS */

.csx-differentials {
  background: linear-gradient(180deg, #04101f, #07182d);
}

.csx-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.csx-diff-grid article {
  min-height: 215px;
  padding: 30px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--csx-line);
  border-radius: 20px;
  background: rgba(10, 37, 68, 0.76);
}

.csx-diff-grid article > span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(36, 212, 255, 0.08);
  color: var(--csx-cyan);
  font-size: 33px;
  font-weight: 900;
}

.csx-diff-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.csx-diff-grid p {
  margin: 0;
  color: var(--csx-muted) !important;
  line-height: 1.65;
}

/* ARCHITECTURE */

.csx-architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.csx-architecture-panel,
.csx-integration-panel {
  padding: 30px;
  border: 1px solid var(--csx-line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(10, 36, 66, 0.82), rgba(4, 18, 34, 0.94));
  box-shadow: var(--csx-shadow);
}

.csx-panel-title {
  margin-bottom: 28px;
}

.csx-panel-title h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 40px);
}

.csx-stack {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1fr 170px 1fr;
  gap: 20px;
  align-items: center;
}

.csx-stack-side {
  display: grid;
  gap: 13px;
}

.csx-stack-side span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(89, 186, 255, 0.20);
  border-radius: 12px;
  background: rgba(8, 31, 57, 0.82);
  color: #d9e9f8;
  font-size: 13px;
  font-weight: 700;
}

.csx-stack-core {
  display: grid;
  gap: 12px;
}

.csx-stack-core div {
  min-height: 105px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--csx-line-strong);
  background: linear-gradient(145deg, #0c5e96, #0a2d56);
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  transform: skewY(-4deg);
}

.csx-integration-map {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  gap: 20px;
  align-items: center;
}

.csx-integration-side {
  display: grid;
  gap: 18px;
}

.csx-integration-side div {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(89, 186, 255, 0.20);
  border-radius: 14px;
  background: rgba(7, 29, 54, 0.82);
}

.csx-integration-side span {
  color: var(--csx-cyan);
  font-size: 24px;
  font-weight: 900;
}

.csx-integration-side b {
  font-size: 13px;
  line-height: 1.4;
}

.csx-integration-core {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px solid var(--csx-cyan);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 165, 226, 0.30), rgba(4, 22, 41, 0.96));
  box-shadow: 0 0 34px rgba(36, 212, 255, 0.30);
}

.csx-integration-core small {
  color: #98b6d1;
}

.csx-integration-core b {
  margin-top: 6px;
  font-size: 20px;
}

/* RESULTS */

.csx-results {
  background: linear-gradient(135deg, #062440, #06335a 50%, #075f9b);
}

.csx-results .csx-heading > span,
.csx-results .csx-heading h2 {
  color: #ffffff;
}

.csx-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.csx-results-grid article {
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.csx-results-grid article > span {
  display: block;
  color: var(--csx-cyan);
  font-size: 40px;
}

.csx-results-grid b {
  display: block;
  margin: 18px 0 10px;
  color: #7eeaff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.csx-results-grid p {
  margin: 0;
  color: #d8e8f7 !important;
  line-height: 1.65;
}

/* FINAL CTA */

.csx-final {
  padding: 50px 0 90px;
  background: var(--csx-bg);
}

.csx-final-box {
  min-height: 250px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid rgba(36, 212, 255, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 55%, rgba(36, 212, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #08243f, #063c68 58%, #075894);
  box-shadow: var(--csx-shadow);
}

.csx-final-box h2 {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.csx-final-box h2 strong {
  color: var(--csx-cyan);
}

/* RESPONSIVE */

@media (max-width: 1150px) {
  .csx-architecture-grid {
    grid-template-columns: 1fr;
  }

  .csx-capability-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .csx-audience-grid {
    grid-template-columns: 1fr;
  }

  .csx-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MENU MOBILE — CONSIGNAX */
@media (max-width: 900px) {
  .csx-page .header:not(.scrolled) .menu.active .nav-link,
  .csx-page .menu.active .nav-link {
    color: #1f2a44;
  }

  .csx-page .header:not(.scrolled) .menu.active .nav-link:hover,
  .csx-page .menu.active .nav-link:hover {
    color: #1767e5;
  }
}

@media (max-width: 860px) {
  .csx-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .csx-flow-grid::before {
    display: none;
  }

  .csx-diff-grid {
    grid-template-columns: 1fr;
  }

  .csx-stack,
  .csx-integration-map {
    grid-template-columns: 1fr;
  }

  .csx-stack-core,
  .csx-integration-core {
    margin: 24px auto;
  }

  .csx-final-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .csx-hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 50px;
    background-position: 66% center;
  }

  .csx-hero-content {
    min-height: 640px;
    align-items: flex-start;
  }

  .csx-hero-copy {
    padding-top: 42px;
  }

  .csx-hero-copy h1 {
    font-size: clamp(58px, 21vw, 90px);
  }

  .csx-hero-tags {
    font-size: 15px;
  }

  .csx-actions {
    flex-direction: column;
  }

  .csx-button {
    width: 100%;
  }

  .csx-capability-strip,
  .csx-flow-grid,
  .csx-results-grid {
    grid-template-columns: 1fr;
  }

  .csx-capability-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--csx-line);
  }

  .csx-capability-strip article:last-child {
    border-bottom: 0;
  }

  .csx-diff-grid article {
    grid-template-columns: 1fr;
  }

  .csx-architecture-panel,
  .csx-integration-panel {
    padding: 22px;
  }

  .csx-final-box {
    padding: 30px 22px;
  }
}
