:root {
  color-scheme: light;
  --white: #fff;
  --ink: #201a33;
  --muted: #575168;
  --accent: #5f3dba;
  --accent-dark: #4a2a9e;
  --line: #dfd5f5;
  --tint: #faf7ff;
  --tint-strong: #f0e9fc;
  --radius: 18px;
  font-family: 'Avenir Next', system-ui, sans-serif;
}

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

body {
  min-width: 0;
  margin: 0;
  background: var(--white);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 3rem), 72rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 1;
  padding: 0.65rem 0.9rem;
  transform: translateY(-200%);
  border-radius: 8px;
  background: var(--accent-dark);
  color: var(--white);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-block-end: 1px solid var(--line);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid #c5b0ef;
  border-radius: 8px;
  background:
    linear-gradient(var(--accent) 0 0) 46% 31% / 42% 2px no-repeat,
    linear-gradient(var(--accent) 0 0) 58% 50% / 42% 2px no-repeat,
    linear-gradient(var(--accent) 0 0) 70% 69% / 42% 2px no-repeat,
    var(--tint-strong);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a, .header-github, .footer-inner > a:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a:hover, .footer-inner > a:last-child:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.header-github {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.header-github:hover {
  background: var(--tint);
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6.25rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy > p {
  max-width: 27rem;
  margin: 1.4rem 0 1.85rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--accent-dark);
}

.button-secondary:hover {
  background: var(--tint-strong);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 19rem;
  aspect-ratio: 1.25;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle, #bca9e4 0.8px, transparent 1.3px) center / 19px 19px,
    radial-gradient(ellipse at 55% 58%, #ddcbfc, transparent 69%),
    #faf7ff;
}

.stack {
  position: relative;
  display: grid;
  width: 58%;
  max-width: 17rem;
  aspect-ratio: 1;
  place-items: center;
}

.stack-layer {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  transform: translateY(var(--offset)) rotateX(55deg) rotateZ(-43deg);
  border: 1px solid var(--layer-edge);
  border-radius: 12%;
  background: var(--layer-fill);
  box-shadow: -9px 12px 0 var(--layer-side), -15px 24px 23px #6145a627;
}

.stack-bottom {
  --offset: 23%;
  --layer-edge: #b69ae7;
  --layer-fill: #d7c3f6;
  --layer-side: #bba0e9;
}

.stack-middle {
  --offset: 1%;
  --layer-edge: #baa2e6;
  --layer-fill: #e8dbfb;
  --layer-side: #ccb6ef;
}

.stack-top {
  --offset: -21%;
  --layer-edge: #c3afe7;
  --layer-fill: #f9f3ff;
  --layer-side: #dbcaef;
  display: grid;
  place-items: center;
}

.stack-top::before {
  position: absolute;
  inset: 9%;
  border: 1px solid #d8c8f0;
  border-radius: 9%;
  content: '';
}

.stack-glyph {
  display: grid;
  width: 47%;
  aspect-ratio: 1;
  grid-template-columns: repeat(2, 1fr);
  gap: 12%;
}

.stack-glyph i {
  border-radius: 19%;
  background: #b796ee;
}

.stack-glyph i:first-child { background: #7952c9; }
.stack-glyph i:last-child { background: #d6bff6; }

.section {
  padding-block: clamp(2.6rem, 6vw, 4.25rem);
  border-block-start: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.section-heading {
  margin-block-end: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p, .scenario-card p, .component-panel p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.scenario-card, .component-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scenario-card {
  background: linear-gradient(150deg, var(--tint) 0%, var(--white) 70%);
}

.scenario-card h3, .component-panel h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.scenario-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1.2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--tint-strong);
  color: var(--accent);
}

.icon-workflow span {
  width: 1.05rem;
  height: 0.85rem;
  border: 1.5px solid;
  border-radius: 3px;
  box-shadow: 3px -3px 0 -1px var(--tint-strong), 4px -4px currentColor;
}

.icon-integrations span {
  width: 1.14rem;
  height: 0.7rem;
  transform: rotate(-35deg);
  border: 1.5px solid;
  border-radius: 6px;
  background: linear-gradient(currentColor 0 0) center / 1.5px 100% no-repeat;
}

.icon-operations span {
  width: 0.95rem;
  height: 0.95rem;
  transform: rotate(-45deg);
  border: 1.5px solid;
  border-radius: 3px;
  background: linear-gradient(currentColor 0 0) center / 38% 1.5px no-repeat;
}

.components {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.component-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--tint);
}

.component-panel .button {
  flex-shrink: 0;
}

.site-footer {
  border-block-start: 1px solid var(--line);
  background: var(--tint);
}

@media (max-width: 48rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    width: 100%;
    min-height: 15rem;
    max-height: 23rem;
  }

  .scenario-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .component-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 29rem) {
  .container {
    width: calc(100% - 2rem);
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    padding-block: 0.9rem;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }
}
