/* Public landing: tabbed, viewport-bound pages. These rules intentionally come last. */
@media (max-width: 1180px) {
  .nv-public-landing { grid-template-rows: 72px minmax(0, 1fr); }
  .nv-landing-header { gap: 15px; padding-inline: 22px; }
  .nv-landing-logo strong { display: none; }
  .nv-landing-nav { gap: 3px; }
  .nv-landing-nav button { padding-inline: 9px; font-size: 13px; }
  .nv-landing-header-actions .nv-landing-button { padding-inline: 12px; }
  .nv-landing-page-intro { grid-template-columns: 1.2fr .8fr; gap: 22px; }
  .nv-landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .nv-landing-feature-card { grid-template-columns: 38% 62%; grid-template-rows: 1fr; }
  .nv-landing-feature-card > div { padding: 15px; }
  .nv-landing-feature-card h3 { margin-top: 8px; }
  .nv-landing-feature-card p { margin-top: 7px; }
  .nv-landing-split { grid-template-columns: 52% 48%; }
  .nv-landing-split.reverse { grid-template-columns: 48% 52%; }
}

@media (max-width: 820px) {
  .nv-public-landing { grid-template-rows: 108px minmax(0, 1fr); }
  .nv-landing-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 55px 43px;
    gap: 0 10px;
    padding: 5px 12px;
  }
  .nv-landing-logo > span { width: 38px; height: 38px; }
  .nv-landing-header-actions { justify-content: flex-end; }
  .nv-landing-header-actions .nv-landing-button { min-height: 37px; padding: 8px 11px; font-size: 13px; }
  .nv-landing-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
  }
  .nv-landing-nav button { min-height: 35px; padding: 6px 2px; font-size: 13px; }
  .nv-landing-home-copy { width: min(680px, calc(100% - 42px)); height: calc(100% - 112px); margin-left: 24px; }
  .nv-landing-home h1 { font-size: clamp(37px, 8.2vw, 64px); }
  .nv-landing-home-rail { right: 12px; bottom: 12px; left: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nv-landing-home-rail .nv-landing-metric { flex-direction: column; justify-content: center; gap: 2px; padding: 10px 5px; text-align: center; }
  .nv-landing-home-rail .nv-landing-metric strong { font-size: 21px; }
  .nv-landing-home-rail .nv-landing-metric span { font-size: 13px; }
  .nv-landing-next { display: none; }
  .nv-landing-overview { padding: 18px 14px 0; gap: 12px; }
  .nv-landing-page-intro { display: block; }
  .nv-landing-page-intro > p { margin-top: 8px; }
  .nv-landing-page-intro h2 { font-size: clamp(28px, 5.5vw, 43px); }
  .nv-landing-feature-grid { gap: 9px; }
  .nv-landing-feature-card { grid-template-columns: 34% 66%; }
  .nv-landing-feature-card > div > span { font-size: 13px; letter-spacing: .08em; }
  .nv-landing-feature-card h3 { font-size: 15px; }
  .nv-landing-feature-card p { font-size: 13px; line-height: 1.35; }
  .nv-landing-split,
  .nv-landing-split.reverse { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 45px; }
  .nv-landing-split-media,
  .nv-landing-split.reverse .nv-landing-split-media { position: absolute; inset: 0 0 45px; grid-column: 1; opacity: .52; }
  .nv-landing-split-media::after,
  .nv-landing-split.reverse .nv-landing-split-media::after { background: linear-gradient(90deg, rgba(2,7,16,.98) 0%, rgba(2,7,16,.88) 52%, rgba(2,7,16,.35) 100%); }
  .nv-landing-split-copy,
  .nv-landing-split.reverse .nv-landing-split-copy { grid-column: 1; grid-row: 1; width: min(610px, 72%); padding: 28px 30px; background: transparent; }
  .nv-landing-split-copy h2 { font-size: clamp(30px, 6vw, 48px); }
  .nv-landing-split-copy > p { font-size: 13px; }
  .nv-landing-info-list > div { padding: 9px 0; }
  .nv-landing-number-grid { margin-top: 18px; }
  .nv-landing-number-grid .nv-landing-metric { min-height: 62px; padding: 10px; }
}

