:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #52706f;
  --line: #c9e4ec;
  --panel: rgba(248, 253, 255, 0.9);
  --page: #f3fbfd;
  --shadow: 0 18px 55px rgba(25, 104, 124, 0.14);
  --focus: #1f9f8b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(98, 184, 226, 0.28), transparent 44%),
    linear-gradient(315deg, rgba(81, 196, 152, 0.26), transparent 40%),
    var(--page);
}

.sparkle {
  position: fixed;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 10;
  border-radius: 50%;
  background: #7ee8c9;
  box-shadow: 0 0 12px rgba(126, 232, 201, 0.95), 0 0 22px rgba(98, 184, 226, 0.75);
  transform: translate(-50%, -50%) scale(1);
  animation: sparkle-pop 650ms ease-out forwards;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(98, 184, 226, 0.65);
}

.sparkle::after {
  inset: 2px;
  border-color: rgba(255, 255, 255, 0.9);
}

@keyframes sparkle-pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.25) rotate(0deg);
  }

  55% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -72%) scale(1.45) rotate(90deg);
  }
}

a {
  color: inherit;
}

.company-logo {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #111116;
  text-decoration: none;
}

.logo-mark {
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 900;
  line-height: 0.82;
}

.logo-name {
  font-size: clamp(0.82rem, 1.3vw, 1.28rem);
  font-weight: 800;
  line-height: 1.06;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 124px 0 72px;
}

.apps-panel {
  border: 1px solid rgba(195, 228, 236, 0.9);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-align: center;
}

.app-tile:focus-visible {
  outline: 3px solid rgba(35, 100, 210, 0.3);
  outline-offset: 3px;
}

.apps-panel {
  width: min(820px, 100%);
  justify-self: center;
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-tile {
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.app-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 159, 139, 0.5);
  box-shadow: 0 12px 30px rgba(25, 104, 124, 0.13);
}

.app-tile.disabled {
  position: relative;
  cursor: default;
}

.app-tile.disabled:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.app-tile[aria-current="page"] {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(31, 159, 139, 0.18), 0 12px 30px rgba(25, 104, 124, 0.13);
}

.app-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.app-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.app-copy strong {
  font-size: 1.02rem;
  line-height: 1.16;
}

.app-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.coming-soon {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #c91f37;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.roll-in .app-icon {
  color: #1778b8;
  background: #e5f6ff;
}

.bespoke .app-icon {
  color: #168b72;
  background: #e3f8f1;
}

.cost-cap .app-icon {
  color: #1f9f8b;
  background: #dff8f4;
}

.stratmap .app-icon {
  color: #2677a6;
  background: #e7f7ff;
}

.revenue {
  grid-column: 1 / 2;
  grid-row: 3;
}

.revenue .app-icon {
  color: #12856d;
  background: #e8faf3;
}

.ic-map {
  grid-column: 2 / 3;
  grid-row: 3;
}

.ic-map .app-icon {
  color: #8a5a13;
  background: #fff3db;
}

.credit {
  position: fixed;
  right: 24px;
  bottom: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  .company-logo {
    position: static;
    width: min(100% - 32px, 1120px);
    margin: 22px auto 0;
  }

  .shell {
    align-items: start;
    min-height: auto;
    padding: 28px 0 76px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .apps-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .app-tile,
  .revenue,
  .ic-map {
    grid-column: auto;
    grid-row: auto;
  }

  .app-tile {
    min-height: 108px;
  }

  .company-logo {
    gap: 12px;
  }

  .credit {
    right: 14px;
    bottom: 12px;
  }
}
