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

@font-face {
  font-family: "CoFo Sans";
  src: url("./assets/fonts/CoFoSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "CoFo Sans", "Segoe UI", "Trebuchet MS", "Arial", sans-serif;
  color: #ffffff;
}

.page {
  --scale-x: calc(100vw / 1440px);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  background-image: url("./assets/bg/bg-main.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-color: #4dd5ef;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  text-align: center;
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 268px * var(--scale-x));
  left: 50%;
  transform: translateX(calc(-50% + 4px));
  width: 233.2px;
  height: auto;
  display: block;
  margin: 0;
}

.subtitle {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 570px * var(--scale-x));
  left: 50%;
  transform: translateX(-50%);
  width: calc(1200px * var(--scale-x));
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
}

.subtitle-strong,
.subtitle-light {
  display: block;
}

.subtitle-strong {
  margin-bottom: 6px;
  font-family: "CoFo Sans", "Segoe UI", "Trebuchet MS", "Arial", sans-serif;
  font-weight: 700;
  font-size: clamp(26.4px, 7.2vw, 55.2px);
  white-space: nowrap;
}

.subtitle-light {
  font-family: "CoFo Sans", "Segoe UI", "Trebuchet MS", "Arial", sans-serif;
  font-weight: 400;
  font-size: clamp(26.4px, 7.2vw, 55.2px);
  white-space: nowrap;
}

.subtitle-light + .subtitle-light {
  margin-top: 2px;
}

.links {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 1103px * var(--scale-x));
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 165px));
  justify-content: center;
  gap: 14px;
}

.card {
  display: flex;
  text-decoration: none;
  border-radius: 18px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.03);
}

.card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

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