@media (max-width: 560px) {
  .nv-public-landing { grid-template-rows: 104px minmax(0, 1fr); }
  .nv-landing-header-actions .secondary { display: none; }
  .nv-landing-nav button { font-size: 13px; }
  .nv-landing-home > .nv-landing-page-picture img { object-position: 62% center; }
  .nv-landing-page-shade { background: linear-gradient(180deg, rgba(1,5,12,.35), rgba(2,8,17,.79) 45%, rgba(1,5,12,.97) 100%); }
  .nv-landing-home-copy { justify-content: flex-end; width: calc(100% - 28px); height: calc(100% - 104px); margin: 0 14px; padding-bottom: 26px; }
  .nv-landing-home h1 { font-size: clamp(34px, 10.5vw, 48px); }
  .nv-landing-home-copy > p { margin-top: 13px; font-size: 13px; line-height: 1.45; }
  .nv-landing-home .nv-landing-hero-actions { margin-top: 16px; }
  .nv-landing-button.large { min-width: 0; min-height: 42px; padding: 9px 13px; font-size: 13px; }
  .nv-landing-home-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nv-landing-home-rail .nv-landing-metric:nth-child(n+4) { display: none; }
  .nv-landing-overview { padding: 12px 9px 0; }
  .nv-landing-page-intro .nv-landing-eyebrow { display: none; }
  .nv-landing-page-intro h2 { font-size: 26px; }
  .nv-landing-page-intro > p { font-size: 13px; line-height: 1.35; }
  .nv-landing-feature-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .nv-landing-feature-card { grid-template-columns: 31% 69%; }
  .nv-landing-feature-card > div { padding: 9px; }
  .nv-landing-feature-card > div > span svg { display: none; }
  .nv-landing-feature-card h3 { margin-top: 4px; font-size: 13px; }
  .nv-landing-feature-card p { margin-top: 4px; font-size: 13px; }
  .nv-landing-page-footer { padding-inline: 12px; font-size: 13px; }
  .nv-landing-page-footer button { font-size: 13px; }
  .nv-landing-split-copy,
  .nv-landing-split.reverse .nv-landing-split-copy { width: 100%; padding: 24px 18px; }
  .nv-landing-split-copy h2 { font-size: 31px; }
  .nv-landing-split-copy > p { max-width: 94%; font-size: 13px; line-height: 1.42; }
  .nv-landing-info-list { gap: 3px; margin-top: 12px; }
  .nv-landing-info-list > div { grid-template-columns: 27px 1fr; gap: 8px; padding: 6px 0; }
  .nv-landing-info-list span { font-size: 13px; }
  .nv-landing-info-list strong { font-size: 13px; }
  .nv-landing-number-grid { gap: 6px; margin-top: 14px; }
  .nv-landing-number-grid .nv-landing-metric { min-height: 54px; gap: 7px; padding: 7px; }
  .nv-landing-number-grid .nv-landing-metric strong { font-size: 20px; }
  .nv-landing-number-grid .nv-landing-metric span { font-size: 13px; }
}

@media (max-height: 760px) and (min-width: 821px) {
  .nv-public-landing { grid-template-rows: 66px minmax(0, 1fr); }
  .nv-landing-home-copy { height: calc(100% - 96px); }
  .nv-landing-home h1 { font-size: clamp(37px, 4.2vw, 62px); }
  .nv-landing-home-copy > p { margin-top: 13px; font-size: 13px; }
  .nv-landing-home .nv-landing-hero-actions { margin-top: 17px; }
  .nv-landing-home-rail { bottom: 12px; }
  .nv-landing-home-rail .nv-landing-metric { padding-block: 10px; }
  .nv-landing-overview { padding-top: 20px; gap: 10px; }
  .nv-landing-page-intro .nv-landing-eyebrow { display: none; }
  .nv-landing-page-intro h2 { font-size: 34px; }
  .nv-landing-feature-card p { line-height: 1.35; }
  .nv-landing-split-copy { padding-block: 22px; }
  .nv-landing-split-copy h2 { font-size: 36px; }
  .nv-landing-info-list { margin-top: 13px; }
  .nv-landing-info-list > div { padding: 7px 0; }
  .nv-landing-number-grid { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .nv-landing-page,
  .nv-landing-button,
  .nv-landing-next,
  .nv-landing-page-footer button { animation: none; transition: none; }
}

/* v0.30.0 cinematic welcome experience: final public-site visual pass. */
.nv-public-landing {
  --nv-welcome-accent: #73dcff;
  --nv-welcome-accent-2: #7a6cff;
  background: #01060d;
}

.nv-landing-header {
  background: linear-gradient(180deg, rgba(2, 8, 17, .98), rgba(2, 8, 17, .91));
  border-bottom-color: rgba(121, 196, 236, .16);
}

.nv-landing-logo > span {
  position: relative;
  overflow: hidden;
  border-color: rgba(101, 220, 255, .56);
  background: linear-gradient(145deg, rgba(18, 100, 145, .8), rgba(5, 18, 32, .98));
  box-shadow: inset 0 0 26px rgba(82, 202, 255, .18), 0 0 34px rgba(31, 144, 211, .17);
}

.nv-landing-logo > span::after {
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.32) 50%, transparent 62%);
  transform: translateX(-65%);
  animation: nvLogoSweep 7s ease-in-out infinite;
  content: "";
}

