* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sidebar-width: 230px;
  --topbar-height: 86px;

  --bg: #050608;

  --border:
    rgba(255, 255, 255, 0.08);

  --border-hover:
    rgba(255, 255, 255, 0.15);

  --text:
    #f6f7f8;

  --muted:
    #9a9fa8;

  --muted-dark:
    #565c66;

  --discord:
    #5865f2;

  --green:
    #58f0b0;

  --ease:
    cubic-bezier(
      0.2,
      0.8,
      0.2,
      1
    );
}

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

body {
  min-height: 100vh;

  overflow-x: hidden;

  background:
    var(--bg);

  color:
    var(--text);

  font-family:
    "Inter",
    Arial,
    sans-serif;

  -webkit-font-smoothing:
    antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

svg {
  display: block;

  flex-shrink: 0;
}


/* ============================================================
   BACKGROUND
============================================================ */

.background {
  position: fixed;

  inset: 0;

  z-index: 0;

  overflow: hidden;

  pointer-events: none;
}

.background-image {
  position: absolute;

  inset: 0;

  background-image:
    url("/images/fairview-background.png");

  background-size:
    cover;

  background-position:
    center;

  background-repeat:
    no-repeat;

  transform:
    scale(1.015);

  filter:
    saturate(0.82)
    contrast(1.04)
    brightness(0.82);
}

.background-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(4, 5, 7, 0.98) 0%,
      rgba(4, 5, 7, 0.9) 18%,
      rgba(4, 5, 7, 0.65) 44%,
      rgba(4, 5, 7, 0.25) 75%,
      rgba(4, 5, 7, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 5, 7, 0.3),
      rgba(4, 5, 7, 0.18) 55%,
      rgba(4, 5, 7, 0.84)
    );
}

.background-vignette {
  position: absolute;

  inset: 0;

  box-shadow:
    inset 0 0 170px
    rgba(0, 0, 0, 0.72);
}


/* ============================================================
   TOP BAR
============================================================ */

.topbar {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 50;

  height:
    var(--topbar-height);

  padding:
    0 24px;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.055);

  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 8, 0.88),
      rgba(5, 6, 8, 0.45)
    );

  backdrop-filter:
    blur(16px);

  -webkit-backdrop-filter:
    blur(16px);
}


/* ============================================================
   JOIN DISCORD
============================================================ */

.top-discord {
  justify-self: start;

  height: 43px;

  padding:
    0 15px;

  display: inline-flex;

  align-items: center;

  gap: 9px;

  border:
    1px solid
    var(--border);

  border-radius:
    10px;

  background:
    rgba(255, 255, 255, 0.055);

  color:
    #f6f7f8;

  font-size:
    12px;

  font-weight:
    600;

  transition:
    background
    180ms ease,
    border-color
    180ms ease,
    transform
    180ms var(--ease);
}

.top-discord:hover {
  transform:
    translateY(-2px);

  border-color:
    var(--border-hover);

  background:
    rgba(255, 255, 255, 0.095);
}


/* ============================================================
   CENTER BRAND
============================================================ */

.top-brand {
  justify-self:
    center;

  display: flex;

  align-items: center;

  gap: 11px;
}

.top-brand-logo {
  width: 40px;
  height: 40px;

  object-fit:
    contain;
}

.top-brand-text {
  display: flex;

  flex-direction:
    column;

  gap: 3px;
}

.top-brand-text strong {
  font-size:
    13px;

  font-weight:
    700;

  letter-spacing:
    -0.015em;
}

.top-brand-text span {
  color:
    #777d87;

  font-size:
    8px;

  font-weight:
    500;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;
}


/* ============================================================
   DISCORD LOGIN
============================================================ */

.account-container {
  justify-self:
    end;
}
.discord-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.discord-login {
  height: 43px;

  padding:
    0 16px;

  display: flex;

  align-items:
    center;

  gap: 9px;

  border:
    1px solid
    rgba(255,255,255,.13);

  border-radius:
    10px;

  background:
    var(--discord);

  color:
    white;

  font-size:
    12px;

  font-weight:
    700;

  box-shadow:
    0 10px 35px
    rgba(88,101,242,.22);

  transition:
    transform
    180ms
    var(--ease),
    background
    180ms ease;
}

.discord-login:hover {
  transform:
    translateY(-2px);

  background:
    #6570f3;
}


