/* Section-level layout: padding, alternating backgrounds, hero motif. */

.section {
  border-bottom: 1px solid var(--color-border);
  padding-block: 5rem;
}
.section--alt {
  background: var(--color-surface-alt);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.section__inner--wide {
  gap: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 7rem;
  }
}

.split-heading {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.split-heading__paragraphs {
  display: flex;
  max-width: 36rem;
  flex-direction: column;
  gap: 1rem;
}

.split-heading__paragraph {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

@media (min-width: 1024px) {
  .split-heading {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .split-heading__main {
    max-width: 24rem;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, var(--color-surface-alt), transparent 60%);
}

.hero__motif {
  position: absolute;
  right: 0;
  bottom: 0;
  display: none;
  height: 100%;
  width: 100%;
  opacity: 0.4;
}
html.dark .hero__motif {
  opacity: 0.3;
}

.hero__motif-rect {
  stroke: color-mix(in srgb, var(--color-brand-primary) 40%, transparent);
}
html.dark .hero__motif-rect {
  stroke: rgba(255, 255, 255, 0.25);
}

.hero__motif-ring {
  stroke: color-mix(in srgb, var(--color-accent) 35%, transparent);
}
html.dark .hero__motif-ring {
  stroke: rgba(255, 255, 255, 0.15);
}

.hero__motif-trace {
  stroke: var(--color-accent);
  opacity: 0.6;
}
.hero__motif-trace--faint {
  opacity: 0.3;
}

.hero__motif-node {
  fill: var(--color-accent);
}

.hero__motif-node--core {
  fill: var(--color-surface);
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.hero__motif-dot {
  fill: var(--color-accent);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .hero__motif {
    display: block;
  }
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .hero__inner {
    padding-block: 8rem;
  }
}

.hero__intro {
  display: flex;
  max-width: 48rem;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--color-surface-alt);
}

.hero__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-accent);
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-ink);
}

.hero__subtitle {
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.hero__supporting {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
  .hero__subtitle {
    font-size: 1.25rem;
  }
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
  }
}
