/* Crest AI product page. Every rule is scoped to .crx and this file is loaded only by templates/crest.html. */

.crx {
  --crx-header: 55px;
  --crx-maroon: #8b2f3a;
  --crx-maroon-hover: #72242e;
  --crx-maroon-tint: #f8eeee;
  --crx-gold: #b9935b;
  --crx-gold-soft: #f0cf9b;
  --crx-ink: #1c2228;
  --crx-body: #414b55;
  --crx-muted: #69737d;
  --crx-line: #e8e2dc;
  --crx-warm: #faf7f4;
  --crx-success: #2f7a58;
  --crx-radius: 16px;
  --crx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --crx-gutter: 24px;

  position: relative;
  padding-top: var(--crx-header);
  background: #fff;
  color: var(--crx-body);
  font-family: akkurat, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.crx *,
.crx *::before,
.crx *::after { box-sizing: border-box; }

.crx :where(h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure) {
  margin: 0;
  padding: 0;
}

.crx :where(h1, h2, h3, h4) {
  color: var(--crx-ink);
  font-family: akkurat, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
}

.crx :where(p) { color: var(--crx-body); text-align: left; }
.crx :where(ul, ol) { list-style: none; }
.crx a { text-decoration: none; }
.crx .fa { font-family: FontAwesome !important; font-style: normal; }

.crx-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--crx-gutter);
}

.crx-section {
  padding: clamp(20px, 2.6vw, 36px) 0;
  scroll-margin-top: calc(var(--crx-header) + 16px);
}

.crx-h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  text-wrap: balance;
}

/* Underline below each section heading, matching the BAS / ICMS product pages. */
.crx-h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 12px;
  background: #f0d77a;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s var(--crx-ease) 0.25s;
}

.crx:not(.crx-js) .crx-h2::after,
.crx-js .is-in .crx-h2::after,
.crx-js .crx-h2.is-in::after { transform: scaleX(1); }

.crx-head { margin-bottom: clamp(20px, 2.4vw, 30px); }
.crx-head--center { text-align: center; }
.crx-head--center .crx-h2 { max-width: 900px; margin: 0 auto; }
.crx-head--center .crx-h2::after { margin-left: auto; margin-right: auto; transform-origin: center; }

/* ---------- Buttons ---------- */

.crx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s var(--crx-ease);
}

.crx-btn .fa { transition: transform 0.25s var(--crx-ease); }
.crx-btn:hover .fa-arrow-right,
.crx-btn:focus-visible .fa-arrow-right { transform: translateX(4px); }

.crx-btn--primary {
  background: var(--crx-maroon);
  color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(139, 47, 58, 0.7);
}

.crx-btn--primary:hover,
.crx-btn--primary:focus-visible {
  background: var(--crx-maroon-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(139, 47, 58, 0.75);
}

.crx-btn--ghost {
  border-color: #d9cfc7;
  background: #fff;
  color: var(--crx-ink) !important;
}

.crx-btn--ghost:hover,
.crx-btn--ghost:focus-visible {
  border-color: var(--crx-maroon);
  color: var(--crx-maroon) !important;
}

.crx-btn--sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }

.crx a:focus-visible,
.crx button:focus-visible {
  outline: 3px solid rgba(139, 47, 58, 0.45);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.crx-hero {
  position: relative;
  padding: clamp(32px, 4.5vw, 64px) 0 clamp(20px, 2.5vw, 32px);
  isolation: isolate;
}

.crx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(28, 34, 40, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 78% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 70% at 78% 40%, #000 20%, transparent 75%);
}

.crx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.crx-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px !important;
  padding: 7px 16px !important;
  border: 1px solid rgba(139, 47, 58, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--crx-maroon) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.crx-hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crx-maroon);
  box-shadow: 0 0 0 0 rgba(139, 47, 58, 0.45);
  animation: crxPulse 2.4s ease-out infinite;
}

