@font-face {
  font-family: "Beatrice";
  src: url("/assets/fonts/Beatrice-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

:root {
  --navy: #141f47;
  --navy-deep: #0b1127;
  --navy-mid: #1c2441;
  --cream: #fcfbf0;
  --cream-muted: #e7e5d9;
  --ink: #141f47;
  --line: rgba(20, 31, 71, 0.14);
  --orange: #ff931e;
  --yellow: #ffff3d;
  --blue: #3d43ff;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(115.61deg, #10162b 6.92%, #171e38 26.7%, #1c2441 57.63%, #0b1127 85.65%);
  font-family: "Beatrice", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: 0;
  display: block;
  content: "";
  pointer-events: none;
}

.site-shell::before {
  top: -190px;
  right: -180px;
  width: min(62vw, 880px);
  height: 760px;
  opacity: 0.38;
  background:
    linear-gradient(126deg, transparent 34%, rgba(255, 255, 70, 0.94) 47%, rgba(255, 147, 30, 0.68) 51%, rgba(61, 67, 255, 0.58) 61%, transparent 76%),
    radial-gradient(ellipse at 45% 45%, rgba(255, 147, 30, 0.72), transparent 28%),
    radial-gradient(ellipse at 66% 61%, rgba(61, 67, 255, 0.8), transparent 32%);
  filter: blur(36px);
  transform: rotate(8deg);
  animation: flare-grow 5s ease-out 1;
}

.site-shell::after {
  top: 1040px;
  left: -230px;
  width: 480px;
  height: 720px;
  opacity: 0.18;
  background: radial-gradient(ellipse at center, #ff931e, #3d43ff 48%, transparent 70%);
  filter: blur(80px);
}

@keyframes flare-grow {
  from {
    opacity: 0.12;
    transform: rotate(8deg) scale(0.84);
  }
  to {
    opacity: 0.38;
    transform: rotate(8deg) scale(1);
  }
}

.page-width {
  width: min(calc(100% - 64px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 20px 0 94px;
  color: var(--cream);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 92px;
  transition: opacity 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  opacity: 0.76;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-link,
.footer-contact {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--cream);
  font-size: 15px;
  text-decoration: none;
}

.contact-link {
  padding: 10px 0;
}

.contact-arrow,
.footer-contact span {
  font-size: 19px;
  line-height: 1;
  transition: transform 180ms ease;
}

.contact-link:hover .contact-arrow,
.contact-link:focus-visible .contact-arrow,
.footer-contact:hover span,
.footer-contact:focus-visible span {
  transform: translate(2px, -2px);
}

.hero {
  padding-top: 106px;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.directory-panel {
  position: relative;
  z-index: 1;
  margin-inline: 16px;
  padding: 82px 0 104px;
  background: var(--cream);
  border-radius: 30px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 318px;
  padding: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  background: #ffffff;
  border-color: rgba(20, 31, 71, 0.3);
  box-shadow: 0 18px 40px rgba(20, 31, 71, 0.1);
  transform: translateY(-4px);
}

.app-card:focus-visible,
.contact-link:focus-visible,
.brand:focus-visible,
.footer-brand:focus-visible,
.footer-contact:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 92px;
}

.app-logo {
  display: flex;
  align-items: center;
  width: min(78%, 210px);
  height: 78px;
}

.app-logo img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}

.app-logo--icon {
  width: 78px;
  height: 78px;
}

.app-logo--icon img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  object-position: center;
}

.app-card-copy {
  flex: 1;
  padding-top: 20px;
}

.app-card-copy h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.app-card-copy p {
  max-width: 31ch;
  margin: 0;
  color: rgba(20, 31, 71, 0.67);
  font-size: 15px;
  line-height: 1.5;
}

.card-action {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding-top: 22px;
  color: var(--ink);
  font-size: 14px;
}

.card-action span {
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.app-card:hover .card-action span,
.app-card:focus-visible .card-action span {
  transform: translateX(3px);
}

.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 34px 0 42px;
  color: var(--cream);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  width: 78px;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-contact {
  justify-self: end;
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 620px) {
  .page-width {
    width: min(calc(100% - 40px), var(--content-width));
  }

  .site-header {
    padding: 15px 0 66px;
  }

  .brand {
    width: 78px;
  }

  .contact-link {
    font-size: 14px;
  }

  .hero {
    padding-top: 78px;
  }

  .hero h1 {
    max-width: 390px;
    font-size: clamp(40px, 13vw, 58px);
  }

  .directory-panel {
    margin-inline: 8px;
    padding: 54px 0 70px;
    border-radius: 24px;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-card {
    min-height: 286px;
    padding: 21px;
  }

  .site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 28px 0 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
