:root {
  --brand-primary: #2F80ED;
  --brand-secondary: #EAF2FF;
  --brand-text: #111111;
  --brand-muted: #6B7280;
  --brand-border: #F5F7FA;
  --hero-sky: url("/assets/images/hero-bg-condo.webp");
}

body {
  background: #FFFFFF;
}

.hero-nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px;
  transition: top 0.3s ease;
}

.nav-pill {
  max-width: 1200px;
  width: calc(100% - 48px);
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.floating-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand-text);
  font-weight: 700;
  font-size: 18px;
  min-width: 140px;
  justify-content: flex-start;
}

.floating-header__brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-left: 6px;
  transform: translateY(-1px);
}

.floating-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.floating-header__nav a {
  color: var(--brand-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.floating-header__nav a:hover {
  color: var(--brand-primary);
}

.floating-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(47, 128, 237, 0.18);
}

.btn--primary:hover {
  background: #2469C6;
  transform: translateY(-1px);
}

.btn--secondary {
  background: #FFFFFF;
  border-color: var(--brand-secondary);
  color: var(--brand-text);
}

.btn--secondary:hover {
  background: #F5F7FA;
}

.hero {
  background-image: var(--hero-sky);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 16px 90px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
  border-radius: 32px;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.28) 45%, rgba(255, 255, 255, 0.60) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  max-width: 820px;
  text-align: center;
  color: var(--brand-text);
}

.hero__glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%),
    rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 26px;
  padding: 36px 38px;
  box-shadow:
    0 24px 70px rgba(17, 17, 17, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero__content h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  margin: 20px 0 16px;
  color: var(--brand-text);
  letter-spacing: -0.02em;
  font-weight: 780;
}

.hero__content p {
  font-size: 18px;
  color: #2B2B2B;
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 242, 255, 0.9);
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 237, 0.18);
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #BBD7FF;
  display: inline-block;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  justify-content: center;
}

.hero__link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--brand-text);
  text-decoration: none;
  font-weight: 500;
}

.hero__link:hover {
  color: var(--brand-primary);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  background: rgba(255, 255, 255, 0.75);
  color: #2B2B2B;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(234, 242, 255, 0.9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1100px) {
  .nav-pill {
    border-radius: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .floating-header__nav {
    justify-content: center;
  }

  .floating-header__actions {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    padding: 0;
  }
  .hero {
    min-height: 70vh;
  }
}

@media (max-width: 640px) {
  .nav-pill {
    padding: 12px 16px;
    gap: 16px;
  }

  .floating-header__brand {
    min-width: 120px;
  }

  .floating-header__nav {
    gap: 16px;
  }

  .hero {
    padding: 32px 12px 56px;
  }

  .floating-header__brand img {
    height: 26px;
    margin-left: 4px;
  }

  .hero__glass {
    padding: 26px 20px;
  }
}

@media (max-width: 900px) {
  .floating-header__brand img {
    height: 30px;
  }
}

/* ─── User Menu Chip ─────────────────────────────────────────── */
.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  border: none;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28);
  white-space: nowrap;
}

.user-menu-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

.user-menu-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.user-menu-btn .user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
  opacity: 0.85;
}

.user-menu-btn.is-open .user-chevron {
  transform: rotate(180deg);
}

/* ─── Dropdown Panel ──────────────────────────────────────────── */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.10),
    0 32px 64px rgba(0, 0, 0, 0.06);
  min-width: 230px;
  z-index: 1100;
  overflow: hidden;
  /* Animation */
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.user-dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown header */
.ud-header {
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1e40af 100%);
  position: relative;
  overflow: hidden;
}

.ud-header::before {
  content: '';
  position: absolute;
  top: -28px;
  right: -28px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ud-header__name {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ud-header__email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown body */
.ud-body {
  padding: 7px 8px 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  color: #0f172a;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
  line-height: 1;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: #f1f5f9;
  color: #1e40af;
  outline: none;
}

.dropdown-item:hover .di-icon,
.dropdown-item:focus-visible .di-icon {
  color: #2563eb;
}

.di-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.14s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.di-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ud-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 8px;
  border: none;
}

.dropdown-item--danger {
  color: #dc2626;
}

.dropdown-item--danger .di-icon {
  color: #ef4444;
}

.dropdown-item--danger:hover,
.dropdown-item--danger:focus-visible {
  background: #fff1f2;
  color: #b91c1c;
}

.dropdown-item--danger:hover .di-icon,
.dropdown-item--danger:focus-visible .di-icon {
  color: #dc2626;
}

/* ─── Mobile Adjustments ──────────────────────────────────────── */
@media (max-width: 640px) {
  .user-menu-btn {
    padding: 7px 12px 7px 7px;
    font-size: 13px;
    gap: 7px;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .user-menu-btn .user-name {
    max-width: 72px;
  }

  .user-dropdown {
    right: -8px;
    min-width: 210px;
    border-radius: 16px;
  }

  .ud-header {
    padding: 14px 16px 12px;
  }
}

@media (max-width: 400px) {
  .user-menu-btn .user-name {
    display: none;
  }

  .user-menu-btn {
    padding: 7px 10px 7px 7px;
    gap: 6px;
  }
}