/* ============================================================
   PROFILE
============================================================ */

.discord-profile {
  position:
    relative;
}

.profile-button {
  min-width:
    190px;

  height:
    50px;

  padding:
    5px 10px 5px 6px;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  border:
    1px solid
    var(--border);

  border-radius:
    11px;

  background:
    rgba(9, 11, 14, 0.8);

  color:
    white;

  cursor:
    pointer;

  backdrop-filter:
    blur(16px);

  transition:
    border-color
    180ms ease,
    background
    180ms ease;
}

.profile-button:hover {
  border-color:
    var(--border-hover);

  background:
    rgba(15,17,21,.9);
}

.profile-avatar {
  width:
    38px;

  height:
    38px;

  border-radius:
    9px;

  object-fit:
    cover;
}

.profile-info {
  min-width: 0;

  flex: 1;

  display: flex;

  flex-direction:
    column;

  align-items:
    flex-start;

  gap:
    2px;
}

.profile-info strong {
  max-width:
    105px;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-size:
    11px;
}

.profile-info span {
  max-width:
    105px;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  color:
    #676d77;

  font-size:
    8px;
}

.profile-chevron {
  color:
    #777d87;

  transition:
    transform
    180ms ease;
}

.discord-profile.open
.profile-chevron {
  transform:
    rotate(180deg);
}

.profile-dropdown {
  position:
    absolute;

  top:
    calc(100% + 9px);

  right:
    0;

  width:
    220px;

  padding:
    9px;

  visibility:
    hidden;

  opacity:
    0;

  transform:
    translateY(-5px);

  border:
    1px solid
    var(--border);

  border-radius:
    11px;

  background:
    rgba(8,10,13,.97);

  backdrop-filter:
    blur(20px);

  box-shadow:
    0 24px 70px
    rgba(0,0,0,.45);

  transition:
    180ms ease;
}

.discord-profile.open
.profile-dropdown {
  visibility:
    visible;

  opacity:
    1;

  transform:
    translateY(0);
}

.dropdown-user {
  padding:
    7px;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;
}

.dropdown-user img {
  width:
    35px;

  height:
    35px;

  border-radius:
    8px;

  object-fit:
    cover;
}

.dropdown-user div {
  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}

.dropdown-user strong {
  font-size:
    10px;
}

.dropdown-user span {
  color:
    #696f79;

  font-size:
    8px;
}

.dropdown-divider {
  height:
    1px;

  margin:
    6px 0;

  background:
    rgba(255,255,255,.07);
}

.logout-link {
  display:
    block;

  padding:
    9px;

  border-radius:
    7px;

  color:
    #d8dae0;

  font-size:
    10px;
}

.logout-link:hover {
  background:
    rgba(255,255,255,.06);
}


/* ============================================================
   SIDEBAR
============================================================ */

.sidebar {
  position:
    fixed;

  top:
    var(--topbar-height);

  bottom:
    0;

  left:
    0;

  z-index:
    30;

  width:
    var(--sidebar-width);

  padding:
    26px 14px;

  border-right:
    1px solid
    rgba(255,255,255,.055);

  background:
    rgba(5,6,8,.82);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);
}

.sidebar-heading {
  margin:
    0 10px 11px;

  color:
    #4f555f;

  font-size:
    8px;

  font-weight:
    700;

  letter-spacing:
    .16em;
}

.sidebar-nav {
  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}

.sidebar-item {
  min-height:
    45px;

  padding:
    0 12px;

  display:
    flex;

  align-items:
    center;

  gap:
    11px;

  border:
    1px solid
    transparent;

  border-radius:
    8px;

  color:
    #999fa9;

  font-size:
    11px;

  font-weight:
    500;
}

.sidebar-item.active {
  color:
    white;

  border-color:
    rgba(255,255,255,.08);

  background:
    rgba(255,255,255,.05);
}

.sidebar-item.active:hover {
  background:
    rgba(255,255,255,.075);
}

.active-indicator {
  width:
    5px;

  height:
    5px;

  margin-left:
    auto;

  border-radius:
    50%;

  background:
    var(--green);

  box-shadow:
    0 0 12px
    rgba(88,240,176,.55);
}

.sidebar-item.disabled {
  color:
    #4c525c;

  cursor:
    not-allowed;

  user-select:
    none;
}

