/* First hero panel — mirrors landing/index.html */

.home-panel {
  --home-text: #fffaf0;
  --home-text-soft: rgba(255, 250, 240, 0.78);
  --home-text-muted: rgba(255, 250, 240, 0.56);
  --home-glass: rgba(255, 255, 255, 0.095);
  --home-glass-border: rgba(255, 255, 255, 0.2);
  --home-button: rgba(255, 250, 240, 0.96);
  --home-button-hover: #ffffff;
  --home-button-ink: #101a20;
  --home-shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.22);
  --home-hero-image: url("assets/pexels/hero-secluded.jpg");

  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--home-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Geist",
    "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.home-panel .page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.home-panel .page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(5, 13, 18, 0.12) 0%,
      rgba(5, 13, 18, 0.42) 55%,
      rgba(5, 13, 18, 0.82) 100%
    ),
    var(--home-hero-image);
  background-size: cover;
  background-position: center center;
  transform: scale(1.018);
  filter: saturate(1.03) contrast(1.02);
}

.home-panel .hero .scroll-hint {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 250, 240, 0.88);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.2s ease,
    color 0.2s ease;
  animation: scrollHintBounce 2.4s ease-in-out 1.6s infinite;
}

.home-panel .hero .scroll-hint svg {
  width: 22px;
  height: 22px;
}

.home-panel .hero .scroll-hint:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fffaf0;
}

.home-panel .hero .scroll-hint:focus-visible {
  outline: 2px solid rgba(255, 250, 240, 0.9);
  outline-offset: 3px;
}

.home-panel .hero .scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  animation: none;
}

@keyframes scrollHintBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

.site-topbar-wrap {
  --home-text: #fffaf0;
  --home-text-soft: rgba(255, 250, 240, 0.78);
  --home-glass: rgba(255, 255, 255, 0.095);
  --home-glass-border: rgba(255, 255, 255, 0.2);
  --home-shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.22);
  color: var(--home-text);
}

.home-panel .topbar-wrap,
.site-topbar-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  padding-inline: 14px;
}

.home-panel .topbar,
.site-topbar-wrap .topbar {
  position: relative;
  width: min(600px, 100%);
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 9px 10px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--home-glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.07) 100%),
    var(--home-glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    var(--home-shadow-sm);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}

.home-panel .topbar::before,
.site-topbar-wrap .topbar::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 50%;
  border-radius: 999px 999px 40px 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-panel .brand,
.site-topbar-wrap .brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding-right: 8px;
  color: inherit;
}

.home-panel .brand-mark,
.site-topbar-wrap .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  overflow: hidden;
  flex: 0 0 auto;
  background: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.home-panel .brand-mark img,
.home-panel .brand-mark svg,
.site-topbar-wrap .brand-mark img,
.site-topbar-wrap .brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-panel .brand-name,
.site-topbar-wrap .brand-name {
  font-size: 1rem;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.home-panel .nav,
.site-topbar-wrap .nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.home-panel .nav-link,
.site-topbar-wrap .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--home-text-soft);
  font-size: 0.94rem;
  font-weight: 540;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-panel .nav-link:hover,
.site-topbar-wrap .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--home-text);
  transform: translateY(-1px);
}

.site-topbar-wrap .nav-icon-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--home-text-soft);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-topbar-wrap .nav-icon-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--home-text);
  transform: translateY(-1px);
}

.site-topbar-wrap .nav-icon-link svg {
  width: 19px;
  height: 19px;
}

.home-panel .home-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 124px 18px 86px;
}

