:root {
  color-scheme: dark;
  font-family: Verdana, Geneva, sans-serif;
  color: #fff;
  background: #0b0914;
  --cyan: #18e7cf;
  --purple: #9f45b0;
  --lavender: #e0aaff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  padding-bottom: 58px;
  background:
    radial-gradient(ellipse 35% 358px at 50% 532px, rgb(24 231 207 / 12%), transparent),
    radial-gradient(ellipse 48% 492px at 50% 286px, rgb(123 44 191 / 28%), rgb(159 69 176 / 10%) 55%, transparent);
}

body > header {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
  padding-block: 28px;
}

body > header > a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--cyan);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

body > header > a::after {
  align-self: center;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--purple);
  content: "";
}

body > header > a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
  border-radius: 3px;
}

section[data-hero] {
  padding: 70px 24px 0;
  text-align: center;
}

section[data-hero] > p.eyebrow,
section[data-engine] > h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

section[data-hero] > p.eyebrow {
  color: #b55bc4;
  font-size: 13px;
  line-height: 18px;
}

section[data-hero] > h1 {
  margin: 20px auto 30px;
  max-width: 1120px;
  font-size: clamp(28px, 4.167vw, 60px);
  line-height: 1.32;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

section[data-hero] > h1 > span {
  display: block;
}

section[data-hero] > h1 > span:first-child {
  color: #fff;
  background: linear-gradient(160deg, #fff 40%, #fff 65%, var(--lavender));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

section[data-hero] > p.hero-description {
  max-width: 720px;
  margin: 0 auto;
  color: rgb(224 170 255 / 78%);
  font-size: 17px;
  line-height: 30px;
}

section[data-hero] > p.coming-soon {
  display: grid;
  place-items: center;
  width: 250px;
  min-height: 56px;
  margin: 38px auto 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgb(11 9 20 / 15%), rgb(11 9 20 / 15%)) padding-box,
    linear-gradient(90deg, #7b2cbf, var(--purple) 50%, var(--cyan)) border-box;
  box-shadow: 0 0 0 4px rgb(159 69 176 / 15%), -6px 0 20px rgb(123 44 191 / 35%), 6px 0 20px rgb(24 231 207 / 25%);
  color: #0b0914;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

section[data-engine] {
  position: relative;
  isolation: isolate;
  margin-top: 80px;
}

/* Decorative paths stay vector-based; every visible word is HTML text. */
section[data-engine]::before {
  position: absolute;
  z-index: -1;
  top: -80px;
  left: 0;
  width: 100%;
  height: 160px;
  background: url("../assets/waves.svg") center / 100% 100% no-repeat;
  content: "";
}

section[data-engine] > h2 {
  padding-inline: 24px;
  color: rgb(224 170 255 / 70%);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

section[data-engine] > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 44px;
  width: min(1140px, calc(100% - 80px));
  margin: 54px auto 0;
  padding: 0;
  list-style: none;
}

section[data-engine] > ul > li {
  flex: 0 0 350px;
  min-width: 0;
  height: 240px;
  padding: 27px 29px 32px;
  border: 1.5px solid #2a2145;
  border-radius: 24px;
  background: rgb(17 14 30 / 75%);
}

section[data-engine] li > svg {
  display: block;
  width: 48px;
  height: 48px;
  padding: 11px;
  margin-left: -6px;
  border: 1px solid;
  border-radius: 50%;
  overflow: visible;
}

section[data-engine] svg[data-tone="cyan"] {
  color: var(--cyan);
  border-color: rgb(24 231 207 / 40%);
  background: rgb(24 231 207 / 12%);
}

section[data-engine] svg[data-tone="purple"] {
  color: var(--lavender);
  border-color: rgb(159 69 176 / 50%);
  background: rgb(123 44 191 / 20%);
}

section[data-engine] svg[data-tone="lavender"] {
  color: var(--lavender);
  border-color: rgb(224 170 255 / 40%);
  background: rgb(159 69 176 / 20%);
}

section[data-engine] li > h3 {
  margin: 22px 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

section[data-engine] li > p {
  margin: 0;
  color: rgb(224 170 255 / 65%);
  font-size: 13.5px;
  line-height: 22px;
}

/* Fixed cards wrap into centered rows; only the single-column width is fluid. */
@media (max-width: 824px) {
  section[data-engine] > ul {
    gap: 20px;
    width: calc(100% - 40px);
    max-width: 440px;
  }

  section[data-engine] > ul > li {
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 32px;
    background:
      radial-gradient(ellipse 80% 300px at 50% 500px, rgb(24 231 207 / 9%), transparent),
      radial-gradient(ellipse 100% 450px at 50% 260px, rgb(123 44 191 / 24%), transparent);
  }

  body > header {
    width: calc(100% - 40px);
    padding-block: 22px;
  }

  body > header > a {
    font-size: 25px;
  }

  section[data-hero] {
    padding: 48px 20px 0;
  }

  section[data-hero] > p.eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  section[data-hero] > h1 {
    margin-block: 20px 25px;
    line-height: 1.2;
  }

  section[data-hero] > p.hero-description {
    max-width: 520px;
    font-size: 15px;
    line-height: 26px;
  }

  section[data-hero] > p.coming-soon {
    width: 230px;
    margin-top: 30px;
  }

  section[data-engine] {
    margin-top: 72px;
  }

  section[data-engine] > h2 {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  section[data-engine] > ul {
    margin-top: 42px;
  }

  section[data-engine] > ul > li {
    padding-inline: 26px;
  }

  section[data-engine] li > h3 {
    font-size: 19px;
  }
}

/* Compact spacing keeps narrow-phone text inside the same 240px card height. */
@media (max-width: 380px) {
  section[data-engine] > ul > li {
    padding: 20px;
  }

  section[data-engine] li > svg {
    width: 40px;
    height: 40px;
    padding: 7px;
    margin-left: 0;
  }

  section[data-engine] li > h3 {
    margin: 14px 0 8px;
    font-size: 17px;
  }

  section[data-engine] li > p {
    line-height: 20px;
  }
}
