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

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% -20%, rgba(49, 137, 255, 0.18), transparent 42%),
    linear-gradient(145deg, #07111f 0%, #0a1728 48%, #09121f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: 35%;
  left: -220px;
  background: #1a75ff;
}

.ambient-two {
  right: -250px;
  bottom: -120px;
  background: #f2a64a;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0 32px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 84px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #7eb7ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: #aebdd0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.gateway-state {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(132, 182, 246, 0.2);
  border-radius: 999px;
  color: #b9c8d9;
  background: rgba(9, 25, 43, 0.78);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  font-size: 0.82rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.gateway-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49d391;
  box-shadow: 0 0 0 4px rgba(73, 211, 145, 0.12);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.section-heading > p {
  margin: 0 0 4px;
  color: #8393a8;
  font-size: 0.9rem;
}

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

.app-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(134, 173, 222, 0.15);
  border-radius: 24px;
  color: inherit;
  background:
    linear-gradient(145deg, rgba(22, 43, 69, 0.94), rgba(11, 26, 45, 0.92));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.app-card.active:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.app-card.active:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.app-card::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  filter: blur(80px);
  opacity: 0.12;
}

.app-top,
.app-bottom {
  position: relative;
  z-index: 1;
}

.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.app-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 17px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  font-size: 1.55rem;
  font-weight: 850;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #91a2b7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #49d391;
  content: "";
}

.app-card.placeholder {
  border-style: dashed;
  color: #8292a6;
  background: rgba(11, 26, 45, 0.52);
  box-shadow: none;
}

.app-card.placeholder .status::before {
  background: #64748b;
}

.app-bottom h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.app-bottom p {
  max-width: 480px;
  margin: 0;
  color: #9bacc0;
  line-height: 1.55;
}

.open-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 750;
}

.open-label svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.app-card:hover .open-label svg {
  transform: translate(3px, -3px);
}

footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 64px;
  color: #607187;
  font-size: 0.78rem;
}

.skeleton {
  border-radius: 999px;
  background: linear-gradient(90deg, #172c45, #203956, #172c45);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.icon-skeleton {
  width: 56px;
  height: 56px;
  border-radius: 17px;
}

.line {
  width: 58%;
  height: 12px;
  margin-top: 12px;
}

.line.long {
  width: 80%;
  height: 18px;
  margin-top: auto;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 620px);
    padding-top: 40px;
  }

  .hero,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    margin-bottom: 58px;
  }

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

  .app-card {
    min-height: 225px;
    padding: 24px;
  }

  .section-heading > p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
