:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #071426;
  color: #f7f9fc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #071426;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 2%, rgba(48, 121, 190, 0.23), transparent 34rem),
    linear-gradient(145deg, #061120 0%, #0b1c32 55%, #071426 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0 24px;
}

.hero {
  display: flex;
  min-height: 42vh;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 52px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: #f8fbff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #77bbed;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: #b8c7da;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  line-height: 1.55;
}

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

.system-card {
  --accent: #3478c7;
  display: grid;
  min-height: 164px;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: #f7f9fc;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
  color: #0b1930;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.system-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.24);
}

.system-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.card-code {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-copy strong {
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.card-copy span {
  max-width: 28ch;
  color: #536176;
  font-size: 1rem;
  line-height: 1.5;
}

.card-arrow {
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.sigec { --accent: #246bb2; }
.carteira { --accent: #2d7d5a; }
.ipacol { --accent: #bb3e3e; }
.ieclb { --accent: #8a5bba; }

footer {
  padding-top: 36px;
  color: #8090a6;
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 560px);
    padding-top: 20px;
  }

  .hero {
    min-height: auto;
    gap: 72px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .systems {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 144px;
    gap: 16px;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-card {
    transition: none;
  }
}
