/* INAVI landing — hero + nav. Tokens: tokens.css */

/* ===== Hero (nav lives inside it, per 3a) ===== */
.hero {
  position: relative;
  overflow: hidden;
  /* Fill the viewport so the next section only appears on scroll.
     svh (small viewport) avoids mobile address-bar overflow; vh is the fallback.
     min-height (not height) lets the hero grow if content exceeds the viewport. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--hero-grad);
  color: var(--text-base);
  transition: background 0.4s ease;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
:root[data-theme='light'] .hero-canvas {
  display: none;
}
.hero-blob {
  position: absolute;
  width: 540px;
  height: 540px;
  left: -150px;
  top: -110px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--hero-blob), transparent 64%);
  filter: blur(26px);
  animation: drift 22s ease-in-out infinite;
  pointer-events: none;
}
nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 48px);
}
.nav-logo {
  display: inline-flex;
  line-height: 0;
}
.nav-logo img {
  opacity: 0.92;
}
.logo-light {
  display: inline-block;
}
.logo-dark {
  display: none;
}
:root[data-theme='light'] .logo-light {
  display: none;
}
:root[data-theme='light'] .logo-dark {
  display: inline-block;
}
.ic-sun {
  display: none;
}
:root[data-theme='light'] .ic-moon {
  display: none;
}
:root[data-theme='light'] .ic-sun {
  display: block;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.nav-right > a {
  color: var(--nav-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-right > a:hover {
  color: var(--text-strong);
}
.nav-ctl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle,
.lang {
  font: inherit;
  border: 1px solid var(--toggle-brd);
  background: var(--toggle-bg);
  color: var(--toggle-text);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    filter 0.2s ease;
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
}
.theme-toggle:hover,
.lang:hover {
  filter: brightness(1.08);
}
.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 14px;
}
.lang .sep {
  opacity: 0.3;
}
.lang span:not(.sep) {
  opacity: 0.5;
  font-weight: 400;
}
.lang span.on {
  opacity: 1;
  font-weight: 700;
}
.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px clamp(20px, 4vw, 48px) 84px;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--pill-text);
  background: var(--pill-bg);
  border: 1px solid var(--pill-brd);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1.09;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 880px;
  color: var(--text-strong);
}
.hero h1 .acc {
  color: var(--accent);
}
.hero-lead {
  max-width: 630px;
  margin-top: 24px;
  font-size: 17.5px;
  color: var(--text-body);
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.btn-primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 10px 26px -14px var(--btn-glow);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--cta2-text);
  border: 1px solid var(--cta2-brd);
  background: var(--cta2-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--cta2-bg-hover);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cue);
  font-size: 22px;
  animation: cue 2.2s ease-in-out infinite;
}
