:root {
  --bg: #07111e;
  --bg-soft: #0e1a2b;
  --text: #f7f9fc;
  --muted: #b7c2d4;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ff6a00;
  --yellow: #ffd23b;
  --blue: #24aee4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.22), transparent 34%),
    linear-gradient(225deg, rgba(36, 174, 228, 0.2), transparent 32%),
    linear-gradient(180deg, #07111e 0%, #0d1726 52%, #07111e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
}

.page {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 34px;
  padding: 42px 22px;
  position: relative;
}

.intro {
  max-width: 720px;
}

.kicker {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffe1c7;
  background: rgba(255, 106, 0, 0.12);
  font-size: 0.9rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 4rem;
  line-height: 0.98;
  font-weight: 850;
}

.description {
  margin: 18px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.65;
}

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

.brand-card {
  min-height: 310px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
  padding: 26px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(12, 25, 43, 0.82);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.82;
  pointer-events: none;
}

.brand-card::after {
  content: "Abrir";
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 22px;
  top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.card-csm::before {
  background:
    linear-gradient(150deg, rgba(255, 106, 0, 0.42), transparent 43%),
    linear-gradient(340deg, rgba(255, 255, 255, 0.08), transparent 38%);
}

.card-gespar::before {
  background:
    linear-gradient(150deg, rgba(255, 210, 59, 0.42), transparent 42%),
    linear-gradient(335deg, rgba(36, 174, 228, 0.34), transparent 46%);
}

.brand-card:hover,
.brand-card:focus {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(17, 35, 58, 0.92);
}

.brand-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: 5px;
}

.logo-area,
.brand-info {
  position: relative;
  z-index: 1;
}

.logo-area {
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 16px 18px;
}

.brand-logo {
  display: block;
  max-width: 100%;
  max-height: 165px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.3));
}

.logo-csm {
  max-height: 122px;
}

.logo-gespar {
  max-height: 176px;
}

.brand-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-name {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.brand-action {
  max-width: 150px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: right;
}

@media (max-width: 760px) {
  .page {
    align-content: start;
    gap: 26px;
    padding: 34px 18px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1.04;
  }

  .description {
    font-size: 1rem;
  }

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

  .brand-card {
    min-height: 250px;
    padding: 22px;
  }

  .brand-card::after {
    width: 58px;
    height: 58px;
    right: 18px;
    top: 18px;
    font-size: 0.75rem;
  }

  .logo-area {
    min-height: 142px;
    padding: 34px 8px 12px;
  }

  .logo-csm {
    max-height: 88px;
  }

  .logo-gespar {
    max-height: 136px;
  }

  .brand-name {
    font-size: 1.65rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.25rem;
  }

  .brand-info {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .brand-action {
    max-width: none;
    text-align: left;
  }
}