.home-panel .hero {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.home-panel h1 {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(3.3rem, 7.5vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
  font-weight: 820;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

.home-panel h1 span {
  display: block;
}

.home-panel .subhead {
  margin: 2px 0 0;
  max-width: 680px;
  font-size: clamp(1.16rem, 2.05vw, 1.68rem);
  line-height: 1.24;
  letter-spacing: 0;
  font-weight: 640;
  color: var(--home-text-soft);
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.36);
  text-wrap: balance;
}

.home-panel .status {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  color: var(--home-text-muted);
  font-size: 0.98rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.home-panel .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--home-button);
  color: var(--home-button-ink);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-panel .button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.home-panel .button:hover {
  transform: translateY(-1px);
  background: var(--home-button-hover);
  box-shadow:
    0 24px 66px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.home-panel .home-phone-mock {
  position: absolute;
  right: clamp(18px, 5.4vw, 92px);
  bottom: clamp(72px, 9vh, 128px);
  z-index: 2;
  width: clamp(150px, 16vw, 238px);
  margin: 0;
  pointer-events: none;
  transform: rotate(4deg);
  filter: drop-shadow(0 30px 54px rgba(0, 0, 0, 0.42));
}

.home-panel .home-phone-mock .phone-shell {
  padding: 6px;
  border-radius: 42px;
}

.home-panel .home-phone-mock .phone-screen-crop {
  border-radius: 36px;
}

.home-panel .home-phone-mock .phone-screen-crop::before {
  width: 82px;
  height: 22px;
  border-radius: 0 0 14px 14px;
}

.home-panel .home-phone-mock img {
  display: block;
  width: 100%;
  height: auto;
}

.home-panel footer {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding: 0 18px 28px;
}

.home-panel .footer-row {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--home-text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  flex-wrap: wrap;
}

.home-panel .footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.home-panel .footer-links a {
  color: inherit;
  transition: color 160ms ease;
}

.home-panel .footer-links a:hover {
  color: var(--home-text);
}

@media (max-width: 900px) {
  .home-panel .topbar,
  .site-topbar-wrap .topbar {
    width: min(600px, calc(100% - 20px));
  }

  .home-panel .hero {
    width: 100%;
  }

  .home-panel h1 {
    max-width: calc(100vw - 28px);
    font-size: clamp(2.38rem, 10vw, 4.8rem);
  }

  .home-panel .subhead {
    max-width: calc(100vw - 40px);
  }

  .home-panel .button {
    max-width: calc(100vw - 40px);
  }

  .home-panel .button span {
    white-space: normal;
  }

  .home-panel .home-phone-mock {
    display: none;
  }
}

@media (max-width: 720px) {
  .home-panel .hero .scroll-hint {
    width: 40px;
    height: 40px;
  }

  .home-panel .topbar-wrap,
  .site-topbar-wrap {
    top: 12px;
    padding-inline: 10px;
  }

  .home-panel .topbar,
  .site-topbar-wrap .topbar {
    min-height: 54px;
    padding: 8px 9px 8px 10px;
  }

  .home-panel .brand-mark,
  .site-topbar-wrap .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .home-panel .nav-link,
  .site-topbar-wrap .nav-link {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.91rem;
  }

  .home-panel .home-main {
    padding: 96px 14px 54px;
  }

  .home-panel h1 {
    max-width: min(560px, 100%);
    font-size: clamp(2.38rem, 10.6vw, 4.6rem);
  }

  .home-panel .subhead {
    max-width: 32rem;
    font-size: clamp(1.08rem, 4.8vw, 1.42rem);
  }

  .home-panel .button {
    min-height: 54px;
    padding: 0 20px;
    font-size: 0.96rem;
  }

  .home-panel footer {
    padding-inline: 14px;
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-panel .hero .scroll-hint {
    animation: none;
  }
}

@media (max-width: 420px) {
  .home-panel .topbar,
  .site-topbar-wrap .topbar {
    width: 100%;
  }

  .home-panel .brand-name,
  .site-topbar-wrap .brand-name {
    font-size: 0.97rem;
  }

  .home-panel .nav-link,
  .site-topbar-wrap .nav-link {
    display: none;
  }

  .home-panel .home-main {
    padding-bottom: 54px;
  }

  .home-panel .home-phone-mock {
    display: none;
  }

  .home-panel h1 {
    font-size: clamp(2.08rem, 9.7vw, 2.55rem);
  }

  .home-panel .button {
    gap: 8px;
    padding: 0 17px;
    font-size: 0.91rem;
  }

  .home-panel .button svg {
    width: 17px;
    height: 17px;
  }

  .home-panel .footer-row {
    justify-content: center;
    text-align: center;
  }
}
