:root {
  --navy: #0b1f33;
  --navy-2: #123049;
  --blue: #1d57a4;
  --blue-mid: #147bd0;
  --sky: #5ac1e6;
  --ice: #e8f1f8;
  --paper: #f4f7fb;
  --ink: #0e1a24;
  --muted: #5a6b7a;
  --amber: #d97706;
  --radius: 18px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(20, 123, 208, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(90, 193, 230, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(29, 87, 164, 0.4), transparent 55%),
    linear-gradient(165deg, #071525 0%, var(--navy) 45%, #0a2438 100%);
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  animation: rise 0.7s ease-out both;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

.top-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 241, 248, 0.55);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.5rem 3rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  animation: rise 0.75s 0.08s ease-out both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  animation: rise 0.8s 0.12s ease-out both;
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(232, 241, 248, 0.78);
  animation: rise 0.85s 0.18s ease-out both;
}

.portals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2.25rem;
  max-width: 42rem;
  animation: rise 0.9s 0.28s ease-out both;
}

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

.portal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: rgba(244, 247, 251, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.portal:hover,
.portal:focus-visible {
  transform: translateY(-3px);
  border-color: var(--sky);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  outline: none;
}

.portal-kicker {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.portal-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.portal-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.35;
}

.portal-go {
  position: absolute;
  right: 1.2rem;
  bottom: 1.15rem;
  font-size: 1.25rem;
  color: var(--blue-mid);
  transition: transform 0.25s ease;
}

.portal:hover .portal-go {
  transform: translateX(4px);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  padding: 1rem 1.5rem 1.35rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  font-size: 0.78rem;
  color: rgba(232, 241, 248, 0.4);
  animation: rise 1s 0.35s ease-out both;
}

.foot-note {
  color: rgba(232, 241, 248, 0.28);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