/* The product name is the first thing seen, as on other product pages. */
.crx-hero-name {
  margin-bottom: 14px !important;
  color: var(--crx-maroon);
  font-size: clamp(52px, 7.5vw, 104px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.crx-hero-tagline {
  display: block;
  max-width: 620px;
  color: var(--crx-ink) !important;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.crx-hero-tagline em {
  font-style: normal;
  /* background: linear-gradient(transparent 68%, rgba(240, 207, 155, 0.75) 68%); */
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: crxMark 1.1s var(--crx-ease) 0.7s forwards;
}

.crx-hero-lead {
  max-width: 600px;
  margin-top: 24px !important;
  font-size: 18px;
  line-height: 1.7;
}

.crx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Agent Studio window: plays the page's 4-stage framework */

.crx-console {
  position: relative;
  border: 1px solid #ded6cf;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(45, 25, 30, 0.45), 0 2px 6px rgba(45, 25, 30, 0.05);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
}

.crx-console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee8e3;
  background: #fbf9f7;
}

.crx-dots { display: inline-flex; gap: 6px; }
.crx-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2d9d2; }

.crx-console-title { color: var(--crx-ink); font-weight: 700; }

.crx-console-env {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf6f1;
  color: var(--crx-success);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.crx-console-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.crx-console-label {
  margin-bottom: 14px !important;
  color: var(--crx-muted) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crx-flow { padding: 20px 18px 22px; }

.crx-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #ece6e1;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.crx-node + .crx-node { margin-top: 18px; }

.crx-node + .crx-node::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 27px;
  width: 2px;
  height: 18px;
  background: #e6dfd9;
}

.crx-node + .crx-node::after {
  content: "";
  position: absolute;
  top: -19px;
  left: 27px;
  width: 2px;
  height: 18px;
  background: var(--crx-maroon);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s ease;
}

.crx-node.is-active::after,
.crx-node.is-done::after { transform: scaleY(1); }

.crx-node-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f4f0ec;
  color: #8a8f95;
  font-size: 14px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.crx-node-text { display: grid; min-width: 0; }
.crx-node-text b { color: var(--crx-ink); font-size: 13px; }
.crx-node-text small { color: var(--crx-muted); font-size: 11.5px; }

.crx-node-state {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border: 2px solid #e2dbd5;
  border-radius: 50%;
  transition: all 0.35s ease;
}

.crx-node.is-active {
  border-color: rgba(139, 47, 58, 0.45);
  box-shadow: 0 0 0 4px rgba(139, 47, 58, 0.08);
}

.crx-node.is-active .crx-node-icon { background: var(--crx-maroon); color: #fff; }

.crx-node.is-active .crx-node-state {
  border-color: rgba(139, 47, 58, 0.25);
  border-top-color: var(--crx-maroon);
  animation: crxSpin 0.8s linear infinite;
}

.crx-node.is-done .crx-node-icon { background: var(--crx-maroon-tint); color: var(--crx-maroon); }

.crx-node.is-done .crx-node-state {
  border-color: var(--crx-success);
  background: var(--crx-success)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.crx-log {
  padding: 20px 18px 22px;
  border-left: 1px solid #eee8e3;
  background: #fcfbfa;
}

.crx-log ul { display: grid; gap: 10px; }

.crx-log li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--crx-ink);
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s var(--crx-ease);
}

.crx-log li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--crx-success)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transform: scale(0.4);
  transition: transform 0.35s var(--crx-ease);
}

.crx-log li.is-in::before { transform: scale(1); }
.crx-log .crx-console-label { color: var(--crx-maroon) !important; transition: opacity 0.3s ease; }

.crx-log li.is-in { opacity: 1; transform: none; }

.crx-console-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid #eee8e3;
  color: var(--crx-muted);
  font-size: 11.5px;
}

/* Pause / play control for the walkthrough. */
.crx-console-toggle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(139, 47, 58, 0.25);
  border-radius: 50%;
  background: #fff;
  color: var(--crx-maroon);
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.crx-console-toggle:hover,
.crx-console-toggle.is-paused {
  background: var(--crx-maroon);
  border-color: var(--crx-maroon);
  color: #fff;
}

/* A stage can be clicked to read it in full. */
.crx-node { cursor: pointer; }

.crx-node:focus-visible {
  outline: 3px solid rgba(139, 47, 58, 0.45);
  outline-offset: 2px;
}

.crx-progress {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: #efe9e4;
  overflow: hidden;
}

.crx-progress span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--crx-maroon), var(--crx-gold));
  transform: scaleX(var(--crx-p, 0));
  transform-origin: left;
  transition: transform 0.6s var(--crx-ease);
}

/* ---------- Overview ---------- */

.crx-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.crx-overview-grid .crx-head { margin-bottom: 0; }

.crx-overview-text {
  padding-left: 28px !important;
  border-left: 3px solid var(--crx-gold);
  font-size: 17px;
  line-height: 1.85;
}
/* ---------- Product architecture diagram (HTML version of the PDF figure) ---------- */

