/* Home page. A short header with the docs search, three ways in (app, API, MCP), a
   four-stage journey, a data source logo wall with filter, and What's new.
   Every value is a token from brand.css or adverity.css. */

.dx-page--home .dx-main {
  max-width: var(--adv-page-max);
  margin: 0 auto;
  padding: var(--adv-space-xx-large) var(--adv-gutter) var(--adv-space-4x-large);
}
.dx-page--home .dx-prose img { border: 0; border-radius: 0; }

.dx-home a { text-decoration: none; }

/* Header: the title, one line and the docs search (opens the search dialog, search.js) */
.dx-page--home .dx-article > section > h1 {
  margin: 0 0 var(--adv-space-x-small);
  font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em;
}
.dx-page--home .dx-article > section > h1 .headerlink { display: none; }
.dx-page--home p.dx-lead { max-width: 680px; margin: 0 0 var(--adv-space-large); font-size: 18px; line-height: 28px; color: var(--adv-text-secondary); }
.dx-home-search {
  display: flex; align-items: center; gap: var(--adv-space-x-small);
  width: 100%; max-width: 680px; height: var(--adv-space-xx-large); padding: 0 var(--adv-space-small);
  border: 1px solid var(--adv-border); border-radius: var(--adv-radius-medium);
  background: var(--adv-surface); color: var(--adv-text-secondary);
  transition: border-color var(--dx-duration) var(--dx-ease), box-shadow var(--dx-duration) var(--dx-ease);
}
.dx-home-search:hover { border-color: var(--adv-brand); }

/* Bands ----------------------------------------------------------------------- */
.dx-home { margin-top: var(--adv-space-xx-large); }
.dx-band { padding: var(--adv-space-xx-large) 0; border-top: 1px solid var(--adv-border); }
.dx-home > .dx-band:first-child { padding-top: 0; border-top: 0; }
.dx-band__title { margin: 0 0 var(--adv-space-large); font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; color: var(--adv-text-strong); }
.dx-band__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--adv-space-small); margin-bottom: var(--adv-space-large); }
.dx-band__head .dx-band__title { margin: 0; }
.dx-more { display: inline-flex; margin-top: var(--adv-space-medium); font-size: 14px; font-weight: 600; color: var(--adv-brand); }
.dx-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Products: Atlas and Connect, each a tile with an illustration, one sentence and its actions */
.dx-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--adv-space-medium); }
.dx-product {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--adv-border); border-radius: var(--adv-radius-medium); background: var(--adv-surface);
}
.dx-product__art {
  position: relative; display: flex; align-items: center; justify-content: center; height: 168px;
  border-bottom: 1px solid var(--adv-border);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--adv-brand) 14%, transparent) 1px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(160deg, var(--adv-brand-soft), var(--adv-surface));
}
.dx-product--atlas .dx-product__art {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--adv-brand) 14%, transparent) 1px, transparent 1.5px) 0 0 / 16px 16px,
    radial-gradient(260px 140px at 80% 20%, color-mix(in srgb, var(--adv-mint) 22%, transparent), transparent 70%),
    linear-gradient(160deg, var(--adv-brand-soft), var(--adv-surface));
}
.dx-product__body { display: flex; flex-direction: column; flex: 1; padding: var(--adv-space-large); }
.dx-product__eyebrow {
  display: flex; align-items: center; gap: var(--adv-space-x-small); margin: 0 0 var(--adv-space-xx-small);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--adv-text-secondary);
}
.dx-product__tag {
  padding: 1px var(--adv-space-x-small); border-radius: var(--adv-radius-small);
  background: var(--adv-mint); color: var(--adv-navy); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.dx-product h2 { margin: 0 0 var(--adv-space-x-small); font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; color: var(--adv-text-strong); }
.dx-product__lead { margin: 0 0 var(--adv-space-large); font-size: 16px; line-height: 25px; color: var(--adv-text-secondary); }
.dx-product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--adv-space-x-small) var(--adv-space-medium); margin-top: auto; }
.dx-product .dx-btn { height: var(--adv-control-md); padding: 0 var(--adv-space-small); font-size: 14px; font-weight: 600; }
.dx-product__link { font-size: 14px; font-weight: 600; color: var(--adv-brand); }
.dx-product__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Atlas: governed layers over your warehouse */
.dx-layers { display: grid; justify-items: center; width: 300px; transform: perspective(700px) rotateX(36deg); transform-origin: 50% 60%; }
.dx-layers__plane, .dx-layers__base {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 34px; margin-top: 6px;
  border: 1px solid color-mix(in srgb, var(--adv-brand) 40%, var(--adv-border)); border-radius: var(--adv-radius-medium);
  background: color-mix(in srgb, var(--adv-surface) 82%, transparent); box-shadow: var(--adv-shadow-md);
  font-size: 13px; color: var(--adv-text-strong);
}
.dx-layers__plane:first-child { margin-top: 0; border-color: var(--adv-mint); background: color-mix(in srgb, var(--adv-mint) 22%, var(--adv-surface)); }
.dx-layers__plane b { font-weight: 600; }
.dx-layers__base { width: 88%; border-style: dashed; background: transparent; box-shadow: none; color: var(--adv-text-secondary); }