@keyframes nvLogoSweep {
  0%, 70%, 100% { transform: translateX(-65%); opacity: 0; }
  78% { opacity: 1; }
  92% { transform: translateX(65%); opacity: 0; }
}

.nv-landing-nav button {
  border-radius: 8px;
  color: #91a8ba;
}

.nv-landing-nav button.active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #f4fbff;
}

.nv-landing-nav button.active::after {
  right: 22%;
  bottom: 1px;
  left: 22%;
  height: 2px;
  box-shadow: 0 0 14px rgba(82, 213, 255, .75);
}

.nv-landing-button {
  border-radius: 11px;
}

.nv-landing-button.primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(111, 224, 255, .55);
  background: linear-gradient(112deg, #168fd0 0%, #386dcf 50%, #765bd5 100%);
  box-shadow: 0 14px 38px rgba(28, 124, 204, .28), inset 0 1px rgba(255, 255, 255, .2);
}

.nv-landing-button.primary::after {
  position: absolute;
  inset: -80% -35%;
  background: linear-gradient(105deg, transparent 44%, rgba(255,255,255,.2) 50%, transparent 56%);
  transform: translateX(-55%);
  transition: transform .45s ease;
  content: "";
}

.nv-landing-button.primary:hover::after { transform: translateX(55%); }

.nv-landing-button.large {
  min-width: 188px;
  min-height: 52px;
  padding: 13px 25px;
  font-size: 13px;
  letter-spacing: .02em;
}

.nv-landing-home-cinematic > .nv-landing-page-picture img {
  object-position: 52% center;
  transform: scale(1.015);
  animation: nvCinematicDrift 18s ease-in-out infinite alternate;
}

@keyframes nvCinematicDrift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(-.6%, -.35%, 0); }
}

.nv-landing-home-cinematic::before,
.nv-landing-story::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
}

.nv-landing-home-cinematic::before {
  background:
    radial-gradient(circle at 72% 38%, rgba(80, 192, 255, .12), transparent 28%),
    linear-gradient(115deg, rgba(1, 5, 11, .99) 0%, rgba(2, 8, 17, .93) 28%, rgba(2, 8, 17, .52) 50%, rgba(1, 5, 11, .1) 76%);
}

.nv-landing-home-cinematic .nv-landing-page-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(1, 5, 11, .08) 0%, transparent 50%, rgba(1, 5, 11, .88) 100%),
    radial-gradient(ellipse at 50% 120%, rgba(4, 20, 38, .9), transparent 58%);
}

.nv-landing-home-cinematic .nv-landing-home-copy {
  z-index: 4;
  justify-content: center;
  width: min(770px, 50vw);
  height: calc(100% - 86px);
  margin-left: clamp(34px, 5.8vw, 104px);
  padding: 0 0 36px;
}

.nv-landing-home-cinematic .nv-landing-eyebrow {
  color: #80e4ff;
  text-shadow: 0 0 18px rgba(78, 211, 255, .28);
}

.nv-landing-home-cinematic h1 {
  max-width: 790px;
  margin-top: 18px;
  font-size: clamp(45px, 5.15vw, 86px);
  line-height: .96;
  letter-spacing: -.06em;
}

.nv-landing-home-cinematic h1 span {
  display: block;
  margin-top: .08em;
  background: linear-gradient(98deg, #f7fbff 0%, #b8e8ff 48%, #9ea6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nv-landing-home-cinematic .nv-landing-home-copy > p:not(.nv-landing-manifesto) {
  max-width: 690px;
  margin-top: 24px;
  color: #b0c3d1;
  font-size: clamp(13px, 1.08vw, 18px);
  line-height: 1.65;
}

.nv-landing-manifesto {
  max-width: 690px;
  margin: 23px 0 0;
  padding-left: 17px;
  border-left: 2px solid rgba(91, 216, 255, .82);
  color: #d8edf7;
  font-size: clamp(13px, .8vw, 13px);
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.55;
  text-transform: uppercase;
}

.nv-landing-home-cinematic .nv-landing-hero-actions {
  margin-top: 29px;
}

.nv-landing-home-promise {
  position: absolute;
  z-index: 5;
  right: clamp(26px, 4vw, 68px);
  bottom: 18px;
  left: clamp(26px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 0 18px 0 20px;
  border-top: 1px solid rgba(113, 203, 241, .25);
  border-bottom: 1px solid rgba(113, 203, 241, .1);
  background: linear-gradient(90deg, rgba(4, 14, 26, .86), rgba(5, 18, 34, .48), rgba(4, 14, 26, .8));
  box-shadow: 0 15px 45px rgba(0,0,0,.28);
  backdrop-filter: blur(13px);
}

.nv-landing-home-promise span {
  color: #a9bfce;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nv-landing-home-promise button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #8be4ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.nv-landing-home-promise svg { width: 18px; height: 18px; fill: currentColor; }

