/* Bassio's brand hub (site home) */

:root {
  --navy: #02325d;
  --blue: #2a80cd;
  --gold: #d9c071;
  --gold-light: #eedda9;
  --cream: #ede3c5;
  --white: #ffffff;
  --ink: #14212f;
  --navy-grad: linear-gradient(100deg, #02325d 0%, #2a80cd 100%);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.hub-body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.hub-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hub-backdrop__grain {
  position: absolute;
  inset: 0;
  background: url("../img/sand-pattern.png") center / cover no-repeat;
  opacity: .55;
}
.hub-backdrop__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42vh, 320px);
  background: url("../img/blue-ground.png") center bottom / cover no-repeat;
  opacity: .9;
}

.hub-skip {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 60;
  padding: .6rem 1rem;
  border-radius: .5rem;
  background: var(--navy);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.hub-skip:focus-visible { top: 1rem; }

.hub-auth {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 30;
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hub-auth a {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--navy);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2, 50, 93, .1);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.hub-auth a:hover {
  background: #fff;
  transform: translateY(-1px);
}

.hub-main {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: 5.5rem 1.25rem 2.5rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .85rem;
  text-align: center;
}

.hub-logo {
  width: min(160px, 42vw);
  height: auto;
  margin-bottom: .35rem;
  filter: drop-shadow(0 10px 24px rgba(2, 50, 93, .18));
  animation: hub-rise .7s var(--ease) both;
}

.hub-welcome {
  margin: 0;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  animation: hub-rise .7s var(--ease) .05s both;
}

.hub-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(3rem, 12vw, 4.2rem);
  line-height: .95;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  animation: hub-rise .7s var(--ease) .1s both;
}

.hub-tagline {
  margin: 0 0 .55rem;
  max-width: 22rem;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--navy);
  animation: hub-rise .7s var(--ease) .15s both;
}
.hub-tagline span {
  background: linear-gradient(180deg, transparent 55%, var(--gold-light) 55%);
  padding: 0 4px;
}

.hub-actions {
  display: grid;
  gap: .75rem;
  width: min(22rem, 100%);
  margin-top: .35rem;
  animation: hub-rise .7s var(--ease) .2s both;
}

.hub-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  min-height: 3.15rem;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  background: var(--navy-grad);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(2, 50, 93, .22);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.hub-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.hub-pill span {
  transition: transform .18s var(--ease);
}
.hub-pill:hover span { transform: translateX(3px); }

.hub-pill--gold {
  background: linear-gradient(100deg, #eedda9 0%, #d9c071 55%, #b99c45 100%);
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(185, 156, 69, .28);
}

.hub-admin {
  margin-top: 1.25rem;
  font-size: .8rem;
  font-weight: 700;
  color: rgba(2, 50, 93, .55);
  text-decoration: underline;
  animation: hub-rise .7s var(--ease) .28s both;
}
.hub-admin:hover { color: var(--navy); }

@keyframes hub-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-logo,
  .hub-welcome,
  .hub-brand,
  .hub-tagline,
  .hub-actions,
  .hub-admin { animation: none; }
}