.locked-label {
  margin-left:
    auto;

  padding:
    3px 5px;

  border:
    1px solid
    rgba(255,255,255,.06);

  border-radius:
    4px;

  color:
    #454a53;

  font-size:
    6px;

  font-weight:
    700;

  letter-spacing:
    .07em;
}


/* ============================================================
   PAGE / HERO
============================================================ */

.page {
  position:
    relative;

  z-index:
    5;

  min-height:
    100vh;

  margin-left:
    var(--sidebar-width);

  padding-top:
    var(--topbar-height);
}

.hero {
  min-height:
    calc(
      100vh -
      var(--topbar-height)
    );

  padding:
    70px 7vw;

  display:
    flex;

  align-items:
    center;
}

.hero-content {
  width:
    min(790px, 65vw);

  margin-top:
    -10px;
}

.hero-label {
  margin-bottom:
    21px;

  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  color:
    rgba(255,255,255,.55);

  font-size:
    9px;

  font-weight:
    650;

  letter-spacing:
    .16em;

  animation:
    fadeUp
    650ms
    var(--ease)
    both;
}

.hero-dot {
  width:
    6px;

  height:
    6px;

  border-radius:
    50%;

  background:
    var(--green);

  box-shadow:
    0 0 14px
    rgba(88,240,176,.55);
}

.hero-title {
  display:
    flex;

  flex-direction:
    column;

  font-size:
    clamp(
      70px,
      7.6vw,
      125px
    );

  font-weight:
    800;

  line-height:
    .83;

  letter-spacing:
    -.065em;

  animation:
    fadeUp
    750ms
    60ms
    var(--ease)
    both;
}

.hero-title-main {
  color:
    #f5f6f8;
}

.hero-title-outline {
  color:
    transparent;

  -webkit-text-stroke:
    1.6px
    rgba(255,255,255,.43);
}

.hero-description {
  max-width:
    680px;

  margin-top:
    34px;

  color:
    rgba(235,237,241,.73);

  font-size:
    15px;

  line-height:
    1.75;

  animation:
    fadeUp
    750ms
    140ms
    var(--ease)
    both;
}

.hero-button {
  width:
    fit-content;

  min-width:
    175px;

  height:
    51px;

  margin-top:
    32px;

  padding:
    0 18px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    30px;

  border-radius:
    9px;

  background:
    #f5f6f8;

  color:
    #07080a;

  font-size:
    12px;

  font-weight:
    700;

  transition:
    transform
    200ms
    var(--ease),
    box-shadow
    200ms ease;
}

.hero-button:hover {
  transform:
    translateY(-3px);

  box-shadow:
    0 15px 45px
    rgba(0,0,0,.4);
}


/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes fadeUp {

  from {
    opacity:
      0;

    transform:
      translateY(18px);
  }

  to {
    opacity:
      1;

    transform:
      translateY(0);
  }
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (
  max-width: 900px
) {

  :root {
    --sidebar-width:
      78px;
  }

  .sidebar {
    padding:
      22px 13px;
  }

  .sidebar-heading {
    display:
      none;
  }

  .sidebar-item {
    width:
      52px;

    padding:
      0;

    justify-content:
      center;
  }

  .sidebar-item span,
  .active-indicator,
  .locked-label {
    display:
      none;
  }

  .hero-content {
    width:
      80vw;
  }

  .hero-title {
    font-size:
      clamp(
        58px,
        11vw,
        90px
      );
  }
}


@media (
  max-width: 650px
) {

  .topbar {
    padding:
      0 14px;
  }

  .top-brand-text {
    display:
      none;
  }

  .top-brand-logo {
    width:
      34px;

    height:
      34px;
  }

  .top-discord span {
    display:
      none;
  }

  .top-discord {
    width:
      43px;

    padding:
      0;

    justify-content:
      center;
  }

  .discord-login span {
    display:
      none;
  }

  .discord-login {
    width:
      43px;

    min-width:
      43px;

    padding:
      0;

    justify-content:
      center;
  }

  .profile-info {
    display:
      none;
  }

  .profile-button {
    min-width:
      0;
  }

  .hero {
    padding:
      60px 26px;
  }

  .hero-content {
    width:
      100%;
  }

  .hero-title {
    font-size:
      clamp(
        46px,
        14vw,
        72px
      );
  }

  .hero-description {
    font-size:
      13px;
  }
}