/* Connect: extract from sources, transform, load into warehouses */
.dx-flow { display: flex; align-items: center; gap: var(--adv-space-x-small); width: 100%; padding: 0 var(--adv-space-medium); justify-content: center; }
.dx-flow__step { display: flex; flex-direction: column; align-items: center; gap: var(--adv-space-x-small); flex: none; }
.dx-flow__step > b { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--adv-text-secondary); }
.dx-flow__transform {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--adv-border); border-radius: var(--adv-radius-round);
  background: var(--adv-surface); color: var(--adv-brand); box-shadow: var(--adv-shadow-md);
}
.dx-flow__line { flex: 1; min-width: 20px; max-width: 72px; height: 12px; margin-bottom: 24px; }
.dx-flow__line path { fill: none; stroke: var(--adv-brand); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: dx-product-flow 1.6s linear infinite; }
@keyframes dx-product-flow { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .dx-flow__line path { animation: none; } }

/* Three ways in: the app, the API and MCP */
.dx-surfaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--adv-space-medium); }
.dx-surface { display: flex; flex-direction: column; border: 1px solid var(--adv-border); border-radius: var(--adv-radius-medium); background: var(--adv-surface); }
.dx-surface__body { padding: var(--adv-space-medium); }
.dx-surface__body h2 { margin: 0 0 var(--adv-space-xx-small); font-size: 20px; line-height: 28px; font-weight: 600; }
.dx-surface__body h2 a { color: var(--adv-text-strong); }
.dx-surface__body h2 a::after { content: " \2192"; color: var(--adv-brand); }
.dx-surface__body h2 a:hover { color: var(--adv-brand); }
.dx-surface__body p { margin: 0 0 var(--adv-space-small); font-size: 15px; line-height: 24px; color: var(--adv-text-secondary); }
.dx-surface__body ul { display: flex; flex-wrap: wrap; gap: var(--adv-space-xx-small) var(--adv-space-medium); margin: 0; padding: 0; list-style: none; }
.dx-surface__body li a { font-size: 14px; font-weight: 600; color: var(--adv-brand); }
.dx-surface__body li a::after { content: " \2192"; }
.dx-surface__body li a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* From first source to warehouse: four stages joined by a flowing rail */
.dx-band__lead { margin: calc(-1 * var(--adv-space-small)) 0 var(--adv-space-large); font-size: 16px; line-height: 24px; color: var(--adv-text-secondary); }
.dx-pipeline {
  --art-h: 136px;
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--adv-space-large);
  margin: 0; padding: 0; list-style: none;
}
.dx-pipeline::before {
  content: ""; position: absolute; z-index: 0; left: 6%; right: 6%; top: calc(var(--art-h) / 2 - 1px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--adv-brand) 0 6px, transparent 6px 14px);
  opacity: 0.5; animation: dx-rail 1.2s linear infinite;
}
@keyframes dx-rail { to { background-position: 14px 0; } }
.dx-stage { position: relative; z-index: 1; display: flex; flex-direction: column; }
.dx-stage__art {
  display: flex; align-items: center; justify-content: center; height: var(--art-h); margin-bottom: var(--adv-space-medium);
  border: 1px solid var(--adv-border); border-radius: var(--adv-radius-medium);
  background:
    radial-gradient(color-mix(in srgb, var(--adv-brand) 14%, transparent) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--adv-surface);
}
.dx-stage__title { display: flex; align-items: center; gap: var(--adv-space-x-small); margin: 0 0 var(--adv-space-xx-small); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--adv-text-strong); }
.dx-stage__n {
  display: inline-flex; align-items: center; justify-content: center; width: var(--adv-space-medium); height: var(--adv-space-medium);
  border-radius: var(--adv-radius-round); background: var(--adv-navy); color: var(--adv-mint); font-size: 12px; font-weight: 700;
}
html[data-theme="dark"] .dx-stage__n { background: var(--adv-brand); color: var(--adv-surface); }
.dx-stage__lead { margin: 0 0 var(--adv-space-small); font-size: 15px; line-height: 22px; color: var(--adv-text-secondary); }
.dx-stage__links { margin: 0; padding: 0; list-style: none; }
.dx-stage__links li a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; font-size: 15px; line-height: 22px; color: var(--adv-text); }
.dx-stage__links li a:hover { color: var(--adv-brand); }
.dx-stage__links li a::after { content: "\2192"; color: var(--adv-text-muted); transition: transform var(--dx-duration) var(--dx-ease), color var(--dx-duration) var(--dx-ease); }
.dx-stage__links li a:hover::after { color: var(--adv-brand); }
.dx-stage__links li:first-child a { font-weight: 600; color: var(--adv-brand); }

