/* Systems page — VPS product line. Scoped to .systems-page; consumes the
   canonical tokens plus the showroom palette values (documented in
   websitebase.md §5). Missing artwork renders as dark placeholders. */

.systems-page {
  --sys-green: #394d45;
  --sys-teal: #637a77;
  --sys-baby: #a9c8e0;
  --sys-baby-70: rgba(169, 200, 224, .72);
  --sys-ink: #040404;
  --sys-panel: #0d0d0d;
  --sys-text-80: rgba(255, 255, 255, .8);
  --sys-text-65: rgba(255, 255, 255, .65);
  --sys-line: rgba(255, 255, 255, .16);
  background: var(--sys-ink);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 300;
}

.systems-page h1,
.systems-page h2 {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0;
}

.systems-eyebrow {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--sys-baby-70);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.systems-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 15px 21px;
  border: 1px solid rgba(169, 200, 224, .55);
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s, border-color .25s;
}

.systems-button--solid {
  border-color: var(--sys-green);
  background: var(--sys-green);
}

.systems-button--solid:hover {
  border-color: var(--sys-teal);
  background: var(--sys-teal);
}

.systems-button:not(.systems-button--solid):hover {
  border-color: var(--sys-baby);
  background: rgba(169, 200, 224, .16);
}

.systems-button--small {
  min-height: 40px;
  padding: 11px 17px;
  font-size: .8125rem;
}

.systems-button:focus-visible {
  outline: 2px solid var(--sys-baby);
  outline-offset: 2px;
}

.systems-button span {
  font-size: .9rem;
}

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

.systems-hero {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 72svh;
  padding: 160px 7vw 96px;
  overflow: hidden;
  background: var(--sys-ink);
}

.systems-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(99, 122, 119, .38), transparent 55%),
    radial-gradient(90% 70% at 18% 85%, rgba(57, 77, 69, .5), transparent 60%),
    linear-gradient(180deg, #0a0f0d, #040404);
}

.systems-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 4, 4, .82), transparent 55%);
  pointer-events: none;
}

.systems-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.systems-hero__content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  line-height: 1.1;
}

.systems-hero__content p {
  max-width: 44ch;
  margin: 1.2rem 0 2.2rem;
  color: var(--sys-text-80);
  font-size: 1rem;
  line-height: 1.7;
}

/* -- What you get ----------------------------------------------------- */

.systems-slice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--sys-line);
}

.systems-slice__visual {
  min-height: 480px;
}

.systems-slice__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 6vw;
  background: var(--sys-panel);
}

.systems-slice__content h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.375rem);
  line-height: 1.15;
}

.systems-slice__content p {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  color: var(--sys-text-65);
  font-size: 1rem;
  line-height: 1.8;
}

/* -- Placeholder artwork (missing assets render dark, never broken) ----- */

.systems-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 80% at 70% 20%, rgba(99, 122, 119, .25), transparent 60%),
    linear-gradient(160deg, #101613, #070a08);
  color: var(--sys-text-65);
}

.systems-placeholder span {
  padding: 1rem 1.5rem;
  border: 1px solid var(--sys-line);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.systems-placeholder--wide {
  min-height: 380px;
}

/* -- Plans ------------------------------------------------------------ */

.systems-plans {
  padding: 96px 7vw;
  border-top: 1px solid var(--sys-line);
}

.systems-plans__heading {
  margin-bottom: 3rem;
}

.systems-plans__heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.375rem);
}

.systems-plans__heading > p {
  margin: 1rem 0 0;
  color: var(--sys-baby-70);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.systems-plans__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.systems-plan {
  position: relative;
  overflow: hidden;
  background: #000;
  transition: transform .35s var(--ease-out);
}

.systems-plan__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: brightness(.92);
  transition: transform .35s var(--ease-out), filter .35s;
}

.systems-plan:hover {
  transform: scale(1.02);
}

