:root {
  --bg: #efede7;
  --surface: rgba(255, 255, 255, 0.74);
  --text: #222324;
  --muted: #656b73;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 28px 64px rgba(13, 15, 19, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --brand: #f0a320;
  --navy: #16365f;
  --content-width: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 163, 32, 0.18), transparent 24%),
    linear-gradient(180deg, #faf9f6 0%, #f2eee7 54%, var(--bg) 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 22px 0 28px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(14, 18, 26, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 170px;
  height: auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy span,
.hero-intro h1,
.system-card__heading strong {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.84rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(22, 54, 95, 0.08);
  border: 1px solid rgba(22, 54, 95, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-intro {
  max-width: none;
  margin-bottom: 24px;
  padding: 12px 4px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #b46d00;
  background: rgba(240, 163, 32, 0.14);
  border: 1px solid rgba(240, 163, 32, 0.18);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-intro h1 {
  margin: 14px 0 0;
  font-size: clamp(2.2rem, 3.4vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-intro p,
.system-card__content p,
.site-footer {
  color: var(--muted);
  line-height: 1.72;
}

.hero-intro p {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: 1rem;
}

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

.system-card {
  position: relative;
  min-height: 690px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0f1114;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.system-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) saturate(0.1) contrast(1.03);
  transform: scale(1.02);
  transition:
    transform 240ms ease,
    filter 240ms ease;
}

.system-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.8) 100%);
  transition: background 240ms ease;
}

.system-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 11, 0.94));
  z-index: 1;
}

.system-card:hover .system-card__image,
.system-card:focus-within .system-card__image,
.system-card:active .system-card__image {
  transform: scale(1.05);
  filter: grayscale(0) saturate(1) contrast(1);
}

.system-card:hover .system-card__overlay,
.system-card:focus-within .system-card__overlay,
.system-card:active .system-card__overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0.72) 100%);
}

.system-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
  color: #ffffff;
}

.system-card__heading strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.system-card__subtitle {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  font-weight: 600;
}

.system-card__content p {
  max-width: 44ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.system-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.system-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.system-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  background: #ffffff;
  color: #101317;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.system-card-control .button {
  background: linear-gradient(135deg, #ffffff, #dbe7f7);
}

.system-card-system .button {
  background: linear-gradient(135deg, #ffffff, #f7ead1);
}

.site-footer {
  padding: 18px 4px 0;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .system-card {
    min-height: 620px;
  }
}

@media (min-width: 981px) {
  .hero-intro h1 {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 12px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

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

  .brand-logo {
    width: 150px;
  }

  .hero-intro h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .system-card {
    min-height: 540px;
    border-radius: 24px;
  }

  .system-card__content {
    padding: 22px;
  }

  .system-card__heading strong {
    font-size: 2rem;
  }

  .system-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .system-card__image,
  .button,
  [data-reveal] {
    transition: none;
  }
}
