:root {
  --topbar-h: 56px;
}

/* ===== Top Bar (hidden until hero scrolls out) ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  display: grid;
  align-items: center;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(41, 39, 39, 0.7);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  z-index: 1000;
}

.topbar--visible {
  transform: translateY(0);
  opacity: 1;
}

.topbar__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
  color: #f6f6f6;
}

/* Add top padding so content isn't hidden when topbar shows */
.container {
  padding-top: calc(var(--topbar-h) + 1rem);
}

/* ===== Hero / Banner ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 40vh;
  max-height: 60vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image: url("WordAva_Screen_10.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.30) 50%,
    rgba(0,0,0,0.15) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  letter-spacing: 0.4px;
}

/* ===== Accessibility / Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .topbar {
    transition: none;
  }
}

/* ===== Small screens adjustments ===== */
@media (max-width: 480px) {
  :root { --topbar-h: 52px; }
  .topbar__brand { font-size: 0.95rem; }
  .hero__content { padding: 3.25rem 1rem; }
}