.crx-arch-block { margin-top: clamp(28px, 3.5vw, 44px); }

.crx-arch {
  display: grid;
  gap: 0;
}

.crx-arch-layer {
  border: 1px solid var(--crx-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.crx-arch-layer:hover {
  border-color: rgba(139, 47, 58, 0.28);
  box-shadow: 0 18px 32px -26px rgba(45, 25, 30, 0.45);
}

.crx-arch-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--crx-maroon);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.crx-arch-band .fa { color: var(--crx-gold-soft); font-size: 15px; }

.crx-arch-layer--core .crx-arch-band { background: #3a2a2f; }
.crx-arch-layer--base { background: #fdfbf9; }

.crx-arch-cols { display: grid; }
.crx-arch-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crx-arch-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.crx-arch-col {
  padding: 18px 22px 20px;
  transition: background-color 0.3s ease;
}

.crx-arch-col + .crx-arch-col { border-left: 1px solid var(--crx-line); }
.crx-arch-col:hover { background: var(--crx-warm); }

.crx-arch-col h3 {
  margin-bottom: 10px;
  color: var(--crx-ink);
  font-size: 16px;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.crx-arch-col:hover h3 { color: var(--crx-maroon); }

.crx-arch-col ul { display: grid; gap: 6px; }

.crx-arch-col li {
  position: relative;
  padding-left: 16px;
  color: var(--crx-body);
  font-size: 14.5px !important;
  line-height: 1.5;
}

.crx-arch-col li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crx-maroon);
}

/* Connector between layers: label with animated down-arrows. */
.crx-arch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
}

.crx-arch-link p {
  padding: 6px 16px !important;
  border: 1px dashed rgba(139, 47, 58, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--crx-maroon) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center !important;
}

.crx-arch-link p i { margin: 0 6px; font-style: normal; color: var(--crx-gold); }

.crx-arch-arrow {
  position: relative;
  flex: 0 0 auto;
  width: 2px;
  height: 22px;
  background: linear-gradient(var(--crx-maroon), rgba(139, 47, 58, 0.15));
  animation: crxFlow 1.6s ease-in-out infinite;
}

.crx-arch-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--crx-maroon);
  border-bottom: 2px solid var(--crx-maroon);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes crxFlow {
  0%, 100% { transform: translateY(-3px); opacity: 0.6; }
  50% { transform: translateY(3px); opacity: 1; }
}
/* ---------- Framework timeline ---------- */

.crx-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 46px !important;
}

/* Rail runs through the centre of the STAGE labels. */
.crx-rail {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--crx-line);
}

.crx-rail span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--crx-maroon), var(--crx-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--crx-ease) 0.2s;
}

.crx-stages.is-in .crx-rail span { transform: scaleX(1); }

.crx-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border: 1px solid var(--crx-line);
  border-radius: 14px;
  background: #fdfbf9;
  transition: transform 0.35s var(--crx-ease), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.crx-stage:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 47, 58, 0.28);
  background: #fff;
  box-shadow: 0 18px 32px -24px rgba(45, 25, 30, 0.45);
}

.crx-stage-dot {
  position: absolute;
  top: -46px;
  left: 0;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 2px solid var(--crx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--crx-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease;
  transition-delay: calc(var(--i, 0) * 0.35s + 0.3s);
}

.crx-stages.is-in .crx-stage-dot {
  border-color: var(--crx-maroon);
  background: var(--crx-maroon);
  color: #fff;
}

.crx-stage-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.crx-stage-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--crx-maroon-tint);
  color: var(--crx-maroon);
  font-size: 16px;
  transition: transform 0.35s var(--crx-ease), background-color 0.3s ease, color 0.3s ease;
}

.crx-stage:hover .crx-stage-icon {
  transform: rotate(-6deg);
  background: var(--crx-maroon);
  color: #fff;
}

.crx-stage h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.crx-checks {
  display: grid;
  gap: 8px;
}

.crx-checks li {
  position: relative;
  padding-left: 24px;
  color: var(--crx-body);
  font-size: 14.5px !important;
  line-height: 1.5;
}

.crx-checks li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--crx-maroon-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%238b2f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}
/* ---------- Capabilities ---------- */

.crx-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.crx-cap {
  --mx: 50%;
  --my: 0%;
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--crx-line);
  border-radius: var(--crx-radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s var(--crx-ease), box-shadow 0.35s ease;
}

