/* ==========================================================================
   PAGE — HOME
   Layout rules specific to index.html's sections. Loaded after main.css.
   ========================================================================== */

/* ---- Hero ---- */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, #201e1d 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, #201e1d 6%, transparent) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px);
  pointer-events: none;
}

.hero {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  align-items: stretch;
}

.hero__content {
  padding: clamp(44px, 5.6vw, 88px) clamp(0px, 3vw, 56px) clamp(44px, 5.6vw, 84px) 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content .eyebrow {
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.hero__title {
  font-size: clamp(40px, 6.2vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__lede {
  font-size: clamp(16.5px, 1.32vw, 19px);
  line-height: 1.55;
  color: var(--mute);
  max-width: 56ch;
  margin-top: clamp(20px, 2.2vw, 30px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(32px, 4vw, 54px);
  padding-top: 22px;
  border-top: 2px solid var(--hair);
}

.hero__stat-value {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__stat-value--accent {
  color: var(--color-accent);
}

.hero__stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 6px;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 5vw, 64px) clamp(0px, 3vw, 24px);
  border-left: 2px solid var(--rule);
}

/* ---- AI section ---- */
.ai-grid {
  display: grid;
  gap: clamp(32px, 4vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  align-items: start;
}

/* ---- Software / Cloud / Data split sections ---- */
.split {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split--reverse .split__copy {
  order: 1;
}

/* ---- Process section progress track ---- */
.process-track {
  position: relative;
  padding-top: 2px;
}

.process-track__base {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--rule);
}

.process-track__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: var(--color-accent);
  transform-origin: left;
  animation: dsGrow 2.2s ease-out both;
}

/* ---- Final CTA ---- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section__lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, color-mix(in srgb, #ffffff 16%, transparent) 2px, transparent 2px);
  background-size: clamp(48px, 6vw, 88px) 100%;
}

.cta-section__ring {
  position: absolute;
  right: -8%;
  bottom: -40%;
  width: 46%;
  aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, #ffffff 26%, transparent);
  border-radius: 50%;
}

.cta-section__inner {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  align-items: end;
}

.cta-section__title {
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 20ch;
}

.cta-section__lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: color-mix(in srgb, #ffffff 90%, transparent);
  max-width: 46ch;
}

/* ---- AI ecosystem background lines (dark sections with vertical rules) ---- */
.vlines-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, color-mix(in srgb, #f3f2f2 7%, transparent) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) 100%;
}
