/* ==========================================================================
   LAYOUT.CSS — page-level patterns: hero, split sections, grids
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  min-height: min(760px, calc(100vh - 82px));
  padding-block: clamp(4rem, 7vw, 7rem);
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
}
.hero__headline-accent {
  display: block;
  color: var(--color-teal);
}
.hero .lead {
  max-width: 48ch;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-slate);
  max-width: 44ch;
}
.hero__trust-line {
  width: 28px;
  height: 1px;
  background: var(--color-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   HERO VISUAL — DATA PIPELINE (home page only)
   ========================================================================== */
.hero__visual {
  position: relative;
  width: 100%;
}
.pipeline {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  min-height: 480px;
  overflow: hidden;
}
.pipeline__grid {
  position: absolute;
  inset: 4%;
  opacity: 0.65;
  background-image:
    linear-gradient(to right, var(--color-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-line) 1px, transparent 1px);
  background-size: 10% 10%;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.pipeline__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--color-slate);
  margin-bottom: 0.8rem;
}
.pipeline__status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-slate);
}
.pipeline__status--active {
  background: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(31, 138, 112, 0.1);
}
.pipeline__status--success {
  background: var(--color-teal);
}
.pipeline__stage {
  position: absolute;
  z-index: 3;
}
.pipeline__stage--inputs {
  left: 1%;
  top: 19%;
  width: 38%;
}
.pipeline__stage--transform {
  left: 39%;
  top: 33%;
  width: 28%;
}
.pipeline__stage--output {
  right: 0;
  top: 17%;
  width: 38%;
}
.pipeline__card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(18, 37, 62, 0.05);
  margin-bottom: 0.65rem;
}
.pipeline__card--offset {
  transform: translateX(13px);
}
.pipeline__card--offset-2 {
  transform: translateX(5px);
}
.pipeline__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: rgba(31, 138, 112, 0.1);
  color: var(--color-teal);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  flex-shrink: 0;
}
.pipeline__card strong,
.pipeline__card span {
  display: block;
}
.pipeline__card strong {
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1.2;
}
.pipeline__card span {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--color-slate);
}
.pipeline__engine {
  background: var(--color-ink);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: 0 16px 40px rgba(18, 37, 62, 0.18);
  position: relative;
  overflow: hidden;
}
.pipeline__engine::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 211, 184, 0.8), transparent);
}
.pipeline__engine-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(255,255,255,0.65);
}
.pipeline__engine-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6FD3B8;
}
.pipeline__code {
  display: flex;
  justify-content: space-between;
  padding-block: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
}
.pipeline__code span:first-child {
  color: rgba(255,255,255,0.3);
}
.pipeline__code span:last-child {
  color: #6FD3B8;
}
.pipeline__dashboard {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(18, 37, 62, 0.08);
}
.pipeline__dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-line);
}
.pipeline__dashboard-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  color: var(--color-slate);
}
.pipeline__dashboard-head strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
}
.pipeline__live {
  padding: 0.2rem 0.4rem;
  border: 1px solid rgba(31,138,112,0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  color: var(--color-teal);
}
.pipeline__metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.85rem;
}
.pipeline__metric span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--color-slate);
}
.pipeline__metric strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.pipeline__chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 62px;
  margin-top: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-line);
}
.pipeline__chart span {
  display: block;
  flex: 1;
  min-width: 3px;
  background: var(--color-teal);
  opacity: 0.75;
  border-radius: 2px 2px 0 0;
}
.pipeline__chart span:nth-child(7) {
  opacity: 1;
}
.pipeline__dashboard-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
}
.pipeline__dashboard-footer span {
  color: var(--color-slate);
}
.pipeline__dashboard-footer strong {
  font-weight: 500;
}
.pipeline__line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: var(--color-line);
}
.pipeline__line::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-teal);
  animation: pipelinePulse 2.2s infinite ease-in-out;
}
.pipeline__line--one {
  left: 32%;
  top: 44%;
  width: 15%;
  transform: rotate(-8deg);
}
.pipeline__line--one::after {
  right: 0;
}
.pipeline__line--two {
  left: 63%;
  top: 43%;
  width: 14%;
  transform: rotate(5deg);
}
.pipeline__line--two::after {
  right: 0;
  animation-delay: 0.7s;
}
.pipeline__arrow {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-teal);
  background: var(--color-paper);
  line-height: 1;
}
.pipeline__arrow--one {
  left: 45%;
  top: 40%;
}
.pipeline__arrow--two {
  left: 73%;
  top: 40%;
}
.pipeline__badge {
  position: absolute;
  left: 34%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(31,138,112,0.25);
  border-radius: 100px;
  background: rgba(247,248,250,0.9);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: var(--color-teal);
  box-shadow: 0 5px 18px rgba(18,37,62,0.05);
}
.pipeline__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(31,138,112,0.08);
}
@keyframes pipelinePulse {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ==========================================================================
   TOOL STRIP
   ========================================================================== */
.tool-strip__heading {
  text-align: center;
  margin-bottom: 1.5rem;
}
.tool-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   SPLIT SECTION
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split__visual {
  order: 2;
}

/* ==========================================================================
   GRIDS
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ==========================================================================
   SECTION HEAD
   ========================================================================== */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin-bottom: 0.25em;
  max-width: 20ch;
}