.crx-cap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(139, 47, 58, 0.07), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.crx-cap:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 47, 58, 0.3);
  box-shadow: 0 24px 40px -30px rgba(45, 25, 30, 0.5);
}

.crx-cap:hover::before { opacity: 1; }

/* Number sits beside the title. */
.crx-cap-title {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--crx-line);
}

.crx-cap-num {
  flex: 0 0 auto;
  color: var(--crx-gold);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.crx-cap:hover .crx-cap-num { color: var(--crx-maroon); }

.crx-cap h3 {
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.crx-cap:hover h3 { color: var(--crx-maroon); }

.crx-cap p {
  position: relative;
  font-size: 15px;
  line-height: 1.7;
}
/* ---------- Use cases (tabs) ---------- */

.crx-uc {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.crx-tabs {
  display: none;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: calc(var(--crx-header) + 24px);
}

.crx-js .crx-tabs { display: flex; }
.crx:not(.crx-js) .crx-uc { grid-template-columns: minmax(0, 1fr); }

.crx-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--crx-body);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.crx-tab .fa {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--crx-line);
  color: var(--crx-muted);
  font-size: 15px;
  transition: all 0.25s ease;
}

.crx-tab:hover { background: var(--crx-warm); color: var(--crx-ink); }

.crx-tab[aria-selected="true"] {
  border-color: var(--crx-line);
  background: #fff;
  color: var(--crx-ink);
  box-shadow: 0 12px 24px -20px rgba(45, 25, 30, 0.45);
}

.crx-tab[aria-selected="true"] .fa {
  border-color: var(--crx-maroon);
  background: var(--crx-maroon);
  color: #fff;
}

.crx-panels { display: grid; gap: 20px; min-width: 0; }

.crx-panel {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--crx-line);
  border-radius: 20px;
  background: #fff;
}

.crx-js .crx-panel[hidden] { display: none; }
.crx-js .crx-panel.is-entering { animation: crxPanelIn 0.5s var(--crx-ease) both; }

.crx-panel-title {
  margin-bottom: 20px !important;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.3;
}

.crx-js .crx-panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.crx:not(.crx-js) .crx-panels { gap: 28px; }
.crx-uc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crx-uc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid #efe9e4;
  border-radius: 12px;
  background: var(--crx-warm);
  color: var(--crx-ink);
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--crx-ease);
}

.crx-uc-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--crx-gold);
  transform: rotate(45deg);
}

.crx-uc-list li:hover {
  border-color: rgba(139, 47, 58, 0.3);
  background: #fff;
  transform: translateX(3px);
}

.crx-uc-list .crx-uc-wide { grid-column: 1 / -1; }

.crx-panel.is-entering .crx-uc-list li {
  animation: crxItemIn 0.45s var(--crx-ease) both;
  animation-delay: calc(var(--n, 0) * 40ms + 80ms);
}

/* ---------- Benefits ---------- */

.crx-benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.crx-benefits-side {
  position: sticky;
  top: calc(var(--crx-header) + 32px);
}

.crx-benefits-side .crx-btn { margin-top: 28px; }

.crx-benefit-list { border-top: 1px solid var(--crx-line); }

.crx-benefit {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--crx-line);
}

.crx-benefit::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--crx-maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--crx-ease);
}

.crx-benefit:hover::before { transform: scaleX(1); }

.crx-benefit-num {
  grid-row: span 2;
  color: var(--crx-gold);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.crx-benefit dt {
  color: var(--crx-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.crx-benefit:hover dt { color: var(--crx-maroon); }

.crx-benefit dd {
  color: var(--crx-body);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Specifications ---------- */

/* Simple warm panel so the section stands out from the white page. */
.crx-specs {
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--crx-line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--crx-warm);
}

.crx-specs .crx-h2 { margin-bottom: clamp(20px, 2.4vw, 28px); }

.crx-spec-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px !important;
}

.crx-spec-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--crx-line);
  border-radius: 14px;
  background: #fff;
  color: var(--crx-body);
  font-size: 15px !important;
  line-height: 1.6;
  transition: border-color 0.3s ease, transform 0.3s var(--crx-ease);
}

.crx-spec-details li:hover {
  border-color: rgba(139, 47, 58, 0.3);
  transform: translateY(-2px);
}

.crx-spec-details .fa {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--crx-maroon-tint);
  color: var(--crx-maroon);
  font-size: 14px;
}

