/* authcore/public/css/1.css */

.page-home{
  padding: 0;
}

.app-shell{
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 100%;
  padding-top: var(--header-h);
  padding-bottom: var(--bottom-h);
}

.mb-gradient{
  background-image: linear-gradient(90deg, #f27e02, #454447);
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.home-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #000;
  padding-top: env(safe-area-inset-top);
}

.home-header-pad{
  padding: 12px 16px 0;
}

.home-hero{
  border-radius: 15px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform;
  transform: translateZ(0);
}

.home-logo{
  display: block;
  width: 80px;
  max-height: 80px;
  height: auto;
  opacity: 1;
  margin: 8px;
  user-select: none;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease, width 0.25s ease;
}

.home-title{
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-subtitle{
  margin: 10px 0 8px 0;
  font-size: 14px;
  line-height: 17px;
  color: #9ca3af;
  font-weight: 500;
}

/* Shrink header */
.shrink-header{
  transition: transform 0.5s ease, border-radius 0.5s ease;
  transform-origin: top center;
  will-change: transform;
}

#home-header.shrink-header{
  position: relative;
  transform: translateY(calc(-4px * var(--home-shrink-progress)));
  padding-top: calc(4px * (1 - var(--home-shrink-progress)));
  padding-bottom: calc(6px + 2px * (1 - var(--home-shrink-progress)));
  border-radius: calc(15px * (1 - var(--home-shrink-progress)));
  box-shadow: none;
  background: none !important;
  pointer-events: none;
  overflow: hidden;
}

#home-header.shrink-header::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, #151517, #2f2f32);
  opacity: calc(1 - var(--home-shrink-progress));
  pointer-events: none;
  z-index: 0;
}

#home-header.shrink-header > *{
  position: relative;
  z-index: 1;
}

#home-header .home-logo{
  width: calc(80px * (1 - var(--home-shrink-progress)));
  max-height: calc(80px * (1 - var(--home-shrink-progress)));
  height: auto;
  opacity: calc(1 - var(--home-shrink-progress));
  margin-bottom: calc(8px * (1 - var(--home-shrink-progress)));
  transform:
    translateY(calc(-8px * var(--home-shrink-progress)))
    scale(calc(1 - 0.12 * var(--home-shrink-progress)));
  transform-origin: top center;
  overflow: hidden;
}

#home-header .home-title{
  font-size: calc(24px - 5px * var(--home-shrink-progress));
  line-height: calc(32px - 8px * var(--home-shrink-progress));
}

#home-header .home-subtitle{
  margin-top: calc(10px * (1 - var(--home-shrink-progress)));
  max-height: calc(48px * (1 - var(--home-shrink-progress)));
  opacity: calc(1 - var(--home-shrink-progress));
  overflow: hidden;
  transform:
    translateY(calc(-6px * var(--home-shrink-progress)))
    scale(calc(1 - 0.08 * var(--home-shrink-progress)));
  transform-origin: top center;
  pointer-events: none;
}

.home-tabs-wrap{
  padding: 12px 16px 6px;
  position: relative;
  z-index: 60;
  pointer-events: auto;
}

.home-tabs{
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.35);
  pointer-events: auto;
}

.home-nav-btn{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  color: rgba(255,255,255,0.70);
  transition: 0.2s;
  user-select: none;
  pointer-events: auto;
}

.home-nav-btn.is-active{
  background: rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.45);
  color: #fff;
}

.home-main{
  padding: 0 16px;
}

.home-sections{
  margin-bottom: 40px;
}

.home-section{ margin-top: 8px; }
.home-section > * + * { margin-top: 24px; }
.home-section-compact > * + * { margin-top: 16px; }

.home-divider{
  width: 95%;
  height: 1px;
  margin: 6px auto 18px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

.card-glass{
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px -6px rgba(0,0,0,0.40);
}

.card-title{
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.text-body{
  font-size: 14px;
  line-height: 20px;
  color: #d1d5db;
}

.text-muted-1{
  font-size: 14px;
  line-height: 20px;
  color: #9ca3af;
}

.text-strong{
  color: #fff;
  font-weight: 500;
}

.text-strong-muted{
  color: #e5e7eb;
  font-weight: 600;
}

.mb-8{ margin-bottom: 8px; }
.mb-12{ margin-bottom: 12px; }
.mb-16{ margin-bottom: 16px; }

.list-gap > * + * { margin-top: 8px; }

.list-item{
  display: flex;
  gap: 8px;
}

.list-bullet{
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.40);
}

@media (min-width: 1024px) {

  .home-header{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 32px));
  }

  .home-header{
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    overflow: hidden;
  }

  .home-main{
    padding-left: 18px;
    padding-right: 18px;
  }

}