/* stage vignettes, drawn from real logos and real field names */
.dx-art-logos { display: flex; align-items: center; }
.dx-art-logos img, .dx-art-logos b {
  width: 44px; height: 44px; padding: 10px; margin-left: -10px; object-fit: contain;
  border-radius: var(--adv-radius-round); background: var(--adv-surface); border: 1px solid var(--adv-border); box-shadow: var(--adv-shadow-md);
}
.dx-art-logos img:first-child { margin-left: 0; }
.dx-art-logos b { display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 12px; font-weight: 700; color: var(--adv-brand); }
.dx-art-map { display: grid; grid-template-columns: auto 28px auto; grid-template-rows: repeat(3, auto); align-items: center; column-gap: 0; row-gap: 6px; }
.dx-art-map code {
  grid-column: 1; padding: 2px 8px; border-radius: var(--adv-radius-small);
  border: 1px solid var(--adv-border); background: var(--adv-surface);
  font: 500 12px var(--adv-font-mono); color: var(--adv-text-secondary); white-space: nowrap;
}
.dx-art-map i {
  grid-column: 2; grid-row: 1 / 4; align-self: stretch; margin: 10px 0;
  border: 1.5px solid var(--adv-brand); border-left: 0; border-radius: 0 var(--adv-radius-x-large) var(--adv-radius-x-large) 0; width: 12px;
}
.dx-art-map i::after { content: ""; position: relative; display: block; top: 50%; left: 12px; width: 14px; height: 1.5px; background: var(--adv-brand); }
.dx-art-map code.is-target { grid-column: 3; grid-row: 1 / 4; border-color: var(--adv-brand); color: var(--adv-brand); background: var(--adv-brand-soft); font-weight: 600; }
.dx-art-load { display: flex; gap: var(--adv-space-x-small); }
.dx-art-load__db { /* elliptical radius draws a database cylinder, not a component radius */
  display: flex; align-items: center; justify-content: center; width: 52px; height: 60px;
  border: 1px solid var(--adv-border); border-radius: 26px / 10px; background: var(--adv-surface); box-shadow: var(--adv-shadow-md);
}
.dx-art-load__db img { width: 24px; height: 24px; object-fit: contain; }
.dx-art-chart { width: 72%; height: 64px; overflow: visible; }
.dx-art-chart .area { fill: color-mix(in srgb, var(--adv-brand) 12%, transparent); }
.dx-art-chart .line { fill: none; stroke: var(--adv-brand); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dx-art-chart .alert { fill: var(--adv-ink-danger); stroke: var(--adv-surface); stroke-width: 2; animation: dx-pulse 1.6s ease-in-out infinite; transform-origin: 150px 52px; }
@keyframes dx-pulse { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .dx-pipeline::before, .dx-art-chart .alert { animation: none; } }

/* Data sources */
.dx-sources__filter { position: relative; display: flex; align-items: center; width: 360px; max-width: 100%; }
.dx-sources__filter svg { position: absolute; left: var(--adv-space-small); color: var(--adv-text-secondary); pointer-events: none; }
.dx-sources__filter input {
  width: 100%; height: var(--adv-control-lg); padding: 0 var(--adv-space-small) 0 40px;
  border: 1px solid var(--adv-border); border-radius: var(--adv-radius-medium);
  background: var(--adv-surface); color: var(--adv-text); font: 400 15px var(--adv-font-body);
}
.dx-sources__filter input::placeholder { color: var(--adv-text-secondary); }
.dx-sources__filter input:focus { outline: none; border-color: var(--adv-brand-active); box-shadow: var(--dx-ring); }
.dx-sources__status { margin: calc(-1 * var(--adv-space-small)) 0 var(--adv-space-small); font-size: 13px; color: var(--adv-text-secondary); }
.dx-sources__status:empty { display: none; }
.dx-sources { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--adv-space-x-small); }
.dx-source {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--adv-space-x-small);
  min-height: 104px; padding: var(--adv-space-small) var(--adv-space-x-small);
  border: 1px solid var(--adv-border); border-radius: var(--adv-radius-medium);
  font-size: 13px; line-height: 18px; font-weight: 500; text-align: center; color: var(--adv-text);
}
.dx-source img { width: 28px; height: 28px; object-fit: contain; }
.dx-source:hover { border-color: var(--adv-brand); }
.dx-source__mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--adv-radius-medium);
  background: var(--adv-surface-2); font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--adv-text-secondary);
}

