/* ============================================================
   BASE
   ============================================================ */

html,
body {
  margin: 0;
  padding: 0;

  width: 100%;
  height: 100%;

  font-family: "Manrope", Arial, sans-serif;

  background: #f8fbff;
  color: #0b1f4d;

  overflow: hidden;
}


/* ============================================================
   GNARUS NETWORK BACKGROUND
   ============================================================ */

#gnarus-network {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  z-index: 0;

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(70, 120, 255, 0.08),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f4f8ff 100%
    );
}


/* ============================================================
   GNARUS HERO
   ============================================================ */

.gnarus-hero {
  position: fixed;
  inset: 0;

  z-index: 2;

  width: 100%;
  height: 100vh;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 40px 24px;

  box-sizing: border-box;
}


/* ============================================================
   GNARUS LOGO
   ============================================================ */

.gnarus-logo {
  display: block;

  width: 230px;
  max-width: 70vw;
  height: auto;

  margin: 0 0 22px 0;

  filter:
    drop-shadow(
      0 18px 34px rgba(15, 45, 110, 0.20)
    )
    drop-shadow(
      0 0 18px rgba(80, 130, 255, 0.16)
    );
}


/* ============================================================
   GNARUS BADGE
   ============================================================ */

.gnarus-badge {
  margin: 0 0 18px 0;

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.22em;

  text-transform: uppercase;

  color: #2457c5;
}


/* ============================================================
   GNARUS TITLE
   ============================================================ */

.gnarus-hero h1 {
  margin: 0 0 22px 0;

  font-size: clamp(48px, 8vw, 96px);

  line-height: 1;

  letter-spacing: 0.12em;

  font-weight: 900;

  color: #15377f;
}


/* ============================================================
   GNARUS SUBTITLE
   ============================================================ */

.gnarus-subtitle {
  max-width: 900px;

  margin: 0 0 34px 0;

  font-size: clamp(19px, 2.2vw, 34px);

  line-height: 1.35;

  font-weight: 400;

  color: #355aa5;
}


/* ============================================================
   GNARUS LOGIN BUTTON
   ============================================================ */

.gnarus-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 150px;

  padding: 16px 34px;

  box-sizing: border-box;

  border-radius: 18px;

  text-decoration: none;

  font-size: 17px;
  font-weight: 800;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #2f66ff,
      #5a82ff
    );

  box-shadow:
    0 18px 38px rgba(45, 100, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.gnarus-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 24px 48px rgba(45, 100, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}


.gnarus-btn:active {
  transform: translateY(0);
}


/* ============================================================
   THALAMUS HOME LINK
   ============================================================ */

.thalamus-home-link {
  position: fixed;

  top: 24px;
  left: 28px;

  z-index: 100;

  display: block;

  width: 150px;

  text-decoration: none;

  opacity: 0.92;

  transition:
    opacity 0.20s ease,
    transform 0.20s ease;
}


/* ============================================================
   THALAMUS HOME LOGO
   ============================================================ */

.thalamus-home-logo {
  display: block;

  width: 100%;
  height: auto;

  border: 0;
}


/* ============================================================
   THALAMUS HOME LINK — HOVER
   ============================================================ */

.thalamus-home-link:hover {
  opacity: 1;

  transform: scale(1.04);
}


.thalamus-home-link:active {
  transform: scale(0.98);
}


/* ============================================================
   MOBILE / TABLET
   ============================================================ */

@media (max-width: 768px) {

  html,
  body {
    width: 100%;
    height: 100%;

    overflow: hidden;
  }


  /*
     На мобильном экране GNARUS снова центрируем,
     а не начинаем страницу сверху.
  */

  .gnarus-hero {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    min-height: 0;

    justify-content: center;

    padding:
      70px
      20px
      28px
      20px;

    box-sizing: border-box;
  }


  /*
     Главный логотип GNARUS.
     Уменьшаем относительно desktop.
  */

  .gnarus-logo {
    width: 150px;
    max-width: 46vw;

    margin: 0 0 16px 0;
  }


  .gnarus-badge {
    margin: 0 0 14px 0;

    font-size: 10px;

    line-height: 1.3;

    letter-spacing: 0.13em;
  }


  .gnarus-hero h1 {
    margin: 0 0 16px 0;

    font-size: clamp(38px, 13vw, 56px);

    line-height: 1;

    letter-spacing: 0.07em;
  }


  .gnarus-subtitle {
    width: 100%;
    max-width: 520px;

    margin: 0 0 24px 0;

    font-size: 17px;

    line-height: 1.4;
  }


  .gnarus-btn {
    width: 220px;
    max-width: 80vw;

    min-width: 0;

    padding: 14px 28px;

    font-size: 16px;

    border-radius: 16px;
  }


  /*
     THALAMUS остаётся независимым
     от центральной композиции.
  */

  .thalamus-home-link {
    top: 14px;
    left: 14px;

    width: 90px;
  }

}


/* ============================================================
   SMALL PHONES
   ============================================================ */

@media (max-width: 480px) {

  .gnarus-hero {
    padding:
      62px
      18px
      22px
      18px;
  }


  .gnarus-logo {
    width: 135px;
    max-width: 42vw;

    margin-bottom: 13px;
  }


  .gnarus-badge {
    margin-bottom: 12px;

    font-size: 9px;

    letter-spacing: 0.11em;
  }


  .gnarus-hero h1 {
    margin-bottom: 14px;

    font-size: clamp(36px, 12vw, 48px);

    letter-spacing: 0.055em;
  }


  .gnarus-subtitle {
    max-width: 360px;

    margin-bottom: 20px;

    font-size: 15px;

    line-height: 1.38;
  }


  .gnarus-btn {
    width: 200px;

    padding: 13px 24px;

    font-size: 15px;
  }


  .thalamus-home-link {
    top: 10px;
    left: 10px;

    width: 78px;
  }

}


/* ============================================================
   SHORT MOBILE SCREENS
   Например телефон в браузере с большой панелью навигации.
   ============================================================ */

@media (max-width: 768px) and (max-height: 700px) {

  .gnarus-hero {
    padding:
      52px
      18px
      16px
      18px;
  }


  .gnarus-logo {
    width: 112px;

    margin-bottom: 9px;
  }


  .gnarus-badge {
    margin-bottom: 8px;

    font-size: 8px;
  }


  .gnarus-hero h1 {
    margin-bottom: 10px;

    font-size: 34px;
  }


  .gnarus-subtitle {
    max-width: 340px;

    margin-bottom: 14px;

    font-size: 13px;

    line-height: 1.3;
  }


  .gnarus-btn {
    width: 180px;

    padding: 11px 20px;

    font-size: 14px;

    border-radius: 14px;
  }


  .thalamus-home-link {
    top: 8px;
    left: 8px;

    width: 68px;
  }

}