/* ==========================================================================
   LOGIC FLOW
   ========================================================================== */
/* .flow {
  display: flex;
  flex-direction: column;
}
.flow__row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-line);
}
.flow__row:last-child {
  border-bottom: 1px solid var(--color-line);
}
.flow__row .coord {
  padding-top: 0.2rem;
} */

/* ==========================================================================
   DATA LIST
   ========================================================================== */
.data-list dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
}
.data-list dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero {
    gap: 3rem;
  }
  .pipeline {
    min-height: 420px;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4rem 5rem;
  }
  .hero__content {
    max-width: 760px;
  }
  .hero__visual {
    order: 2;
    max-width: 680px;
    margin-inline: auto;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__visual {
    order: -1;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  /* .steps' responsive rule lives in components.css only — see note there */
}
@media (max-width: 720px) {
  .pipeline {
    min-height: 390px;
  }
  .pipeline__stage--inputs {
    left: 0;
    width: 39%;
  }
  .pipeline__stage--transform {
    left: 38%;
    width: 29%;
  }
  .pipeline__stage--output {
    right: 0;
    width: 39%;
  }
  .pipeline__card {
    padding: 0.65rem;
  }
  .pipeline__card strong {
    font-size: 0.62rem;
  }
  .pipeline__card span {
    font-size: 0.5rem;
  }
  .pipeline__card-icon {
    width: 25px;
    height: 25px;
    font-size: 0.48rem;
  }
  .pipeline__dashboard {
    padding: 0.75rem;
  }
  .pipeline__metric strong {
    font-size: 1rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-block: 3rem 4rem;
  }
  .hero__trust {
    margin-top: 2rem;
  }
  .pipeline {
    aspect-ratio: auto;
    min-height: 360px;
  }
  .pipeline__grid {
    inset: 2%;
  }
  .pipeline__stage--inputs {
    top: 17%;
    width: 44%;
  }
  .pipeline__stage--transform {
    left: 32%;
    top: 43%;
    width: 36%;
  }
  .pipeline__stage--output {
    top: 17%;
    width: 44%;
  }
  .pipeline__card--offset {
    transform: translateX(7px);
  }
  .pipeline__card--offset-2 {
    display: none;
  }
  .pipeline__line--one {
    left: 34%;
    top: 34%;
    width: 11%;
  }
  .pipeline__line--two {
    left: 65%;
    top: 34%;
    width: 11%;
  }
  .pipeline__arrow--one {
    left: 42%;
    top: 31%;
  }
  .pipeline__arrow--two {
    left: 70%;
    top: 31%;
  }
  .pipeline__badge {
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}