:root {
  color-scheme: dark;
  --ink: #e9f2f7;
  --muted: #b8c9d1;
  --blue: #27a8ff;
  --copper: #ff7a1a;
  --header-height: 78px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: #030910;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; isolation: isolate; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }

.site-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #030910 url("/assets/thrive-hex-hero-no-signal-v1.png") center / cover no-repeat;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #0a1722;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 3.2vw, 60px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-wordmark { display: inline-flex; flex: none; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.site-wordmark img { display: block; flex: none; }
.brand-smallcaps { font-size: .78em; letter-spacing: .105em; }
.brand-smallcaps b { font-size: 1.28em; font-weight: inherit; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); }
.nav-item { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.nav-placeholder { color: var(--muted); cursor: default; }
.sign-in { color: var(--ink); transition: background-color .2s, color .2s; }
.sign-in:hover { color: #7fcfff; background: rgb(39 168 255 / 12%); }
.menu-toggle { display: none; }

.header-pulse {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 9px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 4px, rgb(169 184 192 / 24%) 4px, rgb(169 184 192 / 24%) 5px, transparent 5px);
}
.header-pulse::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 22%;
  height: 1px;
  content: "";
  color: var(--copper);
  background: linear-gradient(90deg, transparent, currentColor 38%, currentColor 62%, transparent);
  box-shadow: 0 0 9px currentColor;
  animation: header-pulse 6s linear infinite;
}
@keyframes header-pulse {
  0% { color: var(--copper); transform: translateX(-110%); }
  1% { color: var(--copper); }
  2.8% { color: #f4fbff; }
  5% { color: var(--blue); }
  6.7%, 100% { color: var(--blue); transform: translateX(565%); }
}

main { display: grid; min-height: calc(100svh - var(--header-height)); place-items: center; padding: 36px 20px 60px; }
.hero-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 { margin: 0; }
.hero-logo { display: block; width: min(52vw, 60svh, 620px); height: auto; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 36%)); }
.hero-tagline { margin: clamp(24px, 4vh, 44px) 0 0; font-size: clamp(14px, 2.1vw, 28px); font-weight: 720; letter-spacing: .16em; line-height: 1.5; color: rgb(233 242 247 / 86%); }

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: 0; padding-inline: 20px; }
  .site-wordmark { min-height: var(--header-height); font-size: 18px; }
  .site-nav { flex-basis: 100%; justify-content: center; gap: 4px; padding-bottom: 12px; }
  .nav-item { font-size: 13px; }
  .navigation-ready .menu-toggle { display: flex; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: transparent; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 1px; background: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .navigation-ready .site-nav { position: absolute; top: 100%; right: 12px; left: 12px; display: none; padding: 12px; border: 1px solid rgb(159 193 208 / 16%); border-radius: 16px; background: rgb(10 23 34 / 97%); box-shadow: 0 20px 40px #0006; }
  .navigation-ready .site-nav[data-open="true"] { display: flex; }
  main { padding: 28px 16px 52px; }
  .hero-logo { width: min(82vw, 54svh, 420px); }
  .hero-tagline { font-size: clamp(11px, 3.65vw, 20px); letter-spacing: .1em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .header-pulse::after { display: none; animation: none; }
  .sign-in { transition: none; }
}