.systems-plan:hover .systems-plan__media {
  filter: brightness(1.06);
}

.systems-plan__strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(4, 4, 4, .92), rgba(4, 4, 4, .55) 70%, transparent);
}

.systems-plan__id b {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.systems-plan__id span {
  display: block;
  margin-top: .3rem;
  color: var(--sys-text-65);
  font-size: .75rem;
  letter-spacing: .04em;
}

.systems-plan__action {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: .55rem;
}

.systems-plan__price {
  font-size: 1.05rem;
  font-weight: 400;
}

.systems-plan__price i {
  margin-left: .2rem;
  color: var(--sys-text-65);
  font-size: .72rem;
  font-style: normal;
}

/* -- Locations ---------------------------------------------------------- */

.systems-locations {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-top: 1px solid var(--sys-line);
}

.systems-locations__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 6vw;
  background: var(--sys-green);
}

.systems-locations__content h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.375rem);
}

.systems-locations__content p {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  line-height: 1.8;
}

/* -- Dashboard ------------------------------------------------------------ */

.systems-dashboard {
  padding: 96px 7vw;
  border-top: 1px solid var(--sys-line);
  text-align: center;
}

.systems-dashboard__caption {
  margin: 2rem 0 0;
  color: var(--sys-text-65);
  font-size: 1rem;
}

/* -- Featured product (full-width card under the plans grid) ------------ */

.systems-product {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  transition: transform .35s var(--ease-out);
}

.systems-product:hover {
  transform: scale(1.01);
}

.systems-product__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  filter: brightness(.94);
  transition: filter .35s;
}

.systems-product:hover .systems-product__media {
  filter: brightness(1.04);
}

.systems-product__strip {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  background: linear-gradient(0deg, rgba(4, 4, 4, .85), transparent);
}

@media (max-width: 860px) {
  .systems-product__media {
    aspect-ratio: 2 / 1;
  }
}

/* -- Kervalt landing ------------------------------------------------------ */

.kervalt-hero .systems-hero__bg {
  background:
    radial-gradient(120% 90% at 72% 22%, rgba(99, 122, 119, .5), transparent 55%),
    radial-gradient(90% 70% at 12% 88%, rgba(57, 77, 69, .6), transparent 60%),
    linear-gradient(160deg, #0b100e, #040404);
}

.kervalt-engines {
  padding: 96px 7vw;
  border-top: 1px solid var(--sys-line);
}

.kervalt-engines__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kervalt-engine {
  padding: 2rem 1.75rem;
  border: 1px solid var(--sys-line);
  background: var(--sys-panel);
}

.kervalt-engine__role {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--sys-baby-70);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kervalt-engine h3 {
  margin: 0 0 .9rem;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
}

.kervalt-engine p {
  margin: 0;
  color: var(--sys-text-65);
  font-size: .95rem;
  line-height: 1.75;
}

.kervalt-engines__result {
  max-width: 62ch;
  margin: 2.5rem auto 0;
  color: var(--sys-text-80);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

.kervalt-sovereignty .systems-locations__content {
  gap: 0;
}

.kervalt-sovereignty .systems-button {
  align-self: flex-start;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .kervalt-engines__grid {
    grid-template-columns: 1fr;
  }

  .kervalt-engines {
    padding: 64px 24px;
  }
}

/* -- Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .systems-plans__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .systems-slice,
  .systems-locations {
    grid-template-columns: 1fr;
  }

  .systems-slice__visual {
    min-height: 320px;
  }

  .systems-slice__content,
  .systems-locations__content {
    padding: 64px 24px;
  }

  .systems-hero {
    min-height: 60svh;
    padding: 140px 24px 64px;
  }

  .systems-plans,
  .systems-dashboard {
    padding: 64px 24px;
  }
}

@media (max-width: 560px) {
  .systems-plans__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .systems-plan,
  .systems-plan__media,
  .systems-button {
    transition: none;
  }
}