.crx-spec-details b { color: var(--crx-ink); }

/* The counted figures carry the emphasis in each row. */
.crx-spec-num {
  /* color: var(--crx-maroon) !important; */
  /* font-size: 1.35em; */
  font-weight:800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.crx-spec-details li:nth-child(7) { grid-column: 1 / -1; }
/* ---------- Request a Demo ---------- */

/* Closing band: joins the specifications panel so the page ends on the call to action. */
.crx-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 0 0 20px 20px;
  background: linear-gradient(120deg, var(--crx-maroon), #6d232d);
}

.crx-demo .crx-btn--primary {
  background: #fff;
  color: var(--crx-maroon) !important;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.crx-demo .crx-btn--primary:hover,
.crx-demo .crx-btn--primary:focus-visible {
  background: #fff6ee;
  color: var(--crx-maroon) !important;
}

.crx-demo .crx-btn--primary:focus-visible { outline-color: #fff; }

.crx-section:last-child { padding-bottom: clamp(28px, 3.2vw, 44px); }

/* ---------- Scroll reveal (only when JS is running) ---------- */

.crx-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--crx-ease), transform 0.8s var(--crx-ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.crx-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */

@keyframes crxSpin { to { transform: rotate(360deg); } }
@keyframes crxMark { to { background-size: 100% 100%; } }

@keyframes crxPulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 47, 58, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(139, 47, 58, 0); }
}

@keyframes crxPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes crxItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .crx-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crx-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0 !important; }
  .crx-rail { display: none; }
  .crx-stage-dot { position: static; align-self: flex-start; height: 26px; margin-bottom: 14px; padding: 0 12px; font-size: 11px; }
}

@media (max-width: 991px) {
  .crx-hero-grid,
  .crx-overview-grid,
  .crx-benefits-grid { grid-template-columns: minmax(0, 1fr); }
  .crx-console-wrap { max-width: 620px; width: 100%; margin: 0 auto; }
  .crx-benefits-side { position: static; }
  .crx-spec-details { grid-template-columns: minmax(0, 1fr); }
  .crx-uc { grid-template-columns: minmax(0, 1fr); }

  .crx-tabs {
    position: static;
    flex-direction: row;
    gap: 8px;
    margin: 0 calc(var(--crx-gutter) * -1);
    padding: 2px var(--crx-gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .crx-tabs::-webkit-scrollbar { display: none; }

  .crx-tab {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 16px 8px 8px;
    border-color: var(--crx-line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .crx-tab .fa { width: 30px; height: 30px; border-radius: 50%; font-size: 13px; }
  .crx-tab[aria-selected="true"] { border-color: var(--crx-maroon); box-shadow: none; }
}

@media (max-width: 767px) {
  .crx { --crx-gutter: 16px; }

  .crx-hero-lead { font-size: 16px; }
  .crx-hero-tag { font-size: 11px; letter-spacing: 0.08em; }
  .crx-hero-actions .crx-btn { flex: 1 1 auto; }

  .crx-console-body { grid-template-columns: minmax(0, 1fr); }
  .crx-log { border-left: 0; border-top: 1px solid #eee8e3; }
  .crx-console-title { font-size: 12px; }

  .crx-overview-text { padding-left: 16px !important; font-size: 16px; }
  .crx-arch-cols--3,
  .crx-arch-cols--2 { grid-template-columns: minmax(0, 1fr); }
  .crx-arch-col + .crx-arch-col { border-left: 0; border-top: 1px solid var(--crx-line); }
  .crx-arch-col { padding: 16px; }
  .crx-arch-band { font-size: 12px; letter-spacing: 0.05em; padding: 11px 14px; }
  .crx-arch-link { gap: 8px; padding: 10px 0; }
  .crx-arch-link p { font-size: 12.5px; padding: 6px 12px !important; }

  .crx-stages { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .crx-cap-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .crx-cap { padding: 24px 20px; }

  .crx-uc-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .crx-uc-list li { min-height: 0; }
  .crx-panel { padding: 20px 16px; border-radius: 16px; }

  .crx-benefit { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .crx-benefit-num { grid-row: auto; }
  .crx-benefit dt { font-size: 18px; }
  .crx-benefit dd { font-size: 15px; }

  .crx-spec-details li { padding: 16px; }
}

@media (max-width: 400px) {
  .crx-console-env { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .crx *,
  .crx *::before,
  .crx *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .crx-js [data-reveal] { opacity: 1; transform: none; }
}