/* What's new */
.dx-news { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--adv-space-large); }
.dx-news__side .dx-band__title { margin-bottom: var(--adv-space-x-small); }
.dx-news__version { margin: 0; font-size: 15px; font-weight: 600; color: var(--adv-text); }
.dx-news__side time { display: block; font-size: 14px; color: var(--adv-text-secondary); }
.dx-news__counts { margin: var(--adv-space-small) 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 24px; color: var(--adv-text-secondary); }
.dx-news__counts b { display: inline-block; min-width: 24px; font-weight: 600; color: var(--adv-text); }
.dx-news__list { margin: 0; padding: 0; list-style: none; }
.dx-news__list > li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--adv-space-medium); padding: var(--adv-space-small) 0; }
.dx-news__list > li + li { border-top: 1px solid var(--adv-border); }
.dx-news__list a { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--adv-text-strong); }
.dx-news__list a:hover { color: var(--adv-brand); }
.dx-news__list p { margin: 2px 0 0; font-size: 14px; line-height: 22px; color: var(--adv-text-secondary); }
.dx-news__kind { padding-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--adv-text-secondary); }
.dx-news__kind small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.dx-news__kind--breaking { color: var(--adv-ink-danger); }
.dx-news__kind--new { color: var(--adv-ink-tip); }

.dx-resources { display: flex; flex-wrap: wrap; gap: var(--adv-space-x-small) var(--adv-space-large); padding-top: var(--adv-space-large); border-top: 1px solid var(--adv-border); }
.dx-resources a { font-size: 14px; color: var(--adv-text-secondary); }
.dx-resources a:hover { color: var(--adv-brand); }

/* Responsive ------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .dx-sources { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dx-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--adv-space-xx-large); }
  .dx-pipeline::before { display: none; }
}
@media (max-width: 1023px) {
  .dx-surfaces, .dx-news, .dx-products { grid-template-columns: minmax(0, 1fr); }
  .dx-sources { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dx-page--home .dx-main { padding: var(--adv-space-large) var(--adv-space-small) var(--adv-space-xx-large); }
  .dx-page--home .dx-article > section > h1 { font-size: 32px; line-height: 40px; }
  .dx-page--home p.dx-lead { font-size: 17px; line-height: 26px; }
  .dx-pipeline { grid-template-columns: minmax(0, 1fr); }
  .dx-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dx-news__list > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dx-band__title { font-size: 24px; line-height: 32px; }
}
